@trackunit/iris-app-sdk-vite 1.11.13 → 1.11.18

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,57 @@
1
+ ## 1.11.18 (2026-10-29)
2
+
3
+ ### 🚀 Features
4
+
5
+ - ⚠️ **iris-app-build-utilities:** one migrate suggestion instead of per-package version warnings [SDK-569] ([#27025](https://github.com/Trackunit/manager/pull/27025))
6
+
7
+ ### ⚠️ Breaking Changes
8
+
9
+ - **iris-app-build-utilities:** one migrate suggestion instead of per-package version warnings [SDK-569] ([#27025](https://github.com/Trackunit/manager/pull/27025))
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated iris-app-build-utilities to 3.0.0
14
+ - Updated iris-app-api to 2.12.17
15
+ - Updated iris-app to 2.15.1
16
+
17
+ ### ❤️ Thank You
18
+
19
+ - Mikkel Thorbjørn Andersen @mta-trackunit
20
+
21
+ ## 1.11.17 (2026-10-29)
22
+
23
+ ### 🧱 Updated Dependencies
24
+
25
+ - Updated iris-app-build-utilities to 2.10.16
26
+ - Updated iris-app-api to 2.12.16
27
+ - Updated iris-app to 2.15.0
28
+
29
+ ## 1.11.16 (2026-10-29)
30
+
31
+ ### 🧱 Updated Dependencies
32
+
33
+ - Updated iris-app-build-utilities to 2.10.15
34
+ - Updated iris-app-api to 2.12.15
35
+ - Updated iris-app to 2.14.15
36
+
37
+ ## 1.11.15 (2026-10-29)
38
+
39
+ ### 🧱 Updated Dependencies
40
+
41
+ - Updated iris-app-build-utilities to 2.10.14
42
+ - Updated iris-app-api to 2.12.14
43
+ - Updated iris-app to 2.14.14
44
+
45
+ ## 1.11.14 (2026-10-28)
46
+
47
+ ### 🩹 Fixes
48
+
49
+ - **iris-app-sdk-vite:** keep NODE_ENV unchanged when creating the manifest loader [GLU-2846] ([#27000](https://github.com/Trackunit/manager/pull/27000))
50
+
51
+ ### ❤️ Thank You
52
+
53
+ - Ulrik Jørgensen @ujo-trackunit
54
+
1
55
  ## 1.11.13 (2026-10-28)
2
56
 
3
57
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-sdk-vite",
3
- "version": "1.11.13",
3
+ "version": "1.11.18",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "executors": "./executors.json",
@@ -10,8 +10,8 @@
10
10
  "dependencies": {
11
11
  "rxjs": "7.8.2",
12
12
  "win-ca": "^3.5.1",
13
- "@trackunit/iris-app-build-utilities": "2.10.13",
14
- "@trackunit/iris-app-api": "2.12.13",
13
+ "@trackunit/iris-app-build-utilities": "3.0.0",
14
+ "@trackunit/iris-app-api": "2.12.17",
15
15
  "tslib": "^2.6.2",
16
16
  "typescript": "6.0.2",
17
17
  "vite": "8.3.4",
@@ -23,7 +23,7 @@
23
23
  "@tailwindcss/postcss": "^4.1.18",
24
24
  "@vitejs/plugin-react-swc": "^4.3.3",
25
25
  "@nx/devkit": "23.3.0",
26
- "@trackunit/iris-app": "2.14.13",
26
+ "@trackunit/iris-app": "2.15.1",
27
27
  "cross-keychain": "^1.1.0",
28
28
  "jwt-decode": "^3.1.2"
29
29
  },
@@ -27,7 +27,7 @@ const deleteOutputDir = (root, outputPath) => {
27
27
  * @yields {NodeBuildEvent} the build event
28
28
  */
29
29
  async function* buildExecutor(options, context) {
30
- await (0, iris_app_build_utilities_1.checkPackageVersion)(false);
30
+ await (0, iris_app_build_utilities_1.checkPackageVersion)({ report: true, block: false });
31
31
  const skipTypeChecking = options.skipTypeChecking ?? false;
32
32
  // eslint-disable-next-line @trackunit/no-typescript-assertion, @typescript-eslint/no-non-null-assertion
33
33
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
@@ -23,7 +23,7 @@ const resolveSdkVersion_1 = require("../utils/resolveSdkVersion");
23
23
  * @yields {ServeResult} the serve result
24
24
  */
25
25
  async function* serveExecutor(options, context) {
26
- await (0, iris_app_build_utilities_1.checkPackageVersion)(false);
26
+ await (0, iris_app_build_utilities_1.checkPackageVersion)({ report: true, block: false });
27
27
  const settings = (0, iris_app_1.getSettings)();
28
28
  const skipTypeChecking = options.skipTypeChecking ?? false;
29
29
  const productionReact = options.productionReact ?? false;
@@ -189,6 +189,14 @@ const describeLoadFailure = (error, entryPath) => {
189
189
  return new Error(`Could not load '${entryPath}': '${offendingPackage}' is a CommonJS package whose named exports could not be ` +
190
190
  `resolved. Add it to 'cjsPackagesRequiringInlining' in manifestModuleLoader.ts so Vite inlines and interops it.`, { cause });
191
191
  };
192
+ const restoreNodeEnv = (nodeEnv) => {
193
+ if (nodeEnv === undefined) {
194
+ delete process.env.NODE_ENV;
195
+ }
196
+ else {
197
+ process.env.NODE_ENV = nodeEnv;
198
+ }
199
+ };
192
200
  /**
193
201
  * Creates a loader for TypeScript modules that reach into application code.
194
202
  *
@@ -212,6 +220,9 @@ const describeLoadFailure = (error, entryPath) => {
212
220
  * @returns {Promise<ManifestModuleLoader>} A loader bound to a running Vite server.
213
221
  */
214
222
  const createManifestModuleLoader = async ({ workspaceRoot, }) => {
223
+ // Vite's createServer sets NODE_ENV=development when it is unset, which would
224
+ // leak into a production build run later in the same process.
225
+ const nodeEnv = process.env.NODE_ENV;
215
226
  const server = await (0, vite_1.createServer)({
216
227
  configFile: false,
217
228
  root: workspaceRoot,
@@ -228,7 +239,7 @@ const createManifestModuleLoader = async ({ workspaceRoot, }) => {
228
239
  cacheDir: path.join(workspaceRoot, "node_modules/.vite-iris-manifest"),
229
240
  ssr: { noExternal: [...cjsPackagesRequiringInlining] },
230
241
  plugins: [(0, workspaceTsconfigPaths_1.workspaceTsconfigPaths)(workspaceRoot), commonJsGlobalsPlugin(), browserGlobalsPlugin()],
231
- });
242
+ }).finally(() => restoreNodeEnv(nodeEnv));
232
243
  const runner = (0, vite_1.createServerModuleRunner)(server.environments.ssr);
233
244
  return {
234
245
  load: async (entryPath) => {