Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to typescript 5.5 #3079

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/seven-crabs-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"@effect/sql-sqlite-react-native": patch
"@effect/platform-node-shared": patch
"@effect/platform-browser": patch
"@effect/sql-sqlite-node": patch
"@effect/sql-sqlite-wasm": patch
"@effect/sql-sqlite-bun": patch
"@effect/opentelemetry": patch
"@effect/platform-node": patch
"@effect/cluster-node": patch
"@effect/experimental": patch
"@effect/platform-bun": patch
"@effect/sql-drizzle": patch
"@effect/sql-mysql2": patch
"@effect/sql-mssql": patch
"@effect/schema": patch
"@effect/sql-pg": patch
"@effect/cli": patch
"@effect/sql": patch
---

update dependencies
33 changes: 33 additions & 0 deletions .changeset/tough-carpets-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
"@effect/sql-sqlite-react-native": patch
"@effect/platform-node-shared": patch
"@effect/platform-browser": patch
"@effect/sql-sqlite-node": patch
"@effect/sql-sqlite-wasm": patch
"@effect/sql-sqlite-bun": patch
"@effect/opentelemetry": patch
"@effect/platform-node": patch
"@effect/cluster-node": patch
"@effect/experimental": patch
"@effect/platform-bun": patch
"@effect/sql-drizzle": patch
"@effect/sql-mysql2": patch
"@effect/sql-mssql": patch
"effect": patch
"@effect/schema": patch
"@effect/sql-pg": patch
"@effect/cli": patch
"@effect/sql": patch
"@effect/cluster": patch
"@effect/cluster-browser": patch
"@effect/cluster-workflow": patch
"@effect/platform": patch
"@effect/printer": patch
"@effect/printer-ansi": patch
"@effect/rpc": patch
"@effect/rpc-http": patch
"@effect/typeclass": patch
"@effect/vitest": patch
---

