nornagon / saxi

Tools & library for driving the AxiDraw pen plotter
GNU Affero General Public License v3.0
472 stars 55 forks source link

chore(deps): update dependency worker-loader to v3 #166

Closed alexrudd2 closed 1 year ago

alexrudd2 commented 1 year ago

Fixes the following warnings:

(node:20330) [DEP_WEBPACK_COMPILATION_CACHE] DeprecationWarning: 
Compilation.cache was removed in favor of Compilation.getCache()
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:20330) 
[DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH] 
DeprecationWarning: [hash] is now [fullhash] (also consider using 
[chunkhash] or [contenthash], see documentation for details)
(node:20330) [DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_INDEXER] 
DeprecationWarning: chunk.files was changed from Array to Set (indexing 
Array is deprecated)

Note: it should be possible to drop this altogether but I couldn't quite get it to work: https://webpack.js.org/guides/web-workers/

alexrudd2 commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
worker-loader ^2.0.0 -> ^3.0.0 age adoption passing confidence

Release Notes

webpack-contrib/worker-loader (worker-loader) ### [`v3.0.8`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​308-httpsgithubcomwebpack-contribworker-loadercomparev307v308-2021-02-11) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.7...v3.0.8) ### [`v3.0.7`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​307-httpsgithubcomwebpack-contribworker-loadercomparev306v307-2020-12-23) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.6...v3.0.7) ### [`v3.0.6`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​306-httpsgithubcomwebpack-contribworker-loadercomparev305v306-2020-12-02) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.5...v3.0.6) ### [`v3.0.5`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​305-httpsgithubcomwebpack-contribworker-loadercomparev304v305-2020-10-16) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.4...v3.0.5) ### [`v3.0.4`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomwebpack-contribworker-loadercomparev303v304-2020-10-09) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.3...v3.0.4) ### [`v3.0.3`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomwebpack-contribworker-loadercomparev302v303-2020-09-22) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.2...v3.0.3) ### [`v3.0.2`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomwebpack-contribworker-loadercomparev301v302-2020-08-22) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.1...v3.0.2) ### [`v3.0.1`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomwebpack-contribworker-loadercomparev300v301-2020-08-05) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v3.0.0...v3.0.1) ### [`v3.0.0`](https://togithub.com/webpack-contrib/worker-loader/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomwebpack-contribworker-loadercomparev200v300-2020-08-01) [Compare Source](https://togithub.com/webpack-contrib/worker-loader/compare/v2.0.0...v3.0.0) ##### ⚠ BREAKING CHANGES - minimum supported Node.js version is `10.13` - minimum supported webpack version is `4` - the `name` option was renamed to the `filename` option - switch on ES module syntax by default, use the `esModule` option if you need backward compatibility with Common JS modules - the `fallback` option was removed in favor the `inline` option, the `inline` option accepts only `fallback` and `no-fallback` values - the `publicPath` option default value based on `output.publicPath` - the `filename` option default value based on `output.filename` ##### Features - added the `worker` option (replaces [#​178](https://togithub.com/webpack-contrib/worker-loader/issues/178)) ([#​247](https://togithub.com/webpack-contrib/worker-loader/issues/247)) ([f03498d](https://togithub.com/webpack-contrib/worker-loader/commit/f03498d22c6a3737b724c51bdfb56627e33b57b2)) - added the `chunkFilename` option, default value based on `output.chunkFilename` ([905ed7b](https://togithub.com/webpack-contrib/worker-loader/commit/905ed7b028bbcb646050a1d09096dbe2fc1feb42)) - added the `esModule` option - allow to use any web worker constructor and options for constructor - the `publicPath` option can be `Function` - the `filename` (previously `name`) option can be `Function` ##### Bug Fixes - support `WASM` ([152634c](https://togithub.com/webpack-contrib/worker-loader/commit/152634c0d8866d248ced3b6e5ac02761c978ae1a)) - respect `externals` ([#​264](https://togithub.com/webpack-contrib/worker-loader/issues/264)) ([1e761ed](https://togithub.com/webpack-contrib/worker-loader/commit/1e761edcbfc8b214ae3a19f44f401f20ab07b718)) - memory leak for inline web workers ([#​252](https://togithub.com/webpack-contrib/worker-loader/issues/252)) ([f729e34](https://togithub.com/webpack-contrib/worker-loader/commit/f729e342922180bf3b375a8d2ea6e1b72ca95d74)) - source maps when `inline` using without fallback ([#​269](https://togithub.com/webpack-contrib/worker-loader/issues/269)) ([5047abb](https://togithub.com/webpack-contrib/worker-loader/commit/5047abb2f9b97ff4706069716df8e718bee9de43)) - the `publicPath` options works fine with async web workers chunks - compatibility with webpack@5 ([#​259](https://togithub.com/webpack-contrib/worker-loader/issues/259)) ([e0d9887](https://togithub.com/webpack-contrib/worker-loader/commit/e0d98876c6ee83bc48ea9589b38437590878e9d9)) - always use `self` as global object - compatibility with `webpack-dev-server` - increase performance