Skip to content

Sync next-branch#4894

Merged
Uzlopak merged 28 commits intonextfrom
main
Jul 17, 2023
Merged

Sync next-branch#4894
Uzlopak merged 28 commits intonextfrom
main

Conversation

@github-actions
Copy link

Sync next-branch with latest changes of the main-branch

aadito123 and others added 28 commits July 3, 2023 15:27
* initial type narrowing functionality

* type narrow on wildcards

* fix typo in tests and add docs

* fix typo in test/types/reply.test-d.ts

Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>

* Fix typo on reply.test-d.ts

* renaming and refactoring

* fixed failing test

* fix broken narrowing on number type statusCodes

* fixed type narrow on number type status codes

* fix type inferrence breaking without Reply generic

---------

Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Bumps [@sinclair/typebox](https://github.com/sinclairzx81/typebox) from 0.28.20 to 0.29.1.
- [Commits](sinclairzx81/typebox@0.28.20...0.29.1)

---
updated-dependencies:
- dependency-name: "@sinclair/typebox"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Added FST_ERR_VALIDATION to errors.d.ts

The error code FST_ERR_VALIDATION is used as an error code in lib/context.js

* add unit tests, fix FST_ERR_ROUTE_REWRITE_NOT_STR

* add typings

---------

Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
* Add missing assertion for a test

* add address assertion

---------

Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
* perf: improve performance of request id generation

* use 0 comparison instead of object reference comparison for better  performance

* optimize

* smaller lookup array

* remove perf changes, add jsdoc, export as named export and complete unit tests
* improve hooks.validate

* Update lib/hooks.js

Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>

---------

Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
* improve ci-yml

* fix wf

* fix wf

* fix wf

* fix wf

* use built-in cache option of actions/setup-node
…er()` (#4846)

* Add documentation for side-effect when using await in fastify.register()

* Apply suggestions from code review

Co-authored-by: Frazer Smith <frazer.dev@outlook.com>

---------

Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
Co-authored-by: Frazer Smith <frazer.dev@outlook.com>
* remove hook iterator for onRequestAbortHookRunner

* curry it

* rename stream to payload

* early exit with cb instead of next

* rename payload to newPayload

* change
"FST_ERR_ASYNC_CONSTRAINT" was set to a heading size that gave it a section title and was inconsistent with the rest of the docs on this page, quick and easy 1 character fix
* fix: rework FastifyErrors, ensure documentation completeness

* Update lib/errors.js

Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com>

* Update test/internals/errors.test.js

---------

Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com>
Co-authored-by: Carlos Fuentes <me@metcoder.dev>
Co-authored-by: shaypepper <shay.pe@moonactive.com>
Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
* Support IPv6 ::1 in listeningOrigin

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* Update fastify.js

Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com>

---------

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Co-authored-by: KaKa <23028015+climba03003@users.noreply.github.com>
@Uzlopak Uzlopak merged commit f36832f into next Jul 17, 2023
@github-actions
Copy link
Author

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2024
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.