Skip to content

Releases: waysact/webpack-subresource-integrity

v5.2.0-rc.1

22 Feb 17:12
48644cf
Compare
Choose a tag to compare
v5.2.0-rc.1 Pre-release
Pre-release
  • Performance optimizations for big projects (#189)
  • Add ES module distribution (CommonJS still available)
  • Internal refactoring
  • Dev dependency upgrades

v5.1.0

12 Jan 23:16
ad9265e
Compare
Choose a tag to compare
  • Allow deferred loading of hashes. Specifying the new option hashLoading: "lazy" will cause integrity hashes for any given asset to be defined in its direct parents in the chunk graph. This can lead to duplication of hashes across assets, but can significantly reduce the size of entry chunk(s) when there are a large number of async chunks. (#171)

v5.0.0

24 Aug 20:47
Compare
Choose a tag to compare

No changes compared to v5.0.0-rc.1.

Changes compared to v1.5.2:

BREAKING CHANGES

(See migrating from v1 to v5.)

  • Drop compatibility with Webpack < 5.12.0.
  • Drop compatibility with Node < 10.
  • Drop compatibility with html-webpack-plugin < 5.0.0-beta.1.
  • Drop default export, new named export SubresourceIntegrityPlugin.
  • When integrity for an asset cannot be determined this now emits an error. Previously, a warning was emitted.
  • Option enabled now defaults to "auto", which enables the plugin in all Webpack modes except for development. Previously, the plugin was disabled by default in all modes.

Other Changes

  • Compatibility with html-webpack-plugin 5 and new Webpack 5 asset processing pipeline.
  • Option hashFuncNames now has a default: ["sha384"].
  • All code has been rewritten in TypeScript. We now include TypeScript type definitions inside the package.
  • No longer imports webpack (#150)
  • Warn when using dangerous filename hashes (#162)

v5.0.0-rc.1

02 Aug 10:53
Compare
Choose a tag to compare
v5.0.0-rc.1 Pre-release
Pre-release
  • Warn when using dangerous filename hashes (#162)
  • Minor non-functional changes

v5.0.0-alpha.5

03 Mar 06:59
8911318
Compare
Choose a tag to compare
v5.0.0-alpha.5 Pre-release
Pre-release
  • Fix handling of chunks with multiple files (#154)
  • Fix stats factory when using real content hash

v5.0.0-alpha.4

24 Feb 23:39
50e743e
Compare
Choose a tag to compare
v5.0.0-alpha.4 Pre-release
Pre-release
  • Fix real content hash generation (#152)

v5.0.0-alpha.3

10 Feb 05:02
cc0bc1a
Compare
Choose a tag to compare
v5.0.0-alpha.3 Pre-release
Pre-release
  • Do not import webpack (#150)

    Adds compatibility with Next.js 10.0.6. Please note that installing this plugin in Next.js is not enough to gain integrity since top-level assets will remain unprotected.

v5.0.0-alpha.2

10 Feb 00:48
c7ef9d6
Compare
Choose a tag to compare
v5.0.0-alpha.2 Pre-release
Pre-release
  • Fix error when a processed tag has no attributes (#147)

v5.0.0-alpha.1

19 Jan 22:03
b7e6371
Compare
Choose a tag to compare
v5.0.0-alpha.1 Pre-release
Pre-release

BREAKING CHANGES

  • Drop compatibility with Webpack < 5.12.0.
  • Drop compatibility with Node < 10.
  • Drop compatibility with html-webpack-plugin < 5.0.0-beta.1.
  • Drop default export, new named export SubresourceIntegrityPlugin.
  • When integrity for an asset cannot be determined this now emits an error. Previously, a warning was emitted.
  • Option enabled now defaults to "auto", which enables the plugin in all Webpack modes except for development. Previously, the plugin was disabled by default in all modes.

Other Changes

  • Compatibility with html-webpack-plugin 5 and new Webpack 5 asset processing pipeline.
  • Option hashFuncNames now has a default: ["sha384"].
  • All code has been rewritten in TypeScript. We now include TypeScript type definitions inside the package.

v1.5.2

05 Nov 08:57
4c965fc
Compare
Choose a tag to compare
  • Fix dynamic loading of named chunks in Webpack 5 (#135)
  • Fix bogus warnings about non-Web builds with some of Webpack 5's new target types (#134)