fastyaml-rs 0.1.11 → 0.3.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/README.md +3 -3
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**High-performance YAML 1.2.2 parser for Node.js, powered by Rust.**
|
|
8
8
|
|
|
9
|
-
Drop-in replacement for js-yaml with **5-10x faster** parsing through Rust's `
|
|
9
|
+
Drop-in replacement for js-yaml with **5-10x faster** parsing through Rust's `saphyr` library. Full YAML 1.2.2 Core Schema compliance with TypeScript definitions included.
|
|
10
10
|
|
|
11
11
|
> **YAML 1.2.2 Compliance** — Unlike js-yaml (YAML 1.1 by default), `fastyaml-rs` follows the modern YAML 1.2.2 specification. This means `yes/no/on/off` are strings, not booleans, and octal numbers require `0o` prefix.
|
|
12
12
|
|
|
@@ -33,7 +33,7 @@ import { safeLoad, safeDump } from 'fastyaml-rs';
|
|
|
33
33
|
// Parse YAML
|
|
34
34
|
const data = safeLoad(`
|
|
35
35
|
name: fast-yaml
|
|
36
|
-
version: 0.
|
|
36
|
+
version: 0.3.0
|
|
37
37
|
features:
|
|
38
38
|
- fast
|
|
39
39
|
- safe
|
|
@@ -250,7 +250,7 @@ npm run bench
|
|
|
250
250
|
|
|
251
251
|
## Technology Stack
|
|
252
252
|
|
|
253
|
-
- **YAML Parser**: [
|
|
253
|
+
- **YAML Parser**: [saphyr](https://github.com/saphyr-rs/saphyr) — Rust YAML 1.2.2 parser
|
|
254
254
|
- **Node.js Bindings**: [NAPI-RS](https://napi.rs/) — Zero-cost Node.js bindings
|
|
255
255
|
- **Test Framework**: [Vitest](https://vitest.dev/) — Fast test runner
|
|
256
256
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastyaml-rs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Fast YAML 1.2.2 parser, linter, and parallel processor for Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -56,11 +56,12 @@
|
|
|
56
56
|
"version": "napi version"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@napi-rs/cli": "
|
|
60
|
-
"@types/node": "^25.0",
|
|
61
|
-
"@vitest/coverage-v8": "^4.0",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
59
|
+
"@napi-rs/cli": "~3.5.0",
|
|
60
|
+
"@types/node": "^25.0.3",
|
|
61
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
62
|
+
"fastyaml-rs": "0.1.11",
|
|
63
|
+
"prettier": "^3.7.4",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"vitest": "^4.0.16"
|
|
65
66
|
}
|
|
66
67
|
}
|