@xberg-io/tree-sitter-language-pack 1.25.2 → 1.27.1

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
@@ -1,5 +1,5 @@
1
1
  <!-- This file is auto-generated by alef — DO NOT EDIT. -->
2
- <!-- alef:hash:a32376f06acd6cfb4ec86dd69b49d54dffd791d4980797512b49009d0bddaa9f -->
2
+ <!-- alef:hash:0f86142d8219cc43ba98859dc7198a699d2a6d8150b42a6ad110f7729530440f -->
3
3
  <!-- To regenerate: alef readme -->
4
4
  <!-- To verify freshness: alef verify -->
5
5
 
@@ -163,7 +163,7 @@ void main();
163
163
  ## Part of Xberg
164
164
 
165
165
  - [Xberg](https://github.com/xberg-io/xberg) — document intelligence: text, tables, metadata from 101 formats with optional OCR.
166
- - [Xberg Enterprise](https://github.com/xberg-io/xberg-enterprise) — managed extraction API with SDKs, dashboards, and observability.
166
+ - [Xberg Enterprise](https://pro.xberg.io) — managed extraction API with SDKs, dashboards, and observability.
167
167
  - [crawlberg](https://github.com/xberg-io/crawlberg) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
168
168
  - [html-to-markdown](https://github.com/xberg-io/html-to-markdown) — fast, lossless HTML→Markdown engine.
169
169
  - [liter-llm](https://github.com/xberg-io/liter-llm) — universal LLM API client with native bindings for 14 languages and 165 providers.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef — DO NOT EDIT.
2
- // alef:hash:0bd2048ca6eb060e574ad961cd1e112a1683db04bf2e28e1d595b0ec3e589879
2
+ // alef:hash:46317da62f751125dc0fe8a38f0b201bbf35ec47554bd8f9f2d7037855eb38e3
3
3
  // To regenerate: alef generate
4
4
  // To verify freshness: alef verify
5
5
  /* eslint-disable */
@@ -630,6 +630,22 @@ export interface ImportInfo {
630
630
  readonly span?: Span
631
631
  }
632
632
 
633
+ /** A change to a source document, measured in UTF-8 bytes. */
634
+ export interface InputEdit {
635
+ /** Start offset in both documents. */
636
+ readonly startByte: number
637
+ /** End offset of the replaced text in the original document. */
638
+ readonly oldEndByte: number
639
+ /** End offset of the replacement text in the new document. */
640
+ readonly newEndByte: number
641
+ /** Start position in both documents. */
642
+ readonly startPosition: Point
643
+ /** End position in the original document. */
644
+ readonly oldEndPosition: Point
645
+ /** End position in the new document. */
646
+ readonly newEndPosition: Point
647
+ }
648
+
633
649
  /**
634
650
  * Thread-safe registry of tree-sitter language parsers.
635
651
  *
@@ -878,6 +894,13 @@ export declare class Parser {
878
894
  * there.
879
895
  */
880
896
  parseBytes(source: Uint8Array): Tree | null
897
+ /**
898
+ * Parse new UTF-8 source using a previous tree edited to match the new source.
899
+ *
900
+ * Returns `None` if the tree's language differs from the parser's language
901
+ * or if the parse fails under the same limits as `Self.parse`.
902
+ */
903
+ parseIncremental(source: string, oldTree: Tree): Tree | null
881
904
  /**
882
905
  * Reset internal state. The next call to `parse` will
883
906
  * not be incremental.
@@ -1192,6 +1215,14 @@ export type SymbolKind =
1192
1215
 
1193
1216
  /** A parsed syntax tree. Cheap to clone (refcount bump). */
1194
1217
  export declare class Tree {
1218
+ /**
1219
+ * Return an edited copy for use with `Parser.parse_incremental`.
1220
+ *
1221
+ * Existing nodes and cursors still reference the original tree. Byte offsets
1222
+ * and positions must describe the same edit in the old and new source.
1223
+ * @throws Returns `Error.InvalidRange` for reversed or unrepresentable coordinates.
1224
+ */
1225
+ edited(edit: InputEdit): Tree
1195
1226
  /** Return the root `Node` of this tree. */
1196
1227
  rootNode(): Node
1197
1228
  /** Return a `TreeCursor` positioned at the root. */
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  }
11
11
  ],
12
12
  "name": "@xberg-io/tree-sitter-language-pack",
13
- "version": "1.25.2",
13
+ "version": "1.27.1",
14
14
  "description": "Pre-compiled tree-sitter grammars for 371 programming languages",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -35,14 +35,14 @@
35
35
  "*.node"
36
36
  ],
37
37
  "optionalDependencies": {
38
- "@xberg-io/tree-sitter-language-pack-darwin-arm64": "1.25.2",
39
- "@xberg-io/tree-sitter-language-pack-darwin-x64": "1.25.2",
40
- "@xberg-io/tree-sitter-language-pack-linux-arm64-gnu": "1.25.2",
41
- "@xberg-io/tree-sitter-language-pack-linux-arm64-musl": "1.25.2",
42
- "@xberg-io/tree-sitter-language-pack-linux-x64-gnu": "1.25.2",
43
- "@xberg-io/tree-sitter-language-pack-linux-x64-musl": "1.25.2",
44
- "@xberg-io/tree-sitter-language-pack-win32-arm64-msvc": "1.25.2",
45
- "@xberg-io/tree-sitter-language-pack-win32-x64-msvc": "1.25.2"
38
+ "@xberg-io/tree-sitter-language-pack-darwin-arm64": "1.27.1",
39
+ "@xberg-io/tree-sitter-language-pack-darwin-x64": "1.27.1",
40
+ "@xberg-io/tree-sitter-language-pack-linux-arm64-gnu": "1.27.1",
41
+ "@xberg-io/tree-sitter-language-pack-linux-arm64-musl": "1.27.1",
42
+ "@xberg-io/tree-sitter-language-pack-linux-x64-gnu": "1.27.1",
43
+ "@xberg-io/tree-sitter-language-pack-linux-x64-musl": "1.27.1",
44
+ "@xberg-io/tree-sitter-language-pack-win32-arm64-msvc": "1.27.1",
45
+ "@xberg-io/tree-sitter-language-pack-win32-x64-msvc": "1.27.1"
46
46
  },
47
47
  "napi": {
48
48
  "packageName": "@xberg-io/tree-sitter-language-pack",
Binary file
Binary file