Skip to content

Commit

Permalink
Update version of hastscript in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 20, 2024
1 parent b78dd7e commit c226da5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion example/create-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

/* eslint-env browser */

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

export function createTree() {
return h('div', [
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ Yields:
In a browser, do:

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

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

```js
import {h} from 'https://esm.sh/hastscript@8'
import {h} from 'https://esm.sh/hastscript@9'
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@2'
import {createApp} from 'https://esm.sh/vue@3'
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue@3/jsx-runtime'
Expand Down
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Support loading hastscript from https://esm.sh
declare module 'https://esm.sh/hastscript@8?dev' {
declare module 'https://esm.sh/hastscript@9?dev' {
export * from 'hastscript'
}

0 comments on commit c226da5

Please sign in to comment.