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

refactor: change in order of middleware parameters #41

Closed
wants to merge 8 commits into from
Closed

Conversation

dhrjarun
Copy link
Owner

refactor(dredge-adapters)!: change in options of BodyParser and DataSerializerFunction (#32)

  • mediaType, charset and boundary are removed
  • contentType is added

refactor(dredge-fetch): change in options of BodyParser and DataSerializerFunction (#34)

  • mediaType, charset and boundary are removed
  • contentType is added

refactor(dredge-types, dredge-route): remove unwanted code (#33)

  • Remove dataTransformer, dataSerializers, and bodyParsers from route builder

feat: pass content-type to dataType value (#35)

Instead of only passing mediaType
Now params can be be given as well

test: move route type test from dredge-route to dredge-types packages (#36)

refactor(dredge-route, dredge-types)!: add res.up() to dredge-route (#37)

removes res.next() and res.end() from dredge-route

refactor(dredge-route, dredge-types)!: replace req, res with d and context (#38)

refactor: change in order of middleware parameters

  • context is now the first parameter
  • d is the second parameter

dhrjarun and others added 8 commits December 23, 2024 09:37
…erializerFunction (#32)

- mediaType, charset and boundary are removed
- contentType is added
…lizerFunction (#34)

- mediaType, charset and boundary are removed
- contentType is added
- Remove `dataTransformer`, `dataSerializers`, and `bodyParsers` from route builder
Instead of only passing mediaType
Now params can be be given as well
…#37)

removes `res.next()` and `res.end()` from dredge-route
- context is now the first parameter
- d is the second parameter
Copy link

changeset-bot bot commented Dec 23, 2024

🦋 Changeset detected

Latest commit: 390c52e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
dredge-fetch Major
dredge-adapters Major
dredge-common Major
dredge-route Major
dredge-types Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dredge ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 5:32am

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dhrjarun dhrjarun changed the title refactor(dredge-adapters)!: change in options of BodyParser and DataSerializerFunction (#32) refactor: change in order of middleware parameters Dec 23, 2024
@dhrjarun dhrjarun closed this Dec 23, 2024
@dhrjarun dhrjarun deleted the candd branch January 10, 2025 10:11
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