@trackunit/iris-app-sdk-vite 0.2.4 → 0.3.0
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,32 @@
|
|
|
1
|
+
## 0.3.0 (2026-04-14)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated iris-app-build-utilities to 1.15.0
|
|
6
|
+
- Updated iris-app-api to 1.17.0
|
|
7
|
+
|
|
8
|
+
## 0.2.6 (2026-04-14)
|
|
9
|
+
|
|
10
|
+
### 🩹 Fixes
|
|
11
|
+
|
|
12
|
+
- **GLU-1000:** redirect localhost dev server to manager when opened directly ([39ee50116c3](https://github.com/Trackunit/manager/commit/39ee50116c3))
|
|
13
|
+
|
|
14
|
+
### 🧱 Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated iris-app-build-utilities to 1.14.6
|
|
17
|
+
- Updated iris-app-api to 1.16.6
|
|
18
|
+
|
|
19
|
+
### ❤️ Thank You
|
|
20
|
+
|
|
21
|
+
- Mikkel Thorbjørn Andersen
|
|
22
|
+
|
|
23
|
+
## 0.2.5 (2026-04-14)
|
|
24
|
+
|
|
25
|
+
### 🧱 Updated Dependencies
|
|
26
|
+
|
|
27
|
+
- Updated iris-app-build-utilities to 1.14.5
|
|
28
|
+
- Updated iris-app-api to 1.16.5
|
|
29
|
+
|
|
1
30
|
## 0.2.4 (2026-04-13)
|
|
2
31
|
|
|
3
32
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-sdk-vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.1",
|
|
12
12
|
"win-ca": "^3.5.1",
|
|
13
|
-
"@trackunit/iris-app-build-utilities": "1.
|
|
14
|
-
"@trackunit/iris-app-api": "1.
|
|
13
|
+
"@trackunit/iris-app-build-utilities": "1.15.0",
|
|
14
|
+
"@trackunit/iris-app-api": "1.17.0",
|
|
15
15
|
"tslib": "^2.6.2",
|
|
16
16
|
"vite": "7.3.1",
|
|
17
17
|
"@module-federation/vite": "1.11.0",
|
|
@@ -28,11 +28,11 @@ async function* serveExecutor(options, context) {
|
|
|
28
28
|
projectRootDir,
|
|
29
29
|
});
|
|
30
30
|
// Now we can safely import the manifest (it uses @trackunit/* imports)
|
|
31
|
-
const
|
|
32
|
-
const serversideResult = await (0, iris_app_build_utilities_1.spawnServersideExtensions)(
|
|
31
|
+
const irisAppManifest = (await Promise.resolve(`${manifestPath}`).then(s => tslib_1.__importStar(require(s)))).default;
|
|
32
|
+
const serversideResult = await (0, iris_app_build_utilities_1.spawnServersideExtensions)(irisAppManifest, context.root);
|
|
33
33
|
try {
|
|
34
34
|
// Get default config (internally imports @trackunit/iris-app-vite-plugin)
|
|
35
|
-
const defaultConfig = await (0, defaultViteConfig_1.getDefaultViteConfig)("development", context.root, projectRootDir,
|
|
35
|
+
const defaultConfig = await (0, defaultViteConfig_1.getDefaultViteConfig)("development", context.root, projectRootDir, irisAppManifest, context, {
|
|
36
36
|
serversidePortMap: serversideResult.portMap,
|
|
37
37
|
skipTypeChecking: options.skipTypeChecking,
|
|
38
38
|
});
|
|
@@ -70,7 +70,6 @@ async function* serveExecutor(options, context) {
|
|
|
70
70
|
const port = typeof address === "object" && address !== null ? address.port : (options.port ?? 22220);
|
|
71
71
|
const host = options.host ?? "localhost";
|
|
72
72
|
const baseUrl = `http://${host}:${port}`;
|
|
73
|
-
server.printUrls();
|
|
74
73
|
subscriber.next({
|
|
75
74
|
baseUrl,
|
|
76
75
|
success: true,
|
|
@@ -88,7 +87,7 @@ async function* serveExecutor(options, context) {
|
|
|
88
87
|
};
|
|
89
88
|
}).pipe(op.tap(({ baseUrl }) => {
|
|
90
89
|
// eslint-disable-next-line no-console
|
|
91
|
-
console.info(`\n 🚀 Iris App dev server running at: ${baseUrl}\n`);
|
|
90
|
+
console.info(`\n 🚀 Iris App dev server running at: ${baseUrl} for iris app: ${irisAppManifest.moduleFederationName}\n`);
|
|
92
91
|
}), op.map(({ baseUrl, success }) => ({
|
|
93
92
|
baseUrl,
|
|
94
93
|
success,
|
|
@@ -132,17 +132,21 @@ const generateIndexHtml = ({ manifest, packageJson, options, }) => {
|
|
|
132
132
|
// Register tsconfig paths to load the utility
|
|
133
133
|
registerTsConfigPaths(options.workspaceRoot ?? options.appDir, options.appDir);
|
|
134
134
|
// Only include dev scripts and React DevTools connection in development
|
|
135
|
+
const iframeRedirect = options.config.mode === "development"
|
|
136
|
+
? `<script nonce="{{nonce}}">
|
|
137
|
+
if (window.self === window.top) { window.location.replace("https://new.manager.trackunit.com/goto/iris-app-dev"); }
|
|
138
|
+
</script>`
|
|
139
|
+
: "";
|
|
135
140
|
const devtools = options.config.mode === "development"
|
|
136
141
|
? `<script nonce="{{nonce}}" src="http://localhost:8097"></script>
|
|
142
|
+
${iframeRedirect}
|
|
137
143
|
<script nonce="{{nonce}}">
|
|
138
|
-
// Polyfill for Node.js globals that some libraries expect
|
|
139
144
|
if (typeof global === 'undefined') { window.global = window; }
|
|
140
145
|
if (typeof process === 'undefined') { window.process = { env: {} }; }
|
|
141
146
|
</script>
|
|
142
147
|
`
|
|
143
148
|
: `
|
|
144
149
|
<script nonce="{{nonce}}">
|
|
145
|
-
// Polyfill for Node.js globals that some libraries expect
|
|
146
150
|
if (typeof global === 'undefined') { window.global = window; }
|
|
147
151
|
if (typeof process === 'undefined') { window.process = { env: {} }; }
|
|
148
152
|
</script>`;
|
|
@@ -289,6 +293,7 @@ async function getTrackunitIrisAppVitePlugins(options) {
|
|
|
289
293
|
},
|
|
290
294
|
server: {
|
|
291
295
|
port,
|
|
296
|
+
strictPort: true,
|
|
292
297
|
host: "localhost",
|
|
293
298
|
// Enable CORS for cross-origin requests from new.manager.trackunit.com
|
|
294
299
|
cors: {
|