Skip to content

Commit

Permalink
1.5.0 (#1146)
Browse files Browse the repository at this point in the history
* 1.5.0

* doc edits

* cache forecast.json
  • Loading branch information
mbostock authored Mar 26, 2024
1 parent b6b982b commit 0186815
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/data/forecast.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Next, decide whether you want sample files in your new project. These files demo
<pre data-copy="none"><span class="muted">┌</span> <span class="invert"> observable create </span>
<span class="muted">│</span>
<span class="green">◇</span> Where to create your project?
<span class="muted">│</span> <span class="muted">./hello-framework</span>
<span class="muted">│</span> <span class="muted">hello-framework</span>
<span class="muted">│</span>
<span class="green">◇</span> What to title your project?
<span class="muted">│</span> <span class="muted">Hello Framework</span>
Expand Down Expand Up @@ -194,7 +194,7 @@ And that’s it! After some downloading, copying, and installing, your new proje
<span class="muted">│</span>
<span class="green">◇</span> Next steps… <span class="muted">──────────╮</span>
<span class="muted">│</span> <span class="muted">│</span>
<span class="muted">│</span> <span class="focus">cd hello-framework</span> <span class="muted">│</span>
<span class="muted">│</span> <span class="focus">cd hello-framework</span> <span class="muted">│</span>
<span class="muted">│</span> <span class="focus">yarn dev</span> <span class="muted">│</span>
<span class="muted">│</span> <span class="muted">│</span>
<span class="muted">├────────────────────────╯</span>
Expand All @@ -221,7 +221,7 @@ Or with Yarn:

You should see something like this:

<pre data-copy="none"><b class="green">Observable Framework</b> v1.3.0
<pre data-copy="none"><b class="green">Observable Framework</b> v1.5.0
↳ <u><a href="http://127.0.0.1:3000/" style="color: inherit;">http://127.0.0.1:3000/</a></u></pre>

<div class="tip">
Expand Down
2 changes: 1 addition & 1 deletion docs/javascript/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ For missing files, `file.lastModified` is undefined. The `file.mimeType` is dete

The contents often dictate the appropriate method — for example, an Apache Arrow file is almost always read with `file.arrow`. When multiple methods are valid, choose based on your needs. For example, you can load a CSV file using `file.text` to implement parsing yourself instead of using D3.

In addition to the above, you can get the resolved absolute URL of the file using `file.href`:
In addition to the above, you can get the resolved absolute URL of the file using `file.href`: <a href="https://github.com/observablehq/framework/releases/tag/v1.5.0" class="observablehq-version-badge" data-version="^1.5.0" title="Added in 1.5.0"></a>

```js echo
FileAttachment("volcano.json").href
Expand Down
2 changes: 1 addition & 1 deletion docs/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Cell 1-2 | Cell 2-2 | Cell 3-2
[external link](<https://en.wikipedia.org/wiki/Tar_(computing)>)
```

For privacy and convenience, links to external resources are given a default `rel` attribute of [`noreferrer`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noreferrer) and [`noopener`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noopener), and a default `target` attribute of [`_blank`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). Hence by default an external link will open in a new window and not pass the (potentially sensitive) referrer to the (potentially untrusted) external site. You can override this behavior by specifying the `rel` or `target` attribute explicitly. For example `<a href="https://example.com" target="_self">` will open in the same window, and `<a href="https://acme.com" rel="">` will allow the referrer.
For privacy and convenience, external links are given a default `rel` attribute of [`noreferrer`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noreferrer) [`noopener`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noopener) and a default `target` attribute of [`_blank`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). <a href="https://github.com/observablehq/framework/releases/tag/v1.5.0" class="observablehq-version-badge" data-version="^1.5.0" title="Added in 1.5.0"></a> Hence by default an external link will open in a new window and not pass the (potentially sensitive) referrer to the (potentially untrusted) external site. You can override this behavior by specifying the `rel` or `target` attribute explicitly. For example `<a href="https://example.com" target="_self">` will open in the same window, and `<a href="https://acme.com" rel="">` will allow the referrer.

## Images

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@observablehq/framework",
"license": "ISC",
"version": "1.4.0",
"version": "1.5.0",
"type": "module",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 0186815

Please sign in to comment.