-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump up fast-json-stringify to stop using deprecated string-similarity #145
Conversation
💚 CLA has been signed |
@ora7598 Thanks very much for the PR! Unfortunately the latest fast-json-stringify uses syntax that only works with node >=v14 and the current ecs-logging-nodejs packages support node >=10. That means we'll have to sit on this PR for a little while until we have a major version bump on these modules that moves the min supported node to >=v14. I hope to get to that, but it won't be very soon. |
AFAIK |
Thank you @trentm for the quick response! |
The fast-json-stringify used to have an "engines" in their "package.json" file to specify the min supported node version, but it was removed in fastify/fast-json-stringify#463 because, I guess, "it is hard to manage". |
Thanks @trentm. |
I modified my commit and updated to version 5.0.6. |
Sorry for the delays in responding. Yes we can probably lock to fast-json-stringify@5.0.6 -- though it feels a little bit fast and loose given fast-json-stringify basically implicitly only supporting node >=14.x for the 5.x series. :) I'll commit the suggested change and get tests running. |
I spoke too soon. fastify-json-stringify@5 uses (Aside: Is there a particular concern with the usage of the deprecated string-similarity beyond the deprecation warning on install? I understand that isn't nothing -- the deprecation message on install of downstream apps is bad optics for users.) I'm leaning more towards needing to do a major version bump of the ecs-logging-nodejs libraries that drops support for anything less than v14.17.0. I'm a little piqued at the tail ( |
Thanks for checking @trentm. |
This will be resolved via #155 |
What
Upgrade fast-json-stringify from v2.4.1 to v5.5.0
Why
@elastic/ecs-pino-format depends on @elastic/ecs-helpers, which depends on an old version of fast-json-stringify, which depends on string-similarity which is deprecated.
since v5.0 of fast-json-stringify, it does not depend on string-similarity anymore.
Changeset