@trackunit/iris-app 2.4.6 → 2.4.8

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
+ ## 2.4.8 (2026-08-13)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated iris-app-build-utilities to 2.3.7
6
+ - Updated iris-app-api to 2.3.7
7
+ - Updated react-vite-test-setup to 0.0.100
8
+ - Updated css-classname-utils to 0.0.8
9
+ - Updated react-graphql-tools to 1.15.5
10
+ - Updated shared-utils to 1.16.5
11
+
12
+ ## 2.4.7 (2026-08-12)
13
+
14
+ ### 🧱 Updated Dependencies
15
+
16
+ - Updated iris-app-build-utilities to 2.3.6
17
+ - Updated iris-app-api to 2.3.6
18
+
1
19
  ## 2.4.6 (2026-08-12)
2
20
 
3
21
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "2.4.6",
3
+ "version": "2.4.8",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "main": "src/index.js",
6
6
  "generators": "./generators.json",
@@ -10,7 +10,7 @@
10
10
  "node": ">=24.x"
11
11
  },
12
12
  "dependencies": {
13
- "@trackunit/css-classname-utils": "0.0.7",
13
+ "@trackunit/css-classname-utils": "0.0.8",
14
14
  "pacote": "^21.0.4",
15
15
  "libnpmpublish": "^11.1.3",
16
16
  "open": "^10.2.0",
@@ -24,10 +24,10 @@
24
24
  "@nx/react": "23.1.0",
25
25
  "@npmcli/arborist": "^9.1.9",
26
26
  "win-ca": "^3.5.1",
27
- "@trackunit/iris-app-build-utilities": "2.3.5",
28
- "@trackunit/react-graphql-tools": "1.15.4",
29
- "@trackunit/shared-utils": "1.16.4",
30
- "@trackunit/iris-app-api": "2.3.5",
27
+ "@trackunit/iris-app-build-utilities": "2.3.7",
28
+ "@trackunit/react-graphql-tools": "1.15.5",
29
+ "@trackunit/shared-utils": "1.16.5",
30
+ "@trackunit/iris-app-api": "2.3.7",
31
31
  "tslib": "^2.6.2",
32
32
  "@clack/prompts": "^1.0.0",
33
33
  "@npm/types": "^1.0.2",
@@ -165,7 +165,7 @@ async function doUploadAppWithRetry(accessToken, manifest, tarData, settings, re
165
165
  async function doUploadApp(accessToken, manifest, tarData, settings) {
166
166
  const npmFetchOptions = {};
167
167
  npmFetchOptions.registry = settings.repoUrl.toString();
168
- const repoHostAndPort = settings.repoUrl.hostname + (settings.repoUrl.port ? ":" + settings.repoUrl.port : "");
168
+ const repoHostAndPort = settings.repoUrl.hostname + (settings.repoUrl.port ? `:${settings.repoUrl.port}` : "");
169
169
  npmFetchOptions[`//${repoHostAndPort}${settings.repoUrl.pathname}:_authToken`] = accessToken;
170
170
  npmFetchOptions[`//${repoHostAndPort}${settings.repoUrl.pathname}/repo/:always-auth`] = true;
171
171
  console.log("🚢 Shipping the app package...");
@@ -190,7 +190,7 @@ async function doUploadApp(accessToken, manifest, tarData, settings) {
190
190
  });
191
191
  const warningsText = submitResult.headers?.get("TU-IRIS-APP-WARNINGS");
192
192
  if (warningsText) {
193
- console.log("⚠️ " + decodeURI(warningsText));
193
+ console.log(`⚠️ ${decodeURI(warningsText)}`);
194
194
  }
195
195
  if (submitResult.ok) {
196
196
  console.log(`🚀 Uploaded the app package version ${manifest.version}`);
@@ -206,11 +206,7 @@ async function doUploadApp(accessToken, manifest, tarData, settings) {
206
206
  }
207
207
  }
208
208
  else {
209
- throw new NpmGeneralError(submitResult.statusText +
210
- " " +
211
- (await submitResult.text()) +
212
- ". Trace ID: " +
213
- submitResult.headers.get("trace-id"), "statusCode" in submitResult ? submitResult.statusCode : undefined, "code" in submitResult ? submitResult.code : undefined, "type" in submitResult ? submitResult.type : undefined);
209
+ throw new NpmGeneralError(`${submitResult.statusText} ${await submitResult.text()}. Trace ID: ${submitResult.headers.get("trace-id")}`, "statusCode" in submitResult ? submitResult.statusCode : undefined, "code" in submitResult ? submitResult.code : undefined, "type" in submitResult ? submitResult.type : undefined);
214
210
  }
215
211
  }
216
212
  async function promptUserForInput(query) {
@@ -136,7 +136,7 @@ const IrisAppGenerator = async function (tree, options) {
136
136
  options: {
137
137
  inputPath: `dist/${normalizedOptions.projectRoot}`,
138
138
  },
139
- outputs: ["{workspaceRoot}/dist/" + normalizedOptions.projectRoot],
139
+ outputs: [`{workspaceRoot}/dist/${normalizedOptions.projectRoot}`],
140
140
  },
141
141
  unpublishApp: {
142
142
  executor: "@trackunit/iris-app:unpublish",
@@ -148,7 +148,7 @@ const IrisAppGenerator = async function (tree, options) {
148
148
  target: "build",
149
149
  },
150
150
  ],
151
- outputs: ["{workspaceRoot}/dist/" + normalizedOptions.projectRoot],
151
+ outputs: [`{workspaceRoot}/dist/${normalizedOptions.projectRoot}`],
152
152
  },
153
153
  },
