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

Updating for v5 #119

Merged
merged 5 commits into from
May 4, 2024
Merged

Updating for v5 #119

merged 5 commits into from
May 4, 2024

Conversation

Gesma94
Copy link
Contributor

@Gesma94 Gesma94 commented Apr 19, 2024

Closes #118

Checklist

CC @simoneb

/* istanbul ignore next */
const clearPerformance = performance.clearMeasures
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we do not support Node v14 anymore, this is not needed, I guest

@@ -59,7 +52,7 @@ async function fastifyRoutesStats (fastify, opts) {

fastify.addHook('onSend', function (request, reply, _, next) {
if (request[decoratorName]) {
const routeId = reply.context.config.statsId || request.raw.url
const routeId = request.routeOptions.config.statsId || request.raw.url
Copy link
Contributor Author

Choose a reason for hiding this comment

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

reply.context will be deprecated in Fastify v5, thus I used the new suggested request.routeOptions.config

@@ -1,2 +1,3 @@
show-full-coverage: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Old version of tap showed the coverage even when it was 100%. New version doesn't unless show-full-coverage is set to true

@gurgunday
Copy link
Member

gurgunday commented Apr 19, 2024

Also istanbul no longer does anything as tap uses c8 now

You should remove them or replace with /* c8 ignore next */

Latest version of `tap` uses `c8` instead of `istanbul`
@Gesma94
Copy link
Contributor Author

Gesma94 commented Apr 19, 2024

Also istanbul no longer does anything as tap uses c8 now

You should remove them or replace with /* c8 ignore next */

Sorry, I missed that. I also forgot to push the workflow file, so the actions were failing: I've updated the ci.yml file

@gurgunday gurgunday linked an issue Apr 19, 2024 that may be closed by this pull request
2 tasks
@gurgunday gurgunday merged commit 77096cd into fastify:next May 4, 2024
14 checks passed
@gurgunday
Copy link
Member

Thanks!

jsumners pushed a commit that referenced this pull request Jun 15, 2024
* chore: update tap configuration and NPM deps

* fix: update code to be compliant with node>=16 and fastify>=5

* chore: update plugin-ci to v4.1

* chore: use c8 comment instead of istanbul

Latest version of `tap` uses `c8` instead of `istanbul`

* fix: add missing patch in plugin version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Updating for v5
3 participants