@headwall/markdown-to-blocks 1.2.0 → 1.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/CHANGELOG.md CHANGED
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.3.0] - 2026-10-06
11
+
12
+ ### Fixed
13
+
14
+ - CLI output written to a pipe (`md2blocks -i post.md | …`, `$(md2blocks …)`,
15
+ `child_process`) was silently cut off at 64 KB with exit code 0, because the
16
+ CLI called `process.exit()` before stdout had drained. Output to a file or
17
+ via `-o` was unaffected. The CLI now sets `process.exitCode` and lets stdout
18
+ drain.
19
+
20
+ ### Changed
21
+
22
+ - **Require Node ≥ 22** (was ≥ 20). Node 20 is end-of-life; CI now tests
23
+ Node 22 and 24, and the build targets `node22`.
24
+ - When the reader closes the pipe early (`md2blocks … | head`), the CLI exits
25
+ quietly with code 141, as a SIGPIPE-killed process would, so `set -o pipefail`
26
+ scripts can detect the incomplete output.
27
+ - Bundled `yaml` updated to 2.9.1. Output is now validated against
28
+ `@wordpress/block-library` 11 and `@wordpress/blocks` 16 (dev-only).
29
+
10
30
  ## [1.2.0] - 2026-07-05
11
31
 
12
32
  ### Added
@@ -78,7 +98,8 @@ parser and confirmed to import into the block editor with no recovery prompts.
78
98
  - ESM-only. Requires Node ≥ 18.
79
99
  - Zero runtime dependencies — all bundled into the published package.
80
100
 
81
- [Unreleased]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.2.0...HEAD
101
+ [Unreleased]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.3.0...HEAD
102
+ [1.3.0]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.2.0...v1.3.0
82
103
  [1.2.0]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.1.1...v1.2.0
83
104
  [1.1.1]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.1.0...v1.1.1
84
105
  [1.1.0]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.0.0...v1.1.0
package/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
  npm install -g @headwall/markdown-to-blocks
26
26
  ```
27
27
 
28
- This puts the `md2blocks` command on your `PATH`. Requires **Node ≥ 20**.
28
+ This puts the `md2blocks` command on your `PATH`. Requires **Node ≥ 22**.
29
29
 
30
30
  ### As a library
31
31