feature-policy
Advanced tools
Comparing version 0.4.0 to 0.5.0
# Changelog | ||
## 0.5.0 - 2020-04-16 | ||
### Added | ||
- 7 new features: `battery`, `displayCapture`, `executionWhileNotRendered`, `executionWhileOutOfViewport`, `navigationOverride`, `publickeyCredentials`, and `xrSpatialTracking` | ||
## 0.4.0 - 2019-09-01 | ||
## Changed | ||
### Changed | ||
- Drop support for Node <8 | ||
@@ -6,0 +10,0 @@ - Duplicate values are no longer allowed. See [#4](https://github.com/helmetjs/feature-policy/issues/4) |
@@ -19,6 +19,10 @@ "use strict"; | ||
autoplay: 'autoplay', | ||
battery: 'battery', | ||
camera: 'camera', | ||
displayCapture: 'display-capture', | ||
documentDomain: 'document-domain', | ||
documentWrite: 'document-write', | ||
encryptedMedia: 'encrypted-media', | ||
executionWhileNotRendered: 'execution-while-not-rendered', | ||
executionWhileOutOfViewport: 'execution-while-out-of-viewport', | ||
fontDisplayLateSwap: 'font-display-late-swap', | ||
@@ -34,2 +38,3 @@ fullscreen: 'fullscreen', | ||
midi: 'midi', | ||
navigationOverride: 'navigation-override', | ||
notifications: 'notifications', | ||
@@ -39,2 +44,3 @@ oversizedImages: 'oversized-images', | ||
pictureInPicture: 'picture-in-picture', | ||
publickeyCredentials: 'publickey-credentials', | ||
push: 'push', | ||
@@ -55,2 +61,3 @@ serial: 'serial', | ||
xr: 'xr', | ||
xrSpatialTracking: 'xr-spatial-tracking', | ||
}; | ||
@@ -57,0 +64,0 @@ if (!isPlainObject(options)) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Middleware to set the Feature-Policy HTTP header", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -46,17 +46,17 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/connect": "^3.4.32", | ||
"@types/connect": "^3.4.33", | ||
"@types/dashify": "^1.0.0", | ||
"@types/jest": "^24.0.18", | ||
"@types/jest": "^25.2.1", | ||
"@types/supertest": "^2.0.8", | ||
"@typescript-eslint/eslint-plugin": "^2.0.0", | ||
"@typescript-eslint/parser": "^2.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.28.0", | ||
"@typescript-eslint/parser": "^2.28.0", | ||
"connect": "^3.7.0", | ||
"dashify": "^2.0.0", | ||
"eslint": "^6.3.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-helmet": "^0.2.0", | ||
"jest": "^24.9.0", | ||
"jest": "^25.3.0", | ||
"supertest": "^4.0.2", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.6.2" | ||
"ts-jest": "^25.3.1", | ||
"typescript": "^3.8.3" | ||
} | ||
} |
@@ -29,6 +29,10 @@ Feature Policy | ||
* `autoplay` | ||
* `battery` | ||
* `camera` | ||
* `displayCapture` | ||
* `documentDomain` | ||
* `documentWrite` | ||
* `encryptedMedia` | ||
* `executionWhileNotRendered` | ||
* `executionWhileOutOfViewport` | ||
* `fontDisplayLateSwap` | ||
@@ -44,5 +48,9 @@ * `fullscreen` | ||
* `midi` | ||
* `navigationOverride` | ||
* `notifications` | ||
* `oversizedImages` | ||
* `payment` | ||
* `pictureInPicture` | ||
* `publickeyCredentials` | ||
* `push` | ||
* `serial` | ||
@@ -62,1 +70,2 @@ * `speaker` | ||
* `xr` | ||
* `xrSpatialTracking` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10546
122
69