From c226da5e8108307cfe1750f0862a465244711cf8 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 20 Sep 2024 16:24:51 +0200 Subject: [PATCH] Update version of `hastscript` in docs --- example/create-tree.js | 3 ++- readme.md | 6 +++--- types.d.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/create-tree.js b/example/create-tree.js index 9a1e030..ee9243f 100644 --- a/example/create-tree.js +++ b/example/create-tree.js @@ -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', [ diff --git a/readme.md b/readme.md index 81e94a6..4c91fd2 100644 --- a/readme.md +++ b/readme.md @@ -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' @@ -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' @@ -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' diff --git a/types.d.ts b/types.d.ts index fb9c253..5fe934a 100644 --- a/types.d.ts +++ b/types.d.ts @@ -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' }