@gscdump/engine-duckdb-wasm 1.4.10 → 1.5.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.
package/dist/runner.d.mts CHANGED
@@ -15,14 +15,6 @@ interface InsightRunner {
15
15
  close: () => Promise<void>;
16
16
  }
17
17
  declare function createInsightRunner(opts: InsightRunnerOptions): Promise<InsightRunner>;
18
- /**
19
- * Build a per-table predicate set from {siteId, window}. The returned
20
- * `wherePredicates` composes with user-level filters via `mergeScope`.
21
- *
22
- * Note: the current SCHEMAS don't include `site_id` on any table (snapshots
23
- * are already per-site), so `siteId` is a no-op for now — kept in the API
24
- * so consumers can add the predicate without an interface change when
25
- * multi-site snapshots land.
26
- */
27
- declare const scopeFor: (table: "pages" | "queries" | "countries" | "page_queries" | "dates" | "search_appearance" | "search_appearance_pages" | "search_appearance_queries" | "search_appearance_page_queries" | "hourly_pages", opts: ScopedRunnerOptions) => TableScope, mergeScope: typeof import("@gscdump/engine/scope").mergeScope;
18
+ declare const scopeFor: (table: "pages" | "queries" | "countries" | "page_queries" | "dates" | "search_appearance" | "search_appearance_pages" | "search_appearance_queries" | "search_appearance_page_queries" | "hourly_pages", opts: ScopedRunnerOptions) => TableScope;
19
+ declare const mergeScope: typeof import("@gscdump/engine/scope").mergeScope;
28
20
  export { InsightRunner, InsightRunnerOptions, type ScopedRunnerOptions, type TableScope, createInsightRunner, mergeScope, scopeFor };
package/dist/runner.mjs CHANGED
@@ -15,5 +15,7 @@ async function createInsightRunner(opts) {
15
15
  close: () => client.close()
16
16
  };
17
17
  }
18
- const { scopeFor, mergeScope } = createScopedHelpers(schema);
18
+ const scopedHelpers = createScopedHelpers(schema);
19
+ const scopeFor = scopedHelpers.scopeFor;
20
+ const mergeScope = scopedHelpers.mergeScope;
19
21
  export { createInsightRunner, mergeScope, scopeFor };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/engine-duckdb-wasm",
3
3
  "type": "module",
4
- "version": "1.4.10",
4
+ "version": "1.5.0",
5
5
  "description": "DuckDB-WASM engine adapter for @gscdump/analysis — typed browser analytics against parquet via R2.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -45,15 +45,15 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "drizzle-orm": "1.0.0-rc.3",
48
- "@gscdump/contracts": "^1.4.10",
49
- "@gscdump/engine": "^1.4.10",
50
- "gscdump": "^1.4.10"
48
+ "@gscdump/contracts": "^1.5.0",
49
+ "@gscdump/engine": "^1.5.0",
50
+ "gscdump": "^1.5.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@duckdb/duckdb-wasm": "1.33.1-dev57.0",
54
54
  "@vitest/browser": "^4.1.10",
55
55
  "@vitest/browser-playwright": "^4.1.10",
56
- "playwright": "^1.61.1",
56
+ "playwright": "^1.62.0",
57
57
  "vitest": "^4.1.10"
58
58
  },
59
59
  "scripts": {