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

Re-land: Fastify integration from #1971. #2280

Merged
merged 41 commits into from Feb 14, 2019
Merged

Re-land: Fastify integration from #1971. #2280

merged 41 commits into from Feb 14, 2019

Conversation

abernix
Copy link
Member

@abernix abernix commented Feb 7, 2019

This PR is a re-staging of #1971 by @rkorrelboom which was already approved and merged, but will need to land again. We're currently waiting on a package naming conflict resolution, as mentioned in #1971 (comment), and it's not worth holding up the rest of the 2.4.0 (#2215) release while we wait. Therefore, I'm opening this PR off the same branch we previously merged, I've re-opened #626 (the issue associated with this feature), and I've reverted the squashed commit of #1971 from the release-2.4.0 branch in preparation for publishing.

It's worth pointing out that there is another PR, #1760, which aimed to bring Fastify support that just came to my attention earlier this week. I hadn't noticed that there were two of the almost same implementations in flight! The author of that initial PR, @addityasingh, is the current owner of the apollo-server-fastify package and it seems also went through the npm process to obtain it from its previous owner. I think we need to give credit where credit is due and I've given Git commit history credit (by merging that PR into this PR, but favoring this PR's implementation which has already been reviewed) to @addityasingh to respect their contribution.

This PR will remain here until we have movement or updates from either the previous package owner or npm.

Closes #626. Again.

addityasingh and others added 30 commits October 3, 2018 01:59
This specific port per integration is pretty brittle to begin with, but it
does work.  Currently, the fact that it works is facilitated by the fact
that most people don't use 5555 (Hapi) and 6666 (Express) for anything.

That said, the ever-popular Gatsby uses 8888 by default, so let's use 9999!
@abernix abernix self-assigned this Feb 7, 2019
@abernix abernix mentioned this pull request Feb 7, 2019
@abernix abernix added this to the Release 2.x milestone Feb 7, 2019
@addityasingh
Copy link
Contributor

@abernix I think this can be re-merged, as I already mentioned that I have transferred the ownership to you and apollo-bot here. Apologies for the delay since I was away from github for about a month. Let me know if you need any assistance from my side on this

This will allow Lerna to release the first version as
`apollo-server-fastify@2.4.2`.
 - apollo-cache-control@0.5.1-rc.0
 - apollo-datasource-rest@0.3.1-rc.0
 - apollo-datasource@0.3.1-rc.0
 - apollo-engine-reporting-protobuf@0.2.1-rc.0
 - apollo-engine-reporting@1.0.2-rc.0
 - apollo-server-azure-functions@2.4.2-rc.0
 - apollo-server-cache-memcached@0.3.1-rc.0
 - apollo-server-cache-redis@0.3.1-rc.0
 - apollo-server-caching@0.3.1-rc.0
 - apollo-server-cloud-functions@2.4.2-rc.0
 - apollo-server-cloudflare@2.4.2-rc.0
 - apollo-server-core@2.4.2-rc.0
 - apollo-server-express@2.4.2-rc.0
 - apollo-server-fastify@2.4.2-rc.0
 - apollo-server-hapi@2.4.2-rc.0
 - apollo-server-integration-testsuite@2.4.2-rc.0
 - apollo-server-koa@2.4.2-rc.0
 - apollo-server-lambda@2.4.2-rc.0
 - apollo-server-micro@2.4.2-rc.0
 - apollo-server-plugin-base@0.3.2-rc.0
 - apollo-server-testing@2.4.2-rc.0
 - apollo-server@2.4.2-rc.0
 - apollo-tracing@0.5.1-rc.0
 - graphql-extensions@0.5.2-rc.0
@abernix abernix merged commit 939918a into master Feb 14, 2019
@abernix abernix deleted the re-stage-pr-1971 branch February 14, 2019 13:21
@abernix
Copy link
Member Author

abernix commented Feb 14, 2019

Thank you so much, @addityasingh! Hope you enjoyed your time away.

This has been released as apollo-server-fastify@2.4.2.

Ref: #1971 (comment)

@deklanw
Copy link

deklanw commented May 19, 2019

@abernix I'm not sure how to post issues for apollo-server-fastify in particular, so I'm just asking here.

Is there a way to access the reply object in the context? I need it to use setCookie from fastify-cookie

@abernix abernix removed this from the Release 2.x milestone Jun 28, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 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.

Support fastify
4 participants