From 263fe660454dd8cf8d2079a29d8375f2de55ba38 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 19 Mar 2024 16:57:07 -0700 Subject: [PATCH] 1.4.0 (#1112) * 1.4.0 * add version badges * tweak wording --- docs/javascript/files.md | 2 +- docs/lib/duckdb.md | 4 ++-- docs/sql.md | 4 ++-- package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/javascript/files.md b/docs/javascript/files.md index 86f09b2f0..e35fc3c7c 100644 --- a/docs/javascript/files.md +++ b/docs/javascript/files.md @@ -10,7 +10,7 @@ Load files — whether static or generated dynamically by a [data loader](../loa import {FileAttachment} from "npm:@observablehq/stdlib"; ``` -The `FileAttachment` function takes a path and returns a file handle. This handle exposes the file’s name, [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types), and last modification date as the number of milliseconds since UNIX epoch. +The `FileAttachment` function takes a path and returns a file handle. This handle exposes the file’s name, [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types), and modification time (represented as the number of milliseconds since UNIX epoch). ```js echo FileAttachment("volcano.json") diff --git a/docs/lib/duckdb.md b/docs/lib/duckdb.md index e9137b319..684779904 100644 --- a/docs/lib/duckdb.md +++ b/docs/lib/duckdb.md @@ -55,7 +55,7 @@ Plot.plot({ }) ``` -You can also [attach](https://duckdb.org/docs/sql/statements/attach) a complete database saved as DuckDB file, typically using the `.db` file extension (or `.ddb` or `.duckdb`). In this case, the associated name (below `base`) is a _schema_ name rather than a _table_ name. +You can also [attach](https://duckdb.org/docs/sql/statements/attach) a complete database saved as DuckDB file, typically using the `.db` file extension (or `.ddb` or `.duckdb`). In this case, the associated name (below `base`) is a _schema_ name rather than a _table_ name. ```js echo const db2 = await DuckDBClient.of({base: FileAttachment("quakes.db")}); @@ -92,7 +92,7 @@ db.queryRow("SELECT count() AS count FROM gaia") See the [DatabaseClient Specification](https://observablehq.com/@observablehq/database-client-specification) for more details on these methods. -Finally, the `DuckDBClient.sql` method takes the same arguments as `DuckDBClient.of` and returns the corresponding `db.sql` tagged template literal. The returned function can be used to redefine the built-in [`sql` tagged template literal](../sql#sql-literals) and thereby change the database used by [SQL code blocks](../sql), allowing you to query dynamically-registered tables (unlike the **sql** front matter option). +Finally, the `DuckDBClient.sql` method takes the same arguments as `DuckDBClient.of` and returns the corresponding `db.sql` tagged template literal. The returned function can be used to redefine the built-in [`sql` tagged template literal](../sql#sql-literals) and thereby change the database used by [SQL code blocks](../sql), allowing you to query dynamically-registered tables (unlike the **sql** front matter option). ```js const feed = view(Inputs.select(new Map([["M4.5+", "4.5"], ["M2.5+", "2.5"], ["All", "all"]]), {label: "Earthquake feed"})); diff --git a/docs/sql.md b/docs/sql.md index 0b862ad31..245ce0904 100644 --- a/docs/sql.md +++ b/docs/sql.md @@ -16,7 +16,7 @@ sql: --- ``` -To load externally-hosted data, you can use a full URL: +To load externally-hosted data, use a full URL: ```yaml --- @@ -25,7 +25,7 @@ sql: --- ``` -
For performance and reliability, we recommend using local files rather than loading data from external servers at runtime. If needed, you can use a data loader to take a snapshot of a remote data during build.
+
For performance and reliability, we recommend using local files rather than loading data from external servers at runtime. You can use a data loader to take a snapshot of a remote data during build if needed.
You can also register tables via code (say to have sources that are defined dynamically via user input) by defining the `sql` symbol with [DuckDBClient.sql](./lib/duckdb). diff --git a/package.json b/package.json index ab6560fc0..6ffcf1c0a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@observablehq/framework", "license": "ISC", - "version": "1.3.0", + "version": "1.4.0", "type": "module", "publishConfig": { "access": "public"