-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat: access handler name add properties to req route options #4470
Merged
mcollina
merged 25 commits into
fastify:main
from
cesarvspr:(#4439)-Access-handler-name-add-properties-to-req-route-options
Sep 4, 2023
Merged
Changes from 5 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b55808e
fix: 'Error' is not assignable to parameter of type 'null'
cesarvspr c8b3e19
chore: add handler, schema and config to req.routeOptions
cesarvspr 8adce4d
rollback not needed change
cesarvspr 59236db
Update lib/request.js
cesarvspr e617fb8
chore: use deepFreeze
cesarvspr 7b13dd8
chore: use Object.defineProperty
cesarvspr 5012a19
chore: use defineProperties
cesarvspr e3b72dc
chore: add tests
cesarvspr 61dcac5
fix: test count exceeds plan
cesarvspr b8e10f8
fix: test count exceeds plan
cesarvspr 9cf1318
fix: add TODO
cesarvspr 398b158
chore: review improvements
cesarvspr d869181
Merge branch 'main' of github.com:fastify/fastify into (#4439)-Access…
cesarvspr c0b4b34
fix: proper warning codes
cesarvspr 81a87aa
Merge branch 'main' into (#4439)-Access-handler-name-add-properties-t…
Eomm acc8b31
Merge branch 'main' into (#4439)-Access-handler-name-add-properties-t…
Fdawgs b9ad2b5
Merge branch 'main' into (#4439)-Access-handler-name-add-properties-t…
Eomm 3a64cef
Update test/request.deprecated.test.js
Uzlopak 5eb061b
Merge branch 'main' into (#4439)-Access-handler-name-add-properties-t…
Uzlopak c13caa1
Merge branch 'main' into (#4439)-Access-handler-name-add-properties-t…
Uzlopak 3e3d05c
Apply suggestions from code review
Uzlopak 8e5602e
add documentation
Uzlopak 1c1901d
add missing documentation
Uzlopak 232cc3e
Update docs/Reference/Request.md
Uzlopak 53ecf4a
Merge branch 'main' into (#4439)-Access-handler-name-add-properties-t…
metcoder95 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are taking the reference here and
config
is an object.When you deep frozen the object, altering
config
in else where will be break.The getter should be immutable, but the hidden value should be allowed to modify by the core.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ptal