@willbooster/web-tree-sitter 16.1.0 → 17.0.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.
@@ -3917,7 +3917,7 @@ var TRANSFER_BUFFER;
3917
3917
  var LANGUAGE_VERSION;
3918
3918
  function assertSupportedLanguage(language) {
3919
3919
  const version = C._ts_language_abi_version(language[0]);
3920
- if (version !== LANGUAGE_VERSION) {
3920
+ if (version < MIN_COMPATIBLE_VERSION || version > LANGUAGE_VERSION) {
3921
3921
  throw new Error(
3922
3922
  `Incompatible language version 0x${(version >>> 0).toString(16)}. Expected 0x${LANGUAGE_VERSION.toString(16)}.`
3923
3923
  );
@@ -3986,8 +3986,8 @@ var Parser = class {
3986
3986
  * If the language was not successfully assigned, an error will be thrown.
3987
3987
  * This happens if the language was generated with an incompatible
3988
3988
  * version of the Tree-sitter CLI. Check the language's version using
3989
- * {@link Language#abiVersion} and compare it to this library's
3990
- * {@link LANGUAGE_VERSION} constant.
3989
+ * {@link Language#abiVersion}; this library accepts versions from
3990
+ * {@link MIN_COMPATIBLE_VERSION} to {@link LANGUAGE_VERSION}.
3991
3991
  */
3992
3992
  setLanguage(language) {
3993
3993
  let address;