feedparser-rs 0.4.3 → 0.4.5
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 +4 -8
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -27,8 +27,7 @@ yarn add feedparser-rs
|
|
|
27
27
|
pnpm add feedparser-rs
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
>
|
|
31
|
-
> Requires Node.js 18 or later.
|
|
30
|
+
> **Important:** Requires Node.js 18 or later.
|
|
32
31
|
|
|
33
32
|
## Quick Start
|
|
34
33
|
|
|
@@ -65,8 +64,7 @@ console.log(feed.feed.title);
|
|
|
65
64
|
console.log(`Fetched ${feed.entries.length} entries`);
|
|
66
65
|
```
|
|
67
66
|
|
|
68
|
-
>
|
|
69
|
-
> `fetchAndParse` automatically handles compression (gzip, deflate, brotli) and follows redirects.
|
|
67
|
+
> **Tip:** `fetchAndParse` automatically handles compression (gzip, deflate, brotli) and follows redirects.
|
|
70
68
|
|
|
71
69
|
### Parsing from Buffer
|
|
72
70
|
|
|
@@ -170,8 +168,7 @@ interface Entry {
|
|
|
170
168
|
}
|
|
171
169
|
```
|
|
172
170
|
|
|
173
|
-
>
|
|
174
|
-
> See `index.d.ts` for complete type definitions including `Link`, `Person`, `Tag`, `Image`, `Enclosure`, and more.
|
|
171
|
+
> **Note:** See `index.d.ts` for complete type definitions including `Link`, `Person`, `Tag`, `Image`, `Enclosure`, and more.
|
|
175
172
|
|
|
176
173
|
## Error Handling
|
|
177
174
|
|
|
@@ -217,8 +214,7 @@ Benchmarks on Apple M1 Pro:
|
|
|
217
214
|
| Parse 20 KB RSS | 0.09 ms | 8.5 ms | **94x** |
|
|
218
215
|
| Parse 200 KB RSS | 0.94 ms | 85 ms | **90x** |
|
|
219
216
|
|
|
220
|
-
>
|
|
221
|
-
> For best performance, pass `Buffer` instead of `string` to avoid UTF-8 conversion overhead.
|
|
217
|
+
> **Tip:** For best performance, pass `Buffer` instead of `string` to avoid UTF-8 conversion overhead.
|
|
222
218
|
|
|
223
219
|
## Platform Support
|
|
224
220
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feedparser-rs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "High-performance RSS/Atom/JSON Feed parser for Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -47,8 +47,16 @@
|
|
|
47
47
|
"prepublishOnly": "napi prepublish -t npm"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "^2.
|
|
51
|
-
"@napi-rs/cli": "^3.5",
|
|
50
|
+
"@biomejs/biome": "^2.4.0",
|
|
51
|
+
"@napi-rs/cli": "^3.5.1",
|
|
52
52
|
"c8": "^10.1.3"
|
|
53
|
+
},
|
|
54
|
+
"overrides": {
|
|
55
|
+
"minimatch": ">=10.2.1"
|
|
56
|
+
},
|
|
57
|
+
"pnpm": {
|
|
58
|
+
"overrides": {
|
|
59
|
+
"minimatch": ">=10.2.1"
|
|
60
|
+
}
|
|
53
61
|
}
|
|
54
62
|
}
|