update to typescript 5.5
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
"detective-typescript": "^11.1.0"
},
"devDependencies": {
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/plugin-transform-export-namespace-from": "^7.24.1",
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"@babel/cli": "^7.24.7",
"@babel/core": "^7.24.7",
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
"@babel/plugin-transform-modules-commonjs": "^7.24.7",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.3",
"@changesets/cli": "^2.27.6",
"@edge-runtime/vm": "^3.2.0",
"@effect/build-utils": "^0.7.7",
"@effect/docgen": "^0.4.3",
"@effect/dtslint": "^0.1.0",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.1.0",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@types/node": "^20.14.8",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@vitest/browser": "^1.5.2",
"@vitest/coverage-v8": "^1.5.2",
"@vitest/expect": "^1.5.3",
Expand All @@ -58,25 +58,25 @@
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-codegen": "^0.28.0",
"eslint-plugin-deprecation": "^2.0.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"fast-check": "^3.18.0",
"glob": "^10.3.16",
"fast-check": "^3.19.0",
"glob": "^10.4.2",
"madge": "^7.0.0",
"playwright": "^1.43.1",
"prettier": "^3.2.5",
"playwright": "^1.44.1",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"tsx": "^4.10.5",
"typescript": "^5.4.5",
"vite": "^5.2.10",
"tsx": "^4.15.7",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"vitest": "^1.5.3"
},
"pnpm": {
"patchedDependencies": {
"@changesets/assemble-release-plan@6.0.0": "patches/@changesets__assemble-release-plan@6.0.0.patch",
"@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch"
"@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch",
"@changesets/assemble-release-plan@6.0.2": "patches/@changesets__assemble-release-plan@6.0.2.patch"
},
"updateConfig": {
"ignoreDependencies": [
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"@effect/printer": "workspace:^",
"@effect/printer-ansi": "workspace:^",
"@effect/schema": "workspace:^",
"@types/ini": "^4.1.0",
"@types/node": "^20.12.7",
"@types/ini": "^4.1.1",
"@types/node": "^20.14.8",
"effect": "workspace:^"
},
"effect": {
Expand All @@ -70,8 +70,8 @@
}
},
"dependencies": {
"ini": "^4.1.2",
"ini": "^4.1.3",
"toml": "^3.0.0",
"yaml": "^2.4.2"
"yaml": "^2.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/cluster-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@effect/rpc": "workspace:^",
"@effect/rpc-http": "workspace:^",
"@effect/schema": "workspace:^",
"@types/node": "^20.12.6",
"@types/node": "^20.14.8",
"effect": "workspace:^"
}
}
4 changes: 2 additions & 2 deletions packages/effect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"devDependencies": {
"@types/jscodeshift": "^0.11.11",
"@types/node": "^20.12.7",
"@types/node": "^20.14.8",
"ast-types": "^0.14.2",
"jscodeshift": "^0.15.2"
"jscodeshift": "^0.16.0"
}
}
8 changes: 4 additions & 4 deletions packages/effect/test/Effect/filtering.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe("Effect", () => {
Effect.either,
Effect.map(Either.mapLeft(Cause.failureOrCause))
)
assert.deepStrictEqual(goodCase, Either.right(0))
assert.deepStrictEqual(goodCase, Either.right(0 as const))
assert.deepStrictEqual(badCase, Either.left(Either.left("1 was not 0")))
}))
it.effect("filterOrElse - returns checked failure ignoring value", () =>
Expand Down Expand Up @@ -126,7 +126,7 @@ describe("Effect", () => {
Effect.either,
Effect.map(Either.mapLeft(Cause.failureOrCause))
)
assert.deepStrictEqual(goodCase, Either.right(0))
assert.deepStrictEqual(goodCase, Either.right(0 as const))
assert.deepStrictEqual(badCase, Either.left(Either.left("predicate failed!")))
}))
it.effect("filterOrFail - returns failure ignoring value", () =>
Expand Down Expand Up @@ -156,7 +156,7 @@ describe("Effect", () => {
Effect.either,
Effect.map(Either.mapLeft(Cause.failureOrCause))
)
assert.deepStrictEqual(goodCase, Either.right(0))
assert.deepStrictEqual(goodCase, Either.right(0 as const))
assert.deepStrictEqual(badCase, Either.left(Either.left("predicate failed!")))
}))
it.effect("filterOrFail - returns failure", () =>
Expand Down Expand Up @@ -186,7 +186,7 @@ describe("Effect", () => {
Effect.either,
Effect.map(Either.mapLeft(Cause.failureOrCause))
)
assert.deepStrictEqual(goodCase, Either.right(0))
assert.deepStrictEqual(goodCase, Either.right(0 as const))
assert.deepStrictEqual(badCase, Either.left(Either.left("predicate failed, got 1!")))
}))
it.effect("filterOrFail - without orFailWith", () =>
Expand Down
4 changes: 2 additions & 2 deletions packages/experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
"devDependencies": {
"@types/ws": "^8.5.10",
"ioredis": "^5.4.1",
"lmdb": "^3.0.7",
"lmdb": "^3.0.12",
"vitest-websocket-mock": "^0.3.0",
"ws": "^8.17.0"
"ws": "^8.17.1"
},
"effect": {
"generateExports": {
Expand Down
24 changes: 12 additions & 12 deletions packages/opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@
}
},
"devDependencies": {
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/context-async-hooks": "^1.24.1",
"@opentelemetry/exporter-metrics-otlp-http": "0.51.1",
"@opentelemetry/exporter-prometheus": "0.51.1",
"@opentelemetry/exporter-trace-otlp-http": "0.51.1",
"@opentelemetry/otlp-exporter-base": "0.51.1",
"@opentelemetry/resources": "^1.24.1",
"@opentelemetry/sdk-metrics": "^1.24.1",
"@opentelemetry/sdk-trace-base": "^1.24.1",
"@opentelemetry/sdk-trace-node": "^1.24.1",
"@opentelemetry/sdk-trace-web": "^1.24.1",
"@opentelemetry/semantic-conventions": "^1.24.1"
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/context-async-hooks": "^1.25.1",
"@opentelemetry/exporter-metrics-otlp-http": "0.52.1",
"@opentelemetry/exporter-prometheus": "0.52.1",
"@opentelemetry/exporter-trace-otlp-http": "0.52.1",
"@opentelemetry/otlp-exporter-base": "0.52.1",
"@opentelemetry/resources": "^1.25.1",
"@opentelemetry/sdk-metrics": "^1.25.1",
"@opentelemetry/sdk-trace-base": "^1.25.1",
"@opentelemetry/sdk-trace-node": "^1.25.1",
"@opentelemetry/sdk-trace-web": "^1.25.1",
"@opentelemetry/semantic-conventions": "^1.25.1"
}
}
2 changes: 1 addition & 1 deletion packages/platform-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@effect/platform": "workspace:^",
"@effect/schema": "workspace:^",
"effect": "workspace:^",
"happy-dom": "^14.7.1",
"happy-dom": "^14.12.3",
"mock-xmlhttprequest": "^8.3.0"
},
"effect": {
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"devDependencies": {
"@effect/platform": "workspace:^",
"@effect/schema": "workspace:^",
"bun-types": "1.1.8",
"bun-types": "1.1.16",
"effect": "workspace:^"
},
"effect": {
Expand Down
7 changes: 3 additions & 4 deletions packages/platform-bun/tsconfig.examples.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"include": ["examples"],
"references": [
{ "path": "tsconfig.src.json" }
],
"references": [{ "path": "tsconfig.src.json" }],
"compilerOptions": {
"tsBuildInfoFile": ".tsbuildinfo/examples.tsbuildinfo",
"rootDir": "examples",
"noEmit": true
"noEmit": true,
"types": ["bun-types"]
}
}
2 changes: 1 addition & 1 deletion packages/platform-node-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@effect/platform": "workspace:^",
"@effect/schema": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.14.8",
"@types/tar": "^6.1.12",
"effect": "workspace:^",
"tar": "^6"
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"dependencies": {
"@effect/platform-node-shared": "workspace:^",
"mime": "^3.0.0",
"undici": "^6.18.0",
"ws": "^8.17.0"
"undici": "^6.19.2",
"ws": "^8.17.1"
},
"peerDependencies": {
"@effect/platform": "workspace:^",
Expand All @@ -57,7 +57,7 @@
"@effect/platform": "workspace:^",
"@effect/schema": "workspace:^",
"@types/mime": "^3.0.4",
"@types/node": "^20.12.7",
"@types/node": "^20.14.8",
"@types/ws": "^8.5.10",
"effect": "workspace:^"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"circular": "madge --extensions ts --circular --no-color --no-spinner src"
},
"dependencies": {
"fast-check": "^3.17.2"
"fast-check": "^3.19.0"
},
"peerDependencies": {
"effect": "workspace:^"
},
"devDependencies": {
"ajv": "^8.13.0",
"ajv": "^8.16.0",
"effect": "workspace:^",
"fast-check": "workspace:^",
"tinybench": "^2.8.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/sql-drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
},
"devDependencies": {
"@effect/sql": "workspace:^",
"@testcontainers/mysql": "^10.9.0",
"@testcontainers/postgresql": "^10.9.0",
"drizzle-orm": "^0.30.10",
"@testcontainers/mysql": "^10.10.0",
"@testcontainers/postgresql": "^10.10.0",
"drizzle-orm": "^0.31.2",
"effect": "workspace:^"
},
"peerDependencies": {
"@effect/sql": "workspace:^",
"drizzle-orm": "^0.30.10",
"drizzle-orm": "^0.31",
"effect": "workspace:^"
}
}
4 changes: 2 additions & 2 deletions packages/sql-mssql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"effect": "workspace:^"
},
"dependencies": {
"@opentelemetry/semantic-conventions": "^1.24.1",
"tedious": "^18.2.0"
"@opentelemetry/semantic-conventions": "^1.25.1",
"tedious": "^18.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/sql-mysql2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"effect": "workspace:^"
},
"dependencies": {
"@opentelemetry/semantic-conventions": "^1.24.1",
"mysql2": "^3.10.0"
"@opentelemetry/semantic-conventions": "^1.25.1",
"mysql2": "^3.10.1"
}
}
4 changes: 2 additions & 2 deletions packages/sql-mysql2/src/MysqlClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const make = (
method: "execute" | "query" = "execute"
) {
return Effect.async<ReadonlyArray<any>, SqlError>((resume) => {
this.conn[method]({
;(this.conn as any)[method]({
sql,
values,
rowsAsArray
Expand Down Expand Up @@ -250,7 +250,7 @@ function queryStream(
params?: ReadonlyArray<any>
) {
return asyncPauseResume<any, SqlError>((emit) => {
const query = conn.query(sql, params).stream()
const query = (conn as any).query(sql, params).stream()
let buffer: Array<any> = []
let taskPending = false
query.on("error", (error: unknown) => emit.fail(new SqlError({ error })))
Expand Down
2 changes: 1 addition & 1 deletion packages/sql-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"effect": "workspace:^"
},
"dependencies": {
"@opentelemetry/semantic-conventions": "^1.24.1",
"@opentelemetry/semantic-conventions": "^1.25.1",
"postgres": "^3.4.4"
}
}
Loading