@syntrologie/runtime-sdk 2.0.1-canary.4 → 2.1.0-canary.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/dist/types.d.ts CHANGED
@@ -1,3 +1,16 @@
1
+ export { SDK_VERSION } from './version';
2
+ /**
3
+ * SDK schema version in Major.Minor format (e.g., "2.0", "2.1").
4
+ * Used for compatibility checking between SDK and backend configs.
5
+ * Sent in X-SDK-Schema-Version header.
6
+ *
7
+ * Bump rules:
8
+ * - Major: Breaking changes (field removal, type changes)
9
+ * - Minor: Backwards-compatible additions (new optional fields)
10
+ *
11
+ * @since 2.0.0
12
+ */
13
+ export declare const SDK_SCHEMA_VERSION = "2.0";
1
14
  export type { ActionStep } from './actions/types';
2
15
  /**
3
16
  * Props passed to every tile component when mounted
@@ -332,6 +345,14 @@ export interface RoutesConfig {
332
345
  * for all interventions: DOM modifications, tooltips, highlights, modals.
333
346
  */
334
347
  export interface CanvasConfigResponse {
348
+ /**
349
+ * Schema version this config conforms to (e.g., "2.0", "2.1").
350
+ * Used for compatibility checking and automatic migration between versions.
351
+ * If omitted, defaults to "1.0" for backwards compatibility.
352
+ *
353
+ * @since 2.0.0
354
+ */
355
+ schemaVersion?: string;
335
356
  /** Tiles to display in the canvas drawer */
336
357
  tiles: TileConfig[];
337
358
  /**
package/dist/types.js CHANGED
@@ -1,5 +1,18 @@
1
1
  // =============================================================================
2
- // RE-EXPORT ACTION TYPES
2
+ // SDK VERSION CONSTANTS
3
3
  // =============================================================================
4
- export {};
4
+ // Re-export SDK_VERSION from the auto-generated version file
5
+ export { SDK_VERSION } from './version';
6
+ /**
7
+ * SDK schema version in Major.Minor format (e.g., "2.0", "2.1").
8
+ * Used for compatibility checking between SDK and backend configs.
9
+ * Sent in X-SDK-Schema-Version header.
10
+ *
11
+ * Bump rules:
12
+ * - Major: Breaking changes (field removal, type changes)
13
+ * - Minor: Backwards-compatible additions (new optional fields)
14
+ *
15
+ * @since 2.0.0
16
+ */
17
+ export const SDK_SCHEMA_VERSION = '2.0';
5
18
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yBAAyB;AACzB,gFAAgF"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wBAAwB;AACxB,gFAAgF;AAEhF,6DAA6D;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * SDK package version.
3
+ *
4
+ * This file is auto-generated at release time by `scripts/prepare-release.mjs`.
5
+ * The sentinel value below is overwritten with the real semver version
6
+ * during the semantic-release prepare phase.
7
+ *
8
+ * DO NOT import version from package.json — this constant is the single
9
+ * source of truth for the runtime bundle.
10
+ *
11
+ * @since 2.0.0
12
+ */
13
+ export declare const SDK_VERSION = "2.1.0-canary.1";
@@ -0,0 +1,14 @@
1
+ /**
2
+ * SDK package version.
3
+ *
4
+ * This file is auto-generated at release time by `scripts/prepare-release.mjs`.
5
+ * The sentinel value below is overwritten with the real semver version
6
+ * during the semantic-release prepare phase.
7
+ *
8
+ * DO NOT import version from package.json — this constant is the single
9
+ * source of truth for the runtime bundle.
10
+ *
11
+ * @since 2.0.0
12
+ */
13
+ export const SDK_VERSION = '2.1.0-canary.1';
14
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntrologie/runtime-sdk",
3
- "version": "2.0.1-canary.4",
3
+ "version": "2.1.0-canary.1",
4
4
  "description": "Syntrologie Runtime SDK for web experimentation and analytics",
5
5
  "license": "Proprietary",
6
6
  "private": false,
@@ -57,9 +57,8 @@
57
57
  "@floating-ui/dom": "~1.6.13",
58
58
  "@growthbook/growthbook": "~1.6.2",
59
59
  "@growthbook/growthbook-react": "~1.6.2",
60
- "@syntrologie/app-content": "^2.0.0",
61
- "@syntrologie/app-navigation": "^2.0.0",
62
- "@syntrologie/app-overlays": "^2.0.0",
60
+ "@syntrologie/adapt-content": "2.1.0-canary.1",
61
+ "@syntrologie/adapt-overlays": "2.1.0-canary.1",
63
62
  "posthog-js": "~1.302.2",
64
63
  "zod": "~3.25.0"
65
64
  },
@@ -75,6 +74,10 @@
75
74
  "react": "^18.3.1",
76
75
  "react-dom": "^18.3.1",
77
76
  "typescript": "~5.7.0",
78
- "vitest": "^4.0.18"
77
+ "vitest": "^4.0.18",
78
+ "semantic-release": "~25.0.3",
79
+ "@semantic-release/npm": "~13.1.3",
80
+ "@semantic-release/exec": "~7.1.0",
81
+ "@semantic-release/github": "~12.0.3"
79
82
  }
80
83
  }