@trackunit/iris-app-sdk-vite 1.11.33 → 1.11.37
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,43 @@
|
|
|
1
|
+
## 1.11.37 (2026-11-04)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated iris-app-build-utilities to 3.0.18
|
|
6
|
+
- Updated iris-app-api to 2.13.6
|
|
7
|
+
- Updated iris-app to 2.16.3
|
|
8
|
+
|
|
9
|
+
## 1.11.36 (2026-11-04)
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated iris-app-build-utilities to 3.0.17
|
|
14
|
+
- Updated iris-app-api to 2.13.5
|
|
15
|
+
- Updated iris-app to 2.16.2
|
|
16
|
+
|
|
17
|
+
## 1.11.35 (2026-11-04)
|
|
18
|
+
|
|
19
|
+
### 🧱 Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated iris-app-build-utilities to 3.0.16
|
|
22
|
+
- Updated iris-app-api to 2.13.4
|
|
23
|
+
- Updated iris-app to 2.16.1
|
|
24
|
+
|
|
25
|
+
## 1.11.34 (2026-11-04)
|
|
26
|
+
|
|
27
|
+
### 🚀 Features
|
|
28
|
+
|
|
29
|
+
- **iris-app-sdk:** guide apps to lazy pages for AI navigation and follow getParentRoute ([#27279](https://github.com/Trackunit/manager/pull/27279))
|
|
30
|
+
|
|
31
|
+
### 🧱 Updated Dependencies
|
|
32
|
+
|
|
33
|
+
- Updated iris-app-build-utilities to 3.0.15
|
|
34
|
+
- Updated iris-app-api to 2.13.3
|
|
35
|
+
- Updated iris-app to 2.16.0
|
|
36
|
+
|
|
37
|
+
### ❤️ Thank You
|
|
38
|
+
|
|
39
|
+
- Kasper Laursen @ghost-of-kla-trackunit
|
|
40
|
+
|
|
1
41
|
## 1.11.33 (2026-11-04)
|
|
2
42
|
|
|
3
43
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-sdk-vite",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.37",
|
|
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": "3.0.
|
|
14
|
-
"@trackunit/iris-app-api": "2.13.
|
|
13
|
+
"@trackunit/iris-app-build-utilities": "3.0.18",
|
|
14
|
+
"@trackunit/iris-app-api": "2.13.6",
|
|
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.
|
|
26
|
+
"@trackunit/iris-app": "2.16.3",
|
|
27
27
|
"cross-keychain": "^1.1.0",
|
|
28
28
|
"jwt-decode": "^3.1.2"
|
|
29
29
|
},
|
|
@@ -41,7 +41,7 @@ async function* buildExecutor(options, context) {
|
|
|
41
41
|
// resolver could not satisfy against the synthetic `/workspace/...` paths used
|
|
42
42
|
// by the spec - the import threw before the spec's beforeEach `vi.mock(...)`
|
|
43
43
|
// had any chance to intercept it.
|
|
44
|
-
const IrisAppManifest = await (0, manifestLoader_1.loadManifest)(context.root, projectRootDir);
|
|
44
|
+
const IrisAppManifest = await (0, manifestLoader_1.loadManifest)(context.root, projectRootDir).finally(manifestLoader_1.closeManifestLoader);
|
|
45
45
|
// Stamp the *installed* `@trackunit/iris-app` version (not the declared
|
|
46
46
|
// range) so the host can decide content-inset behaviour from the published
|
|
47
47
|
// manifest. Fail-soft: absent version keeps the legacy-inset default.
|
|
@@ -114,6 +114,7 @@ async function* buildExecutor(options, context) {
|
|
|
114
114
|
console.error(`\n ❌ Iris App build failed\n`);
|
|
115
115
|
}
|
|
116
116
|
}),
|
|
117
|
+
// The plugin's `buildStart` reloads the manifest, which opens a new loader.
|
|
117
118
|
// The loader holds a Vite server open; without this the process never exits.
|
|
118
119
|
op.finalize(() => {
|
|
119
120
|
void (0, manifestLoader_1.closeManifestLoader)();
|
|
@@ -180,14 +180,34 @@ const collectWorkspaceSources = (server) => {
|
|
|
180
180
|
return [...sources];
|
|
181
181
|
};
|
|
182
182
|
const cjsInteropFailure = /The requested module '([^']+)' is a CommonJS module/;
|
|
183
|
+
/**
|
|
184
|
+
* Code that needs a browser fails in Node as a ReferenceError, such as
|
|
185
|
+
* `HTMLElement is not defined`, or as a TypeError when it reads from `window` or
|
|
186
|
+
* `document`, which `browserGlobalsPlugin` declares but leaves undefined.
|
|
187
|
+
*/
|
|
188
|
+
const isBrowserOnlyFailure = (error) => error.name === "ReferenceError" || error.name === "TypeError";
|
|
189
|
+
const lazyPagesHint = [
|
|
190
|
+
"If a page that a route tree imports caused this, load that page lazily. The manifest imports the route tree",
|
|
191
|
+
"in Node at build time, so every page the tree imports directly runs there too. For example:",
|
|
192
|
+
"",
|
|
193
|
+
' import { lazyRouteComponent } from "@tanstack/react-router";',
|
|
194
|
+
"",
|
|
195
|
+
" // Before: component: AssetsPage, with AssetsPage imported at the top of the file.",
|
|
196
|
+
' component: lazyRouteComponent(() => import("./AssetsPage"), "AssetsPage"),',
|
|
197
|
+
"",
|
|
198
|
+
"See 'extractAiNavigationFromTanstackRouter' in @trackunit/iris-app-api for details.",
|
|
199
|
+
].join("\n");
|
|
183
200
|
const describeLoadFailure = (error, entryPath) => {
|
|
184
201
|
const cause = error instanceof Error ? error : new Error(String(error));
|
|
185
202
|
const offendingPackage = cjsInteropFailure.exec(cause.message)?.[1];
|
|
186
|
-
if (offendingPackage
|
|
187
|
-
return
|
|
203
|
+
if (offendingPackage !== undefined) {
|
|
204
|
+
return new Error(`Could not load '${entryPath}': '${offendingPackage}' is a CommonJS package whose named exports could not be ` +
|
|
205
|
+
`resolved. Add it to 'cjsPackagesRequiringInlining' in manifestModuleLoader.ts so Vite inlines and interops it.`, { cause });
|
|
206
|
+
}
|
|
207
|
+
if (isBrowserOnlyFailure(cause)) {
|
|
208
|
+
return new Error(`Could not load '${entryPath}': ${cause.message}\n\n${lazyPagesHint}`, { cause });
|
|
188
209
|
}
|
|
189
|
-
return
|
|
190
|
-
`resolved. Add it to 'cjsPackagesRequiringInlining' in manifestModuleLoader.ts so Vite inlines and interops it.`, { cause });
|
|
210
|
+
return cause;
|
|
191
211
|
};
|
|
192
212
|
const restoreNodeEnv = (nodeEnv) => {
|
|
193
213
|
if (nodeEnv === undefined) {
|