Skip to content
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

apollo-server-fastify: drop dependency on fast-json-stringify #5988

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

glasser
Copy link
Member

@glasser glasser commented Jan 5, 2022

This package was being used only to stringify two small constant
objects. It has a major version update available and rather than
evaluate the CHANGELOG, we might as well just not use it.

(Honestly I think it would be fine to just use JSON.stringify here; I
don't see any justification in #1971 for why this particular use case
requires a faster stringification than all the other JSON
stringification we do in Apollo Server. But just in case this matters to
anybody, I went with the fastest possible way of converting a constant
object to string.)

This should replace #5985.

@glasser glasser force-pushed the glasser/even-faster-json-stringify branch from a735efa to 4746a42 Compare January 5, 2022 21:59
This package was being used only to stringify two small constant
objects. It has a major version update available and rather than
evaluate the CHANGELOG, we might as well just not use it.

(Honestly I think it would be fine to just use JSON.stringify here; I
don't see any justification in #1971 for why this particular use case
requires a faster stringification than all the other JSON
stringification we do in Apollo Server. But just in case this matters to
anybody, I went with the fastest possible way of converting a constant
object to string.)

This should replace #5985.
@glasser glasser force-pushed the glasser/even-faster-json-stringify branch from 4746a42 to 1ffe0c5 Compare January 5, 2022 22:00
@glasser glasser enabled auto-merge (squash) January 5, 2022 22:03
@glasser glasser merged commit e18ff6e into main Jan 5, 2022
@glasser glasser deleted the glasser/even-faster-json-stringify branch January 5, 2022 22:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant