@willbooster/web-tree-sitter 23.0.4 → 23.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -163,7 +163,7 @@ If everything is fine, file `tree-sitter-javascript.wasm` should be generated in
163
163
 
164
164
  ### Wasm compatibility
165
165
 
166
- `@willbooster/web-tree-sitter` accepts language ABI `0x5742000d`. Generate parsers with the CLI from the same release
166
+ `@willbooster/web-tree-sitter` accepts language ABIs `0x5742000d` and `0x5742000e`. Generate parsers with the CLI from the same release
167
167
  as the runtime, then rebuild their `.wasm` files. Parsers generated for other ABI versions are rejected, including
168
168
  those generated by upstream's CLI.
169
169
 
@@ -866,7 +866,7 @@ var require_web_tree_sitter = __commonJS({
866
866
  }, "convertJsFunctionToWasm");
867
867
  var wasmTableMirror = [];
868
868
  var wasmTable = new WebAssembly.Table({
869
- "initial": 62,
869
+ "initial": 64,
870
870
  "element": "anyfunc"
871
871
  });
872
872
  var getWasmTableEntry = /* @__PURE__ */ __name((funcPtr) => {
@@ -3435,7 +3435,7 @@ function assertSupportedLanguage(language) {
3435
3435
  const version = C._ts_language_abi_version(language[0]);
3436
3436
  if (version < MIN_COMPATIBLE_VERSION || version > LANGUAGE_VERSION) {
3437
3437
  throw new Error(
3438
- `Incompatible language version 0x${(version >>> 0).toString(16)}. Expected 0x${LANGUAGE_VERSION.toString(16)}.`
3438
+ `Incompatible language version 0x${(version >>> 0).toString(16)}. Expected 0x${MIN_COMPATIBLE_VERSION.toString(16)} to 0x${LANGUAGE_VERSION.toString(16)}.`
3439
3439
  );
3440
3440
  }
3441
3441
  }