Skip to content

Commit c226da5

Browse files
committed
Update version of hastscript in docs
1 parent b78dd7e commit c226da5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

example/create-tree.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
/* eslint-env browser */
88

9-
import {h, s} from 'https://esm.sh/hastscript@8?dev'
9+
// To do: note: update this once in a while.
10+
import {h, s} from 'https://esm.sh/hastscript@9?dev'
1011

1112
export function createTree() {
1213
return h('div', [

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ Yields:
501501
In a browser, do:
502502

503503
```js
504-
import {h} from 'https://esm.sh/hastscript@8'
504+
import {h} from 'https://esm.sh/hastscript@9'
505505
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'
506506
import {Fragment, jsx, jsxs} from 'https://esm.sh/preact@10/jsx-runtime'
507507
import {render} from 'https://esm.sh/preact@10'
@@ -549,7 +549,7 @@ Yields:
549549
In a browser, do:
550550

551551
```js
552-
import {h} from 'https://esm.sh/hastscript@8'
552+
import {h} from 'https://esm.sh/hastscript@9'
553553
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'
554554
import {Fragment, jsx, jsxs} from 'https://esm.sh/solid-js@1/h/jsx-runtime'
555555
import {render} from 'https://esm.sh/solid-js@1/web'
@@ -623,7 +623,7 @@ Yields:
623623
In a browser, do:
624624

625625
```js
626-
import {h} from 'https://esm.sh/hastscript@8'
626+
import {h} from 'https://esm.sh/hastscript@9'
627627
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'
628628
import {createApp} from 'https://esm.sh/vue@3'
629629
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue@3/jsx-runtime'

types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Support loading hastscript from https://esm.sh
2-
declare module 'https://esm.sh/hastscript@8?dev' {
2+
declare module 'https://esm.sh/hastscript@9?dev' {
33
export * from 'hastscript'
44
}

0 commit comments

Comments
 (0)