From 1710343931f7aa7d8d2403c9fd6557db83d626d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 13 Aug 2025 13:01:58 +0000 Subject: [PATCH] fix: update `@ampproject/remapping` to `@jridgewell/remapping` --- README.md | 2 +- package.json | 2 +- pnpm-lock.yaml | 52 +++++++++++++++----------------------------------- src/index.ts | 2 +- 4 files changed, 18 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index dad2f03..f380f01 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Rollback to the state before the last commit. It throws an error if there is no ### `.generateMap()` -Supercharge the original `generateMap` method. Where there are multiple commits, it will generate a combined sourcemap using [`@ampproject/remapping`](https://github.com/ampproject/remapping). +Supercharge the original `generateMap` method. Where there are multiple commits, it will generate a combined sourcemap using [`@jridgewell/remapping`](https://github.com/jridgewell/remapping). ### Example diff --git a/package.json b/package.json index ce03355..1ddd366 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "prepare": "simple-git-hooks" }, "dependencies": { - "@ampproject/remapping": "^2.3.0", + "@jridgewell/remapping": "^2.3.0", "magic-string": "^0.30.17" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9fd4e92..44a5c0a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,9 @@ importers: .: dependencies: - '@ampproject/remapping': + '@jridgewell/remapping': specifier: ^2.3.0 - version: 2.3.0 + version: 2.3.5 magic-string: specifier: ^0.30.17 version: 0.30.17 @@ -181,11 +181,6 @@ packages: resolution: {integrity: sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==} engines: {node: '>=6.9.0'} - '@babel/parser@7.23.5': - resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/parser@7.26.5': resolution: {integrity: sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw==} engines: {node: '>=6.0.0'} @@ -203,10 +198,6 @@ packages: resolution: {integrity: sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==} engines: {node: '>=6.9.0'} - '@babel/types@7.22.11': - resolution: {integrity: sha512-siazHiGuZRz9aB9NpHy9GOs9xiQPKnMzgdr493iI1M67vRXpnEq8ZOOKzezC5q7zwuQ6sDhdSp4SD9ixKSqKZg==} - engines: {node: '>=6.9.0'} - '@babel/types@7.26.5': resolution: {integrity: sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg==} engines: {node: '>=6.9.0'} @@ -610,6 +601,9 @@ packages: resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + '@jridgewell/resolve-uri@3.1.0': resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} @@ -618,9 +612,6 @@ packages: resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.4.15': - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - '@jridgewell/sourcemap-codec@1.5.0': resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} @@ -2802,10 +2793,6 @@ packages: resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} engines: {node: '>=14.0.0'} - to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -3193,10 +3180,6 @@ snapshots: chalk: 2.4.2 js-tokens: 4.0.0 - '@babel/parser@7.23.5': - dependencies: - '@babel/types': 7.22.11 - '@babel/parser@7.26.5': dependencies: '@babel/types': 7.26.5 @@ -3221,12 +3204,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/types@7.22.11': - dependencies: - '@babel/helper-string-parser': 7.25.9 - '@babel/helper-validator-identifier': 7.25.9 - to-fast-properties: 2.0.0 - '@babel/types@7.26.5': dependencies: '@babel/helper-string-parser': 7.25.9 @@ -3499,21 +3476,24 @@ snapshots: '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/resolve-uri@3.1.0': {} '@jridgewell/set-array@1.2.1': {} - '@jridgewell/sourcemap-codec@1.4.15': {} - '@jridgewell/sourcemap-codec@1.5.0': {} '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@nodelib/fs.scandir@2.1.5': dependencies: @@ -3845,7 +3825,7 @@ snapshots: '@vue/compiler-core@3.3.10': dependencies: - '@babel/parser': 7.23.5 + '@babel/parser': 7.26.5 '@vue/shared': 3.3.10 estree-walker: 2.0.2 source-map-js: 1.2.1 @@ -3857,7 +3837,7 @@ snapshots: '@vue/compiler-sfc@3.3.10': dependencies: - '@babel/parser': 7.23.5 + '@babel/parser': 7.26.5 '@vue/compiler-core': 3.3.10 '@vue/compiler-dom': 3.3.10 '@vue/compiler-ssr': 3.3.10 @@ -3875,7 +3855,7 @@ snapshots: '@vue/reactivity-transform@3.3.10': dependencies: - '@babel/parser': 7.23.5 + '@babel/parser': 7.26.5 '@vue/compiler-core': 3.3.10 '@vue/shared': 3.3.10 estree-walker: 2.0.2 @@ -5942,8 +5922,6 @@ snapshots: tinyspy@3.0.2: {} - to-fast-properties@2.0.0: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 diff --git a/src/index.ts b/src/index.ts index c0a747d..f96be07 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ /* eslint-disable ts/no-unsafe-declaration-merging */ import type { DecodedSourceMap, MagicStringOptions, SourceMapOptions } from 'magic-string' -import remapping from '@ampproject/remapping' +import remapping from '@jridgewell/remapping' import MagicString, { SourceMap } from 'magic-string' // Thanks to @sxzz & @starknt for the solution