Skip to content

feat(s3): accept plugin options directly, deprecate fastify.config fa… - #1127

Merged
opichon merged 3 commits into
mainfrom
refact/graphql
Jul 11, 2026
Merged

feat(s3): accept plugin options directly, deprecate fastify.config fa…#1127
opichon merged 3 commits into
mainfrom
refact/graphql

Conversation

@opichon

@opichon opichon commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

…llback

The plugin now takes an S3Options argument (S3Config + rest/graphql flags).
Registering without options falls back to composing options from
fastify.config with a deprecation warning; the fallback will be removed in
a future major. Also guards the required fastify.slonik decorator with an
actionable error.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

opichon and others added 3 commits July 11, 2026 14:29
…llback

The plugin now takes an S3Options argument (S3Config + rest/graphql flags).
Registering without options falls back to composing options from
fastify.config with a deprecation warning; the fallback will be removed in
a future major. Also guards the required fastify.slonik decorator with an
actionable error.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Adds an uploads option (UploadOptions passthrough, enabled by default) and
a named upload-transport sub-plugin registered before mercurius: catch-all
content-type parser (flags graphql multipart, busboy-parses the rest) plus
a preValidation hook running graphql-upload-minimal processRequest. Moved
from @prefabs.tech/fastify-s3 per docs/specs/graphql-upload-transport.md;
also fixes the double-done race in the busboy parser path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@opichon
opichon merged commit 81251d3 into main Jul 11, 2026
3 checks passed
@opichon
opichon deleted the refact/graphql branch July 11, 2026 09:01
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.

1 participant