Jelajahi Sumber

chore: Update dependencies to get everything building again

Michael Bromley 3 bulan lalu
induk
melakukan
86afd57f04

File diff ditekan karena terlalu besar
+ 270 - 640
package-lock.json


+ 12 - 9
package.json

@@ -35,13 +35,13 @@
   "devDependencies": {
     "@commitlint/cli": "^19.1.0",
     "@commitlint/config-conventional": "^19.1.0",
-    "@graphql-codegen/add": "5.0.3",
-    "@graphql-codegen/cli": "5.0.5",
-    "@graphql-codegen/fragment-matcher": "5.1.0",
-    "@graphql-codegen/typed-document-node": "^5.0.14",
-    "@graphql-codegen/typescript": "4.1.4",
-    "@graphql-codegen/typescript-operations": "4.5.0",
-    "@graphql-tools/schema": "^10.0.18",
+    "@graphql-codegen/add": "6.0.0",
+    "@graphql-codegen/cli": "6.0.0",
+    "@graphql-codegen/fragment-matcher": "6.0.0",
+    "@graphql-codegen/typed-document-node": "^6.0.1",
+    "@graphql-codegen/typescript": "5.0.1",
+    "@graphql-codegen/typescript-operations": "5.0.1",
+    "@graphql-tools/schema": "^10.0.25",
     "@swc/core": "^1.4.6",
     "@types/klaw-sync": "^6.0.5",
     "@types/node": "^20.11.19",
@@ -49,7 +49,7 @@
     "conventional-changelog-core": "^7.0.0",
     "cross-env": "^7.0.3",
     "find": "^0.3.0",
-    "graphql": "~16.10.0",
+    "graphql": "~16.11.0",
     "husky": "^4.3.0",
     "klaw-sync": "^6.0.0",
     "lerna": "^8.1.2",
@@ -61,7 +61,7 @@
     "ts-node": "^10.9.2",
     "typescript": "5.8.2",
     "unplugin-swc": "^1.4.4",
-    "vitest": "^1.3.1"
+    "vitest": "^3.2.4"
   },
   "//": "Fix for https://github.com/npm/cli/issues/4828",
   "optionalDependencies": {
@@ -73,6 +73,9 @@
     "@swc/core-darwin-arm64": "1.7.19",
     "@swc/core-linux-x64-gnu": "1.4.7"
   },
