@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 +5 -0
- package/CMakeLists.txt +1 -1
- package/Makefile +1 -1
- package/README.md +11 -6
- package/metadata/provenance.json +1 -1
- package/package.json +2 -1
- package/prebuilds/darwin-arm64/@mermanjs+tree-sitter-mermaid.node +0 -0
- package/prebuilds/darwin-x64/@mermanjs+tree-sitter-mermaid.node +0 -0
- package/prebuilds/linux-x64/@mermanjs+tree-sitter-mermaid.node +0 -0
- package/prebuilds/win32-x64/@mermanjs+tree-sitter-mermaid.node +0 -0
- package/src/parser.c +1 -1
- package/tree-sitter-mermaid.wasm +0 -0
- package/tree-sitter.json +1 -1
package/CHANGELOG.md
ADDED
package/CMakeLists.txt
CHANGED
package/Makefile
CHANGED
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
package/metadata/provenance.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mermanjs/tree-sitter-mermaid",
|
|
3
|
-
"version": "0.3.
|
|
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",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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 =
|
|
343420
|
+
.patch_version = 3,
|
|
343421
343421
|
},
|
|
343422
343422
|
};
|
|
343423
343423
|
return &language;
|
package/tree-sitter-mermaid.wasm
CHANGED
|
Binary file
|