Skip to content

Conversation

@jarl-dk
Copy link
Member

@jarl-dk jarl-dk commented Oct 6, 2025

snyk-top-banner

Snyk has created this PR to upgrade safe-stable-stringify from 2.4.3 to 2.5.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.

  • The recommended version was released a year ago.

Release notes
Package name: safe-stable-stringify
  • 2.5.0 - 2024-08-24
    • Accept Array#sort(comparator) comparator method as deterministic option value to use that comparator for sorting object keys.
    import { configure } from 'safe-stable-stringify'

    const object = {
    a: 1,
    b: 2,
    c: 3,
    }

    const stringify = configure({
    deterministic: (a, b) => b.localeCompare(a)
    })

    stringify(object)
    // '{"c": 3,"b":2,"a":1}'

    • Very minor performance optimization.

    Thanks to @ flobernd, @ cesco69 and @ prisis to contribute to this release!

  • 2.4.3 - 2023-03-19
    • Fixed toJSON function receiving array keys as number instead of string
    • Fixed replacer function receiving array keys as number instead of string
    • Fixed replacer function not being called for TypedArray entries
    • Improved performance to escape long strings that contain characters that need escaping
from safe-stable-stringify GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade safe-stable-stringify from 2.4.3 to 2.5.0.

See this package in npm:
safe-stable-stringify

See this project in Snyk:
https://app.snyk.io/org/mountebank-testing/project/9a7fd0b8-d33e-4b33-928b-ea3ea4dea94d?utm_source=github&utm_medium=referral&page=upgrade-pr
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants