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

chore: standardise workspace dependencies #3467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 1 addition & 3 deletions packages/abi-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
},
"devDependencies": {
"@types/debug": "^4.1.7",
"@types/yargs": "^17.0.10",
"tsup": "^6.7.0",
"vitest": "0.34.6"
"@types/yargs": "^17.0.10"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 1 addition & 3 deletions packages/block-logs-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
"rxjs": "7.5.5"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"viem": "2.21.19",
"vitest": "0.34.6"
"@types/debug": "^4.1.7"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"@types/toposort": "^2.0.6",
"@types/yargs": "^17.0.10",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"vitest": "0.34.6"
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1"
}
}
5 changes: 1 addition & 4 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@
"prettier-plugin-solidity": "1.3.1"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"@viem/anvil": "^0.0.7",
"viem": "2.21.19",
"vitest": "0.34.6"
"@types/debug": "^4.1.7"
},
"peerDependencies": {
"@aws-sdk/client-kms": "3.x",
Expand Down
6 changes: 3 additions & 3 deletions packages/common/src/codegen/render-solidity/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ describe("renderTableId", () => {
it("returns Solidity code to compute table ID", () => {
expect(renderTableId({ namespace: "somewhere", name: "Player", offchainOnly: false })).toMatchInlineSnapshot(`
"
// Hex below is the result of \`WorldResourceIdLib.encode({ namespace: \\"somewhere\\", name: \\"Player\\", typeId: RESOURCE_TABLE });\`
ResourceId constant _tableId = ResourceId.wrap(0x7462736f6d6577686572650000000000506c6179657200000000000000000000);
// Hex below is the result of \`WorldResourceIdLib.encode({ namespace: "somewhere", name: "Player", typeId: RESOURCE_TABLE });\`
ResourceId constant _tableId = ResourceId.wrap(0x7462736f6d6577686572650000000000506c6179657200000000000000000000);
"
`);
});

it("returns Solidity code to compute offchain table ID", () => {
expect(renderTableId({ namespace: "somewhere", name: "Player", offchainOnly: true })).toMatchInlineSnapshot(`
"
// Hex below is the result of \`WorldResourceIdLib.encode({ namespace: \\"somewhere\\", name: \\"Player\\", typeId: RESOURCE_OFFCHAIN_TABLE });\`
// Hex below is the result of \`WorldResourceIdLib.encode({ namespace: "somewhere", name: "Player", typeId: RESOURCE_OFFCHAIN_TABLE });\`
ResourceId constant _tableId = ResourceId.wrap(0x6f74736f6d6577686572650000000000506c6179657200000000000000000000);
"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/resourceToHex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("resourceToHex", () => {
name: "name",
}),
).toThrowErrorMatchingInlineSnapshot(
'"Namespaces must fit into `bytes14`, but \\"AVeryLongNamespace\\" is too long."',
'[Error: Namespaces must fit into `bytes14`, but "AVeryLongNamespace" is too long.]',
);
});

Expand Down
3 changes: 0 additions & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
"find-up": "^6.3.0",
"tsx": "^4.19.1"
},
"devDependencies": {
"viem": "2.21.19"
},
"peerDependencies": {
"viem": "2.x"
}
Expand Down
8 changes: 3 additions & 5 deletions packages/dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"@types/ws": "^8.5.4",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.23",
"tailwindcss": "^3.3.2",
"viem": "2.21.19",
"vitest": "0.34.6"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13"
},
"peerDependencies": {
"@latticexyz/common": "2.x",
Expand Down
6 changes: 2 additions & 4 deletions packages/entrykit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"@types/ws": "^8.5.4",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
Expand All @@ -77,11 +77,9 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwindcss": "^3.4.13",
"viem": "2.21.19",
"vite": "^5.4.1",
"vite": "^6.0.7",
"vite-plugin-dts": "^4.2.4",
"vite-plugin-externalize-deps": "^0.8.0",
"vitest": "0.34.6",
"wagmi": "2.12.11"
},
"peerDependencies": {
Expand Down
12 changes: 5 additions & 7 deletions packages/explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.6",
"@radix-ui/themes": "^3.0.5",
"@rainbow-me/rainbowkit": "^2.1.5",
"@tanstack/react-query": "^5.51.3",
"@rainbow-me/rainbowkit": "^2.1.7",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-table": "^8.19.3",
"better-sqlite3": "^8.6.0",
"class-variance-authority": "^0.7.0",
Expand Down Expand Up @@ -90,12 +90,10 @@
"@types/yargs": "^17.0.10",
"eslint-config-next": "14.2.3",
"knip": "^5.30.2",
"postcss": "^8",
"prettier": "3.2.5",
"postcss": "^8.4.47",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"viem": "2.21.19"
"tailwindcss": "^3.4.13",
"tailwindcss-animate": "^1.0.7"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
4 changes: 1 addition & 3 deletions packages/faucet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
"zod": "3.23.8"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"viem": "2.21.19",
"vitest": "0.34.6"
"@types/debug": "^4.1.7"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
3 changes: 1 addition & 2 deletions packages/gas-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@types/stream-to-array": "^2.3.1",
"@types/yargs": "^17.0.10",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"vitest": "0.34.6"
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1"
}
}
4 changes: 0 additions & 4 deletions packages/protocol-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
"@latticexyz/schema-type": "workspace:*",
"abitype": "1.0.6"
},
"devDependencies": {
"viem": "2.21.19",
"vitest": "0.34.6"
},
"peerDependencies": {
"viem": "2.x"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol-parser/src/hexToEncodedLengths.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("hexToEncodedLengths", () => {

it("throws if schema hex data is not bytes32", () => {
expect(() => hexToEncodedLengths("0x01234")).toThrowErrorMatchingInlineSnapshot(
'"Hex value \\"0x01234\\" has length of 5, but expected length of 64 for encoded lengths."',
'[InvalidHexLengthForEncodedLengthsError: Hex value "0x01234" has length of 5, but expected length of 64 for encoded lengths.]',
);
});

Expand All @@ -29,7 +29,7 @@ describe("hexToEncodedLengths", () => {
hexToEncodedLengths("0x0000000000000000000000000000400000000020000000002000000000000040"),
).toThrowErrorMatchingInlineSnapshot(
// eslint-disable-next-line max-len
'"EncodedLengths \\"0x0000000000000000000000000000400000000020000000002000000000000040\\" total bytes length (64) did not match the summed length of all field byte lengths (128)."',
'[EncodedLengthsLengthMismatchError: EncodedLengths "0x0000000000000000000000000000400000000020000000002000000000000040" total bytes length (64) did not match the summed length of all field byte lengths (128).]',
);
});
});
5 changes: 2 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@
"devDependencies": {
"@testing-library/react-hooks": "^8.0.1",
"@types/react": "18.2.22",
"@vitejs/plugin-react": "^4.0.0",
"@vitejs/plugin-react": "^4.3.4",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"jsdom": "^22.1.0",
"react-test-renderer": "^18.2.0",
"vite": "^4.3.6",
"vitest": "0.34.6"
"vite": "^6.0.7"
}
}
4 changes: 1 addition & 3 deletions packages/schema-type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@
"devDependencies": {
"@latticexyz/gas-report": "workspace:*",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"viem": "2.21.19",
"vitest": "0.34.6"
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
3 changes: 1 addition & 2 deletions packages/stash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"eslint-plugin-react-hooks": "4.6.0",
"fast-deep-equal": "^3.1.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"viem": "2.21.19"
"react-dom": "18.2.0"
},
"peerDependencies": {
"react": "18.x",
Expand Down
4 changes: 1 addition & 3 deletions packages/store-indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@
"@types/koa-compose": "^3.2.8",
"@types/koa__cors": "^4.0.3",
"@types/koa__router": "^12.0.4",
"concurrently": "^8.2.2",
"viem": "2.21.19",
"vitest": "0.34.6"
"concurrently": "^8.2.2"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
6 changes: 1 addition & 5 deletions packages/store-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,14 @@
},
"devDependencies": {
"@tanstack/react-query": "^5.56.2",
"@testing-library/react": "^16.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react": "^16.2.0",
"@types/debug": "^4.1.7",
"@types/react": "18.2.22",
"@types/sql.js": "^1.4.4",
"@viem/anvil": "^0.0.7",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"viem": "2.21.19",
"vitest": "0.34.6",
"wagmi": "2.12.11"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"solhint": "^3.3.7",
"viem": "2.21.19"
"viem": "*"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
3 changes: 1 addition & 2 deletions packages/world-module-erc20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
"@latticexyz/gas-report": "workspace:*",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"solhint": "^3.3.7",
"vitest": "0.34.6"
"solhint": "^3.3.7"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages/world-module-metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"@latticexyz/gas-report": "workspace:*",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"solhint": "^3.3.7",
"vitest": "0.34.6"
"solhint": "^3.3.7"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 1 addition & 3 deletions packages/world-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
"@types/ejs": "^3.1.1",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"glob": "^10.4.2",
"solhint": "^3.3.7",
"vitest": "0.34.6"
"solhint": "^3.3.7"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 1 addition & 5 deletions packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,10 @@
"@latticexyz/gas-report": "workspace:*",
"@types/debug": "^4.1.7",
"@types/ejs": "^3.1.1",
"@types/node": "^18",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"ejs": "^3.1.10",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"glob": "^10.4.2",
"solhint": "^3.3.7",
"viem": "2.21.19",
"vitest": "0.34.6"
"solhint": "^3.3.7"
},
"peerDependencies": {
"viem": "2.x"
Expand Down
Loading
Loading