create-react-microservice
create-react-microservice copied to clipboard
TASK: Update dependency helmet to v6
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| helmet (source) | 3.23.3 -> 6.0.0 |
Release Notes
helmetjs/helmet
v6.0.0
Changed
- Breaking:
helmet.contentSecurityPolicyno longer setsblock-all-mixed-contentdirective by default - Breaking:
helmet.expectCtis no longer set by default. It can, however, be explicitly enabled. It will be removed in Helmet 7. See #β310 - Breaking: Increase TypeScript strictness around some arguments. Only affects TypeScript users, and may not require any code changes. See #β369
helmet.frameguardno longer offers a specific error when trying to useALLOW-FROM; it just says that it is unsupported. Only the error message has changed
Removed
- Breaking: Dropped support for Node 12 and 13. Node 14+ is now required
v5.1.1
Changed
v5.1.0
Added
Cross-Origin-Embedder-Policy: supportcredentiallesspolicy. See #β365- Documented how to set both
Content-Security-PolicyandContent-Security-Policy-Report-Only
Changed
- Cleaned up some documentation around
Origin-Agent-Cluster
v5.0.2
Changed
- Improve imports for CommonJS and ECMAScript modules. See #β345
- Fixed some documentation
v5.0.1
Changed
- Fixed some documentation
Removed
- Removed some unused internal code
v5.0.0
Added
- ECMAScript module imports (i.e.,
import helmet from "helmet"andimport { frameguard } from "helmet"). See #β320
Changed
- Breaking:
helmet.contentSecurityPolicy:useDefaultsoption now defaults totrue - Breaking:
helmet.contentSecurityPolicy:form-actiondirective is now set to'self'by default - Breaking:
helmet.crossOriginEmbedderPolicyis enabled by default - Breaking:
helmet.crossOriginOpenerPolicyis enabled by default - Breaking:
helmet.crossOriginResourcePolicyis enabled by default - Breaking:
helmet.originAgentClusteris enabled by default helmet.frameguard: add TypeScript editor autocomplete. See #β322- Top-level
helmet()function is slightly faster
Removed
- Breaking: Drop support for Node 10 and 11. Node 12+ is now required
v4.6.0
Added
helmet.contentSecurityPolicy: theuseDefaultsoption, defaulting tofalse, lets you selectively override defaults more easily- Explicitly define TypeScript types in
package.json. See #β303
v4.5.0
Added
helmet.crossOriginEmbedderPolicy: a new middleware for theCross-Origin-Embedder-Policyheader, disabled by defaulthelmet.crossOriginOpenerPolicy: a new middleware for theCross-Origin-Opener-Policyheader, disabled by defaulthelmet.crossOriginResourcePolicy: a new middleware for theCross-Origin-Resource-Policyheader, disabled by default
Changed
trueenables a middleware with default options. Previously, this would fail with an error if the middleware was already enabled by default.- Log a warning when passing options to
originAgentClusterat the top level
Fixed
- Incorrect documentation
v4.4.1
Changed
- Shrink the published package by about 2.5 kB
v4.4.0
Added
helmet.originAgentCluster: a new middleware for theOrigin-Agent-Clusterheader, disabled by default
v4.3.1
Fixed
helmet.contentSecurityPolicy: broken TypeScript types. See #β283
v4.3.0
Added
helmet.contentSecurityPolicy: setting thedefault-srctohelmet.contentSecurityPolicy.dangerouslyDisableDefaultSrcdisables it
Changed
helmet.frameguard: slightly improved error messages for non-strings
v4.2.0
Added
helmet.contentSecurityPolicy: get the default directives withcontentSecurityPolicy.getDefaultDirectives()
Changed
helmet()now supports objects that don't haveObject.prototypein their chain, such asObject.create(null), as optionshelmet.expectCt:max-ageis now first. See #β264
v4.1.1
Changed
- Fixed a few errors in the README
v4.1.0
Added
helmet.contentSecurityPolicy:- Directive values can now include functions, as they could in Helmet 3. See #β243
Changed
- Helmet should now play more nicely with TypeScript
Removed
- The
HelmetOptionsinterface is no longer exported. This only affects TypeScript users. If you need the functionality back, see this comment
v4.0.0
See the Helmet 4 upgrade guide for help upgrading from Helmet 3.
Added
helmet.contentSecurityPolicy:- If no
default-srcdirective is supplied, an error is thrown - Directive lists can be any iterable, not just arrays
- If no
Changed
- This package no longer has dependencies. This should have no effect on end users, other than speeding up installation time.
helmet.contentSecurityPolicy:- 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
helmet.xssFilternow disables the buggy XSS filter by default. See #β230
Removed
- Dropped support for old Node versions. Node 10+ is now required
helmet.featurePolicy. If you still need it, use thefeature-policypackage on npm.helmet.hpkp. If you still need it, use thehpkppackage on npm.helmet.noCache. If you still need it, use thenocachepackage on npm.helmet.contentSecurityPolicy:- Removed browser sniffing (including the
browserSniffanddisableAndroidparameters). See helmetjs/csp#β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. - Removed the
looseoption - Removed support for functions as directive values. You must supply an iterable of strings
- Removed browser sniffing (including the
helmet.frameguard:- Dropped support for the
ALLOW-FROMaction. Read more here.
- Dropped support for the
helmet.hidePoweredByno longer accepts arguments. See this article to see how to replicate the removed behavior. See #β224.helmet.hsts:- Dropped support for
includeSubdomainswith a lowercase D. See #β231 - Dropped support for
setIf. Read this if you need help. See #β232
- Dropped support for
helmet.xssFilterno longer accepts options. Read "How to disable blocking with X-XSS-Protection" and "How to enable thereportdirective with X-XSS-Protection" if you need the legacy behavior.
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» 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.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.