@trackunit/iris-app-sdk-webpack 1.9.21 → 1.9.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 1.9.23 (2026-01-09)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated iris-app-build-utilities to 1.9.22
6
+ - Updated iris-app-webpack-plugin to 1.9.22
7
+ - Updated iris-app-api to 1.12.22
8
+ - Updated shared-utils to 1.11.22
9
+
10
+ ## 1.9.22 (2026-01-09)
11
+
12
+ ### 🧱 Updated Dependencies
13
+
14
+ - Updated iris-app-build-utilities to 1.9.21
15
+ - Updated iris-app-webpack-plugin to 1.9.21
16
+ - Updated iris-app-api to 1.12.21
17
+ - Updated shared-utils to 1.11.21
18
+
1
19
  ## 1.9.21 (2026-01-08)
2
20
 
3
21
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-sdk-webpack",
3
- "version": "1.9.21",
3
+ "version": "1.9.23",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "executors": "./executors.json",
@@ -8,8 +8,8 @@
8
8
  "node": ">=24.x"
9
9
  },
10
10
  "dependencies": {
11
- "webpack": "5.97.1",
12
- "@nx/devkit": "21.2.1",
11
+ "webpack": "5.101.3",
12
+ "@nx/devkit": "21.6.10",
13
13
  "rxjs": "7.8.1",
14
14
  "webpack-dev-server": "5.2.1",
15
15
  "win-ca": "^3.5.1",
@@ -17,10 +17,10 @@
17
17
  "semver": "7.5.4",
18
18
  "copy-webpack-plugin": "11.0.0",
19
19
  "webpack-bundle-analyzer": "^4.8.0",
20
- "@trackunit/iris-app-build-utilities": "1.9.20",
21
- "@trackunit/shared-utils": "1.11.20",
22
- "@trackunit/iris-app-api": "1.12.20",
23
- "@trackunit/iris-app-webpack-plugin": "1.9.20",
20
+ "@trackunit/iris-app-build-utilities": "1.9.22",
21
+ "@trackunit/shared-utils": "1.11.22",
22
+ "@trackunit/iris-app-api": "1.12.22",
23
+ "@trackunit/iris-app-webpack-plugin": "1.9.22",
24
24
  "tslib": "^2.6.2"
25
25
  },
26
26
  "types": "./src/index.d.ts",
@@ -1,9 +1,11 @@
1
1
  import { Observable } from "rxjs";
2
2
  import webpack = require("webpack");
3
+ type WebpackConfig = webpack.Configuration;
3
4
  /**
4
5
  * Run webpack with the given configuration.
5
6
  *
6
7
  * @param {WebpackConfig} config the webpack configuration
7
8
  * @returns {*} {Observable<any>}
8
9
  */
