Skip to content

Releases: trezy/next-safe

v3.1.1

07 Nov 16:14
8ff3a5b
Compare
Choose a tag to compare

3.1.1 (2021-11-07)

Bug Fixes

  • buildPermissionsPolicyHeaders: set initial reducer value so we pass curnch fns an actual object (026c6e2)

v3.1.0

17 Oct 16:03
3f514a8
Compare
Choose a tag to compare

3.1.0 (2021-10-17)

Bug Fixes

  • prevent dev mode from causing errors if connect, script, or style are undefined (51def8b)
  • properly set dev headers instead of throwing away the concatenated value (970486e)
  • remove semicolon added in error (c107ddc)
  • use correct src directory for prepublish step (12f1f69)

Features

  • add jsdoc typedefs for function API (5630f1b)
  • allow PermissionsPolicy to be disabled by setting permissionsPolicy to false (63b00ae)
  • allow security headers to be disabled by passing false (3cea4b9)
  • disable CSP by setting contentSecurityPolicy to false (1a40219)

v3.0.1

22 May 20:11
f6506da
Compare
Choose a tag to compare

3.0.1 (2021-05-22)

Bug Fixes

  • buildPermissionsPolicyHeaders: remove extra parens from empty permissions-policy declarations (f6506da)

v3.0.0

21 May 19:30
1267e48
Compare
Choose a tag to compare

3.0.0 (2021-05-21)

TL;DR

✅ Support for the latest version of Permissions-Policy
✅ No more require(‘next-safe’).default when importing

Code Refactoring

  • convert source to commonjs (1a61f97), closes #2
  • update permissions-policy format (872dd0d), closes #4

BREAKING CHANGES

  • removes the .default export
  • Changes the format of the permissions-policy header

v2.0.0

05 Jan 21:40
2edd5b6
Compare
Choose a tag to compare

2.0.0 (2021-01-05)

Bug Fixes

  • buildcspheaders: handle error when passing empty object or no arg (1b56177)
  • buildpermissionspolicyheaders: allow empty permissions policy to use all defaults (2edd5b6)

Build System

  • switch from Rollup to Webpack (201ea67)

BREAKING CHANGES

  • Eliminates the .mjs module in favor of UMD pattern