weboptimizer 3.0.22 → 3.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/browser.js +11 -2
  2. package/package.json +16 -17
  3. package/readme.md +2 -2
package/browser.js CHANGED
@@ -95,7 +95,16 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
95
95
  beforeParse: function beforeParse(window) {
96
96
  var _ref2;
97
97
  // We want to use it in a polymorphic way.
98
+ /*
99
+ eslint-disable
100
+ @typescript-eslint/no-unnecessary-type-assertion
101
+ */
98
102
  browser.window = (_ref2 = global.window) !== null && _ref2 !== void 0 ? _ref2 : window;
103
+ /*
104
+ eslint-enable
105
+ @typescript-eslint/no-unnecessary-type-assertion
106
+ */
107
+
99
108
  window.document.addEventListener('DOMContentLoaded', function () {
100
109
  /*
101
110
  Move template results into global
@@ -129,7 +138,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
129
138
  try {
130
139
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
131
140
  var callback = _step3.value;
132
- callback();
141
+ void callback();
133
142
  }
134
143
  } catch (err) {
135
144
  _iterator3.e(err);
@@ -204,7 +213,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
204
213
  try {
205
214
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
206
215
  var callback = _step4.value;
207
- callback();
216
+ void callback();
208
217
  }
209
218
  } catch (err) {
210
219
  _iterator4.e(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "3.0.22",
3
+ "version": "3.0.23",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -84,7 +84,6 @@
84
84
  "test:watch:all": "yarn test --watchAll",
85
85
  "update:documentation": "web-documentation"
86
86
  },
87
- "runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
88
87
  "dependencies": {
89
88
  "@babel/core": "^7.29.0",
90
89
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -92,13 +91,13 @@
92
91
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
93
92
  "@babel/plugin-syntax-top-level-await": "^7.14.5",
94
93
  "@babel/plugin-transform-runtime": "^7.29.0",
95
- "@babel/preset-env": "^7.29.2",
94
+ "@babel/preset-env": "^7.29.5",
96
95
  "@babel/preset-typescript": "^7.28.5",
97
96
  "@babel/runtime": "^7.29.2",
98
97
  "babel-loader": "^10.1.1",
99
98
  "babel-plugin-transform-modern-regexp": "^0.0.6",
100
99
  "babel-preset-minify": "^0.5.2",
101
- "clientnode": "4.0.1387",
100
+ "clientnode": "4.0.1397",
102
101
  "ejs": "^5.0.2",
103
102
  "exports-loader": "^5.0.0",
104
103
  "extract-loader": "^5.1.0",
@@ -107,13 +106,13 @@
107
106
  "html-minifier": "^4.0.0",
108
107
  "html-webpack-plugin": "^5.6.7",
109
108
  "imports-loader": "^5.0.0",
110
- "jest-environment-jsdom": "^30.3.0",
109
+ "jest-environment-jsdom": "^30.4.1",
111
110
  "rimraf": "^6.1.3",
112
111
  "script-loader": "^0.7.2",
113
112
  "typescript": "^6.0.3",
114
113
  "webpack": "^5.106.2",
115
114
  "webpack-cli": "^7.0.2",
116
- "webpack-sources": "^3.3.4"
115
+ "webpack-sources": "^3.4.1"
117
116
  },
118
117
  "devDependencies": {
119
118
  "@babel/cli": "^7.28.6",
@@ -125,42 +124,42 @@
125
124
  "@types/html-minifier": "^4.0.6",
126
125
  "@types/html-minifier-terser": "^7.0.2",
127
126
  "@types/imagemin": "^9.0.1",
128
- "@types/node": "^25.6.0",
127
+ "@types/node": "^25.9.0",
129
128
  "@types/postcss-import": "^14.0.3",
130
129
  "@types/postcss-url": "^10.0.4",
131
130
  "@types/webpack-env": "^1.18.8",
132
131
  "@types/webpack-sources": "^3.2.3",
133
- "@typescript-eslint/parser": "^8.59.0",
132
+ "@typescript-eslint/parser": "^8.59.3",
134
133
  "css-loader": "^7.1.4",
135
- "cssnano": "^7.1.7",
136
- "eslint": "^10.2.1",
134
+ "cssnano": "^8.0.1",
135
+ "eslint": "^10.4.0",
137
136
  "eslint-config-google": "^0.14.0",
138
137
  "eslint-plugin-jsdoc": "^62.9.0",
139
138
  "favicons": "^7.2.0",
140
139
  "favicons-webpack-plugin": "^6.0.1",
141
- "globals": "^17.5.0",
140
+ "globals": "^17.6.0",
142
141
  "image-minimizer-webpack-plugin": "^5.0.0",
143
142
  "jest": "^30.3.0",
144
143
  "jsdoc": "^4.0.5",
145
144
  "mini-css-extract-plugin": "^2.10.2",
146
145
  "mkdirp": "^3.0.1",
147
146
  "node-fetch": "^3.3.2",
148
- "postcss": "^8.5.10",
147
+ "postcss": "^8.5.14",
149
148
  "postcss-fontpath": "^1.0.0",
150
149
  "postcss-import": "^16.1.1",
151
150
  "postcss-loader": "^8.2.1",
152
- "postcss-preset-env": "^11.2.1",
151
+ "postcss-preset-env": "^11.3.0",
153
152
  "postcss-sprites": "^4.2.1",
154
153
  "postcss-url": "^10.1.3",
155
154
  "shx": "^0.4.0",
156
155
  "style-loader": "^4.0.0",
157
- "stylelint": "^17.8.0",
156
+ "stylelint": "^17.11.1",
158
157
  "stylelint-config-standard": "^40.0.0",
159
158
  "stylelint-config-standard-scss": "^17.0.0",
160
- "typescript-eslint": "^8.59.0",
159
+ "typescript-eslint": "^8.59.3",
161
160
  "typescript-plugin-css-modules": "^5.2.0",
162
- "web-documentation": "^1.0.2",
163
- "workbox-webpack-plugin": "^7.4.0"
161
+ "web-documentation": "^1.0.14",
162
+ "workbox-webpack-plugin": "^7.4.1"
164
163
  },
165
164
  "peerDependencies": {
166
165
  "@babel/eslint-parser": "*",
package/readme.md CHANGED
@@ -26,9 +26,9 @@ Project status
26
26
  [![code coverage](https://img.shields.io/coverallsCoverage/github/thaibault/weboptimizer?label=code%20coverage&style=for-the-badge)](https://coveralls.io/github/thaibault/weboptimizer)
27
27
 
28
28
  [![deploy web documentation](https://img.shields.io/github/actions/workflow/status/thaibault/weboptimizer/deploy-web-documentation.yaml?label=deploy%20web%20documentation&style=for-the-badge)](https://github.com/thaibault/weboptimizer/actions/workflows/deploy-web-documentation.yaml)
29
- [![documentation website](https://img.shields.io/website-up-down-green-red/https/torben.website/weboptimizer.svg?label=documentation-website&style=for-the-badge)](https://torben.website/weboptimizer)
29
+ [![web documentation](https://img.shields.io/website-up-down-green-red/https/torben.website/weboptimizer.svg?label=web-documentation&style=for-the-badge)](https://torben.website/weboptimizer)
30
30
 
31
- [![Try out](https://img.shields.io/badge/Try%20it%20on%20runkit-%2345cc11?style=for-the-badge)](https://npm.runkit.com/weboptimizer)
31
+ [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=for-the-badge&logo=codesandbox)](https://githubbox.com/thaibault/weboptimizer)
32
32
 
33
33
  Use case
34
34
  --------