154
154
  });
@@ -5,8 +5,8 @@ exports.addPropertyWithName = addPropertyWithName;
5
5
  exports.addSpreadAssignment = addSpreadAssignment;
6
6
  exports.addRequireStatement = addRequireStatement;
7
7
  const tslib_1 = require("tslib");
8
- const shared_utils_1 = require("@trackunit/shared-utils");
9
8
  const tsquery_1 = require("@phenomnomnominal/tsquery");
9
+ const shared_utils_1 = require("@trackunit/shared-utils");
10
10
  const ts = tslib_1.__importStar(require("typescript"));
11
11
  /**
12
12
  * This function removes a property with a given name from an object literal
@@ -127,19 +127,18 @@ function addRequireStatement(fileContent, variableName, modulePath) {
127
127
  return fileContent; // Already has the require, no changes needed
128
128
  }
129
129
  // Find all variable statements with require calls
130
- const requireStatements = (0, tsquery_1.tsquery)(sourceFile, "VariableStatement")
131
- .filter(stmt => stmt.getText().includes("require("));
130
+ const requireStatements = (0, tsquery_1.tsquery)(sourceFile, "VariableStatement").filter(stmt => stmt.getText().includes("require("));
132
131
  const requireStatement = `const ${variableName} = require("${modulePath}").default;`;
133
132
  if (requireStatements.length > 0) {
134
133
  // Add after the last require statement
135
134
  const lastRequire = requireStatements[requireStatements.length - 1];
136
135
  if (lastRequire) {
137
136
  const lastRequireEnd = lastRequire.getEnd();
138
- return fileContent.slice(0, lastRequireEnd) + '\n' + requireStatement + fileContent.slice(lastRequireEnd);
137
+ return `${fileContent.slice(0, lastRequireEnd)}\n${requireStatement}${fileContent.slice(lastRequireEnd)}`;
139
138
  }
140
139
  }
141
140
  // Add at the beginning if no require statements found
142
- return requireStatement + '\n' + fileContent;
141
+ return `${requireStatement}\n${fileContent}`;
143
142
  }
144
143
  function createObjectLiteralElementLike(obj) {
145
144
  const properties = [];
@@ -9,11 +9,11 @@ exports.updateFileInTree = void 0;
9
9
  */
10
10
  const updateFileInTree = (tree, path, updater) => {
11
11
  if (!tree.exists(path)) {
12
- throw new Error("File not found: " + path);
12
+ throw new Error(`File not found: ${path}`);
13
13
  }
14
14
  const fileContent = tree.read(path, "utf-8");
15
15
  if (!fileContent) {
16
- throw new Error("File is empty: " + path);
16
+ throw new Error(`File is empty: ${path}`);
17
17
  }
18
18
  const result = updater(fileContent);
19
19
  if (result !== fileContent) {