9
- export declare function doRunWebpack(config: webpack.Configuration): Observable<webpack.Stats>;
10
+ export declare function doRunWebpack(config: WebpackConfig): Observable<webpack.Stats>;
11
+ export {};
@@ -13,6 +13,9 @@ function doRunWebpack(config) {
13
13
  return new rxjs_1.Observable(subscriber => {
14
14
  const { watch, ...normalizedConfig } = config;
15
15
  const webpackCompiler = webpack(normalizedConfig);
16
+ if (webpackCompiler === null) {
17
+ throw new Error("Failed to run webpack. Webpack compiler was null");
18
+ }
16
19
  const callback = (err, stats) => {
17
20
  if (err) {
18
21
  subscriber.error(err);
@@ -1 +1 @@
1
- {"version":3,"file":"webpack.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/webpack/src/executors/build/webpack.ts"],"names":[],"mappings":";;AAUA,oCA4BC;AAtCD,+BAAkC;AAClC,mCAAoC;AAGpC;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,MAA6B;IACxD,OAAO,IAAI,iBAAU,CAAC,UAAU,CAAC,EAAE;QACjC,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,GAAG,MAAM,CAAC;QAC9C,MAAM,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAElD,MAAM,QAAQ,GAAG,CAAC,GAA6B,EAAE,KAAgC,EAAE,EAAE;YACnF,IAAI,GAAG,EAAE,CAAC;gBACR,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;YACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAAC;QAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjB,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;YAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;YAC/D,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3D,CAAC;aAAM,CAAC;YACN,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,GAA6B,EAAE,KAAgC,EAAE,EAAE;gBAC7F,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBACrB,eAAe,CAAC,KAAK,CAAC,CAAC,QAAkC,EAAE,EAAE;oBAC3D,IAAI,QAAQ,EAAE,CAAC;wBACb,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;oBAC7B,CAAC;oBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Observable } from \"rxjs\";\nimport webpack = require(\"webpack\");\n\ntype WebpackConfig = webpack.Configuration;\n/**\n * Run webpack with the given configuration.\n *\n * @param {WebpackConfig} config the webpack configuration\n * @returns {*} {Observable<any>}\n */\nexport function doRunWebpack(config: webpack.Configuration): Observable<webpack.Stats> {\n return new Observable(subscriber => {\n const { watch, ...normalizedConfig } = config;\n const webpackCompiler = webpack(normalizedConfig);\n\n const callback = (err: Error | null | undefined, stats: webpack.Stats | undefined) => {\n if (err) {\n subscriber.error(err);\n }\n subscriber.next(stats);\n };\n\n if (config.watch) {\n const watchOptions = config.watchOptions || {};\n const watching = webpackCompiler.watch(watchOptions, callback);\n return () => watching.close(() => subscriber.complete());\n } else {\n return webpackCompiler.run((err: Error | null | undefined, stats: webpack.Stats | undefined) => {\n callback(err, stats);\n webpackCompiler.close((closeErr: Error | null | undefined) => {\n if (closeErr) {\n subscriber.error(closeErr);\n }\n subscriber.complete();\n });\n });\n }\n });\n}\n"]}
1
+ {"version":3,"file":"webpack.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/webpack/src/executors/build/webpack.ts"],"names":[],"mappings":";;AAUA,oCAgCC;AA1CD,+BAAkC;AAClC,mCAAoC;AAGpC;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,MAAqB;IAChD,OAAO,IAAI,iBAAU,CAAC,UAAU,CAAC,EAAE;QACjC,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,GAAG,MAAM,CAAC;QAC9C,MAAM,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAElD,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,QAAQ,GAAG,CAAC,GAA6B,EAAE,KAAgC,EAAE,EAAE;YACnF,IAAI,GAAG,EAAE,CAAC;gBACR,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;YACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAAC;QAEF,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjB,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;YAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;YAC/D,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3D,CAAC;aAAM,CAAC;YACN,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,GAA6B,EAAE,KAAgC,EAAE,EAAE;gBAC7F,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBACrB,eAAe,CAAC,KAAK,CAAC,CAAC,QAAkC,EAAE,EAAE;oBAC3D,IAAI,QAAQ,EAAE,CAAC;wBACb,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;oBAC7B,CAAC;oBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Observable } from \"rxjs\";\nimport webpack = require(\"webpack\");\n\ntype WebpackConfig = webpack.Configuration;\n/**\n * Run webpack with the given configuration.\n *\n * @param {WebpackConfig} config the webpack configuration\n * @returns {*} {Observable<any>}\n */\nexport function doRunWebpack(config: WebpackConfig): Observable<webpack.Stats> {\n return new Observable(subscriber => {\n const { watch, ...normalizedConfig } = config;\n const webpackCompiler = webpack(normalizedConfig);\n\n if (webpackCompiler === null) {\n throw new Error(\"Failed to run webpack. Webpack compiler was null\");\n }\n\n const callback = (err: Error | null | undefined, stats: webpack.Stats | undefined) => {\n if (err) {\n subscriber.error(err);\n }\n subscriber.next(stats);\n };\n\n if (config.watch) {\n const watchOptions = config.watchOptions || {};\n const watching = webpackCompiler.watch(watchOptions, callback);\n return () => watching.close(() => subscriber.complete());\n } else {\n return webpackCompiler.run((err: Error | null | undefined, stats: webpack.Stats | undefined) => {\n callback(err, stats);\n webpackCompiler.close((closeErr: Error | null | undefined) => {\n if (closeErr) {\n subscriber.error(closeErr);\n }\n subscriber.complete();\n });\n });\n }\n });\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import { Observable } from "rxjs";
2
2
  import webpack = require("webpack");
3
+ type WebpackStats = webpack.Stats;
3
4
  /**
4
5
  * Run webpack with the given configuration.
5
6
  *
@@ -7,6 +8,7 @@ import webpack = require("webpack");
7
8
  * @returns { Observable<{ stats:WebpackStats; baseUrl: string }> } the observable of webpack stats and base url
8
9
  */
9
10
  export declare function doRunWebpackDevServer(config: webpack.Configuration): Observable<{
10
- stats: webpack.Stats;
11
+ stats: WebpackStats;
11
12
  baseUrl: string;
12
13
  }>;
14
+ export {};
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.doRunWebpackDevServer = doRunWebpackDevServer;
4
+ const tslib_1 = require("tslib");
4
5
  const rxjs_1 = require("rxjs");
5
- const WebpackDevServer = require("webpack-dev-server");
6
+ const webpack_dev_server_1 = tslib_1.__importDefault(require("webpack-dev-server"));
7
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
6
8
  const webpack = require("webpack");
7
9
  /**
8
10
  * Run webpack with the given configuration.
@@ -13,6 +15,9 @@ const webpack = require("webpack");
13
15
  function doRunWebpackDevServer(config) {
14
16
  return new rxjs_1.Observable(subscriber => {
15
17
  const webpackCompiler = webpack.webpack(config);
18
+ if (webpackCompiler === null) {
19
+ throw new Error("Failed to start webpack dev server. Webpack compiler was null");
20
+ }
16
21
  let baseUrl;
17
22
  webpackCompiler.hooks.done.tap("build-webpack", stats => {
18
23
  subscriber.next({ stats, baseUrl });
@@ -26,7 +31,7 @@ function doRunWebpackDevServer(config) {
26
31
  const devServerOptions = server.options;
27
32
  baseUrl = `${server.options.server === "https" ? "https" : "http"}://${server.options.host}:${server.options.port}${devServerOptions.devMiddleware?.publicPath}`;
28
33
  };
29
- const webpackServer = new WebpackDevServer(devServerConfig, webpackCompiler);
34
+ const webpackServer = new webpack_dev_server_1.default(devServerConfig, webpackCompiler);
30
35
  webpackServer.start().catch((err) => subscriber.error(err));
31
36
  return () => webpackServer.stop();
32
37
  });
@@ -1 +1 @@
1
- {"version":3,"file":"webpackDevServer.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/webpack/src/executors/serve/webpackD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CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Observable } from \"rxjs\";\nimport WebpackDevServer = require(\"webpack-dev-server\");\nimport webpack = require(\"webpack\");\n\ntype WebpackStats = webpack.Stats;\n/**\n * Run webpack with the given configuration.\n *\n * @param config the input webpack configuration\n * @returns { Observable<{ stats:WebpackStats; baseUrl: string }> } the observable of webpack stats and base url\n */\nexport function doRunWebpackDevServer(\n config: webpack.Configuration\n): Observable<{ stats: webpack.Stats; baseUrl: string }> {\n return new Observable(subscriber => {\n const webpackCompiler = webpack.webpack(config);\n\n let baseUrl: string;\n\n webpackCompiler.hooks.done.tap(\"build-webpack\", stats => {\n subscriber.next({ stats, baseUrl });\n });\n\n const devServerConfig = config.devServer || {};\n\n const originalOnListen = devServerConfig.onListening;\n\n devServerConfig.onListening = function (server: WebpackDevServer) {\n if (originalOnListen) {\n originalOnListen(server);\n }\n\n const devServerOptions: WebpackDevServer.Configuration = server.options;\n\n baseUrl = `${server.options.server === \"https\" ? \"https\" : \"http\"}://${server.options.host}:${\n server.options.port\n }${devServerOptions.devMiddleware?.publicPath}`;\n };\n\n const webpackServer = new WebpackDevServer(devServerConfig, webpackCompiler);\n\n webpackServer.start().catch((err: Error) => subscriber.error(err));\n return () => webpackServer.stop();\n });\n}\n"]}
1
+ {"version":3,"file":"webpackDevServer.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/webpack/src/executors/serve/webpackDevServer.ts"],"names":[],"mappings":";;AAYA,sDAoCC;;AAhDD,+BAAkC;AAClC,oFAAkD;AAClD,iEAAiE;AACjE,mCAAoC;AAGpC;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,MAA6B;IAE7B,OAAO,IAAI,iBAAU,CAAC,UAAU,CAAC,EAAE;QACjC,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;QACnF,CAAC;QAED,IAAI,OAAe,CAAC;QAEpB,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE;YACtD,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;QAE/C,MAAM,gBAAgB,GAAG,eAAe,CAAC,WAAW,CAAC;QAErD,eAAe,CAAC,WAAW,GAAG,UAAU,MAAwB;YAC9D,IAAI,gBAAgB,EAAE,CAAC;gBACrB,gBAAgB,CAAC,MAAM,CAAC,CAAC;YAC3B,CAAC;YAED,MAAM,gBAAgB,GAAmC,MAAM,CAAC,OAAO,CAAC;YAExE,OAAO,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,IACxF,MAAM,CAAC,OAAO,CAAC,IACjB,GAAG,gBAAgB,CAAC,aAAa,EAAE,UAAU,EAAE,CAAC;QAClD,CAAC,CAAC;QAEF,MAAM,aAAa,GAAG,IAAI,4BAAgB,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAE7E,aAAa,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,GAAU,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QACnE,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Observable } from \"rxjs\";\nimport WebpackDevServer from \"webpack-dev-server\";\n// eslint-disable-next-line @typescript-eslint/no-require-imports\nimport webpack = require(\"webpack\");\n\ntype WebpackStats = webpack.Stats;\n/**\n * Run webpack with the given configuration.\n *\n * @param config the input webpack configuration\n * @returns { Observable<{ stats:WebpackStats; baseUrl: string }> } the observable of webpack stats and base url\n */\nexport function doRunWebpackDevServer(\n config: webpack.Configuration\n): Observable<{ stats: WebpackStats; baseUrl: string }> {\n return new Observable(subscriber => {\n const webpackCompiler = webpack.webpack(config);\n if (webpackCompiler === null) {\n throw new Error(\"Failed to start webpack dev server. Webpack compiler was null\");\n }\n\n let baseUrl: string;\n\n webpackCompiler.hooks.done.tap(\"build-webpack\", stats => {\n subscriber.next({ stats, baseUrl });\n });\n\n const devServerConfig = config.devServer || {};\n\n const originalOnListen = devServerConfig.onListening;\n\n devServerConfig.onListening = function (server: WebpackDevServer) {\n if (originalOnListen) {\n originalOnListen(server);\n }\n\n const devServerOptions: WebpackDevServer.Configuration = server.options;\n\n baseUrl = `${server.options.server === \"https\" ? \"https\" : \"http\"}://${server.options.host}:${\n server.options.port\n }${devServerOptions.devMiddleware?.publicPath}`;\n };\n\n const webpackServer = new WebpackDevServer(devServerConfig, webpackCompiler);\n\n webpackServer.start().catch((err: Error) => subscriber.error(err));\n return () => webpackServer.stop();\n });\n}\n"]}