@gamaro.io/core-types 1.1.1 → 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 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 {
@@ -20,7 +20,7 @@ export const applicationConfigResponseSchema = z.object({
20
20
  vertical: z
21
21
  .string()
22
22
  .max(50)
23
- .describe("Vertical resolved from Application config"),
23
+ .describe("Deprecated: the widget no longer reads it. Still served for already-published widgets that validate it; removed in the next major."),
24
24
  theme: themeConfigSchema.nullable().describe("Application theme"),
25
25
  allowedOrigins: z
26
26
  .array(z.string().max(200))
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
- * Kept ONLY to read, re-emit or purge cookies issued before #3577 (verified
28
- * hand-off of the visitor profile). Do not use for new cookies. Removal is
29
- * coupled with the legacy read-path removal in epic #3154 step 3 (bascule).
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} for new cookies;
32
- * this derivation survives only to read legacy cookies during the transition.
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
- * Kept ONLY to read, re-emit or purge cookies issued before #3577 (verified
38
- * hand-off of the visitor profile). Do not use for new cookies. Removal is
39
- * coupled with the legacy read-path removal in epic #3154 step 3 (bascule).
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} for new cookies;
42
- * this derivation survives only to read legacy cookies during the transition.
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.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.3",
61
+ "@microsoft/api-extractor": "^7.59.4",
62
62
  "typescript": "^6.0.3"
63
63
  },
64
64
  "scripts": {