Skip to content

Releases: fastify/fastify-cors

v11.1.0

01 Aug 07:13
de3cdbd
Compare
Choose a tag to compare

What's Changed

  • docs(readme): update version by @udhayakumarcp in #367
  • docs(readme): update plugin version syntax by @Fdawgs in #369
  • ci: set permissions at workflow level by @Fdawgs in #371
  • ci: restore job level permissions by @Fdawgs in #372
  • chore(deps-dev): bump tsd from 0.31.2 to 0.32.0 by @dependabot[bot] in #373
  • chore(license): update date ranges; standardise style by @Fdawgs in #376
  • chore(deps-dev): bump @types/node from 22.15.34 to 24.0.8 by @dependabot[bot] in #377
  • docs(readme): correct default value for preflight option by @inyourtime in #378
  • Feat/preflight add logLevel option to silence CORS preflight logs by @gulbaki in #375

New Contributors

Full Changelog: v11.0.1...v11.1.0

v11.0.1

25 Mar 16:44
v11.0.1
2f2bf54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v11.0.0...v11.0.1

v11.0.0

27 Feb 06:08
2176d0b
Compare
Choose a tag to compare

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

24 Feb 20:26
v10.1.0
ace0ee3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v10.0.2...v10.1.0

v10.0.2

04 Jan 16:13
v10.0.2
cd695cd
Compare
Choose a tag to compare

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

22 Sep 09:09
7635ecd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v10.0.0...v10.0.1

v10.0.0

04 Sep 07:33
a9da1fc
Compare
Choose a tag to compare
v10.0.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v9.0.1...v10.0.0

v9.0.1

31 Jan 15:48
804dd23
Compare
Choose a tag to compare

What's Changed

  • vary origin on delegated options by @laat in #292

New Contributors

  • @laat made their first contribution in #292

Full Changelog: v9.0.0...v9.0.1

v9.0.0

26 Jan 18:18
3cf8f61
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.5.0...v9.0.0

v8.5.0

18 Dec 12:01
5e0e27e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v8.4.2...v8.5.0