@lightdash/query-sdk 1.5.1 → 1.6.0

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.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.5.1";
1
+ export declare const SDK_VERSION = "1.6.0";
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/generateSdkVersion.mjs (prebuild) — do not edit.
2
- export const SDK_VERSION = '1.5.1';
2
+ export const SDK_VERSION = '1.6.0';
package/dist/manifest.js CHANGED
@@ -18,11 +18,13 @@ export function announceSdkManifest(targetWindow) {
18
18
  sdkVersion: SDK_VERSION,
19
19
  features: SDK_FEATURE_KEYS,
20
20
  };
21
- // Bundles are served from the host page's own origin, and location.origin
22
- // is URL-derived so it survives the sandboxed (opaque-origin) iframe.
23
- const { origin } = window.location;
24
- const targetOrigin = origin && origin !== 'null' ? origin : '*';
25
- const post = () => targetWindow.postMessage(message, targetOrigin);
21
+ // Wildcard on purpose do NOT "fix" this to an origin. Cloud serves
22
+ // bundles from {customer}.lightdash.app while the host page runs on
23
+ // {customer}.lightdash.cloud, so the bundle cannot derive the parent's
24
+ // origin, and a mismatched targetOrigin silently drops the manifest
25
+ // (every app then shows as legacy/upgradeable). Matches every other
26
+ // bridge message; the payload is public constants from this package.
27
+ const post = () => targetWindow.postMessage(message, '*');
26
28
  activeCleanup?.();
27
29
  const handler = (event) => {
28
30
  if (event.source !== targetWindow)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/query-sdk",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "SDK for building custom data apps against the Lightdash semantic layer",
@@ -35,7 +35,7 @@
35
35
  "typescript": "npm:@typescript/typescript6@6.0.1",
36
36
  "typescript-7": "npm:typescript@7.0.1-rc",
37
37
  "vitest": "4.1.6",
38
- "@lightdash/common": "1.5.1"
38
+ "@lightdash/common": "1.6.0"
39
39
  },
40
40
  "scripts": {
41
41
  "prebuild": "node ./scripts/generateSdkVersion.mjs",