Sourced from helmet's changelog.
8.0.0
Changed
- Breaking:
Strict-Transport-Security
now has a max-age of 365 days, up from 180- Breaking:
Content-Security-Policy
middleware now throws an error if a directive should have quotes but does not, such asself
instead of'self'
. See #454- Breaking:
Content-Security-Policy
'sgetDefaultDirectives
now returns a deep copy. This only affects users who were mutating the result- Breaking:
Strict-Transport-Security
now throws an error when "includeSubDomains" option is misspelled. This was previously a warningRemoved
- Breaking: Drop support for Node 16 and 17. Node 18+ is now required
7.2.0 - 2024-09-28
Changed
Content-Security-Policy
middleware now warns if a directive should have quotes but does not, such asself
instead of'self'
. This will be an error in future versions. See #454
9a8e6d5
8.0.06562cd7
CSP: speed up getDefaultDirectives
a8befb3
getDefaultDirectives
should do a deep copy558ef2c
HSTS: throw when misspelling "includeSubDomains" option73e7595
Content-Security-Policy: throw if directive value lacks necessary
quotes76410e1
Content-Security-Policy can now use Object.hasOwn293bd18
Strict-Transport-Security: increase max-age to 1 year898cdc4
Require Node 18+7e2b069
7.2.07bea915
Update changelog for 7.2.0 release