Skip to content

Commit eec0e8c

Browse files
authored
chore(register): replace json-stable-stringify (#1060)
1 parent f3462b2 commit eec0e8c

3 files changed

Lines changed: 17 additions & 83 deletions

File tree

packages/register/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@swc-node/sourcemap-support": "^0.6.1",
4646
"colorette": "^2.0.20",
4747
"debug": "^4.4.1",
48-
"json-stable-stringify": "^1.3.0",
48+
"fast-json-stable-stringify": "^2.1.0",
4949
"oxc-resolver": "^11.6.1",
5050
"pirates": "^4.0.7",
5151
"tslib": "^2.8.1"
@@ -58,6 +58,7 @@
5858
"@swc/core": "^1.13.3",
5959
"@swc/helpers": "^0.5.17",
6060
"@types/debug": "^4.1.12",
61+
"@types/fast-json-stable-stringify": "^2.1.2",
6162
"lodash": "^4.17.21",
6263
"sinon": "^22.0.0",
6364
"typescript": "^5.9.2"

packages/register/transform-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { tmpdir, userInfo } from 'node:os'
55
import { join } from 'node:path'
66
import { xxh64 } from '@node-rs/xxhash'
77
import debugFactory from 'debug'
8-
import stableStringify from 'json-stable-stringify'
8+
import stableStringify from 'fast-json-stable-stringify'
99

1010
const LOOKS_LIKE_ESM_SYNTAX_REGEX = /(?:^|\n)\s*import\s|(?:^|\n)\s*export\s|\bimport\.meta\b/
1111

pnpm-lock.yaml

Lines changed: 14 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)