@tuturuuu/utils 0.12.0 → 0.12.1
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,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.12.1](https://github.com/tutur3u/platform/compare/utils-v0.12.0...utils-v0.12.1) (2026-07-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **infrastructure:** restore canonical auth host access ([9f6715f](https://github.com/tutur3u/platform/commit/9f6715fb1c5a89598556cba33b16938b76995fc6))
|
|
9
|
+
|
|
3
10
|
## [0.12.0](https://github.com/tutur3u/platform/compare/utils-v0.11.0...utils-v0.12.0) (2026-07-02)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuturuuu/utils",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/tutur3u/platform",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@tanstack/react-query": "^5.101.2",
|
|
23
23
|
"@tiptap/core": "3.27.1",
|
|
24
24
|
"@tiptap/react": "3.27.1",
|
|
25
|
-
"@tuturuuu/google": "0.0.
|
|
25
|
+
"@tuturuuu/google": "0.0.3",
|
|
26
26
|
"@tuturuuu/icons": "0.0.6",
|
|
27
|
-
"@tuturuuu/internal-api": "0.
|
|
27
|
+
"@tuturuuu/internal-api": "0.14.0",
|
|
28
28
|
"@tuturuuu/supabase": "0.4.0",
|
|
29
29
|
"@upstash/ratelimit": "^2.0.8",
|
|
30
30
|
"@upstash/redis": "^1.38.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"zod": "^4.4.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@tuturuuu/types": "0.
|
|
48
|
+
"@tuturuuu/types": "0.14.0",
|
|
49
49
|
"@tuturuuu/typescript-config": "0.1.1",
|
|
50
50
|
"@types/diff": "^8.0.0",
|
|
51
51
|
"@types/node": "^26.0.1",
|
|
@@ -137,6 +137,29 @@ describe('resolveInternalAppUrl', () => {
|
|
|
137
137
|
).toBeNull();
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
+
it('recognizes canonical and legacy infrastructure production origins', () => {
|
|
141
|
+
expect(
|
|
142
|
+
getAppDomainByUrl(
|
|
143
|
+
'https://infrastructure.tuturuuu.com/verify-token?nextUrl=%2Fpersonal'
|
|
144
|
+
)
|
|
145
|
+
).toMatchObject({
|
|
146
|
+
canonicalUrl:
|
|
147
|
+
'https://infrastructure.tuturuuu.com/verify-token?nextUrl=%2Fpersonal',
|
|
148
|
+
kind: 'internal',
|
|
149
|
+
name: 'infra',
|
|
150
|
+
});
|
|
151
|
+
expect(
|
|
152
|
+
getAppDomainByUrl(
|
|
153
|
+
'https://infra.tuturuuu.com/verify-token?nextUrl=%2Fpersonal'
|
|
154
|
+
)
|
|
155
|
+
).toMatchObject({
|
|
156
|
+
canonicalUrl:
|
|
157
|
+
'https://infra.tuturuuu.com/verify-token?nextUrl=%2Fpersonal',
|
|
158
|
+
kind: 'internal',
|
|
159
|
+
name: 'infra',
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
|
|
140
163
|
it('canonicalizes production internal app URLs to their registered HTTPS origins', () => {
|
|
141
164
|
expect(
|
|
142
165
|
resolveInternalAppUrl({
|
|
@@ -152,6 +175,13 @@ describe('resolveInternalAppUrl', () => {
|
|
|
152
175
|
fallback: 'http://localhost:7807',
|
|
153
176
|
})
|
|
154
177
|
).toBe('https://meet.tuturuuu.com');
|
|
178
|
+
expect(
|
|
179
|
+
resolveInternalAppUrl({
|
|
180
|
+
appName: 'infra',
|
|
181
|
+
candidates: ['http://infrastructure.tuturuuu.com/'],
|
|
182
|
+
fallback: 'http://localhost:7823',
|
|
183
|
+
})
|
|
184
|
+
).toBe('https://infrastructure.tuturuuu.com');
|
|
155
185
|
});
|
|
156
186
|
|
|
157
187
|
it('falls back when every configured URL points at another internal app', () => {
|
package/src/internal-domains.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
|
|
8
8
|
describe('platform release metadata', () => {
|
|
9
9
|
it('uses the centralized shared browser app version', () => {
|
|
10
|
-
expect(TUTURUUU_PLATFORM_VERSION).toBe('0.
|
|
10
|
+
expect(TUTURUUU_PLATFORM_VERSION).toBe('0.17.0'); // x-release-please-version
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
it('normalizes generated metadata and derives a short hash', () => {
|
package/src/platform-release.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PLATFORM_BUILD_METADATA } from './generated/platform-build-metadata';
|
|
2
2
|
|
|
3
|
-
export const TUTURUUU_PLATFORM_VERSION = '0.
|
|
3
|
+
export const TUTURUUU_PLATFORM_VERSION = '0.17.0'; // x-release-please-version
|
|
4
4
|
|
|
5
5
|
export type PlatformBuildMetadataInput = {
|
|
6
6
|
builtAt?: string | null;
|