+  "resolutions": {
+    "@apollo/server": "^5.0.0"
+  },
   "workspaces": {
     "packages": [
       "packages/*"

+ 2 - 2
packages/admin-ui/package.json

@@ -60,7 +60,7 @@
         "chartist": "^1.3.0",
         "codejar": "^4.2.0",
         "dayjs": "^1.11.10",
-        "graphql": "^16.10.0",
+        "graphql": "^16.11.0",
         "just-extend": "^6.2.0",
         "messageformat": "2.3.0",
         "ngx-pagination": "^6.0.3",
@@ -79,7 +79,7 @@
         "react": "^19.0.0",
         "react-dom": "^19.0.0",
         "rxjs": "^7.8.1",
-        "tslib": "^2.6.2",
+        "tslib": "^2.8.1",
         "zone.js": "~0.15.0"
     },
     "devDependencies": {

+ 5 - 5
packages/dashboard/package.json

@@ -106,7 +106,7 @@
     "@types/react": "^19.0.10",
     "@types/react-dom": "^19.0.4",
     "@uidotdev/usehooks": "^2.4.1",
-    "@vitejs/plugin-react": "^4.3.4",
+    "@vitejs/plugin-react": "^5.0.4",
     "@vitejs/plugin-react-swc": "^4.1.0",
     "acorn": "^8.11.3",
     "acorn-walk": "^8.3.2",
@@ -119,8 +119,8 @@
     "express-rate-limit": "^7.5.0",
     "fast-glob": "^3.3.2",
     "fs-extra": "^11.2.0",
-    "gql.tada": "^1.8.10",
-    "graphql": "^16.10.0",
+    "gql.tada": "^1.8.13",
+    "graphql": "^16.11.0",
     "input-otp": "^1.4.2",
     "json-edit-react": "^1.23.1",
     "lucide-react": "^0.475.0",
@@ -140,7 +140,7 @@
     "tsconfig-paths": "^4.2.0",
     "tw-animate-css": "^1.2.9",
     "vaul": "^1.1.2",
-    "vite": "^6.3.5",
+    "vite": "^6.3.6",
     "zod": "^3.25.76"
   },
   "devDependencies": {
@@ -153,7 +153,7 @@
     "eslint-plugin-react-hooks": "^5.0.0",
     "eslint-plugin-react-refresh": "^0.4.18",
     "globals": "^15.14.0",
-    "vite-plugin-dts": "^4.5.3"
+    "vite-plugin-dts": "^4.5.4"
   },
   "optionalDependencies": {
     "lightningcss-linux-arm64-musl": "^1.29.3",

File diff ditekan karena terlalu besar
+ 0 - 2
packages/dashboard/src/lib/graphql/graphql-env.d.ts


+ 45 - 51
packages/dashboard/vite/tests/path-alias.spec.ts

@@ -6,56 +6,50 @@ import { compile } from '../utils/compiler.js';
 import { debugLogger, noopLogger } from '../utils/logger.js';
 
 describe('detecting plugins using tsconfig path aliases', () => {
-    it(
-        'should detect plugins using tsconfig path aliases',
-        async () => {
-            const tempDir = join(__dirname, './__temp/path-alias');
-            await rm(tempDir, { recursive: true, force: true });
-
-            const result = await compile({
-                outputPath: tempDir,
-                vendureConfigPath: join(__dirname, 'fixtures-path-alias', 'vendure-config.ts'),
-                logger: process.env.LOG ? debugLogger : noopLogger,
-                pathAdapter: {
-                    transformTsConfigPathMappings: ({ phase, patterns }) => {
-                        if (phase === 'loading') {
-                            return patterns.map(pattern => {
-                                return pattern.replace(/\/fixtures-path-alias/, '').replace(/.ts$/, '.js');
-                            });
-                        } else {
-                            return patterns;
-                        }
-                    },
+    it('should detect plugins using tsconfig path aliases', { timeout: 10_000 }, async () => {
+        const tempDir = join(__dirname, './__temp/path-alias');
+        await rm(tempDir, { recursive: true, force: true });
+
+        const result = await compile({
+            outputPath: tempDir,
+            vendureConfigPath: join(__dirname, 'fixtures-path-alias', 'vendure-config.ts'),
+            logger: process.env.LOG ? debugLogger : noopLogger,
+            pathAdapter: {
+                transformTsConfigPathMappings: ({ phase, patterns }) => {
+                    if (phase === 'loading') {
+                        return patterns.map(pattern => {
+                            return pattern.replace(/\/fixtures-path-alias/, '').replace(/.ts$/, '.js');
+                        });
+                    } else {
+                        return patterns;
+                    }
                 },
-            });
-
-            const plugins = result.pluginInfo.sort((a, b) => a.name.localeCompare(b.name));
-
-            expect(plugins).toHaveLength(3);
-
-            expect(plugins[0].name).toBe('JsAliasedPlugin');
-            expect(plugins[0].dashboardEntryPath).toBe('./dashboard/index.tsx');
-            expect(plugins[0].sourcePluginPath).toBe(
-                join(__dirname, 'fixtures-path-alias', 'js-aliased', 'src', 'js-aliased.plugin.ts'),
-            );
-            expect(plugins[0].pluginPath).toBe(join(tempDir, 'js-aliased', 'src', 'js-aliased.plugin.js'));
-
-            expect(plugins[1].name).toBe('StarAliasedPlugin');
-            expect(plugins[1].dashboardEntryPath).toBe('./dashboard/index.tsx');
-            expect(plugins[1].sourcePluginPath).toBe(
-                join(__dirname, 'fixtures-path-alias', 'star-aliased', 'src', 'star-aliased.plugin.ts'),
-            );
-            expect(plugins[1].pluginPath).toBe(
-                join(tempDir, 'star-aliased', 'src', 'star-aliased.plugin.js'),
-            );
-
-            expect(plugins[2].name).toBe('TsAliasedPlugin');
-            expect(plugins[2].dashboardEntryPath).toBe('./dashboard/index.tsx');
-            expect(plugins[2].sourcePluginPath).toBe(
-                join(__dirname, 'fixtures-path-alias', 'ts-aliased', 'src', 'ts-aliased.plugin.ts'),
-            );
-            expect(plugins[2].pluginPath).toBe(join(tempDir, 'ts-aliased', 'src', 'ts-aliased.plugin.js'));
-        },
-        { timeout: 10_000 },
-    );
+            },
+        });
+
+        const plugins = result.pluginInfo.sort((a, b) => a.name.localeCompare(b.name));
+
+        expect(plugins).toHaveLength(3);
+
+        expect(plugins[0].name).toBe('JsAliasedPlugin');
+        expect(plugins[0].dashboardEntryPath).toBe('./dashboard/index.tsx');
+        expect(plugins[0].sourcePluginPath).toBe(
+            join(__dirname, 'fixtures-path-alias', 'js-aliased', 'src', 'js-aliased.plugin.ts'),
+        );
+        expect(plugins[0].pluginPath).toBe(join(tempDir, 'js-aliased', 'src', 'js-aliased.plugin.js'));
+
+        expect(plugins[1].name).toBe('StarAliasedPlugin');
+        expect(plugins[1].dashboardEntryPath).toBe('./dashboard/index.tsx');
+        expect(plugins[1].sourcePluginPath).toBe(
+            join(__dirname, 'fixtures-path-alias', 'star-aliased', 'src', 'star-aliased.plugin.ts'),
+        );
+        expect(plugins[1].pluginPath).toBe(join(tempDir, 'star-aliased', 'src', 'star-aliased.plugin.js'));
+
+        expect(plugins[2].name).toBe('TsAliasedPlugin');
+        expect(plugins[2].dashboardEntryPath).toBe('./dashboard/index.tsx');
+        expect(plugins[2].sourcePluginPath).toBe(
+            join(__dirname, 'fixtures-path-alias', 'ts-aliased', 'src', 'ts-aliased.plugin.ts'),
+        );
+        expect(plugins[2].pluginPath).toBe(join(tempDir, 'ts-aliased', 'src', 'ts-aliased.plugin.js'));
+    });
 });

+ 3 - 3
packages/graphiql-plugin/package.json

@@ -35,12 +35,12 @@
         "@types/react-dom": "^19.0.0",
         "@vendure/common": "3.4.3",
         "@vendure/core": "3.4.3",
-        "@vitejs/plugin-react": "^4.4.1",
+        "@vitejs/plugin-react": "^5.0.4",
         "graphiql": "^4.0.2",
         "react": "^19.0.0",
         "react-dom": "^19.0.0",
         "rimraf": "^6.0.1",
-        "vite": "^6.3.5",
-        "vite-plugin-dts": "^4.5.3"
+        "vite": "^6.3.6",
+        "vite-plugin-dts": "^4.5.4"
     }
 }

+ 3 - 0
packages/harden-plugin/package.json

@@ -24,6 +24,9 @@
     "dependencies": {
         "graphql-query-complexity": "^0.12.0"
     },
+    "peerDependencies": {
+      "@apollo/server": "^5.0.0"
+    },
     "devDependencies": {
         "@vendure/common": "3.4.3",
         "@vendure/core": "3.4.3"

+ 1 - 1
packages/testing/package.json

@@ -41,7 +41,7 @@
         "@vendure/common": "3.4.3",
         "faker": "^4.1.0",
         "form-data": "^4.0.0",
-        "graphql": "^16.10.0",
+        "graphql": "^16.11.0",
         "graphql-tag": "^2.12.6",
         "node-fetch": "^2.7.0",
         "sql.js": "1.13.0"

+ 1 - 1
packages/ui-devkit/package.json

@@ -58,7 +58,7 @@
         "rimraf": "^5.0.5",
         "rollup": "^4.13.0",
         "rollup-plugin-typescript2": "^0.36.0",
-        "tslib": "^2.6.2",
+        "tslib": "^2.8.1",
         "typescript": "5.8.2"
     }
 }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini