@trackunit/iris-app-build-utilities 2.4.16-alpha-aedae0c85f6.0 → 2.4.17
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,40 @@
|
|
|
1
|
+
## 2.4.17 (2026-08-25)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **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))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated iris-app-api to 2.4.11
|
|
10
|
+
- Updated shared-utils to 1.16.21
|
|
11
|
+
|
|
12
|
+
### ❤️ Thank You
|
|
13
|
+
|
|
14
|
+
- Cursor Agent @cursoragent
|
|
15
|
+
- Kristian Bødker
|
|
16
|
+
|
|
17
|
+
## 2.4.16 (2026-08-24)
|
|
18
|
+
|
|
19
|
+
### 🚀 Features
|
|
20
|
+
|
|
21
|
+
- **react-graphql-tools:** document required authorization scopes in generated mocks ([8b500687a87](https://github.com/Trackunit/manager/commit/8b500687a87))
|
|
22
|
+
|
|
23
|
+
### ❤️ Thank You
|
|
24
|
+
|
|
25
|
+
- Cursor @cursoragent
|
|
26
|
+
- Mikkel Thorbjørn Andersen
|
|
27
|
+
|
|
28
|
+
## 2.4.15 (2026-08-21)
|
|
29
|
+
|
|
30
|
+
### 🧱 Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- Updated iris-app-api to 2.4.10
|
|
33
|
+
|
|
34
|
+
## 2.4.14 (2026-08-20)
|
|
35
|
+
|
|
36
|
+
This was a version bump only for iris-app-build-utilities to align it with other projects, there were no code changes.
|
|
37
|
+
|
|
1
38
|
## 2.4.13 (2026-08-20)
|
|
2
39
|
|
|
3
40
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-build-utilities",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.17",
|
|
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.11
|
|
16
|
+
"@trackunit/iris-app-api": "2.4.11",
|
|
17
17
|
"@nx/devkit": "23.1.0",
|
|
18
|
-
"@trackunit/shared-utils": "1.16.21
|
|
18
|
+
"@trackunit/shared-utils": "1.16.21",
|
|
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.
|
|
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
|
+
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
|
|
@@ -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
|
-
|
|
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
|