Skip to content

Commit

Permalink
Update deps, fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed Oct 7, 2024
1 parent 36e9125 commit 2bc2c19
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 36 deletions.
10 changes: 10 additions & 0 deletions .changeset/light-fireants-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@evolu/common-react": patch
"@evolu/react-native": patch
"@evolu/common-web": patch
"@evolu/common": patch
"@evolu/server": patch
"@evolu/react": patch
---

Update dependencies
2 changes: 1 addition & 1 deletion apps/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"clean": "rm -rf .turbo .expo node_modules dist"
},
"dependencies": {
"@effect/schema": "^0.72.0",
"@effect/schema": "^0.75.0",
"@evolu/common": "workspace:*",
"@evolu/react": "workspace:*",
"@evolu/react-native": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"typescript": "^5.4.5"
},
"engines": {
"node": ">=16.15"
"node": ">=20.0.0"
}
}
}
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "rm -rf .turbo .next node_modules"
},
"dependencies": {
"@effect/schema": "^0.72.0",
"@effect/schema": "^0.75.0",
"@evolu/common": "workspace:*",
"@evolu/react": "workspace:*",
"clsx": "^2.1.1",
Expand Down
14 changes: 7 additions & 7 deletions examples/react-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
},
"license": "MIT",
"devDependencies": {
"@electron-forge/cli": "7.4.0",
"@electron-forge/maker-deb": "7.4.0",
"@electron-forge/maker-rpm": "7.4.0",
"@electron-forge/maker-squirrel": "7.4.0",
"@electron-forge/maker-zip": "7.4.0",
"@electron-forge/plugin-auto-unpack-natives": "7.4.0",
"@electron-forge/plugin-webpack": "7.4.0",
"@electron-forge/cli": "7.5.0",
"@electron-forge/maker-deb": "7.5.0",
"@electron-forge/maker-rpm": "7.5.0",
"@electron-forge/maker-squirrel": "7.5.0",
"@electron-forge/maker-zip": "7.5.0",
"@electron-forge/plugin-auto-unpack-natives": "7.5.0",
"@electron-forge/plugin-webpack": "7.5.0",
"@vercel/webpack-asset-relocator-loader": "1.7.4",
"css-loader": "7.1.2",
"electron": "31.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-vite-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@effect/schema": "^0.72.0",
"@effect/schema": "^0.75.0",
"@evolu/react": "latest",
"effect": "^3.6.1",
"react": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@effect/schema": "^0.72.0",
"@effect/schema": "^0.75.0",
"@evolu/react": "latest",
"effect": "^3.6.1",
"react": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@effect/schema": "^0.72.0",
"@effect/schema": "^0.75.0",
"@evolu/common": "latest",
"@evolu/common-web": "latest",
"@evolu/react": "latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-evolu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "off",
"react-hooks/exhaustive-deps": "error",
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-common-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"access": "public"
},
"engines": {
"node": ">=18.16"
"node": ">=20.0.0"
},
"sideEffects": []
}
2 changes: 2 additions & 0 deletions packages/evolu-common-react/src/use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const use =
},
): T => {
if (promise.status === "pending") {
// eslint-disable-next-line @typescript-eslint/only-throw-error
throw promise;
} else if (promise.status === "fulfilled") {
return promise.value as T;
Expand All @@ -34,6 +35,7 @@ export const use =
promise.reason = e;
},
);
// eslint-disable-next-line @typescript-eslint/only-throw-error
throw promise;
}
});
2 changes: 1 addition & 1 deletion packages/evolu-common-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"access": "public"
},
"engines": {
"node": ">=18.16"
"node": ">=20.0.0"
},
"sideEffects": []
}
1 change: 1 addition & 0 deletions packages/evolu-common-web/src/ProxyWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ interface PostMessageObject {
[key: string]: PostMessageData;
}

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface PostMessageArray extends Array<PostMessageData> {}

