From 3f2d581782bc9129215fe815a458b932c5b54ae1 Mon Sep 17 00:00:00 2001 From: Bowen Song Date: Tue, 21 Jan 2025 10:47:55 +0800 Subject: [PATCH 1/2] perf: update swagger-parser version --- packages/spec-parser/config/webpack.test.cjs | 1 + packages/spec-parser/package.json | 2 +- packages/spec-parser/pnpm-lock.yaml | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/spec-parser/config/webpack.test.cjs b/packages/spec-parser/config/webpack.test.cjs index b108c85891..16ac21e302 100644 --- a/packages/spec-parser/config/webpack.test.cjs +++ b/packages/spec-parser/config/webpack.test.cjs @@ -39,6 +39,7 @@ module.exports = { buffer: require.resolve("buffer"), "process/browser": require.resolve("process/browser"), util: false, + path: require.resolve("path-browserify"), }, }, plugins: [ diff --git a/packages/spec-parser/package.json b/packages/spec-parser/package.json index ebbd5cebe4..3ac267b5ba 100644 --- a/packages/spec-parser/package.json +++ b/packages/spec-parser/package.json @@ -49,7 +49,7 @@ "access": "public" }, "devDependencies": { - "@apidevtools/json-schema-ref-parser": "^9.0.6", + "@apidevtools/swagger-parser": "^10.1.1", "@apidevtools/openapi-schemas": "2.1.0", "@apidevtools/swagger-methods": "3.0.2", "@istanbuljs/nyc-config-typescript": "^1.0.2", diff --git a/packages/spec-parser/pnpm-lock.yaml b/packages/spec-parser/pnpm-lock.yaml index dfde37b5ba..40e3eb6301 100644 --- a/packages/spec-parser/pnpm-lock.yaml +++ b/packages/spec-parser/pnpm-lock.yaml @@ -25,9 +25,6 @@ dependencies: version: 7.0.8 devDependencies: - '@apidevtools/json-schema-ref-parser': - specifier: ^9.0.6 - version: 9.0.6 '@apidevtools/openapi-schemas': specifier: 2.1.0 version: 2.1.0 @@ -323,6 +320,7 @@ packages: '@jsdevtools/ono': 7.1.3 call-me-maybe: 1.0.2 js-yaml: 3.14.1 + dev: false /@apidevtools/openapi-schemas@2.1.0: resolution: {integrity: sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==} From 442174b570282dc6f452dbbbd1818de228532433 Mon Sep 17 00:00:00 2001 From: Bowen Song Date: Tue, 21 Jan 2025 10:57:39 +0800 Subject: [PATCH 2/2] perf: add dev denpendency --- packages/spec-parser/package.json | 1 + packages/spec-parser/pnpm-lock.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/packages/spec-parser/package.json b/packages/spec-parser/package.json index 3ac267b5ba..04dd32b524 100644 --- a/packages/spec-parser/package.json +++ b/packages/spec-parser/package.json @@ -118,6 +118,7 @@ "nise": "^5.1.4", "nyc": "^15.1.0", "object-inspect": "1.13.1", + "path-browserify": "^1.0.1", "pathval": "^2.0.0", "prettier": "^2.4.1", "process": "^0.11.10", diff --git a/packages/spec-parser/pnpm-lock.yaml b/packages/spec-parser/pnpm-lock.yaml index 40e3eb6301..d96e105df5 100644 --- a/packages/spec-parser/pnpm-lock.yaml +++ b/packages/spec-parser/pnpm-lock.yaml @@ -229,6 +229,9 @@ devDependencies: object-inspect: specifier: 1.13.1 version: 1.13.1 + path-browserify: + specifier: ^1.0.1 + version: 1.0.1 pathval: specifier: ^2.0.0 version: 2.0.0 @@ -4222,6 +4225,10 @@ packages: engines: {node: '>= 0.8'} dev: true + /path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + dev: true + /path-exists@2.1.0: resolution: {integrity: sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==} engines: {node: '>=0.10.0'}