rusteerio 1.0.0 → 1.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.
Files changed (65) hide show
  1. package/Cargo.lock +42 -1
  2. package/Cargo.toml +8 -1
  3. package/README.md +90 -51
  4. package/THIRD_PARTY_NOTICES.md +138 -2
  5. package/dist/{chunk-DMRD3FGC.mjs → chunk-FPRP6UIX.mjs} +2233 -751
  6. package/dist/chunk-FPRP6UIX.mjs.map +1 -0
  7. package/dist/index.cjs +2232 -750
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.mts +2 -2
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.mjs +1 -1
  12. package/dist/slim.cjs +2226 -745
  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-BP6TpxE5.d.mts → types-Cs9UP1Vv.d.mts} +3 -3
  18. package/dist/{types-BP6TpxE5.d.ts → types-Cs9UP1Vv.d.ts} +3 -3
  19. package/dist/utils.d.mts +1 -1
  20. package/dist/utils.d.ts +1 -1
  21. package/native/src/arena.rs +231 -602
  22. package/native/src/attributes.rs +11 -5
  23. package/native/src/codec.rs +62 -18
  24. package/native/src/document_order.rs +711 -0
  25. package/native/src/extraction.rs +15 -3
  26. package/native/src/gc.rs +12 -3
  27. package/native/src/hook_sink.rs +77 -3
  28. package/native/src/id_hash.rs +42 -0
  29. package/native/src/immutable.rs +256 -0
  30. package/native/src/lib.rs +1097 -172
  31. package/native/src/markup_tokenizer.rs +668 -0
  32. package/native/src/runtime.rs +189 -33
  33. package/native/src/selector.rs +346 -44
  34. package/native/src/sink.rs +14 -1
  35. package/native/src/snapshot.rs +509 -0
  36. package/native/src/stream.rs +2 -2
  37. package/native/src/tokenizer.rs +377 -204
  38. package/native/vendor/README.md +3 -2
  39. package/native/vendor/html5ever-0.35.0/src/tokenizer/char_ref/mod.rs +79 -0
  40. package/native/vendor/html5ever-0.35.0/src/tokenizer/mod.rs +23 -13
  41. package/package.json +3 -1
  42. package/rusteerio.darwin-arm64.node +0 -0
  43. package/rusteerio.darwin-x64.node +0 -0
  44. package/rusteerio.linux-arm64-gnu.node +0 -0
  45. package/rusteerio.linux-arm64-musl.node +0 -0
  46. package/rusteerio.linux-x64-gnu.node +0 -0
  47. package/rusteerio.linux-x64-musl.node +0 -0
  48. package/rusteerio.win32-arm64-msvc.node +0 -0
  49. package/rusteerio.win32-x64-msvc.node +0 -0
  50. package/scripts/generate-notices.mjs +11 -0
  51. package/scripts/notices/htmlparser2-MIT.txt +18 -0
  52. package/scripts/notices/sources.json +6 -0
  53. package/src/attributes.ts +78 -44
  54. package/src/codec.ts +22 -3
  55. package/src/extract.ts +86 -2
  56. package/src/hooks.ts +148 -2
  57. package/src/index.ts +51 -40
  58. package/src/match.ts +207 -0
  59. package/src/native.ts +9 -1
  60. package/src/nodes.ts +531 -183
  61. package/src/router.ts +792 -229
  62. package/src/selection.ts +239 -125
  63. package/src/snapshot.ts +255 -0
  64. package/src/transport.ts +51 -42
  65. package/dist/chunk-DMRD3FGC.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-BP6TpxE5.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-BP6TpxE5.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-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';
3
3
  import { Writable } from 'node:stream';
4
4
  import 'node:querystring';
5
5
  import 'node:buffer';
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-BP6TpxE5.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-BP6TpxE5.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-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';
3
3
  import { Writable } from 'node:stream';
4
4
  import 'node:querystring';
5
5
  import 'node:buffer';
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  nativeStatus,
16
16
  stringStream,
17
17
  workerPoolInfo
18
- } from "./chunk-DMRD3FGC.mjs";
18
+ } from "./chunk-FPRP6UIX.mjs";
19
19
  import "./chunk-OHPGEY3E.mjs";
20
20
  export {
21
21
  configureWorkers,