@mermanjs/tree-sitter-mermaid 0.3.1 → 0.3.3

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 ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.3.3 - 2026-11-06
4
+
5
+ - Refresh the npm development-tool lockfile to semver 7.8.6 and undici 8.12.4.
package/CMakeLists.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.13)
2
2
 
3
3
  project(tree-sitter-mermaid
4
- VERSION "0.3.1"
4
+ VERSION "0.3.3"
5
5
  DESCRIPTION "Tolerant Tree-sitter grammar and editor queries for Mermaid"
6
6
  HOMEPAGE_URL "https://github.com/Latias94/merman"
7
7
  LANGUAGES C)
package/Makefile CHANGED
@@ -5,7 +5,7 @@ endif
5
5
  LANGUAGE_NAME := tree-sitter-mermaid
6
6
  DESCRIPTION := Tolerant Tree-sitter grammar and editor queries for Mermaid
7
7
  HOMEPAGE_URL := https://github.com/Latias94/merman
8
- VERSION := 0.3.1
8
+ VERSION := 0.3.3
9
9
 
10
10
  SRC_DIR := src
11
11
  PARSER := $(SRC_DIR)/parser.c
package/README.md CHANGED
@@ -29,12 +29,17 @@ The grammar has its own version line, independent of Merman. Its npm and Cargo a
29
29
  grammar version, but their registry names differ: the npm package is scoped under `@mermanjs`, while
30
30
  the Rust crate and C library retain the standard `tree-sitter-mermaid` name.
31
31
 
32
- This guide documents `0.3.1`, retaining the Mermaid 12.1 sequence endpoint fix from 0.3.0 and updating the generator/runtime contract. Match the examples to the version installed in your project; earlier versions have their own tagged documentation. Custom query consumers should review the [migration guide](https://github.com/Latias94/merman/blob/main/distribution/tree-sitter-mermaid/docs/query-migration.md).
32
+ This guide targets `0.3.3`. The patch refreshes the npm development-tool lockfile (`semver` 7.8.5 to 7.8.6 and `undici` 8.12.3 to 8.12.4). Check the [independent publication record](https://github.com/Latias94/merman/blob/main/docs/release/PUBLISH_ORDER.md#0100-alpha2-preparation) for verified registry availability.
33
+ Accepted syntax, queries, Mermaid/ZenUML baselines, language ABI 15, runtime versions, and the Rust
34
+ `cc` minimum of `1.10.0` remain unchanged. See [CHANGELOG.md](CHANGELOG.md) for package changes.
35
+ Match the examples to the version installed in your project; earlier versions have their own tagged
36
+ documentation. Custom query consumers should review the
37
+ [migration guide](https://github.com/Latias94/merman/blob/main/distribution/tree-sitter-mermaid/docs/query-migration.md).
33
38
 
34
39
  ## Node.js
35
40
 
36
41
  ```console
37
- npm install tree-sitter@0.25.1 @mermanjs/tree-sitter-mermaid@0.3.1
42
+ npm install tree-sitter@0.25.1 @mermanjs/tree-sitter-mermaid@0.3.3
38
43
  ```
39
44
 
40
45
  With npm 12 or later, review and approve the native install scripts, then rebuild:
@@ -71,7 +76,7 @@ import Mermaid from '@mermanjs/tree-sitter-mermaid';
71
76
  ## Browser and Workers
72
77
 
73
78
  ```console
74
- npm install web-tree-sitter@0.27.1 @mermanjs/tree-sitter-mermaid@0.3.1
79
+ npm install web-tree-sitter@0.27.1 @mermanjs/tree-sitter-mermaid@0.3.3
75
80
  ```
76
81
 
77
82
  The package exports `@mermanjs/tree-sitter-mermaid/tree-sitter-mermaid.wasm`. Copy that asset to a
@@ -92,7 +97,7 @@ A no-build browser prototype can pin the exact grammar version on jsDelivr:
92
97
 
93
98
  ```js
94
99
  const language = await Language.load(
95
- 'https://cdn.jsdelivr.net/npm/@mermanjs/tree-sitter-mermaid@0.3.1/tree-sitter-mermaid.wasm',
100
+ 'https://cdn.jsdelivr.net/npm/@mermanjs/tree-sitter-mermaid@0.3.3/tree-sitter-mermaid.wasm',
96
101
  );
97
102
  ```
98
103
 
@@ -104,7 +109,7 @@ diagnostics, completion, navigation, and rename.
104
109
  ## Rust
105
110
 
106
111
  ```console
107
- cargo add tree-sitter@=0.27.1 tree-sitter-mermaid@=0.3.1
112
+ cargo add tree-sitter@=0.27.1 tree-sitter-mermaid@=0.3.3
108
113
  ```
109
114
 
110
115
  ```rust
@@ -146,7 +151,7 @@ int main(void) {
146
151
  }
147
152
  ```
148
153
 
149
- Version 0.3.1 pairs with Tree-sitter CLI, Rust, and Web runtime 0.27.1; the Rust language adapter uses compatible `^0.1.9`, and the generated language ABI remains 15. See [query migration](docs/query-migration.md) when upgrading queries and the [grammar release guide](../../docs/release/TREE_SITTER_MERMAID.md) when maintaining the package.
154
+ The 0.3.3 candidate pairs with Tree-sitter CLI, Rust, and Web runtime 0.27.1; the Rust language adapter uses compatible `^0.1.9`, and the generated language ABI remains 15. See [query migration](docs/query-migration.md) when upgrading queries and the [grammar release guide](../../docs/release/TREE_SITTER_MERMAID.md) when maintaining the package.
150
155
 
151
156
  ## Compatibility
152
157
 
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "package": {
4
4
  "name": "tree-sitter-mermaid",
5
- "version": "0.3.1",
5
+ "version": "0.3.3",
6
6
  "releaseState": "candidate"
7
7
  },
8
8
  "language": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mermanjs/tree-sitter-mermaid",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Tolerant Tree-sitter grammar and editor queries for Mermaid",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,6 +34,7 @@
34
34
  "./src/*": "./src/*"
35
35
  },
36
36
  "files": [
37
+ "CHANGELOG.md",
37
38
  "binding.gyp",
38
39
  "bindings/c",
39
40
  "bindings/node/binding.cc",
package/src/parser.c CHANGED
@@ -343417,7 +343417,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_mermaid(void) {
343417
343417
  .metadata = {
343418
343418
  .major_version = 0,
343419
343419
  .minor_version = 3,
343420
- .patch_version = 1,
343420
+ .patch_version = 3,
343421
343421
  },
343422
343422
  };
343423
343423
  return &language;
Binary file
package/tree-sitter.json CHANGED
@@ -17,7 +17,7 @@
17
17
  }
18
18
  ],
19
19
  "metadata": {
20
- "version": "0.3.1",
20
+ "version": "0.3.3",
21
21
  "license": "MIT",
22
22
  "description": "Tolerant Tree-sitter grammar and editor queries for Mermaid",
23
23
  "authors": [