rusteerio 1.1.1 → 1.1.2

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.
Files changed (45) hide show
  1. package/Cargo.lock +1 -1
  2. package/Cargo.toml +1 -1
  3. package/README.md +37 -37
  4. package/THIRD_PARTY_NOTICES.md +1 -1
  5. package/dist/{chunk-FPRP6UIX.mjs → chunk-HN63P3U7.mjs} +625 -401
  6. package/dist/chunk-HN63P3U7.mjs.map +1 -0
  7. package/dist/index.cjs +624 -400
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.mts +3 -2
  10. package/dist/index.d.ts +3 -2
  11. package/dist/index.mjs +1 -1
  12. package/dist/slim.cjs +555 -407
  13. package/dist/slim.cjs.map +1 -1
  14. package/dist/slim.d.mts +2 -2
  15. package/dist/slim.d.ts +2 -2
  16. package/dist/slim.mjs +1 -1
  17. package/dist/{types-Cs9UP1Vv.d.mts → types-CJsc0PH-.d.mts} +12 -0
  18. package/dist/{types-Cs9UP1Vv.d.ts → types-CJsc0PH-.d.ts} +12 -0
  19. package/dist/utils.d.mts +1 -1
  20. package/dist/utils.d.ts +1 -1
  21. package/native/src/arena.rs +163 -7
  22. package/native/src/attributes.rs +18 -1
  23. package/native/src/codec.rs +79 -0
  24. package/native/src/lib.rs +117 -30
  25. package/native/src/snapshot.rs +117 -80
  26. package/native/src/tokenizer.rs +34 -20
  27. package/package.json +1 -1
  28. package/rusteerio.darwin-arm64.node +0 -0
  29. package/rusteerio.darwin-x64.node +0 -0
  30. package/rusteerio.linux-arm64-gnu.node +0 -0
  31. package/rusteerio.linux-arm64-musl.node +0 -0
  32. package/rusteerio.linux-x64-gnu.node +0 -0
  33. package/rusteerio.linux-x64-musl.node +0 -0
  34. package/rusteerio.win32-arm64-msvc.node +0 -0
  35. package/rusteerio.win32-x64-msvc.node +0 -0
  36. package/src/extract.ts +117 -24
  37. package/src/index.ts +27 -6
  38. package/src/match.ts +4 -4
  39. package/src/native.ts +4 -0
  40. package/src/nodes.ts +70 -10
  41. package/src/router.ts +80 -4
  42. package/src/selection.ts +18 -17
  43. package/src/snapshot.ts +37 -0
  44. package/src/transport.ts +1 -1
  45. package/dist/chunk-FPRP6UIX.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { v as Node$1, D as DataNode$1, w as NodeWithChildren$1, j as Document$1, g as ChildNode, E as Element$1, T as TagSourceCodeLocation, O as Text$1, h as Comment$1, J as ProcessingInstruction$1, d as CDATA$1, Y as NativeWorkerPoolInfo, i as DecodeStreamOptions, a as CheerioAPI, f as CheerioRequestOptions, C as CheerioOptions, c as AnyNode, Z as NativeDocument, l as ElementType, o as ExtractMap, P as ParallelOptions, p as ExtractedMap, L as LoadContent } from './types-Cs9UP1Vv.mjs';
2
- export { A as AcceptedElems, b as AcceptedFilters, B as BasicAcceptedElems, type e as Cheerio, k as DocumentMode, m as EncodingOptions, n as ExtractDescriptor, q as ExtractedValue, r as ExtractionDescriptor, s as ExtractionMap, t as ExtractionResult, F as FilterFunction, u as FormDataLike, H as HTMLParser2Options, I as InternalOptions, N as NamespaceURI, x as ParentNode, y as ParserError, z as ParserErrorCode, G as ParserErrorHandler, S as SelectorType, K as SerializedField, M as SourceCodeLocation, Q as Tokenizer, R as TokenizerCallbacks, U as TokenizerConstructor, V as TokenizerOptions, W as TreeAdapter, X as TreeAdapterAttribute, _ as nativeStatus } from './types-Cs9UP1Vv.mjs';
1
+ import { v as Node$1, D as DataNode$1, w as NodeWithChildren$1, j as Document$1, g as ChildNode, E as Element$1, T as TagSourceCodeLocation, O as Text$1, h as Comment$1, J as ProcessingInstruction$1, d as CDATA$1, Y as NativeWorkerPoolInfo, i as DecodeStreamOptions, a as CheerioAPI, f as CheerioRequestOptions, C as CheerioOptions, c as AnyNode, Z as NativeDocument, l as ElementType, o as ExtractMap, P as ParallelOptions, p as ExtractedMap, L as LoadContent } from './types-CJsc0PH-.mjs';
2
+ export { A as AcceptedElems, b as AcceptedFilters, B as BasicAcceptedElems, type e as Cheerio, k as DocumentMode, m as EncodingOptions, n as ExtractDescriptor, q as ExtractedValue, r as ExtractionDescriptor, s as ExtractionMap, t as ExtractionResult, F as FilterFunction, u as FormDataLike, H as HTMLParser2Options, I as InternalOptions, N as NamespaceURI, x as ParentNode, y as ParserError, z as ParserErrorCode, G as ParserErrorHandler, S as SelectorType, K as SerializedField, M as SourceCodeLocation, Q as Tokenizer, R as TokenizerCallbacks, U as TokenizerConstructor, V as TokenizerOptions, W as TreeAdapter, X as TreeAdapterAttribute, _ as nativeStatus } from './types-CJsc0PH-.mjs';
3
3
  import { Writable } from 'node:stream';
