Skip to content

chore(register): replace json-stable-stringify - #1060

Merged
LongYinan (Brooooooklyn) merged 1 commit into
swc-project:masterfrom
SukkaW:drop-json-stable-stringify
Jul 17, 2026
Merged

chore(register): replace json-stable-stringify#1060
LongYinan (Brooooooklyn) merged 1 commit into
swc-project:masterfrom
SukkaW:drop-json-stable-stringify

Conversation

@SukkaW

@SukkaW Sukka (SukkaW) commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

json-stable-stringify is bloatware: https://npmgraph.js.org/?q=json-stable-stringify.

image

And its installation size is 392 KiB.

The PR replaces json-stable-stringify w/ 0 deps fast-json-stable-stringify, which only has an installation size of 17 KiB and a battle-tested 131M weekly download on npm (10 times of json-stable-stringify).

With this PR alone, I get 81 lines removed from pnpm-lock.yaml, which alone should demonstrate what a bloatware json-stable-stringify it is.

@socket-security

socket-security Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​fast-json-stable-stringify@​2.1.2981003950100

View full report

@SukkaW
Sukka (SukkaW) force-pushed the drop-json-stable-stringify branch from 50d1b55 to af28377 Compare July 16, 2026 19:02
@Brooooooklyn
LongYinan (Brooooooklyn) merged commit eec0e8c into swc-project:master Jul 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants