diff --git a/.changeset/html-first-release.md b/.changeset/html-first-release.md deleted file mode 100644 index 28be598..0000000 --- a/.changeset/html-first-release.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@bomb.sh/html': minor ---- - -Adds `@bomb.sh/html`, a spec-conformant HTML parser compiled to WebAssembly. `parse(html)` returns a document tree of plain objects, and `parseFragment(html, { context: 'div' })` parses a fragment the way `innerHTML` does. Both take a string, UTF-8 bytes, or an iterable of either, and return synchronously; given an async iterable or a `ReadableStream`, they return a promise. - -`@bomb.sh/html/sink` parses into any DOM through a `TreeSink`, and `@bomb.sh/html/log` returns the engine's op log and `replay()`s it. `limits: { nodes, logBytes }` stops a parse that builds more than its budget with a `LimitError`, before a sink sees any of it. The engine is embedded in the package, seeds its hash tables per instance, and compiles on the first parse. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..325a269 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# @bomb.sh/html + +## 0.1.0 + +### Minor Changes + +- 6625e62: Adds `@bomb.sh/html`, a spec-conformant HTML parser compiled to WebAssembly. `parse(html)` returns a document tree of plain objects, and `parseFragment(html, { context: 'div' })` parses a fragment the way `innerHTML` does. Both take a string, UTF-8 bytes, or an iterable of either, and return synchronously; given an async iterable or a `ReadableStream`, they return a promise. + + `@bomb.sh/html/sink` parses into any DOM through a `TreeSink`, and `@bomb.sh/html/log` returns the engine's op log and `replay()`s it. `limits: { nodes, logBytes }` stops a parse that builds more than its budget with a `LimitError`, before a sink sees any of it. The engine is embedded in the package, seeds its hash tables per instance, and compiles on the first parse. diff --git a/package.json b/package.json index 61e6a5e..7151074 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bomb.sh/html", - "version": "0.0.0", + "version": "0.1.0", "keywords": [ "bombshell", "html",