Skip to content

Commit 263fe66

Browse files
authored
1.4.0 (#1112)
* 1.4.0 * add version badges * tweak wording
1 parent 501c3c4 commit 263fe66

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/javascript/files.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Load files — whether static or generated dynamically by a [data loader](../loa
1010
import {FileAttachment} from "npm:@observablehq/stdlib";
1111
```
1212

13-
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.
13+
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 <a href="https://github.com/observablehq/framework/releases/tag/v1.4.0" target="_blank" class="observablehq-version-badge" data-version="^1.4.0" title="Added in 1.4.0"></a> (represented as the number of milliseconds since UNIX epoch).
1414

1515
```js echo
1616
FileAttachment("volcano.json")

docs/lib/duckdb.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Plot.plot({
5555
})
5656
```
5757

58-
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.
58+
You can also [attach](https://duckdb.org/docs/sql/statements/attach) a complete database saved as DuckDB file, <a href="https://github.com/observablehq/framework/releases/tag/v1.4.0" target="_blank" class="observablehq-version-badge" data-version="^1.4.0" title="Added in 1.4.0"></a> 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.
5959

6060
```js echo
6161
const db2 = await DuckDBClient.of({base: FileAttachment("quakes.db")});
@@ -92,7 +92,7 @@ db.queryRow("SELECT count() AS count FROM gaia")
9292

9393
See the [DatabaseClient Specification](https://observablehq.com/@observablehq/database-client-specification) for more details on these methods.
9494

95-
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).
95+
Finally, the `DuckDBClient.sql` method <a href="https://github.com/observablehq/framework/releases/tag/v1.4.0" target="_blank" class="observablehq-version-badge" data-version="^1.4.0" title="Added in 1.4.0"></a> 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).
9696

9797
```js
9898
const feed = view(Inputs.select(new Map([["M4.5+", "4.5"], ["M2.5+", "2.5"], ["All", "all"]]), {label: "Earthquake feed"}));

docs/sql.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sql:
1616
---
1717
```
1818

19-
To load externally-hosted data, you can use a full URL:
19+
To load externally-hosted data, use a full URL: <a href="https://github.com/observablehq/framework/releases/tag/v1.4.0" target="_blank" class="observablehq-version-badge" data-version="^1.4.0" title="Added in 1.4.0"></a>
2020

2121
```yaml
2222
---
@@ -25,7 +25,7 @@ sql:
2525
---
2626
```
2727

28-
<div class="tip">For performance and reliability, we recommend using local files rather than loading data from external servers at runtime. If needed, you can use a <a href="./loaders">data loader</a> to take a snapshot of a remote data during build.</div>
28+
<div class="tip">For performance and reliability, we recommend using local files rather than loading data from external servers at runtime. You can use a <a href="./loaders">data loader</a> to take a snapshot of a remote data during build if needed.</div>
2929

3030
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).
3131

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@observablehq/framework",
33
"license": "ISC",
4-
"version": "1.3.0",
4+
"version": "1.4.0",
55
"type": "module",
66
"publishConfig": {
77
"access": "public"

0 commit comments

Comments
 (0)