@markuplint/vue-parser 5.5.0 → 5.6.1
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 +19 -0
- package/lib/parser.js +6 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.6.1](https://github.com/markuplint/markuplint/compare/v5.6.0...v5.6.1) (2026-11-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @markuplint/vue-parser
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [5.6.0](https://github.com/markuplint/markuplint/compare/v5.5.0...v5.6.0) (2026-11-12)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **vue-parser:** treat slot as a fragment ([0f5e7b2](https://github.com/markuplint/markuplint/commit/0f5e7b2748ddac50bbb276febfcd20bdccf51c5d))
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **vue-parser:** declare that slot is the placeholder of the framework ([cb12dd5](https://github.com/markuplint/markuplint/commit/cb12dd5016d48525905ab3fca578cb1da2bad369))
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [5.5.0](https://github.com/markuplint/markuplint/compare/v5.4.0...v5.5.0) (2026-11-10)
|
|
7
26
|
|
|
8
27
|
### Bug Fixes
|
package/lib/parser.js
CHANGED
|
@@ -100,6 +100,9 @@ class VueParser extends Parser {
|
|
|
100
100
|
// The compiler of Vue makes an element by `setAttribute` unless it can put the whole static tree into
|
|
101
101
|
// an HTML string, which it does only for a name it knows by its exact spelling.
|
|
102
102
|
attrNameRoute: 'dom-api',
|
|
103
|
+
// `<slot>` is replaced with what is passed to it, not the HTML `slot` element of a shadow tree
|
|
104
|
+
// @see https://vuejs.org/guide/components/slots.html
|
|
105
|
+
slotElement: 'framework',
|
|
103
106
|
}, {
|
|
104
107
|
comments: [],
|
|
105
108
|
});
|
|
@@ -171,6 +174,9 @@ class VueParser extends Parser {
|
|
|
171
174
|
parentNode,
|
|
172
175
|
nodeName: originNode.name,
|
|
173
176
|
}, originNode.children, {
|
|
177
|
+
// `<slot>` is replaced with what is passed to it: Vue renders no element for it
|
|
178
|
+
// @see https://vuejs.org/guide/components/slots.html
|
|
179
|
+
overwriteProps: originNode.name === 'slot' ? { isFragment: true } : undefined,
|
|
174
180
|
createEndTagToken: () => {
|
|
175
181
|
if (!originNode.endTag) {
|
|
176
182
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/vue-parser",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"description": "Vue parser for markuplint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@markuplint/html-parser": "5.
|
|
36
|
-
"@markuplint/ml-ast": "5.
|
|
37
|
-
"@markuplint/parser-utils": "5.
|
|
38
|
-
"@vue/shared": "^3.5.
|
|
35
|
+
"@markuplint/html-parser": "5.6.1",
|
|
36
|
+
"@markuplint/ml-ast": "5.6.0",
|
|
37
|
+
"@markuplint/parser-utils": "5.6.1",
|
|
38
|
+
"@vue/shared": "^3.5.45",
|
|
39
39
|
"vue-eslint-parser": "^10.4.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "a9245162df3699c4880469f493aaaf6103343d83"
|
|
42
42
|
}
|