@trackunit/iris-app 2.1.6-alpha-df0e8d549b3.0 → 2.1.6
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,80 @@
|
|
|
1
|
+
## 2.1.6 (2026-06-30)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **iris-app-playwright:** nest Playwright output per project on CI executors [GLU-1438] ([#24082](https://github.com/Trackunit/manager/pull/24082))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated iris-app-build-utilities to 2.0.42
|
|
10
|
+
- Updated iris-app-api to 2.0.40
|
|
11
|
+
- Updated react-vite-test-setup to 0.0.49
|
|
12
|
+
- Updated shared-utils to 1.15.48
|
|
13
|
+
|
|
14
|
+
### ❤️ Thank You
|
|
15
|
+
|
|
16
|
+
- Cursor @cursoragent
|
|
17
|
+
- Mikkel Thorbjørn Andersen @mta-trackunit
|
|
18
|
+
|
|
19
|
+
## 2.1.5 (2026-06-30)
|
|
20
|
+
|
|
21
|
+
### 🧱 Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated iris-app-build-utilities to 2.0.41
|
|
24
|
+
- Updated iris-app-api to 2.0.39
|
|
25
|
+
- Updated react-vite-test-setup to 0.0.48
|
|
26
|
+
- Updated shared-utils to 1.15.47
|
|
27
|
+
|
|
28
|
+
## 2.1.4 (2026-06-30)
|
|
29
|
+
|
|
30
|
+
### 🧱 Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- Updated iris-app-build-utilities to 2.0.40
|
|
33
|
+
- Updated iris-app-api to 2.0.38
|
|
34
|
+
- Updated react-vite-test-setup to 0.0.47
|
|
35
|
+
- Updated shared-utils to 1.15.46
|
|
36
|
+
|
|
37
|
+
## 2.1.3 (2026-06-29)
|
|
38
|
+
|
|
39
|
+
### 🧱 Updated Dependencies
|
|
40
|
+
|
|
41
|
+
- Updated iris-app-build-utilities to 2.0.39
|
|
42
|
+
- Updated react-vite-test-setup to 0.0.46
|
|
43
|
+
- Updated shared-utils to 1.15.45
|
|
44
|
+
|
|
45
|
+
## 2.1.2 (2026-06-29)
|
|
46
|
+
|
|
47
|
+
### 🧱 Updated Dependencies
|
|
48
|
+
|
|
49
|
+
- Updated iris-app-build-utilities to 2.0.38
|
|
50
|
+
- Updated iris-app-api to 2.0.37
|
|
51
|
+
- Updated react-vite-test-setup to 0.0.45
|
|
52
|
+
- Updated shared-utils to 1.15.44
|
|
53
|
+
|
|
54
|
+
## 2.1.1 (2026-06-26)
|
|
55
|
+
|
|
56
|
+
### 🧱 Updated Dependencies
|
|
57
|
+
|
|
58
|
+
- Updated iris-app-build-utilities to 2.0.37
|
|
59
|
+
- Updated iris-app-api to 2.0.36
|
|
60
|
+
|
|
61
|
+
## 2.1.0 (2026-06-25)
|
|
62
|
+
|
|
63
|
+
### 🚀 Features
|
|
64
|
+
|
|
65
|
+
- **iris-app:** support API Tokens v2 CLI auth [SF-634] ([c0e1bfe5ede](https://github.com/Trackunit/manager/commit/c0e1bfe5ede))
|
|
66
|
+
- **iris-app:** request publish scope in CLI auth [SF-634] ([03ab39d59ac](https://github.com/Trackunit/manager/commit/03ab39d59ac))
|
|
67
|
+
|
|
68
|
+
### 🩹 Fixes
|
|
69
|
+
|
|
70
|
+
- **iris-app:** rename submit scope request [SF-634] ([e4c8e81d5e8](https://github.com/Trackunit/manager/commit/e4c8e81d5e8))
|
|
71
|
+
- **iris-app:** keep token id type required ([a3fff8bc758](https://github.com/Trackunit/manager/commit/a3fff8bc758))
|
|
72
|
+
|
|
73
|
+
### ❤️ Thank You
|
|
74
|
+
|
|
75
|
+
- Cursor Agent @cursoragent
|
|
76
|
+
- Mads Mætzke Tandrup @tandrup
|
|
77
|
+
|
|
1
78
|
## 2.0.38 (2026-06-25)
|
|
2
79
|
|
|
3
80
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app",
|
|
3
|
-
"version": "2.1.6
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"generators": "./generators.json",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@nx/react": "22.7.5",
|
|
24
24
|
"@npmcli/arborist": "^9.1.9",
|
|
25
25
|
"win-ca": "^3.5.1",
|
|
26
|
-
"@trackunit/shared-utils": "1.15.48
|
|
27
|
-
"@trackunit/iris-app-api": "2.0.40
|
|
26
|
+
"@trackunit/shared-utils": "1.15.48",
|
|
27
|
+
"@trackunit/iris-app-api": "2.0.40",
|
|
28
28
|
"tslib": "^2.6.2",
|
|
29
29
|
"@clack/prompts": "^1.0.0",
|
|
30
30
|
"@npm/types": "^1.0.2",
|
|
@@ -14,6 +14,8 @@ async function getAccessToken(env) {
|
|
|
14
14
|
const settings = getAuthSettings(env);
|
|
15
15
|
const clientId = process.env[`TU_CLIENT_ID_${settings.env}`];
|
|
16
16
|
const clientSecret = process.env[`TU_CLIENT_SECRET_${settings.env}`];
|
|
17
|
+
const apiTokenClientId = process.env.TU_API_TOKEN_CLIENT_ID;
|
|
18
|
+
const apiTokenClientSecret = process.env.TU_API_TOKEN_CLIENT_SECRET;
|
|
17
19
|
// use token provided as environment variable if available
|
|
18
20
|
if (process.env.TU_TOKEN) {
|
|
19
21
|
return {
|
|
@@ -43,13 +45,32 @@ async function getAccessToken(env) {
|
|
|
43
45
|
body: tokenParams,
|
|
44
46
|
});
|
|
45
47
|
return (await tokenResponse.json());
|
|
48
|
+
// use API Tokens v2 client credentials for external API key based publishing
|
|
49
|
+
}
|
|
50
|
+
else if (apiTokenClientId !== undefined) {
|
|
51
|
+
if (apiTokenClientId.trim() === "") {
|
|
52
|
+
throw new Error("Missing environment value: TU_API_TOKEN_CLIENT_ID");
|
|
53
|
+
}
|
|
54
|
+
if (apiTokenClientSecret === undefined || apiTokenClientSecret.trim() === "") {
|
|
55
|
+
throw new Error("Missing environment value: TU_API_TOKEN_CLIENT_SECRET");
|
|
56
|
+
}
|
|
57
|
+
const tokenParams = new URLSearchParams();
|
|
58
|
+
tokenParams.append("client_id", apiTokenClientId);
|
|
59
|
+
tokenParams.append("client_secret", apiTokenClientSecret);
|
|
60
|
+
tokenParams.append("grant_type", "client_credentials");
|
|
61
|
+
tokenParams.append("scope", "iris.app.submit");
|
|
62
|
+
const tokenResponse = await fetch(`${settings.apiTokensV2BaseUrl}/token/v2`, {
|
|
63
|
+
method: "POST",
|
|
64
|
+
body: tokenParams,
|
|
65
|
+
});
|
|
66
|
+
return (await tokenResponse.json());
|
|
46
67
|
// ask the user to authenticated using a browser
|
|
47
68
|
// and fetch a token using the device code flow
|
|
48
69
|
}
|
|
49
70
|
else {
|
|
50
71
|
const authorizeParams = new URLSearchParams();
|
|
51
72
|
authorizeParams.append("client_id", settings.clientId);
|
|
52
|
-
authorizeParams.append("scope", "openid profile fms assume");
|
|
73
|
+
authorizeParams.append("scope", "openid profile fms assume iris.app.submit");
|
|
53
74
|
const authorizeResponse = await fetch(`${settings.publicAuthorizationServerBaseUrl}/v1/device/authorize`, {
|
|
54
75
|
method: "POST",
|
|
55
76
|
body: authorizeParams,
|
|
@@ -100,6 +121,7 @@ function getAuthSettings(env) {
|
|
|
100
121
|
clientId: "0oamfeklvodROR2ul357",
|
|
101
122
|
publicAuthorizationServerBaseUrl: "https://identity.iris.trackunit.com/oauth2/aus2u3jix1dWU7fwt356",
|
|
102
123
|
internalAuthorizationServerBaseUrl: "https://identity.iris.trackunit.com/oauth2/aushbxvmpdlWrMnO6357",
|
|
124
|
+
apiTokensV2BaseUrl: "https://auth.trackunit.com",
|
|
103
125
|
env,
|
|
104
126
|
};
|
|
105
127
|
case "STAGE":
|
|
@@ -107,6 +129,7 @@ function getAuthSettings(env) {
|
|
|
107
129
|
clientId: "0oa1q2vmx21NcFLOs0h8",
|
|
108
130
|
publicAuthorizationServerBaseUrl: "https://identity.stage.iris.trackunit.com/oauth2/aus1owd7wny5YVsU00h8",
|
|
109
131
|
internalAuthorizationServerBaseUrl: "https://identity.stage.iris.trackunit.com/oauth2/aus1o484n9xEHT7G50h8",
|
|
132
|
+
apiTokensV2BaseUrl: "https://stage.auth.trackunit.com",
|
|
110
133
|
env,
|
|
111
134
|
};
|
|
112
135
|
case "DEV":
|
|
@@ -114,6 +137,7 @@ function getAuthSettings(env) {
|
|
|
114
137
|
clientId: "0oamebigau4RkaqZ6357",
|
|
115
138
|
publicAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/ausj7eh9zeiFhLk4m357",
|
|
116
139
|
internalAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/aush09l7x4mDGKxLu357",
|
|
140
|
+
apiTokensV2BaseUrl: "https://dev.auth.trackunit.com",
|
|
117
141
|
env,
|
|
118
142
|
};
|
|
119
143
|
case "LOCAL":
|
|
@@ -121,6 +145,7 @@ function getAuthSettings(env) {
|
|
|
121
145
|
clientId: "0oamebigau4RkaqZ6357",
|
|
122
146
|
publicAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/ausj7eh9zeiFhLk4m357",
|
|
123
147
|
internalAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/aush09l7x4mDGKxLu357",
|
|
148
|
+
apiTokensV2BaseUrl: "https://dev.auth.trackunit.com",
|
|
124
149
|
env,
|
|
125
150
|
};
|
|
126
151
|
default:
|