Skip to content

JS bindings changes - #4227

Merged
kddnewton merged 13 commits into
mainfrom
js-fixes
Sep 12, 2026
Merged

JS bindings changes#4227
kddnewton merged 13 commits into
mainfrom
js-fixes

Conversation

@kddnewton

Copy link
Copy Markdown
Collaborator
  • Overall the biggest change is the main entrypoint now accepts a Uint8Array instead of a string in order to accomadate actually properly parsing without going through the UTF-16 JS intermediary.
  • Added a Location and Source class to the JS bindings to make them a little more ergonomic. Also using them in the playground.
  • Learned a ton about TextEncoder and TextDecoder, started properly using these APIs.
  • Cut down quite a bit on the WASM size, because now we're only exporting the 7 functions we actually need, as opposed to exposing the entire footprint.

@kddnewton
kddnewton merged commit c53699f into main Sep 12, 2026
110 checks passed
@kddnewton
kddnewton deleted the js-fixes branch September 12, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant