-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Update for V5 (bis) #373
Closed
Closed
Update for V5 (bis) #373
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
965f7e3
upgrade for next realease
jean-michelet a49f72b
refactor: runtime.js
jean-michelet 528cf29
create specific test for unit test test/typescript/*.ts
jean-michelet 816c729
fix: nullish needed for non Node.js runtime
jean-michelet 96f4db8
fix: empty .taprc
jean-michelet 8139c73
Merge branch 'master' of github.com:jean-michelet/fastify-autoload in…
jean-michelet 6929523
fix: reverse version
jean-michelet 43daa9d
fix: increase timeout
jean-michelet aca65e2
refactor: use node instead of tap for typescript scripts
jean-michelet c80f855
fix: force deletion of @tapjs/typescript
jean-michelet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ts: true | ||
jsx: false | ||
flow: false | ||
# vim: set filetype=yaml : | ||
timeout: 60 | ||
plugin: | ||
- "!@tapjs/typescript" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
{ | ||
"name": "@fastify/autoload", | ||
"version": "5.8.2", | ||
"version": "5.8.1", | ||
"description": "Require all plugins in a directory", | ||
"main": "index.js", | ||
"type": "commonjs", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"lint": "standard | snazzy", | ||
"lint:fix": "standard --fix | snazzy", | ||
"test": "npm run unit && npm run typescript && npm run typescript:jest && npm run typescript:esm && npm run typescript:swc && npm run typescript:swc-node-register && npm run typescript:tsm && npm run typescript:tsx && npm run typescript:vitest && npm run typescript:esbuild", | ||
"test": "npm run typescript && npm run typescript:jest && npm run typescript:swc-node-register && npm run typescript:tsm && npm run typescript:tsx && npm run typescript:vitest && npm run typescript:esbuild && npm run unit", | ||
"typescript": "tsd", | ||
"typescript:jest": "jest", | ||
"typescript:esm": "node scripts/unit-typescript-esm.js", | ||
"typescript:swc": "node scripts/unit-typescript-swc.js", | ||
"typescript:swc-node-register": "node scripts/unit-typescript-swc-node-register.js", | ||
"typescript:tsm": "node scripts/unit-typescript-tsm.js", | ||
"typescript:tsx": "node scripts/unit-typescript-tsx.js", | ||
"typescript:esbuild": "node scripts/unit-typescript-esbuild.js", | ||
"typescript:vitest": "vitest run", | ||
"typescript:vitest:dev": "vitest", | ||
"unit": "node scripts/unit.js", | ||
"unit:with-modules": "tap test/issues/*/test.js test/commonjs/*.js test/module/*.js test/typescript/*.ts" | ||
"unit:with-modules": "tap test/issues/*/test.js test/commonjs/*.js test/module/*.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -43,33 +42,31 @@ | |
"url": "https://github.com/fastify/fastify-autoload/issues" | ||
}, | ||
"homepage": "https://github.com/fastify/fastify-autoload#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@fastify/pre-commit": "^2.0.2", | ||
"@fastify/url-data": "^5.0.0", | ||
"@swc-node/register": "^1.5.1", | ||
"@swc/core": "^1.2.129", | ||
"@swc/register": "^0.1.9", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"@types/jest": "^29.0.0", | ||
"@types/node": "^20.1.0", | ||
"@types/tap": "^15.0.5", | ||
"esbuild": "^0.19.2", | ||
"esbuild-register": "^3.4.1", | ||
"fastify": "^4.0.0-rc.2", | ||
"fastify-plugin": "^4.0.0", | ||
"jest": "^28.1.3", | ||
"@fastify/pre-commit": "^2.1.0", | ||
"@fastify/url-data": "^5.4.0", | ||
"@swc-node/register": "^1.9.1", | ||
"@swc/core": "^1.4.13", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.12.7", | ||
"@types/tap": "^15.0.11", | ||
"esbuild": "^0.20.2", | ||
"esbuild-register": "^3.5.0", | ||
"fastify": "^4.26.2", | ||
"fastify-plugin": "^4.5.1", | ||
"jest": "^29.7.0", | ||
"snazzy": "^9.0.0", | ||
"standard": "^17.0.0", | ||
"tap": "^16.0.0", | ||
"ts-jest": "^28.0.7", | ||
"ts-node": "^10.4.0", | ||
"standard": "^17.1.0", | ||
"tap": "^18.7.2", | ||
"ts-jest": "^29.1.2", | ||
"ts-node": "^10.9.2", | ||
"ts-node-dev": "^2.0.0", | ||
"tsd": "^0.29.0", | ||
"tsm": "^2.2.1", | ||
"tsx": "^3.7.1", | ||
"typescript": "^5.0.2", | ||
"vite": "^5.0.0", | ||
"vitest": "^0.34.1" | ||
"tsd": "^0.31.0", | ||
"tsm": "^2.3.0", | ||
"tsx": "^4.7.2", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.8", | ||
"vitest": "^1.5.0" | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
|
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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module.exports = async function (app, opts, next) { | ||
module.exports = async function (app, opts) { | ||
app.addHook('onRequest', async (req, reply) => { | ||
req.hooked = req.hooked || [] | ||
req.hooked.push('root') | ||
next() | ||
}) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module.exports = async function (app, opts, next) { | ||
module.exports = async function (app, opts) { | ||
app.addHook('onRequest', async (req, reply) => { | ||
req.hooked = req.hooked || [] | ||
req.hooked.push('child') | ||
next() | ||
}) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module.exports = async function (app, opts, next) { | ||
module.exports = async function (app, opts) { | ||
app.addHook('onRequest', async (req, reply) => { | ||
req.hooked = req.hooked || [] | ||
req.hooked.push('grandchild') | ||
next() | ||
}) | ||
} |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Do we really need this config?
Btw, we must pass env variable
SWCRC=true
to load it.