@dvaji/cheerox 0.1.1 → 0.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.
- package/Cargo.lock +1 -4
- package/Cargo.toml +3 -2
- package/THIRD_PARTY_NOTICES.md +5 -3
- package/cheerox.darwin-arm64.node +0 -0
- package/cheerox.darwin-x64.node +0 -0
- package/cheerox.linux-arm64-gnu.node +0 -0
- package/cheerox.linux-arm64-musl.node +0 -0
- package/cheerox.linux-x64-gnu.node +0 -0
- package/cheerox.linux-x64-musl.node +0 -0
- package/cheerox.win32-arm64-msvc.node +0 -0
- package/cheerox.win32-x64-msvc.node +0 -0
- package/dist/{cheerio-compat-BS--qPzw.mjs → cheerio-compat-BKkfJEAr.mjs} +2 -2
- package/dist/{cheerio-compat-BS--qPzw.mjs.map → cheerio-compat-BKkfJEAr.mjs.map} +1 -1
- package/dist/{cheerio-compat-DSwBAJ1s.cjs → cheerio-compat-DcnYK9OB.cjs} +2 -2
- package/dist/{cheerio-compat-DSwBAJ1s.cjs.map → cheerio-compat-DcnYK9OB.cjs.map} +1 -1
- package/dist/cheerio-compat.cjs +1 -1
- package/dist/cheerio-compat.mjs +1 -1
- package/native/src/lib.rs +2 -1
- package/native/vendor/README.md +12 -3
- package/native/vendor/scraper-0.24.0/Cargo.toml +52 -0
- package/native/vendor/scraper-0.24.0/LICENSE +15 -0
- package/native/vendor/scraper-0.24.0/src/element_ref/element.rs +212 -0
- package/native/vendor/scraper-0.24.0/src/element_ref/mod.rs +236 -0
- package/native/vendor/scraper-0.24.0/src/element_ref/serializable.rs +15 -0
- package/native/vendor/scraper-0.24.0/src/error/utils.rs +91 -0
- package/native/vendor/scraper-0.24.0/src/error.rs +118 -0
- package/native/vendor/scraper-0.24.0/src/html/mod.rs +270 -0
- package/native/vendor/scraper-0.24.0/src/html/serializable.rs +27 -0
- package/native/vendor/scraper-0.24.0/src/html/tree_sink.rs +285 -0
- package/native/vendor/scraper-0.24.0/src/lib.rs +180 -0
- package/native/vendor/scraper-0.24.0/src/node/serializable.rs +52 -0
- package/native/vendor/scraper-0.24.0/src/node.rs +465 -0
- package/native/vendor/scraper-0.24.0/src/selectable.rs +70 -0
- package/native/vendor/scraper-0.24.0/src/selector.rs +290 -0
- package/package.json +1 -1
- package/scripts/check-release.mjs +2 -2
- package/scripts/generate-notices.mjs +10 -4
package/Cargo.lock
CHANGED
|
@@ -41,7 +41,7 @@ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
|
41
41
|
|
|
42
42
|
[[package]]
|
|
43
43
|
name = "cheerox"
|
|
44
|
-
version = "0.1.
|
|
44
|
+
version = "0.1.2"
|
|
45
45
|
dependencies = [
|
|
46
46
|
"ego-tree",
|
|
47
47
|
"html5ever",
|
|
@@ -747,13 +747,10 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
|
747
747
|
[[package]]
|
|
748
748
|
name = "scraper"
|
|
749
749
|
version = "0.24.0"
|
|
750
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
751
|
-
checksum = "e5f3a24d916e78954af99281a455168d4a9515d65eca99a18da1b813689c4ad9"
|
|
752
750
|
dependencies = [
|
|
753
751
|
"cssparser",
|
|
754
752
|
"ego-tree",
|
|
755
753
|
"html5ever",
|
|
756
|
-
"indexmap",
|
|
757
754
|
"precomputed-hash",
|
|
758
755
|
"selectors",
|
|
759
756
|
"tendril",
|
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "cheerox"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
description = "Rust HTML5 parser and CSS selector engine for the cheerox Node.js package"
|
|
6
6
|
license = "MIT"
|
|
@@ -18,7 +18,7 @@ napi = { version = "2", default-features = false, features = ["napi8", "async"]
|
|
|
18
18
|
napi-derive = "2"
|
|
19
19
|
memchr = "2"
|
|
20
20
|
rayon = "1.10"
|
|
21
|
-
scraper = { version = "0.24", default-features = false, features = ["atomic"
|
|
21
|
+
scraper = { version = "0.24", default-features = false, features = ["atomic"] }
|
|
22
22
|
serde = { version = "1", features = ["derive"] }
|
|
23
23
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
24
24
|
smallvec = "1"
|
|
@@ -44,3 +44,4 @@ strip = "symbols"
|
|
|
44
44
|
html5ever = { path = "native/vendor/html5ever-0.35.0" }
|
|
45
45
|
markup5ever = { path = "native/vendor/markup5ever-0.35.0" }
|
|
46
46
|
html5gum = { path = "native/vendor/html5gum-0.8.4" }
|
|
47
|
+
scraper = { path = "native/vendor/scraper-0.24.0" }
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file preserves third-party license and attribution notices for the Rust native addon and the upstream Cheerio compatibility tests. cheerox itself is distributed under its MIT LICENSE. Third-party components retain their own licenses.
|
|
4
4
|
|
|
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.
|
|
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, and the scraper crate carries a vector-backed attribute store; 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: `
|
|
7
|
+
Cargo.lock SHA-256: `166eee605420736008e5830fb743b1d0a62ccd15413c487bbf4285130fefa992`.
|
|
8
8
|
|
|
9
9
|
## Source availability
|
|
10
10
|
|
|
11
11
|
The native addon includes code from packages licensed under MPL-2.0. The complete, unmodified Source Code Form of each dependency is available without charge from the version-specific source download links below. These downloads contain the corresponding upstream source and notices. MPL-covered source remains available under MPL-2.0, whose full text is included in this file. The MIT license for cheerox does not restrict rights granted by third-party source licenses.
|
|
12
12
|
|
|
13
|
-
The locally patched html5ever and markup5ever components are licensed under MIT OR Apache-2.0; html5gum is licensed under MIT. Their upstream archives are linked below; the exact patched Source Code Form is shipped in the npm package under `native/vendor` and maintained in [this repository](https://github.com/dvaJi/cheerox/tree/main/native/vendor). See `native/vendor/README.md` for the patch scope. Their original license and copyright files remain intact.
|
|
13
|
+
The locally patched html5ever and markup5ever components are licensed under MIT OR Apache-2.0; html5gum is licensed under MIT; the locally patched scraper is licensed under ISC. Their upstream archives are linked below; the exact patched Source Code Form is shipped in the npm package under `native/vendor` and maintained in [this repository](https://github.com/dvaJi/cheerox/tree/main/native/vendor). See `native/vendor/README.md` for the patch scope. Their original license and copyright files remain intact.
|
|
14
14
|
|
|
15
15
|
## Cheerio compatibility tests
|
|
16
16
|
|
|
@@ -761,6 +761,8 @@ Declared license: `ISC`.
|
|
|
761
761
|
|
|
762
762
|
Source: [scraper 0.24.0 source archive](https://crates.io/api/v1/crates/scraper/0.24.0/download).
|
|
763
763
|
|
|
764
|
+
Locally patched source: `native/vendor/scraper-0.24.0` (included in the npm package). Original upstream licenses are retained.
|
|
765
|
+
|
|
764
766
|
- [LICENSE](#notice-1f485f0d61256588) — [notice source](https://docs.rs/crate/scraper/0.24.0/source/LICENSE)
|
|
765
767
|
|
|
766
768
|
### selectors 0.31.0
|
|
Binary file
|
package/cheerox.darwin-x64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -251,7 +251,7 @@ function renderText(elem, opts, parentName) {
|
|
|
251
251
|
return data;
|
|
252
252
|
}
|
|
253
253
|
// package.json
|
|
254
|
-
var version = "0.1.
|
|
254
|
+
var version = "0.1.2";
|
|
255
255
|
// src/cheerio-compat.ts
|
|
256
256
|
/**
|
|
257
257
|
* The Cheerio 0.22.0 facade, backed by the Rust engine.
|
|
@@ -1645,4 +1645,4 @@ Object.assign(moduleCheerio, staticExports);
|
|
|
1645
1645
|
moduleCheerio.version = version;
|
|
1646
1646
|
export { staticContains as a, staticParseHTML as c, staticXml as d, update as f, parse as i, staticRoot as l, load as n, staticExports as o, moduleCheerio as r, staticHtml as s, evaluate as t, staticText as u };
|
|
1647
1647
|
|
|
1648
|
-
//# sourceMappingURL=cheerio-compat-
|
|
1648
|
+
//# sourceMappingURL=cheerio-compat-BKkfJEAr.mjs.map
|