mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-06 22:43:34 +02:00
3.8 KiB
3.8 KiB
Changelog
3.4.0 - 2021-05-02
Added
- New
useDefaultsoption, defaulting tofalse, lets you selectively override defaults more easily
3.3.1 - 2020-12-27
Fixed
- Broken TypeScript types. See #283
3.3.0 - 2020-12-27
Added
- Setting the
default-srctocontentSecurityPolicy.dangerouslyDisableDefaultSrcdisables it
3.2.0 - 2020-11-01
Added
- Get the default directives with
contentSecurityPolicy.getDefaultDirectives()
3.1.0 - 2020-08-15
Added
- Directive values can now include functions, as they could in Helmet 3. See #243
3.0.0 - 2020-08-02
Added
- If no
default-srcdirective is supplied, an error is thrown - Directive lists can be any iterable, not just arrays
Changed
- There is now a default set of directives if none are supplied
- Duplicate keys now throw an error. See helmetjs/csp#73
- This middleware is more lenient, allowing more directive names or values
Removed
- Removed browser sniffing (including the
browserSniffparameter). See #97 - Removed conditional support. This includes directive functions and support for a function as the
reportOnly. Read this if you need help. - Removed a lot of checks—you should be checking your CSP with a different tool
- Removed support for legacy headers (and therefore the
setAllHeadersparameter). Read this if you need help. - Dropped support for old Node versions. Node 10+ is now required
- Removed the
looseoption - Removed support for functions as directive values. You must supply an iterable of strings
- Removed the
disableAndroidoption
2.9.5 - 2020-02-22
Changed
- Updated
bowsersubdependency from 2.7.0 to 2.9.0
Fixed
- Fixed an issue some people were having when importing the
bowsersubdependency. See #96 and #101 - Fixed a link in the readme. See #100
2.9.4 - 2019-10-21
Changed
- Updated
bowsersubdependency from 2.6.1 to 2.7.0. See #94
2.9.3 - 2019-09-30
Fixed
- Published a missing TypeScript type definition file. See #90
2.9.2 - 2019-09-20
Fixed
- Fixed a bug where a request from Firefox 4 could delete
default-srcfrom future responses - Fixed tablet PC detection by updating
bowsersubdependency to latest version
2.9.1 - 2019-09-04
Changed
- Updated
bowsersubdependency from 2.5.3 to 2.5.4. See #88
Fixed
- The "security" keyword was declared twice in package metadata. See #87
2.9.0 - 2019-08-28
Added
- Added TypeScript type definitions. See #86
Fixed
- Switched from
platformtobowserto quiet a security vulnerability warning. See #80
2.8.0 - 2019-07-24
Added
- Added a new
sandboxdirective,allow-downloads-without-user-activation(see #85) - Created a changelog
- Added some package metadata
Changed
- Updated documentation to use ES2015
- Updated documentation to remove dependency on UUID package
- Updated
content-security-policy-builderto 2.1.0 - Excluded some files from the npm package
Changes in versions 2.7.1 and below can be found in Helmet's changelog.