-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add matchFilter and ignoreFilter #289
Conversation
|
||
export interface AutoloadPluginOptions { | ||
dir: string | ||
dirNameRoutePrefix?: boolean | RewritePrefix | ||
ignoreFilter?: Filter | ||
matchFilter?: Filter |
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.
Can you please add a unit test for the types? We use tsd.
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.
Sorry, I wasn't familiar with this... I added types tests here: 838b200, is that okay ?
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.
lgtm
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@fastify/autoload](https://togithub.com/fastify/fastify-autoload) | [`5.0.0` -> `5.7.1`](https://renovatebot.com/diffs/npm/@fastify%2fautoload/5.0.0/5.7.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fastify/fastify-autoload (@​fastify/autoload)</summary> ### [`v5.7.1`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.7.1) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.7.0...v5.7.1) #### What's Changed - Fix: Incorrect Filter type by [@​hugoattal](https://togithub.com/hugoattal) in [https://github.com/fastify/fastify-autoload/pull/290](https://togithub.com/fastify/fastify-autoload/pull/290) - chore(.gitignore): add clinic by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/293](https://togithub.com/fastify/fastify-autoload/pull/293) - Fix file path for filters by [@​hugoattal](https://togithub.com/hugoattal) in [https://github.com/fastify/fastify-autoload/pull/292](https://togithub.com/fastify/fastify-autoload/pull/292) **Full Changelog**: fastify/fastify-autoload@v5.7.0...v5.7.1 ### [`v5.7.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.7.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.6.0...v5.7.0) #### What's Changed - chore(deps-dev): bump tsd from 0.24.1 to 0.25.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/284](https://togithub.com/fastify/fastify-autoload/pull/284) - chore(deps-dev): bump esbuild from 0.15.18 to 0.16.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/285](https://togithub.com/fastify/fastify-autoload/pull/285) - chore(deps-dev): bump vite from 3.2.5 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/286](https://togithub.com/fastify/fastify-autoload/pull/286) - chore(deps-dev): bump vitest from 0.25.8 to 0.26.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/288](https://togithub.com/fastify/fastify-autoload/pull/288) - Add matchFilter and ignoreFilter by [@​hugoattal](https://togithub.com/hugoattal) in [https://github.com/fastify/fastify-autoload/pull/289](https://togithub.com/fastify/fastify-autoload/pull/289) #### New Contributors - [@​hugoattal](https://togithub.com/hugoattal) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/289](https://togithub.com/fastify/fastify-autoload/pull/289) **Full Changelog**: fastify/fastify-autoload@v5.6.0...v5.7.0 ### [`v5.6.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.6.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.5.0...v5.6.0) 📚 PR: - disable package-lock generation ([#​282](https://togithub.com/fastify/fastify-autoload/issues/282)) - remove semver ([#​281](https://togithub.com/fastify/fastify-autoload/issues/281)) - move typings to types folder & make typings nodenext compatible ([#​283](https://togithub.com/fastify/fastify-autoload/issues/283)) ### [`v5.5.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.5.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.4.1...v5.5.0) #### What's Changed - chore(deps-dev): bump vitest from 0.24.5 to 0.25.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/279](https://togithub.com/fastify/fastify-autoload/pull/279) - add esbuild-register support by [@​MrWook](https://togithub.com/MrWook) in [https://github.com/fastify/fastify-autoload/pull/280](https://togithub.com/fastify/fastify-autoload/pull/280) #### New Contributors - [@​MrWook](https://togithub.com/MrWook) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/280](https://togithub.com/fastify/fastify-autoload/pull/280) **Full Changelog**: fastify/fastify-autoload@v5.4.1...v5.5.0 ### [`v5.4.1`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.4.1) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.4.0...v5.4.1) 📚 PR: - Fixed the wrong link. ([#​269](https://togithub.com/fastify/fastify-autoload/issues/269)) - chore(deps-dev): bump tsd from 0.23.0 to 0.24.1 ([#​270](https://togithub.com/fastify/fastify-autoload/issues/270)) - 271: trying to use babel-node when using typescript files ([#​272](https://togithub.com/fastify/fastify-autoload/issues/272)) - run lint on workflow run ([#​275](https://togithub.com/fastify/fastify-autoload/issues/275)) - forceESM for vitest ([#​274](https://togithub.com/fastify/fastify-autoload/issues/274)) ### [`v5.4.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.4.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.3.1...v5.4.0) 📚 PR: - chore(deps-dev): bump [@​types/jest](https://togithub.com/types/jest) from 28.1.8 to 29.0.0 ([#​267](https://togithub.com/fastify/fastify-autoload/issues/267)) - Skip loading of non-plugin-like entities ([#​268](https://togithub.com/fastify/fastify-autoload/issues/268)) ### [`v5.3.1`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.3.1) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.3.0...v5.3.1) Revert of [#​264](https://togithub.com/fastify/fastify-autoload/issues/264) because of [#​266](https://togithub.com/fastify/fastify-autoload/issues/266). **Full Changelog**: fastify/fastify-autoload@v5.3.0...v5.3.1 ### [`v5.3.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.3.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.2.0...v5.3.0) #### What's Changed - chore: remove unused eslint config by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/260](https://togithub.com/fastify/fastify-autoload/pull/260) - chore(deps-dev): bump tsd from 0.22.0 to 0.23.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/262](https://togithub.com/fastify/fastify-autoload/pull/262) - build(deps-dev): add semver by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/263](https://togithub.com/fastify/fastify-autoload/pull/263) - Add support for .ts files when app is not run with ts-node. by [@​kylerush](https://togithub.com/kylerush) in [https://github.com/fastify/fastify-autoload/pull/264](https://togithub.com/fastify/fastify-autoload/pull/264) #### New Contributors - [@​kylerush](https://togithub.com/kylerush) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/264](https://togithub.com/fastify/fastify-autoload/pull/264) **Full Changelog**: fastify/fastify-autoload@v5.2.0...v5.3.0 ### [`v5.2.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.2.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.1.0...v5.2.0) #### What's Changed - chore(deps-dev): bump fastify-plugin from 3.0.1 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/253](https://togithub.com/fastify/fastify-autoload/pull/253) - build(deps-dev): replace pre-commit with [@​fastify/pre-commit](https://togithub.com/fastify/pre-commit) by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/256](https://togithub.com/fastify/fastify-autoload/pull/256) - ci: enable license checking by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/257](https://togithub.com/fastify/fastify-autoload/pull/257) - chore(deps-dev): bump [@​types/jest](https://togithub.com/types/jest) from 27.5.2 to 28.1.6, bump jest and ts-jest to latest by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/254](https://togithub.com/fastify/fastify-autoload/pull/254) - docs(readme): replace use of deprecated variadic `listen()` by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/258](https://togithub.com/fastify/fastify-autoload/pull/258) - Add support for [@​swc-node/register](https://togithub.com/swc-node/register) by [@​jclem](https://togithub.com/jclem) in [https://github.com/fastify/fastify-autoload/pull/259](https://togithub.com/fastify/fastify-autoload/pull/259) #### New Contributors - [@​jclem](https://togithub.com/jclem) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/259](https://togithub.com/fastify/fastify-autoload/pull/259) **Full Changelog**: fastify/fastify-autoload@v5.1.0...v5.2.0 ### [`v5.1.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.1.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.0.0...v5.1.0) #### What's Changed - docs(readme): remove snyk badge by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/240](https://togithub.com/fastify/fastify-autoload/pull/240) - chore(deps-dev): bump ts-node-dev from 1.1.8 to 2.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/242](https://togithub.com/fastify/fastify-autoload/pull/242) - chore(.gitignore): use updated skeleton template by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/244](https://togithub.com/fastify/fastify-autoload/pull/244) - chore(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 17.0.45 to 18.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/245](https://togithub.com/fastify/fastify-autoload/pull/245) - chore(deps-dev): bump tsd from 0.20.0 to 0.21.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/247](https://togithub.com/fastify/fastify-autoload/pull/247) - chore(deps-dev): bump tsd from 0.21.0 to 0.22.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/250](https://togithub.com/fastify/fastify-autoload/pull/250) - feat: add `tsx` support by [@​davipon](https://togithub.com/davipon) in [https://github.com/fastify/fastify-autoload/pull/251](https://togithub.com/fastify/fastify-autoload/pull/251) - Update [@​fastify/url-data](https://togithub.com/fastify/url-data) by [@​mcollina](https://togithub.com/mcollina) in [https://github.com/fastify/fastify-autoload/pull/252](https://togithub.com/fastify/fastify-autoload/pull/252) #### New Contributors - [@​davipon](https://togithub.com/davipon) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/251](https://togithub.com/fastify/fastify-autoload/pull/251) **Full Changelog**: fastify/fastify-autoload@v5.0.0...v5.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/specfy/specfy). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41LjMiLCJ1cGRhdGVkSW5WZXIiOiIzNi44LjExIiwidGFyZ2V0QnJhbmNoIjoiY2hvcmUvcmVub3ZhdGVCYXNlQnJhbmNoIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@fastify/autoload](https://togithub.com/fastify/fastify-autoload) | [`5.0.0` -> `5.7.1`](https://renovatebot.com/diffs/npm/@fastify%2fautoload/5.0.0/5.7.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fastify/fastify-autoload (@​fastify/autoload)</summary> ### [`v5.7.1`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.7.1) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.7.0...v5.7.1) #### What's Changed - Fix: Incorrect Filter type by [@​hugoattal](https://togithub.com/hugoattal) in [https://github.com/fastify/fastify-autoload/pull/290](https://togithub.com/fastify/fastify-autoload/pull/290) - chore(.gitignore): add clinic by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/293](https://togithub.com/fastify/fastify-autoload/pull/293) - Fix file path for filters by [@​hugoattal](https://togithub.com/hugoattal) in [https://github.com/fastify/fastify-autoload/pull/292](https://togithub.com/fastify/fastify-autoload/pull/292) **Full Changelog**: fastify/fastify-autoload@v5.7.0...v5.7.1 ### [`v5.7.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.7.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.6.0...v5.7.0) #### What's Changed - chore(deps-dev): bump tsd from 0.24.1 to 0.25.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/284](https://togithub.com/fastify/fastify-autoload/pull/284) - chore(deps-dev): bump esbuild from 0.15.18 to 0.16.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/285](https://togithub.com/fastify/fastify-autoload/pull/285) - chore(deps-dev): bump vite from 3.2.5 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/286](https://togithub.com/fastify/fastify-autoload/pull/286) - chore(deps-dev): bump vitest from 0.25.8 to 0.26.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/288](https://togithub.com/fastify/fastify-autoload/pull/288) - Add matchFilter and ignoreFilter by [@​hugoattal](https://togithub.com/hugoattal) in [https://github.com/fastify/fastify-autoload/pull/289](https://togithub.com/fastify/fastify-autoload/pull/289) #### New Contributors - [@​hugoattal](https://togithub.com/hugoattal) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/289](https://togithub.com/fastify/fastify-autoload/pull/289) **Full Changelog**: fastify/fastify-autoload@v5.6.0...v5.7.0 ### [`v5.6.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.6.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.5.0...v5.6.0) 📚 PR: - disable package-lock generation ([#​282](https://togithub.com/fastify/fastify-autoload/issues/282)) - remove semver ([#​281](https://togithub.com/fastify/fastify-autoload/issues/281)) - move typings to types folder & make typings nodenext compatible ([#​283](https://togithub.com/fastify/fastify-autoload/issues/283)) ### [`v5.5.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.5.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.4.1...v5.5.0) #### What's Changed - chore(deps-dev): bump vitest from 0.24.5 to 0.25.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/279](https://togithub.com/fastify/fastify-autoload/pull/279) - add esbuild-register support by [@​MrWook](https://togithub.com/MrWook) in [https://github.com/fastify/fastify-autoload/pull/280](https://togithub.com/fastify/fastify-autoload/pull/280) #### New Contributors - [@​MrWook](https://togithub.com/MrWook) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/280](https://togithub.com/fastify/fastify-autoload/pull/280) **Full Changelog**: fastify/fastify-autoload@v5.4.1...v5.5.0 ### [`v5.4.1`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.4.1) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.4.0...v5.4.1) 📚 PR: - Fixed the wrong link. ([#​269](https://togithub.com/fastify/fastify-autoload/issues/269)) - chore(deps-dev): bump tsd from 0.23.0 to 0.24.1 ([#​270](https://togithub.com/fastify/fastify-autoload/issues/270)) - 271: trying to use babel-node when using typescript files ([#​272](https://togithub.com/fastify/fastify-autoload/issues/272)) - run lint on workflow run ([#​275](https://togithub.com/fastify/fastify-autoload/issues/275)) - forceESM for vitest ([#​274](https://togithub.com/fastify/fastify-autoload/issues/274)) ### [`v5.4.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.4.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.3.1...v5.4.0) 📚 PR: - chore(deps-dev): bump [@​types/jest](https://togithub.com/types/jest) from 28.1.8 to 29.0.0 ([#​267](https://togithub.com/fastify/fastify-autoload/issues/267)) - Skip loading of non-plugin-like entities ([#​268](https://togithub.com/fastify/fastify-autoload/issues/268)) ### [`v5.3.1`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.3.1) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.3.0...v5.3.1) Revert of [#​264](https://togithub.com/fastify/fastify-autoload/issues/264) because of [#​266](https://togithub.com/fastify/fastify-autoload/issues/266). **Full Changelog**: fastify/fastify-autoload@v5.3.0...v5.3.1 ### [`v5.3.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.3.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.2.0...v5.3.0) #### What's Changed - chore: remove unused eslint config by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/260](https://togithub.com/fastify/fastify-autoload/pull/260) - chore(deps-dev): bump tsd from 0.22.0 to 0.23.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/262](https://togithub.com/fastify/fastify-autoload/pull/262) - build(deps-dev): add semver by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/263](https://togithub.com/fastify/fastify-autoload/pull/263) - Add support for .ts files when app is not run with ts-node. by [@​kylerush](https://togithub.com/kylerush) in [https://github.com/fastify/fastify-autoload/pull/264](https://togithub.com/fastify/fastify-autoload/pull/264) #### New Contributors - [@​kylerush](https://togithub.com/kylerush) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/264](https://togithub.com/fastify/fastify-autoload/pull/264) **Full Changelog**: fastify/fastify-autoload@v5.2.0...v5.3.0 ### [`v5.2.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.2.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.1.0...v5.2.0) #### What's Changed - chore(deps-dev): bump fastify-plugin from 3.0.1 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/253](https://togithub.com/fastify/fastify-autoload/pull/253) - build(deps-dev): replace pre-commit with [@​fastify/pre-commit](https://togithub.com/fastify/pre-commit) by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/256](https://togithub.com/fastify/fastify-autoload/pull/256) - ci: enable license checking by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/257](https://togithub.com/fastify/fastify-autoload/pull/257) - chore(deps-dev): bump [@​types/jest](https://togithub.com/types/jest) from 27.5.2 to 28.1.6, bump jest and ts-jest to latest by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/254](https://togithub.com/fastify/fastify-autoload/pull/254) - docs(readme): replace use of deprecated variadic `listen()` by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/258](https://togithub.com/fastify/fastify-autoload/pull/258) - Add support for [@​swc-node/register](https://togithub.com/swc-node/register) by [@​jclem](https://togithub.com/jclem) in [https://github.com/fastify/fastify-autoload/pull/259](https://togithub.com/fastify/fastify-autoload/pull/259) #### New Contributors - [@​jclem](https://togithub.com/jclem) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/259](https://togithub.com/fastify/fastify-autoload/pull/259) **Full Changelog**: fastify/fastify-autoload@v5.1.0...v5.2.0 ### [`v5.1.0`](https://togithub.com/fastify/fastify-autoload/releases/tag/v5.1.0) [Compare Source](https://togithub.com/fastify/fastify-autoload/compare/v5.0.0...v5.1.0) #### What's Changed - docs(readme): remove snyk badge by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/240](https://togithub.com/fastify/fastify-autoload/pull/240) - chore(deps-dev): bump ts-node-dev from 1.1.8 to 2.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/242](https://togithub.com/fastify/fastify-autoload/pull/242) - chore(.gitignore): use updated skeleton template by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-autoload/pull/244](https://togithub.com/fastify/fastify-autoload/pull/244) - chore(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 17.0.45 to 18.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/245](https://togithub.com/fastify/fastify-autoload/pull/245) - chore(deps-dev): bump tsd from 0.20.0 to 0.21.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/247](https://togithub.com/fastify/fastify-autoload/pull/247) - chore(deps-dev): bump tsd from 0.21.0 to 0.22.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-autoload/pull/250](https://togithub.com/fastify/fastify-autoload/pull/250) - feat: add `tsx` support by [@​davipon](https://togithub.com/davipon) in [https://github.com/fastify/fastify-autoload/pull/251](https://togithub.com/fastify/fastify-autoload/pull/251) - Update [@​fastify/url-data](https://togithub.com/fastify/url-data) by [@​mcollina](https://togithub.com/mcollina) in [https://github.com/fastify/fastify-autoload/pull/252](https://togithub.com/fastify/fastify-autoload/pull/252) #### New Contributors - [@​davipon](https://togithub.com/davipon) made their first contribution in [https://github.com/fastify/fastify-autoload/pull/251](https://togithub.com/fastify/fastify-autoload/pull/251) **Full Changelog**: fastify/fastify-autoload@v5.0.0...v5.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled because a matching PR was automerged previously. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/specfy/specfy). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMjcuMSIsInRhcmdldEJyYW5jaCI6ImNob3JlL3Jlbm92YXRlQmFzZUJyYW5jaCJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fix #287
Checklist
npm run test
andnpm run benchmark
and the Code of conduct
So, I added the
matchFilter
andignoreFilter
optional options that can acceptsI ended up letting
ignorePattern
as is for compatibility.ignorePattern
only check the file name, whereasmatchFilter
andignoreFilter
check the whole path (prefix + file name)I added some tests and a documentation.