@trackunit/iris-app-build-utilities 2.4.20-alpha-3e7014314a8.0 → 2.4.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,86 @@
1
+ ## 2.4.23 (2026-08-27)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated iris-app-api to 2.4.17
6
+
7
+ ## 2.4.22 (2026-08-27)
8
+
9
+ ### 🧱 Updated Dependencies
10
+
11
+ - Updated iris-app-api to 2.4.16
12
+
13
+ ## 2.4.21 (2026-08-27)
14
+
15
+ ### 🧱 Updated Dependencies
16
+
17
+ - Updated iris-app-api to 2.4.15
18
+
19
+ ## 2.4.20 (2026-08-27)
20
+
21
+ ### 🧱 Updated Dependencies
22
+
23
+ - Updated iris-app-api to 2.4.14
24
+
25
+ ## 2.4.19 (2026-08-27)
26
+
27
+ ### 🧱 Updated Dependencies
28
+
29
+ - Updated iris-app-api to 2.4.13
30
+
31
+ ## 2.4.18 (2026-08-25)
32
+
33
+ ### 🩹 Fixes
34
+
35
+ - **iris-app-sdk:** retry Sentry HTTP 5xx during iris app builds ([#25075](https://github.com/Trackunit/manager/pull/25075), [#24915](https://github.com/Trackunit/manager/issues/24915), [#25062](https://github.com/Trackunit/manager/issues/25062))
36
+
37
+ ### 🧱 Updated Dependencies
38
+
39
+ - Updated iris-app-api to 2.4.12
40
+ - Updated shared-utils to 1.16.22
41
+
42
+ ### ❤️ Thank You
43
+
44
+ - Cursor Agent @cursoragent
45
+ - Kristian Bødker
46
+
47
+ ## 2.4.17 (2026-08-25)
48
+
49
+ ### 🩹 Fixes
50
+
51
+ - **iris-app-sdk:** retry Sentry HTTP 5xx during iris app builds ([#25075](https://github.com/Trackunit/manager/pull/25075), [#24915](https://github.com/Trackunit/manager/issues/24915), [#25062](https://github.com/Trackunit/manager/issues/25062))
52
+
53
+ ### 🧱 Updated Dependencies
54
+
55
+ - Updated iris-app-api to 2.4.11
56
+ - Updated shared-utils to 1.16.21
57
+
58
+ ### ❤️ Thank You
59
+
60
+ - Cursor Agent @cursoragent
61
+ - Kristian Bødker
62
+
63
+ ## 2.4.16 (2026-08-24)
64
+
65
+ ### 🚀 Features
66
+
67
+ - **react-graphql-tools:** document required authorization scopes in generated mocks ([8b500687a87](https://github.com/Trackunit/manager/commit/8b500687a87))
68
+
69
+ ### ❤️ Thank You
70
+
71
+ - Cursor @cursoragent
72
+ - Mikkel Thorbjørn Andersen
73
+
74
+ ## 2.4.15 (2026-08-21)
75
+
76
+ ### 🧱 Updated Dependencies
77
+
78
+ - Updated iris-app-api to 2.4.10
79
+
80
+ ## 2.4.14 (2026-08-20)
81
+
82
+ This was a version bump only for iris-app-build-utilities to align it with other projects, there were no code changes.
83
+
1
84
  ## 2.4.13 (2026-08-20)
2
85
 
3
86
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-build-utilities",
3
- "version": "2.4.20-alpha-3e7014314a8.0",
3
+ "version": "2.4.23",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -13,9 +13,9 @@
13
13
  "@nx/react": "23.1.0",
14
14
  "tslib": "^2.6.2",
15
15
  "csp-header": "^6.3.1",
16
- "@trackunit/iris-app-api": "2.4.14-alpha-3e7014314a8.0",
16
+ "@trackunit/iris-app-api": "2.4.17",
17
17
  "@nx/devkit": "23.1.0",
18
- "@trackunit/shared-utils": "1.16.23-alpha-3e7014314a8.0",
18
+ "@trackunit/shared-utils": "1.16.22",
19
19
  "http-proxy-middleware": "3.0.5",
20
20
  "marked": "14.1.2",
21
21
  "pacote": "^21.0.4",
@@ -4,7 +4,7 @@
4
4
  * Build utilities must not depend on core-host (wrong dependency direction);
5
5
  * keep this string in sync with the host constant (GLU-1660).
6
6
  */
7
- export declare const CUTOFF_VERSION = "2.5.12";
7
+ export declare const CUTOFF_VERSION = "2.5.13";
8
8
  /**
9
9
  * Advisory warning when an app's resolved SDK version is at/above the content-inset
10
10
  * cutoff but the app source has not adopted `p-content-space`. Matches the
@@ -9,7 +9,7 @@ const checkContentSpaceAdoption_1 = require("./checkContentSpaceAdoption");
9
9
  * Build utilities must not depend on core-host (wrong dependency direction);
10
10
  * keep this string in sync with the host constant (GLU-1660).
11
11
  */
12
- exports.CUTOFF_VERSION = "2.5.12";
12
+ exports.CUTOFF_VERSION = "2.5.13";
13
13
  /**
14
14
  * Advisory warning when an app's resolved SDK version is at/above the content-inset
15
15
  * cutoff but the app source has not adopted `p-content-space`. Matches the
@@ -18,7 +18,7 @@ const versionCheck = (pkg, localRange, range, throwError = true) => {
18
18
  const localVersion = semver.minVersion(localRange) ?? localRange; // ('^1.0.0') => '1.0.0'
19
19
  const remoteVersion = semver.minVersion(range) ?? range; // Assume range is in a format that semver.minVersion can handle
20
20
  if (!semver.satisfies(localVersion, range)) {
21
- const msg = `Package "${pkg}" outdated. Remote Version: ${range} Local version: ${localRange}. 👈\n Update package using command: \n npm i ${pkg}@${range}\n ...or to update all trackunit dependencies: \n npx npm-check-updates "/@trackunit/" -u`;
21
+ const msg = `Package "${pkg}" outdated. Remote Version: ${range} Local version: ${localRange}. 👈\n Update this one package using command: \n npm i ${pkg}@${range}\n ...or to upgrade all trackunit dependencies: \n npm i -D @trackunit/migrations # only needed once\n npx nx g @trackunit/migrations:migrate\n npx nx g @trackunit/migrations:run-migrations`;
22
22
  if (semver.major(localVersion) < semver.major(remoteVersion) && throwError) {
23
23
  throw new Error(msg);
24
24
  }
@@ -11,6 +11,15 @@ export type GraphqlCodegenSchemaSource = "auto" | "public";
11
11
  export type GraphqlCodegenOptions = {
12
12
  readonly schemaSource?: GraphqlCodegenSchemaSource;
13
13
  };
14
+ /**
15
+ * Resolves the schema pointer codegen generates against for the given source: a workspace-relative
16
+ * posix path to the checked-out schema when available, otherwise the remote public endpoint URL.
17
+ * Exported so tooling that runs alongside codegen (e.g. mock scrubbing) can read the same schema.
18
+ *
19
+ * @param schemaSource Which schema to resolve. Defaults to `auto` (internal, falling back to public).
20
+ * @returns {string} A workspace-relative posix schema path or the public schema endpoint URL.
21
+ */
22
+ export declare const resolveSchema: (schemaSource?: GraphqlCodegenSchemaSource) => string;
14
23
  /**
15
24
  * This function returns the codegen config for trackunit public graphql-codegen.
16
25
  *
@@ -1,12 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getGraphqlCodegenConfig = void 0;
3
+ exports.getGraphqlCodegenConfig = exports.resolveSchema = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  const toPosixWorkspaceRelative_1 = require("./toPosixWorkspaceRelative");
7
7
  const PUBLIC_SCHEMA_URL = "https://iris.trackunit.com/api/graphql/";
8
8
  const workspaceSchemaPath = (schemaLib, schemaFile) => (0, path_1.join)(__dirname, "..", "..", "..", "..", "libs", "api", schemaLib, "generated", schemaFile);
9
- const resolveSchema = (schemaSource) => {
9
+ /**
10
+ * Resolves the schema pointer codegen generates against for the given source: a workspace-relative
11
+ * posix path to the checked-out schema when available, otherwise the remote public endpoint URL.
12
+ * Exported so tooling that runs alongside codegen (e.g. mock scrubbing) can read the same schema.
13
+ *
14
+ * @param schemaSource Which schema to resolve. Defaults to `auto` (internal, falling back to public).
15
+ * @returns {string} A workspace-relative posix schema path or the public schema endpoint URL.
16
+ */
17
+ const resolveSchema = (schemaSource = "auto") => {
10
18
  if (schemaSource === "public") {
11
19
  const publicSchemaFilePath = workspaceSchemaPath("public-gql-schema", "public-schema.gql");
12
20
  return (0, fs_1.existsSync)(publicSchemaFilePath) ? (0, toPosixWorkspaceRelative_1.toPosixWorkspaceRelative)(publicSchemaFilePath) : PUBLIC_SCHEMA_URL;
@@ -14,6 +22,7 @@ const resolveSchema = (schemaSource) => {
14
22
  const internalSchemaFilePath = workspaceSchemaPath("internal-gql-schema", "internal-schema.gql");
15
23
  return (0, fs_1.existsSync)(internalSchemaFilePath) ? (0, toPosixWorkspaceRelative_1.toPosixWorkspaceRelative)(internalSchemaFilePath) : PUBLIC_SCHEMA_URL;
16
24
  };
25
+ exports.resolveSchema = resolveSchema;
17
26
  /**
18
27
  * This function returns the codegen config for trackunit public graphql-codegen.
19
28
  *
@@ -24,7 +33,7 @@ const resolveSchema = (schemaSource) => {
24
33
  * @returns {CodegenConfig } GraphQL code generation config.
25
34
  */
26
35
  const getGraphqlCodegenConfig = (nxLibPath, gqlFilePaths, options) => {
27
- const publicSchemaUrlOrInternalSchemaPath = resolveSchema(options?.schemaSource ?? "auto");
36
+ const publicSchemaUrlOrInternalSchemaPath = (0, exports.resolveSchema)(options?.schemaSource ?? "auto");
28
37
  // eslint-disable-next-line no-console
29
38
  console.log(`Using schema: ${publicSchemaUrlOrInternalSchemaPath}`);
30
39
  // Pointers handed to graphql-codegen must be workspace-relative posix paths: absolute Windows