Releases: fastify/fastify-cors
Releases · fastify/fastify-cors
v11.0.0
Breaking Change
In order to provides safer default, we change the methods
to the CORS-safelisted methods.
If you want to resume the previous behaviour, you need to explicitly specify the methods,
import Fastify from 'fastify'
import cors from '@fastify/cors'
const fastify = Fastify()
await fastify.register(cors, {
methods: "GET,HEAD,PUT,PATCH,POST,DELETE"
})
What's Changed
- style: destructure imports by @Fdawgs in #360
- refactor(index): change default
methods
to cors-safelisted methods by @Fdawgs in #359
Full Changelog: v10.1.0...v11.0.0
v10.1.0
What's Changed
- refactor(vary): remove redundant assignment by @Fdawgs in #352
- build(dependabot): reduce npm updates to monthly by @Fdawgs in #353
- docs(readme): conciseness improvements by @Fdawgs in #354
- chore(deps): bump mnemonist from 0.39.8 to 0.40.0 by @dependabot in #356
- chore: rename master to main by @Fdawgs in #355
- test(cors): add missing anchor by @Fdawgs in #357
- feat(index): allow cors to be disabled at route level by @peterfaria-jitb in #332
New Contributors
- @peterfaria-jitb made their first contribution in #332
Full Changelog: v10.0.2...v10.1.0
v10.0.2
What's Changed
- chore(deps): bump fastify/workflows from 5.0.0 to 5.0.1 by @dependabot in #323
- Update README.md to include Fastify 5 by @a777med in #326
- build(deps-dev): lock typescript minor version by @Fdawgs in #328
- chore(deps-dev): bump typescript from 5.4.5 to 5.6.3 by @dependabot in #329
- docs(readme): fix compatibility table whitespace by @Fdawgs in #333
- docs(readme): standardize compatibility table style by @Fdawgs in #334
- style: remove trailing whitespace by @Fdawgs in #335
- chore(deps-dev): bump typescript from 5.6.3 to 5.7.2 by @dependabot in #339
- build(deps-dev): replace standard with neostandard by @Fdawgs in #340
- build(dependabot): remove tap ignore by @Fdawgs in #341
- ci(ci): sort job params alphabetically ascending by @Fdawgs in #342
- docs(readme): remove excess whitespace by @Fdawgs in #343
- chore(package): add funding and contribs by @Fdawgs in #344
- docs(readme): point ci badge at master/main branch by @Fdawgs in #345
- docs(readme): update ci badge syntax by @Fdawgs in #346
- chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0 by @dependabot in #347
- build(deps-dev): add eslint, peer dep of neostandard by @Fdawgs in #348
- perf(index): use optional chaining by @Fdawgs in #349
- refactor: prefix unused params with underscores by @Fdawgs in #350
- docs(readme): spelling and grammar fixes by @Fdawgs in #351
New Contributors
Full Changelog: v10.0.1...v10.0.2
v10.0.1
v10.0.0
What's Changed
- chore(deps): bump mnemonist from 0.39.6 to 0.39.8 by @dependabot in #293
- chore(.gitignore): add .tap/ dir by @Fdawgs in #294
- chore(deps-dev): bump @typescript-eslint/parser from 6.21.0 to 7.1.1 by @dependabot in #298
- chore(deps-dev): bump tsd from 0.30.7 to 0.31.0 by @dependabot in #300
- Warn about DoS attacks by @mcollina in #301
- add AsyncOriginFunction type by @sknetl in #302
- Merge
next
intomaster
by @jsumners in #304 - chore(deps): bump fastify/workflows from 4.1.0 to 4.2.1 by @dependabot in #305
- chore(deps-dev): bump tsd from 0.30.7 to 0.31.1 by @dependabot in #306
- docs(readme): add
options.methods
default by @Fdawgs in #307 - chore(deps-dev): bump @types/node from 20.14.13 to 22.0.0 by @dependabot in #308
- chore: update min fastify version by @Fdawgs in #309
- chore(deps): bump fastify/workflows from 4.2.1 to 5.0.0 by @dependabot in #310
- chore: migrate from tap to node:test and c8 by @dancastillo in #316
New Contributors
- @sknetl made their first contribution in #302
- @dancastillo made their first contribution in #316
Full Changelog: v9.0.1...v10.0.0
v9.0.1
v9.0.0
What's Changed
- chore(deps-dev): bump tsd from 0.29.0 to 0.30.0 by @dependabot in #286
- Add Vary header only for non-static origin option by @saschanaz in #288
New Contributors
- @saschanaz made their first contribution in #288
Full Changelog: v8.5.0...v9.0.0
v8.5.0
What's Changed
- chore(deps): bump mnemonist from 0.39.5 to 0.39.6 by @dependabot in #283
- Revert "fix: support for embedded cors for route params (#278)" by @climba03003 in #285
Full Changelog: v8.4.2...v8.5.0
v8.4.2
What's Changed
- build(dependabot): ignore tap major updates by @Fdawgs in #276
- fix: support for embedded cors for route params by @mohammedSlimani in #278
New Contributors
- @mohammedSlimani made their first contribution in #278
Full Changelog: v8.4.1...v8.4.2
v8.4.1
What's Changed
- Fix type of OriginCallback by @ken-browning in #272
- test: add
u
unicode flag to regex by @Fdawgs in #273 - chore(package): explicitly declare js module type by @Fdawgs in #274
- test(index): replace
typeof
undefined check by @Fdawgs in #275
New Contributors
- @ken-browning made their first contribution in #272
Full Changelog: v8.4.0...v8.4.1