interface OnMessage {
Expand Down
12 changes: 6 additions & 6 deletions packages/evolu-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@
"protobuf": "pnpm protoc --ts_out ./src --proto_path protobuf protobuf/Protobuf.proto --ts_opt eslint_disable --ts_opt optimize_code_size && pnpm format"
},
"dependencies": {
"@noble/ciphers": "^0.6.0",
"@noble/ciphers": "^1.0.0",
"@noble/hashes": "^1.4.0",
"@protobuf-ts/runtime": "^2.9.4",
"@scure/bip39": "^1.3.0",
"kysely": "^0.27.3",
"nanoid": "^5.0.7"
},
"devDependencies": {
"@effect/platform": "^0.64.0",
"@effect/schema": "^0.72.0",
"@effect/platform": "^0.67.0",
"@effect/schema": "^0.75.0",
"@evolu/tsconfig": "workspace:*",
"@protobuf-ts/plugin": "^2.9.4",
"@protobuf-ts/protoc": "^2.9.4",
Expand All @@ -74,15 +74,15 @@
"vitest": "^2.0.0"
},
"peerDependencies": {
"@effect/platform": "^0.64.0",
"@effect/schema": "^0.72.0",
"@effect/platform": "^0.67.0",
"@effect/schema": "^0.75.0",
"effect": "^3.1.2"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18.16"
"node": ">=20.0.0"
},
"sideEffects": []
}
4 changes: 2 additions & 2 deletions packages/evolu-common/src/Crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class NanoIdGenerator extends Context.Tag("NanoIdGenerator")<
export const createNanoIdGeneratorLive = (
customAlphabet: (
alphabet: string,
defaultSize?: number | undefined,
) => (size?: number | undefined) => string,
defaultSize?: number,
) => (size?: number) => string,
nanoid: (size?: number) => string,
): Layer.Layer<NanoIdGenerator, never, never> => {
const nanoidForNodeId = customAlphabet("0123456789abcdef", 16);
Expand Down
1 change: 1 addition & 0 deletions packages/evolu-common/src/Evolu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,7 @@ const kysely = new Kysely.Kysely({
createAdapter: () => new Kysely.SqliteAdapter(),
createDriver: () => new Kysely.DummyDriver(),
createIntrospector() {
// eslint-disable-next-line @typescript-eslint/only-throw-error
throw "Not implemeneted";
},
createQueryCompiler: () => new Kysely.SqliteQueryCompiler(),
Expand Down
24 changes: 16 additions & 8 deletions packages/evolu-common/src/Sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,22 @@ export const createSync = Effect.gen(function* () {
),
),
Effect.flatMap((body) =>
Platform.HttpClientRequest.post(config.syncUrl).pipe(
Platform.HttpClientRequest.uint8ArrayBody(
body,
"application/x-protobuf",
),
Platform.HttpClient.fetchOk,
Platform.HttpClientResponse.arrayBuffer,
),
Effect.gen(function* () {
const client = (yield* Platform.HttpClient.HttpClient).pipe(
Platform.HttpClient.filterStatusOk,
);
return yield* Platform.HttpClientRequest.post(
config.syncUrl,
).pipe(
Platform.HttpClientRequest.bodyUint8Array(
body,
"application/x-protobuf",
),
client.execute,
Effect.flatMap((response) => response.arrayBuffer),
Effect.scoped,
);
}).pipe(Effect.provide(Platform.FetchHttpClient.layer)),
),
Effect.map((buffer) =>
Protobuf.SyncResponse.fromBinary(
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"access": "public"
},
"engines": {
"node": ">=18.16"
"node": ">=20.0.0"
},
"sideEffects": []
}
2 changes: 1 addition & 1 deletion packages/evolu-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"access": "public"
},
"engines": {
"node": ">=18.16"
"node": ">=20.0.0"
},
"sideEffects": []
}
2 changes: 1 addition & 1 deletion packages/evolu-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"access": "public"
},
"engines": {
"node": ">=16.15"
"node": ">=20.0.0"
}
}

0 comments on commit 2bc2c19

Please sign in to comment.