@gamaro.io/core-types 1.1.2 → 1.1.3
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/README.md +4 -4
- package/dist/session.d.ts +5 -5
- package/dist/session.js +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -68,10 +68,10 @@ Some helpers are exposed on a **dedicated subpath**, deliberately kept out of
|
|
|
68
68
|
the barrel above so they carry no `zod` dependency (import them directly, not
|
|
69
69
|
from the package root):
|
|
70
70
|
|
|
71
|
-
| Subpath | Contents
|
|
72
|
-
| ---------- |
|
|
73
|
-
| `/session` | `getApplicationSessionCookieName` (App-scoped, #3577), `getSessionCookieName` (legacy per-vertical, `@deprecated`), `isValidSessionId` — pure session cookie / id helpers |
|
|
74
|
-
| `/motion` | Motion tokens — also re-exported from the root barrel (ADR-018)
|
|
71
|
+
| Subpath | Contents |
|
|
72
|
+
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
73
|
+
| `/session` | `getApplicationSessionCookieName` (App-scoped, #3577), `getSessionCookieName` (legacy per-vertical, `@deprecated` — no longer read by the server, removed in the next major), `isValidSessionId` — pure session cookie / id helpers |
|
|
74
|
+
| `/motion` | Motion tokens — also re-exported from the root barrel (ADR-018) |
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
77
|
import {
|
package/dist/session.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export declare function getApplicationSessionCookieName(applicationId: string):
|
|
|
24
24
|
/**
|
|
25
25
|
* Per-vertical session cookie name — LEGACY (#918 → #3577).
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* The server no longer reads, re-emits nor purges cookies under this name
|
|
28
|
+
* (#4119): every one of them expired. The export only survives because
|
|
29
|
+
* removing it is a breaking change of this package.
|
|
30
30
|
*
|
|
31
|
-
* @deprecated Use {@link getApplicationSessionCookieName}
|
|
32
|
-
* this
|
|
31
|
+
* @deprecated Use {@link getApplicationSessionCookieName}. No server reads
|
|
32
|
+
* this name any more; the export is removed in the next major.
|
|
33
33
|
*/
|
|
34
34
|
export declare function getSessionCookieName(verticalId: string): string;
|
|
35
35
|
/**
|
package/dist/session.js
CHANGED
|
@@ -34,12 +34,12 @@ export function getApplicationSessionCookieName(applicationId) {
|
|
|
34
34
|
/**
|
|
35
35
|
* Per-vertical session cookie name — LEGACY (#918 → #3577).
|
|
36
36
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
37
|
+
* The server no longer reads, re-emits nor purges cookies under this name
|
|
38
|
+
* (#4119): every one of them expired. The export only survives because
|
|
39
|
+
* removing it is a breaking change of this package.
|
|
40
40
|
*
|
|
41
|
-
* @deprecated Use {@link getApplicationSessionCookieName}
|
|
42
|
-
* this
|
|
41
|
+
* @deprecated Use {@link getApplicationSessionCookieName}. No server reads
|
|
42
|
+
* this name any more; the export is removed in the next major.
|
|
43
43
|
*/
|
|
44
44
|
export function getSessionCookieName(verticalId) {
|
|
45
45
|
return `gamaro_session_${sanitizeCookieId(verticalId)}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamaro.io/core-types",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Cross-workspace TypeScript contracts and Zod schemas consumed by @gamaro.io/widget. Intended as a peer of the widget SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"zod": "4.6.5"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@microsoft/api-extractor": "^7.59.
|
|
61
|
+
"@microsoft/api-extractor": "^7.59.4",
|
|
62
62
|
"typescript": "^6.0.3"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|