Skip to content

Commit

Permalink
Upgrade developer dependencies (#786)
Browse files Browse the repository at this point in the history
* Upgrade yarn

* Upgrade some developer dependencies

* Disable some lint checks

* Remove react-confetti dep

* Upgrade happy-dom

* Upgrade more dev deps

* Upgrade prettier dep and format

* Upgrade mantine deps

* Upgrade to node 22

* Upgrade node types

* Enable concurrency in node SDK tests

* More upgrades
  • Loading branch information
rygine authored Jan 15, 2025
1 parent f92a08b commit ff90986
Show file tree
Hide file tree
Showing 30 changed files with 1,949 additions and 2,009 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.17.0
22.13.0
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.17.0
22.13.0
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.5.0.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enableTelemetry: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
25 changes: 12 additions & 13 deletions apps/xmtp.chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"typecheck": "tsc"
},
"dependencies": {
"@mantine/core": "^7.14.3",
"@mantine/form": "^7.14.3",
"@mantine/hooks": "^7.14.3",
"@mantine/modals": "^7.14.3",
"@mantine/notifications": "^7.14.3",
"@mantine/core": "^7.16.0",
"@mantine/form": "^7.16.0",
"@mantine/hooks": "^7.16.0",
"@mantine/modals": "^7.16.0",
"@mantine/notifications": "^7.16.0",
"@tanstack/react-query": "^5.61.5",
"@xmtp/browser-sdk": "^0.0.15",
"@xmtp/content-type-group-updated": "^2.0.0",
Expand All @@ -31,22 +31,21 @@
"date-fns": "^4.1.0",
"react": "^18.3.1",
"react-18-blockies": "^1.0.6",
"react-confetti": "^6.1.0",
"react-dom": "^18.3.1",
"react-router": "^7.0.2",
"react-router": "^7.1.1",
"uint8array-extras": "^1.4.0",
"viem": "^2.21.52",
"wagmi": "^2.13.2"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"postcss": "^8.4.49",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"postcss": "^8.5.1",
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",
"tsconfig": "workspace:*",
"typescript": "^5.7.2",
"vite": "^6.0.2"
"typescript": "^5.7.3",
"vite": "^6.0.7"
}
}
12 changes: 6 additions & 6 deletions content-types/content-type-group-updated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"happy-dom": "^15.11.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-reaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"@xmtp/xmtp-js": "^11.6.3",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-read-receipt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"@xmtp/xmtp-js": "^11.6.3",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-remote-attachment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"@xmtp/rollup-plugin-resolve-extensions": "^1.0.1",
"@xmtp/xmtp-js": "^11.6.3",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-reply/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,19 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"@xmtp/content-type-remote-attachment": "workspace:*",
"@xmtp/xmtp-js": "^11.6.3",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"@xmtp/xmtp-js": "^11.6.3",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions content-types/content-type-transaction-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^20.17.6",
"@rollup/plugin-typescript": "^12.1.2",
"@types/node": "^22.10.6",
"@xmtp/xmtp-js": "^11.6.3",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"happy-dom": "^15.11.6",
"happy-dom": "^16.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"publishConfig": {
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@
},
"dependencies": {
"@changesets/changelog-git": "^0.2.0",
"@changesets/cli": "^2.27.9"
"@changesets/cli": "^2.27.11"
},
"devDependencies": {
"@eslint/compat": "^1.2.3",
"@eslint/js": "^9.15.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@eslint/compat": "^1.2.5",
"@eslint/js": "^9.18.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
"@types/eslint__js": "^8.42.3",
"@types/node": "^20.17.6",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.12.0",
"prettier": "^3.3.3",
"prettier-plugin-packagejson": "^2.5.3",
"@types/node": "^22.10.6",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"globals": "^15.14.0",
"prettier": "^3.4.2",
"prettier-plugin-packagejson": "^2.5.7",
"rimraf": "^6.0.1",
"turbo": "^2.3.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.15.0"
"turbo": "^2.3.3",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0"
},
"packageManager": "yarn@4.5.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=20"
"node": ">=22"
}
}
8 changes: 4 additions & 4 deletions packages/consent-proof-signature/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/plugin-typescript": "^12.1.2",
"ethers": "^6.13.1",
"rollup": "^4.27.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"tsconfig": "workspace:*",
"typedoc": "^0.26.11",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.3"
},
"packageManager": "[email protected]",
Expand Down
12 changes: 6 additions & 6 deletions packages/frames-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@
"devDependencies": {
"@open-frames/types": "^0.1.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/plugin-typescript": "^12.1.2",
"@xmtp/node-sdk": "^0.0.32",
"@xmtp/xmtp-js": "^12.0.0",
"ethers": "^6.13.1",
"fast-glob": "^3.3.2",
"rollup": "^4.27.3",
"fast-glob": "^3.3.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-tsconfig-paths": "^1.5.2",
"tsconfig": "workspace:*",
"typedoc": "^0.26.11",
"typescript": "^5.6.3",
"typescript": "^5.7.3",
"uint8array-extras": "^1.4.0",
"vite": "^5.4.11",
"vite-tsconfig-paths": "^5.1.2",
"vite": "^6.0.7",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.3"
},
"peerDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/frames-validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ A set of tools for validating POST payloads from XMTP Frames
## Usage

```ts
import { validateFramesPost } from "@xmtp/frames-validator"
import { validateFramesPost } from "@xmtp/frames-validator";

export function handler(requestBody: any) {
// This is an XMTP payload
if (requestBody.untrustedData?.clientType === "xmtp") {
const { verifiedWalletAddress } = await validateFramesPost(requestBody)
return doSomethingWithWalletAddress(verifiedWalletAddress)
const { verifiedWalletAddress } = await validateFramesPost(requestBody);
return doSomethingWithWalletAddress(verifiedWalletAddress);
} else {
// This is a Farcaster POST payload
return doSomethingWithFarcasterPayload(requestBody)
return doSomethingWithFarcasterPayload(requestBody);
}
}
```
8 changes: 4 additions & 4 deletions packages/frames-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
},
"devDependencies": {
"@open-frames/types": "^0.1.1",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/plugin-typescript": "^12.1.2",
"@types/bl": "^5.1.4",
"@xmtp/frames-client": "^1.0.1",
"@xmtp/xmtp-js": "^12.1.0",
"ethers": "^6.10.0",
"fast-glob": "^3.3.2",
"rollup": "^4.27.3",
"fast-glob": "^3.3.3",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"typescript": "^5.6.3",
"typescript": "^5.7.3",
"vitest": "^2.1.3"
},
"packageManager": "[email protected]",
Expand Down
Loading

0 comments on commit ff90986

Please sign in to comment.