Skip to content

Commit

Permalink
chore: update most of npm dependencies
Browse files Browse the repository at this point in the history
Exceptions are:
- @types/wordpress__*: we just can't update these
- react: kept at v18 as we still use Gatsby
- node types: kept at v20 - we actually use this version
- tailwind: it's too early for v4
- hast, unified: I have no clue how to update these monsters
- decap: kept at v3.4 as v3.5 is buggy decaporg/decap-cms#7375
  • Loading branch information
Leksat committed Jan 29, 2025
1 parent 4cba2d7 commit 5a00149
Show file tree
Hide file tree
Showing 21 changed files with 6,845 additions and 9,954 deletions.
48 changes: 24 additions & 24 deletions apps/decap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,36 @@
"@amazeelabs/gatsby-source-silverback": "*"
},
"dependencies": {
"@amazeelabs/cloudinary-responsive-image": "^1.6.15",
"@amazeelabs/gatsby-plugin-static-dirs": "^1.0.1",
"@amazeelabs/graphql-directives": "^1.3.2",
"@amazeelabs/cloudinary-responsive-image": "^1.6.26",
"@amazeelabs/gatsby-plugin-static-dirs": "^1.0.7",
"@amazeelabs/graphql-directives": "^1.3.10",
"@custom/schema": "workspace:*",
"@custom/ui": "workspace:*",
"decap-cms-app": "^3.0.12",
"decap-cms-core": "^3.2.8",
"graphql": "16.8.1",
"nanoid": "^5.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rehype-sanitize": "^5.0.1",
"rehype-stringify": "^9.0.4",
"remark-parse": "^10.0.2",
"remark-rehype": "^10.1.0",
"unified": "^10.1.2",
"yaml": "^2.3.4",
"zod": "^3.23.8"
"decap-cms-app": "3.4.0",
"decap-cms-core": "^3.5.0",
"graphql": "16.10.0",
"nanoid": "^5.0.9",
"react": "^18",
"react-dom": "^18",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"unified": "^11.0.5",
"yaml": "^2.7.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@amazeelabs/decap-cms-backend-token-auth": "^1.2.1",
"@amazeelabs/decap-cms-backend-token-auth": "^1.2.6",
"@custom/eslint-config": "workspace:*",
"@types/node": "^20",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react-swc": "^3.5.0",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react-swc": "^3.7.2",
"netlify-cms-proxy-server": "^1.3.24",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vitest": "^1.1.1"
"tsup": "^8.3.6",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
38 changes: 19 additions & 19 deletions apps/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,39 @@
"dev:app": "vite",
"dev:server": "tsx watch server/index.ts",
"prep:app": "vite build",
"prep:server": "swc ./server -d ./build",
"prep:server": "swc ./server -d ./build --strip-leading-paths",
"start": "node build/index.js"
},
"dependencies": {
"@custom/eslint-config": "workspace:*",
"@custom/schema": "workspace:*",
"@custom/ui": "workspace:*",
"cookie-parser": "^1.4.6",
"express": "^4.19.2",
"cookie-parser": "^1.4.7",
"express": "^4.21.2",
"express-basic-auth": "^1.2.1",
"express-session": "^1.18.0",
"express-session": "^1.18.1",
"express-ws": "^5.0.2",
"memorystore": "^1.6.7",
"node-fetch": "^3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18",
"react-dom": "^18",
"rxjs": "^7.8.1",
"simple-oauth2": "^5.1.0"
},
"devDependencies": {
"@swc/cli": "^0.1.63",
"@swc/core": "^1.3.102",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.0",
"@types/express-ws": "^3.0.4",
"@types/node": "^20.11.17",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@swc/cli": "^0.6.0",
"@swc/core": "^1.10.11",
"@types/cookie-parser": "^1.4.8",
"@types/express": "^5.0.0",
"@types/express-session": "^1.18.1",
"@types/express-ws": "^3.0.5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/simple-oauth2": "^5.0.7",
"@vitejs/plugin-react-swc": "^3.5.0",
"tsx": "^4.7.1",
"typescript": "^5.2.2",
"vite": "^5.2.0"
"@vitejs/plugin-react-swc": "^3.7.2",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vite": "^6.0.11"
}
}
2 changes: 1 addition & 1 deletion apps/publisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@custom/publisher",
"private": true,
"dependencies": {
"@amazeelabs/publisher": "^2.5.5",
"@amazeelabs/publisher": "^2.5.9",
"typescript": "^5.7.3"
},
"scripts": {
Expand Down
56 changes: 28 additions & 28 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
"name": "@custom/website",
"private": true,
"dependencies": {
"@amazeelabs/bridge-gatsby": "^1.2.7",
"@amazeelabs/cloudinary-responsive-image": "^1.6.15",
"@amazeelabs/decap-cms-backend-token-auth": "^1.2.1",
"@amazeelabs/gatsby-plugin-operations": "^1.1.3",
"@amazeelabs/gatsby-plugin-static-dirs": "^1.0.1",
"@amazeelabs/gatsby-source-silverback": "^1.14.0",
"@amazeelabs/strangler-netlify": "^1.1.9",
"@amazeelabs/token-auth-middleware": "^1.1.1",
"@amazeelabs/bridge-gatsby": "^1.2.18",
"@amazeelabs/cloudinary-responsive-image": "^1.6.26",
"@amazeelabs/decap-cms-backend-token-auth": "^1.2.6",
"@amazeelabs/gatsby-plugin-operations": "^1.1.12",
"@amazeelabs/gatsby-plugin-static-dirs": "^1.0.7",
"@amazeelabs/gatsby-source-silverback": "^1.15.3",
"@amazeelabs/strangler-netlify": "^1.2.5",
"@amazeelabs/token-auth-middleware": "^1.1.11",
"@custom/cms": "workspace:*",
"@custom/decap": "workspace:*",
"@custom/schema": "workspace:*",
"@custom/ui": "workspace:*",
"gatsby": "^5.13.1",
"gatsby-plugin-layout": "^4.13.0",
"gatsby-plugin-manifest": "^5.13.0",
"gatsby": "^5.14.1",
"gatsby-plugin-layout": "^4.14.0",
"gatsby-plugin-manifest": "^5.14.0",
"gatsby-plugin-netlify": "^5.1.1",
"gatsby-plugin-pnpm": "^1.2.10",
"gatsby-plugin-robots-txt": "^1.8.0",
"gatsby-plugin-sharp": "^5.13.0",
"gatsby-plugin-sitemap": "^6.13.0",
"gatsby-plugin-sharp": "5.14.0",
"gatsby-plugin-sitemap": "^6.14.0",
"gatsby-plugin-uninline-styles": "^0.2.0",
"gatsby-source-filesystem": "^5.13.0",
"image-size": "^1.1.1",
"gatsby-source-filesystem": "^5.14.0",
"image-size": "^1.2.0",
"mime-types": "^2.1.35",
"netlify-cli": "^17.21.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"start-server-and-test": "^2.0.3"
"netlify-cli": "^18.0.3",
"react": "^18",
"react-dom": "^18",
"start-server-and-test": "^2.0.10"
},
"devDependencies": {
"@custom/eslint-config": "workspace:*",
"@netlify/edge-functions": "^2.3.1",
"@netlify/functions": "^2.6.0",
"@testing-library/react": "^14.1.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/serve-static": "^1.15.5",
"happy-dom": "^12.10.3",
"typescript": "^5.3.3",
"vitest": "^1.1.1"
"@netlify/edge-functions": "^2.11.1",
"@netlify/functions": "^3.0.0",
"@testing-library/react": "^16.2.0",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/serve-static": "^1.15.7",
"happy-dom": "^16.7.3",
"typescript": "^5.7.3",
"vitest": "^3.0.4"
},
"scripts": {
"test:static": "tsc --noEmit && eslint . --quiet",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
},
"private": true,
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"husky": "^8.0.3",
"prettier": "^3.2.5",
"turbo": "^2.0.6"
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"husky": "^9.1.7",
"prettier": "^3.4.2",
"turbo": "^2.3.4"
},
"resolutions": {
"gatsby-plugin-sharp": "5.13.1",
Expand Down
20 changes: 10 additions & 10 deletions packages/drupal/gutenberg_blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"gutenberg:generate": "node ./scripts/generate-gutenberg-block.js"
},
"dependencies": {
"@types/node": "^20",
"clsx": "^2.1.0",
"clsx": "^2.1.1",
"fs": "0.0.1-security",
"graphql": "16.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"graphql": "16.10.0",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@custom/eslint-config": "workspace:*",
"@custom/ui": "workspace:*",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/wordpress__block-editor": "11.5.0",
"@types/wordpress__blocks": "12.5.0",
"@types/wordpress__components": "23.0.1",
Expand All @@ -30,8 +30,8 @@
"@types/wordpress__data": "6.0.2",
"@types/wordpress__editor": "13.0.0",
"@types/wordpress__hooks": "2.4.0",
"@vitejs/plugin-react": "4.2.1",
"typescript": "^5.3.3",
"vite": "^5.0.10"
"@vitejs/plugin-react": "4.3.4",
"typescript": "^5.7.3",
"vite": "^6.0.11"
}
}
28 changes: 14 additions & 14 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
"test:static": "eslint . --quiet"
},
"devDependencies": {
"@eslint/js": "^9.15.0",
"@eslint/js": "^9.19.0",
"@types/eslint__js": "^8.42.3",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"eslint": "9.14.0",
"eslint-config-prettier": "^9.1.0",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"eslint": "9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-define-config": "^2.1.0",
"eslint-plugin-formatjs": "^5.2.5",
"eslint-plugin-formatjs": "^5.2.13",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-storybook": "^0.11.1",
"eslint-plugin-tailwindcss": "^3.17.5",
"globals": "^15.12.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.15.0"
"eslint-plugin-storybook": "^0.11.2",
"eslint-plugin-tailwindcss": "^3.18.0",
"globals": "^15.14.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.22.0"
}
}
4 changes: 2 additions & 2 deletions packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@custom/eslint-config": "workspace:*",
"@types/prompts": "^2.4.9",
"prompts": "^2.4.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
"tsx": "^4.19.2",
"typescript": "^5.7.3"
}
}
3 changes: 3 additions & 0 deletions packages/schema/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const config: CodegenConfig = {
// Persisted query ids to be consumed by Drupal.
'build/operations.json': {
plugins: ['@amazeelabs/codegen-operation-ids'],
config: {
fragments: 'inline',
},
},
// Directive autoloader for Gatsby.
'build/gatsby-autoload.mjs': {
Expand Down
44 changes: 22 additions & 22 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,42 @@
"test:static": "tsc --noEmit && eslint . --quiet",
"watch": "concurrently \"npm run watch:codegen\" \"npm run watch:swc\" \"npm run watch:tsc\"",
"watch:codegen": "graphql-codegen --verbose --watch",
"watch:swc": "swc ./src -d ./build --watch",
"watch:swc": "swc ./src -d ./build --strip-leading-paths --watch",
"watch:tsc": "tsc --emitDeclarationOnly --watch",
"prep:directives": "graphql-codegen -c codegen.directives.ts --verbose",
"prep:codegen": "graphql-codegen",
"prep:scripts": "swc ./src -d ./build",
"prep:scripts": "swc ./src -d ./build --strip-leading-paths",
"prep:types": "tsc --emitDeclarationOnly",
"watcher": "graphql-codegen && tsc --emitDeclarationOnly"
},
"devDependencies": {
"@amazeelabs/codegen-autoloader": "^1.1.3",
"@amazeelabs/codegen-operation-ids": "^0.1.43",
"@amazeelabs/codegen-autoloader": "^1.2.3",
"@amazeelabs/codegen-operation-ids": "^0.2.6",
"@custom/eslint-config": "workspace:*",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/schema-ast": "^4.0.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/cli": "^5.0.4",
"@graphql-codegen/schema-ast": "^4.1.0",
"@graphql-codegen/typescript": "^4.1.3",
"@graphql-codegen/typescript-operations": "^4.4.1",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.67",
"@types/image-size": "^0.8.0",
"@types/node": "^20",
"@types/react": "^18.2.46",
"concurrently": "^8.2.2",
"gatsby": "^5.13.1",
"graphql": "16.8.1",
"typescript": "^5.3.3"
"@types/react": "^18",
"concurrently": "^9.1.2",
"gatsby": "^5.14.1",
"graphql": "16.10.0",
"typescript": "^5.7.3"
},
"dependencies": {
"@amazeelabs/executors": "^3.0.3",
"@amazeelabs/gatsby-silverback-cloudinary": "^1.2.7",
"@amazeelabs/gatsby-source-silverback": "^1.14.0",
"@amazeelabs/scalars": "^1.6.13",
"@swc/cli": "^0.1.63",
"@swc/core": "^1.3.102",
"gatsby-plugin-sharp": "^5.13.0",
"gatsby-source-filesystem": "^5.13.0",
"image-size": "^1.1.1",
"@amazeelabs/executors": "^3.1.13",
"@amazeelabs/gatsby-silverback-cloudinary": "^1.2.29",
"@amazeelabs/gatsby-source-silverback": "^1.15.3",
"@amazeelabs/scalars": "^1.6.30",
"@swc/cli": "^0.6.0",
"@swc/core": "^1.10.11",
"gatsby-plugin-sharp": "5.14.0",
"gatsby-source-filesystem": "^5.14.0",
"image-size": "^1.2.0",
"mime-types": "^2.1.35"
}
}
4 changes: 4 additions & 0 deletions packages/ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ const SWRCacheDecorator: Decorator = (Story) => {
export const parameters = {
chromatic: { viewports: [320, 840, 1440] },
a11y: {
// TODO: Remove once https://github.com/storybookjs/storybook/issues/30385
// is solved. Disable automated accessibility tests for now.
manual: true,

// Optional selector to inspect
element: '#storybook-root',
config: {
Expand Down
Loading

0 comments on commit 5a00149

Please sign in to comment.