4
4
  import 'node:querystring';
5
5
  import 'node:buffer';
@@ -100,6 +100,7 @@ declare const dom: {
100
100
  readonly hasChildren: (node: Node$1) => node is NodeWithChildren$1;
101
101
  };
102
102
 
103
+ /** Cheerio's option merge: without overrides, calls share the base options object. */
103
104
  declare function flattenOptions(options?: CheerioOptions | null, base?: CheerioOptions): CheerioOptions;
104
105
  /** A synchronous, constructable Cheerio factory backed by a mutable Rust DOM. */
105
106
  declare function createAPI(document: NativeDocument, options?: CheerioOptions | null, initialRoot?: number): CheerioAPI;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { v as Node$1, D as DataNode$1, w as NodeWithChildren$1, j as Document$1, g as ChildNode, E as Element$1, T as TagSourceCodeLocation, O as Text$1, h as Comment$1, J as ProcessingInstruction$1, d as CDATA$1, Y as NativeWorkerPoolInfo, i as DecodeStreamOptions, a as CheerioAPI, f as CheerioRequestOptions, C as CheerioOptions, c as AnyNode, Z as NativeDocument, l as ElementType, o as ExtractMap, P as ParallelOptions, p as ExtractedMap, L as LoadContent } from './types-Cs9UP1Vv.js';
2
- export { A as AcceptedElems, b as AcceptedFilters, B as BasicAcceptedElems, type e as Cheerio, k as DocumentMode, m as EncodingOptions, n as ExtractDescriptor, q as ExtractedValue, r as ExtractionDescriptor, s as ExtractionMap, t as ExtractionResult, F as FilterFunction, u as FormDataLike, H as HTMLParser2Options, I as InternalOptions, N as NamespaceURI, x as ParentNode, y as ParserError, z as ParserErrorCode, G as ParserErrorHandler, S as SelectorType, K as SerializedField, M as SourceCodeLocation, Q as Tokenizer, R as TokenizerCallbacks, U as TokenizerConstructor, V as TokenizerOptions, W as TreeAdapter, X as TreeAdapterAttribute, _ as nativeStatus } from './types-Cs9UP1Vv.js';
1
+ import { v as Node$1, D as DataNode$1, w as NodeWithChildren$1, j as Document$1, g as ChildNode, E as Element$1, T as TagSourceCodeLocation, O as Text$1, h as Comment$1, J as ProcessingInstruction$1, d as CDATA$1, Y as NativeWorkerPoolInfo, i as DecodeStreamOptions, a as CheerioAPI, f as CheerioRequestOptions, C as CheerioOptions, c as AnyNode, Z as NativeDocument, l as ElementType, o as ExtractMap, P as ParallelOptions, p as ExtractedMap, L as LoadContent } from './types-CJsc0PH-.js';
2
+ export { A as AcceptedElems, b as AcceptedFilters, B as BasicAcceptedElems, type e as Cheerio, k as DocumentMode, m as EncodingOptions, n as ExtractDescriptor, q as ExtractedValue, r as ExtractionDescriptor, s as ExtractionMap, t as ExtractionResult, F as FilterFunction, u as FormDataLike, H as HTMLParser2Options, I as InternalOptions, N as NamespaceURI, x as ParentNode, y as ParserError, z as ParserErrorCode, G as ParserErrorHandler, S as SelectorType, K as SerializedField, M as SourceCodeLocation, Q as Tokenizer, R as TokenizerCallbacks, U as TokenizerConstructor, V as TokenizerOptions, W as TreeAdapter, X as TreeAdapterAttribute, _ as nativeStatus } from './types-CJsc0PH-.js';
3
3
  import { Writable } from 'node:stream';
4
4
  import 'node:querystring';
5
5
  import 'node:buffer';
@@ -100,6 +100,7 @@ declare const dom: {
100
100
  readonly hasChildren: (node: Node$1) => node is NodeWithChildren$1;
101
101
  };
102
102
 
103
+ /** Cheerio's option merge: without overrides, calls share the base options object. */
103
104
  declare function flattenOptions(options?: CheerioOptions | null, base?: CheerioOptions): CheerioOptions;
104
105
  /** A synchronous, constructable Cheerio factory backed by a mutable Rust DOM. */
105
106
  declare function createAPI(document: NativeDocument, options?: CheerioOptions | null, initialRoot?: number): CheerioAPI;
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  nativeStatus,
16
16
  stringStream,
17
17
  workerPoolInfo
18
- } from "./chunk-FPRP6UIX.mjs";
18
+ } from "./chunk-HN63P3U7.mjs";
19
19
  import "./chunk-OHPGEY3E.mjs";
20
20
  export {
21
21
  configureWorkers,