Skip to content

Releases

v0.5.0

Choose a tag to compare

@rustyconover rustyconover released this 25 Nov 06:11

Full Changelog: v0.4.2...v0.5.0

v0.4.2

Choose a tag to compare

@rustyconover rustyconover released this 17 Nov 00:48

Full Changelog: v0.4.1...v0.4.2

v0.4.1

Choose a tag to compare

@rustyconover rustyconover released this 15 Nov 05:14

Full Changelog: v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@rustyconover rustyconover released this 12 Nov 15:35

Speaks VGI protocol 3.3 (@query-farm/vgi 0.50.0) and requires the current VGI DuckDB extension; 3.2 extensions are incompatible. No worker-visible SQL changes: the worker exposes only table functions. Tested against haybarn 2.0.0rc11 and the protocol 3.3 vgi extension: unit tests (31), npm bundle IPC smoke under Node 20, and the SQL suite over stdio and HTTP (267 assertions each). The hosted Cloudflare worker needs a redeploy to pick this up.

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@rustyconover rustyconover released this 11 Nov 02:16

Ports the worker to VGI protocol 3.2 (@query-farm/vgi 0.25 → 0.49, @query-farm/vgi-rpc 0.29). v0.2.1 speaks an older protocol, which the current community vgi extension refuses.

Also since v0.2.1: multi-location requests with continued output, a curated semantic model, response provenance columns and temporal support.

Tested against haybarn 2.0 and the protocol 3.2 vgi extension: unit tests (31), and the SQL suite over stdio and HTTP (267 assertions each). The SQL suites run locally because Open-Meteo throttles GitHub-hosted runners.

Full Changelog: v0.2.1...v0.3.0

v0.2.1 — no require polyfill in the published bin

Choose a tag to compare

@rustyconover rustyconover released this 12 Aug 15:18

Maintenance release. Nothing changes for anyone attaching the worker.

Changed

Picks up @query-farm/vgi-rpc 0.19.4, which reaches node:fs.writeSync through process.getBuiltinModule when neither import.meta.require nor globalThis.require exists — that is, on every Node ESM consumer.

That was this package's problem to work around, and it is now fixed upstream, so the build banner is back to a bare shebang instead of injecting a require shim into the published bundle. The dependency floor matters: below 0.19.4 the worker starts, answers bind, and then dies on its first write.

Verified with 123 assertions under plain node with the polyfill removed.

Install

npx -y @query-farm/vgi-open-meteo
docker run --rm -p 8000:8000 ghcr.io/query-farm/vgi-open-meteo:0.2.1
ATTACH 'open_meteo' AS m (TYPE vgi, LOCATION 'npx -y @query-farm/vgi-open-meteo');

v0.2.0 — column arguments, npm, and a container image

Choose a tag to compare

@rustyconover rustyconover released this 12 Aug 14:53

First published build. Three ways to run it, for three kinds of user.

Arguments can be columns

Every function is now a blended row-transform, so positional arguments are per-row input columns rather than bind-time literals. One registration serves all three call shapes — a literal call, a comma join, and LATERAL — which makes the place-name bridge a single query:

SELECT g.name, w.temperature_2m,
       m.main.weather_code_text(w.weather_code) AS conditions
FROM m.main.geocoding('Glen Allen', count := 1, country_code := 'US') AS g,
     LATERAL m.main.forecast_current(g.latitude, g.longitude) AS w;

Multi-location is a join instead of a UNION ALL per site. Literal calls are unchanged — the same function, called with a one-row input.

Install

# stdio worker, straight from npm — this is what DuckDB's ATTACH spawns
npx -y @query-farm/vgi-open-meteo

# or serve it over HTTP
docker run --rm -p 8000:8000 ghcr.io/query-farm/vgi-open-meteo:latest
ATTACH 'open_meteo' AS m (TYPE vgi, LOCATION 'npx -y @query-farm/vgi-open-meteo');

The npm bin is a single self-contained bundle: one download, no transitive installs, and it runs on plain node ≥ 20. The image is published for linux/amd64 and linux/arm64.

Also in this release

  • Upgraded to @query-farm/vgi 0.25.3 and @query-farm/vgi-rpc 0.19.3. The previous pins could no longer ATTACH at all against a current DuckDB VGI extension — a protocol mismatch on resolved_data_version.
  • Three bugs found on the way up were fixed upstream rather than worked around: Cloudflare double-encoding compressed responses, a bare process.env read that made every table-in-out call fail on workerd, and defineRowTransformFunction missing from the workerd facade.
  • vgi-lint back to 100/100, including example descriptions that were being dropped in transit to DuckDB.
  • CI: typecheck, npm bundle build, a smoke test that the bundle starts under node, and a multi-arch image build that asserts /health answers.

Verified on all four paths — stdio, HTTP, the deployed Cloudflare worker, and the published container image — at 123 assertions each.