@headwall/markdown-to-blocks 1.0.0 → 1.1.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,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.1.0] - 2026-06-28
11
+
12
+ ### Changed
13
+
14
+ - **Require Node ≥ 20** (was ≥ 18). Node 18 is end-of-life; CI no longer tests
15
+ against it.
16
+
17
+ ### Added
18
+
19
+ - GitHub Actions CI: `typecheck` + `build` + `test` across Node 20, 22, and 24
20
+ on every push and pull request to `main`.
21
+
10
22
  ## [1.0.0] - 2026-06-28
11
23
 
12
24
  First stable release. Output is validated against WordPress core's own block
@@ -40,5 +52,6 @@ parser and confirmed to import into the block editor with no recovery prompts.
40
52
  - ESM-only. Requires Node ≥ 18.
41
53
  - Zero runtime dependencies — all bundled into the published package.
42
54
 
43
- [Unreleased]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.0.0...HEAD
55
+ [Unreleased]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.1.0...HEAD
56
+ [1.1.0]: https://github.com/headwalluk/markdown-to-blocks/compare/v1.0.0...v1.1.0
44
57
  [1.0.0]: https://github.com/headwalluk/markdown-to-blocks/releases/tag/v1.0.0
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  > Convert Markdown into serialised WordPress/Gutenberg **block markup** — HTML with `<!-- wp:… -->` delimiters that drops straight into the block editor with no "Convert to blocks" or "this block contains unexpected content" prompts.
4
4
 
5
+ [![CI](https://github.com/headwalluk/markdown-to-blocks/actions/workflows/ci.yml/badge.svg)](https://github.com/headwalluk/markdown-to-blocks/actions/workflows/ci.yml)
5
6
  [![npm version](https://img.shields.io/npm/v/@headwall/markdown-to-blocks.svg)](https://www.npmjs.com/package/@headwall/markdown-to-blocks)
6
7
  [![npm downloads](https://img.shields.io/npm/dm/@headwall/markdown-to-blocks.svg)](https://www.npmjs.com/package/@headwall/markdown-to-blocks)
7
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
@@ -25,7 +26,7 @@
25
26
  npm install -g @headwall/markdown-to-blocks
26
27
  ```
27
28
 
28
- This puts the `md2blocks` command on your `PATH`. Requires **Node ≥ 18**.
29
+ This puts the `md2blocks` command on your `PATH`. Requires **Node ≥ 20**.
29
30
 
30
31
  ### As a library
31
32
 
@@ -7831,7 +7831,7 @@ function pick(schema, prop) {
7831
7831
  return typeof schema === "string" ? schema : schema[prop];
7832
7832
  }
7833
7833
 
7834
- // node_modules/escape-string-regexp/index.js
7834
+ // node_modules/mdast-util-frontmatter/node_modules/escape-string-regexp/index.js
7835
7835
  function escapeStringRegexp(string3) {
7836
7836
  if (typeof string3 !== "string") {
7837
7837
  throw new TypeError("Expected a string");
@@ -7938,6 +7938,14 @@ function ccount(value2, character) {
7938
7938
  return count;
7939
7939
  }
7940
7940
 
7941
+ // node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
7942
+ function escapeStringRegexp2(string3) {
7943
+ if (typeof string3 !== "string") {
7944
+ throw new TypeError("Expected a string");
7945
+ }
7946
+ return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
7947
+ }
7948
+
7941
7949
  // node_modules/unist-util-is/lib/index.js
7942
7950
  var convert = (
7943
7951
  // Note: overloads in JSDoc can’t yet use different `@template`s.
@@ -8216,7 +8224,7 @@ function toPairs(tupleOrList) {
8216
8224
  return result;
8217
8225
  }
8218
8226
  function toExpression(find) {
8219
- return typeof find === "string" ? new RegExp(escapeStringRegexp(find), "g") : find;
8227
+ return typeof find === "string" ? new RegExp(escapeStringRegexp2(find), "g") : find;
8220
8228
  }
8221
8229
  function toFunction(replace2) {
8222
8230
  return typeof replace2 === "function" ? replace2 : function() {
@@ -19868,4 +19876,4 @@ export {
19868
19876
  markdownToBlocks,
19869
19877
  parseMarkdownDocument
19870
19878
  };
19871
- //# sourceMappingURL=chunk-27IDEF4L.js.map
19879
+ //# sourceMappingURL=chunk-73P6MFHU.js.map