Skip to content

On ready backport #2296

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

Merged
merged 6 commits into from
Jun 15, 2020
Merged

On ready backport #2296

merged 6 commits into from
Jun 15, 2020

Conversation

Eomm
Copy link
Member

@Eomm Eomm commented May 24, 2020

Backport of #2166
Related #2123

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

Sorry, something went wrong.

Eomm and others added 3 commits May 24, 2020 16:03
* adding on compiler ready hook

* add wip onCompilerReady hook

* rename hook to onReady

* onready ready

* typo

* add test and docs

* fix test

* step forward

* fix tests

* fix multiple resolve

* improve

* add decorator test

* not expose boot function

* better docs

* improve docs

Co-Authored-By: James Sumners <james@sumners.email>

* Update docs/Hooks.md

* fix immediate to nextTick

* add types

* fix test

* add missing ts test

* Revert "fix test"

This reverts commit 671ae92.

* fix ready order execution

* add more test

* fix hook execute once

* better code

* multuple ready test

* fix docs add error management

Co-authored-by: James Sumners <james@sumners.email>
@Eomm Eomm added semver-minor Issue or PR that should land as semver minor v2.x Issue or pr related to Fastify v2 labels May 24, 2020
@mcollina
Copy link
Member

It seems CI is failing.

@Eomm
Copy link
Member Author

Eomm commented May 24, 2020

The logger test has changed the output, I remember this issue but can't remember the cause.

If you set await inject all is fine.

I would like to re check better

@stale
Copy link

stale bot commented Jun 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue or pr with more than 15 days of inactivity. label Jun 9, 2020
@mcollina
Copy link
Member

mcollina commented Jun 9, 2020

@Eomm any updates on this one?

@stale stale bot removed the stale Issue or pr with more than 15 days of inactivity. label Jun 9, 2020
@Eomm
Copy link
Member Author

Eomm commented Jun 14, 2020

@Eomm any updates on this one?

Done 👍

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina requested review from jsumners and delvedor June 14, 2020 19:00
Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link

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 Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
semver-minor Issue or PR that should land as semver minor v2.x Issue or pr related to Fastify v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants