Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/html-first-release.md

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bomb.sh/html",
"version": "0.0.0",
"version": "0.1.0",
"keywords": [
"bombshell",
"html",
Expand Down
Loading