rusteerio 0.1.1 → 1.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.
package/Cargo.lock CHANGED
@@ -686,7 +686,7 @@ dependencies = [
686
686
 
687
687
  [[package]]
688
688
  name = "rusteerio"
689
- version = "0.1.1"
689
+ version = "1.0.0"
690
690
  dependencies = [
691
691
  "ego-tree",
692
692
  "html5ever",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rusteerio"
3
- version = "0.1.1"
3
+ version = "1.0.0"
4
4
  edition = "2021"
5
5
  description = "Rust HTML5 parser and CSS selector engine for the rusteerio Node.js package"
6
6
  license = "MIT"
package/README.md CHANGED
@@ -147,6 +147,13 @@ Fresh Rust-backed nodes have Rusteerio's constructors: an `instanceof` check
147
147
  against an independently installed `domhandler.Element` requires importing those
148
148
  nodes or supplying a tree adapter that creates that class.
149
149
 
150
+ Each document reports its approximate native size to V8, so the garbage
151
+ collector reclaims unreachable documents under native memory pressure. Node.js
152
+ frees native memory after the current task completes. A long synchronous loop,
153
+ or a chain of already-resolved `await`s, that loads many large documents should
154
+ yield to the event loop periodically, for example with `await setImmediate()`
155
+ from `node:timers/promises`.
156
+
150
157
  ## Benchmarks
151
158
 
152
159
  These measurements compare **Cheerio 1.2.0** against rusteerio on a Linux x64
@@ -4,7 +4,7 @@ This file preserves third-party license and attribution notices for the Rust nat
4
4
 
5
5
  Generated by `node scripts/generate-notices.mjs` from `cargo metadata --locked`, crate license files, and the pinned supplemental sources recorded in `scripts/notices/sources.json`. It includes build dependencies and dependencies for all target platforms; a particular binary may use a subset. Identical notice texts are reproduced once and referenced below. The html5ever, markup5ever and html5gum crates contain local observer-hook and opt-in UTF-16 transport patches; their complete patched source and original notices are included in `native/vendor`. Other dependency source files are unmodified.
6
6
 
7
- Cargo.lock SHA-256: `36869ccee233f883da4dd3885dbb27b2f4c6e7f77db41e8076a3763524d88a56`.
7
+ Cargo.lock SHA-256: `972c2efc036e05a48803d6631cfd4f6026989898043bbd9aaf68bb52449c1716`.
8
8
 
9
9
  ## Source availability
10
10
 
@@ -3182,4 +3182,4 @@ export {
3182
3182
  loadAll,
3183
3183
  extractAll
3184
3184
  };
3185
- //# sourceMappingURL=chunk-DKULX6VO.mjs.map
3185
+ //# sourceMappingURL=chunk-DMRD3FGC.mjs.map