markuplint 5.0.0-dev.5 → 5.0.0-rc.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/ARCHITECTURE.ja.md +1 -1
- package/ARCHITECTURE.md +1 -1
- package/CHANGELOG.md +6 -0
- package/README.md +0 -3
- package/lib/api/ml-engine.js +9 -1
- package/package.json +13 -13
package/ARCHITECTURE.ja.md
CHANGED
|
@@ -146,7 +146,7 @@ flowchart TD
|
|
|
146
146
|
ExcludeCheck -->|No| ResolveParser["resolveParser()\n パーサーモジュール選択"]
|
|
147
147
|
ResolveParser --> ExtCheck{"拡張子が一致?\n(--ignore-ext でなければ)"}
|
|
148
148
|
ExtCheck -->|No| ReturnNull3["null を返却"]
|
|
149
|
-
ExtCheck -->|Yes| ResolvePretenders["resolvePretenders()"]
|
|
149
|
+
ExtCheck -->|Yes| ResolvePretenders["resolvePretenders()\n files + imports + data + scan"]
|
|
150
150
|
ResolvePretenders --> ResolveRuleset["resolveRuleset()\n convertRuleset()"]
|
|
151
151
|
ResolveRuleset --> ResolveSchemas["resolveSchemas()"]
|
|
152
152
|
ResolveSchemas --> ResolveRules["resolveRules()\n プラグイン + カスタムルール"]
|
package/ARCHITECTURE.md
CHANGED
|
@@ -146,7 +146,7 @@ flowchart TD
|
|
|
146
146
|
ExcludeCheck -->|No| ResolveParser["resolveParser()\n parser module selection"]
|
|
147
147
|
ResolveParser --> ExtCheck{"extension matched?\n(unless --ignore-ext)"}
|
|
148
148
|
ExtCheck -->|No| ReturnNull3["Return null"]
|
|
149
|
-
ExtCheck -->|Yes| ResolvePretenders["resolvePretenders()"]
|
|
149
|
+
ExtCheck -->|Yes| ResolvePretenders["resolvePretenders()\n files + imports + data + scan"]
|
|
150
150
|
ResolvePretenders --> ResolveRuleset["resolveRuleset()\n convertRuleset()"]
|
|
151
151
|
ResolveRuleset --> ResolveSchemas["resolveSchemas()"]
|
|
152
152
|
ResolveSchemas --> ResolveRules["resolveRules()\n plugins + custom rules"]
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.0.0-rc.0](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.3...v5.0.0-rc.0) (2026-03-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **markuplint:** guard Error.stack access for Deno source map compat ([40508a3](https://github.com/markuplint/markuplint/commit/40508a3e25a9ed84f84f63adc95cc524628b9468))
|
|
11
|
+
|
|
6
12
|
# [5.0.0-alpha.3](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.2...v5.0.0-alpha.3) (2026-02-26)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/README.md
CHANGED
|
@@ -130,11 +130,8 @@ Examples
|
|
|
130
130
|
### Personal Supporters
|
|
131
131
|
|
|
132
132
|
[<img width="36" src="https://avatars.githubusercontent.com/u/91733847" alt="Tokitake" />](https://github.com/Tokitake)
|
|
133
|
-
[<img width="36" src="https://avatars.githubusercontent.com/u/1996642" alt="Okuto Oyama" />](https://github.com/yamanoku)
|
|
134
|
-
[<img width="36" src="https://avatars.githubusercontent.com/u/6581173" alt="miita" />](https://github.com/mikimhk)
|
|
135
133
|
[<img width="36" src="https://avatars.githubusercontent.com/u/111797" alt="Yasuo Fukuda" />](https://github.com/sigwyg)
|
|
136
134
|
[<img width="36" src="https://avatars.githubusercontent.com/u/91047157" alt="shamokit" />](https://github.com/shamokit)
|
|
137
|
-
[<img width="36" src="https://avatars.githubusercontent.com/u/18516475" alt="takanorip" />](https://github.com/takanorip)
|
|
138
135
|
|
|
139
136
|
Need [Sponsors❤️🔥](https://github.com/sponsors/markuplint)
|
|
140
137
|
|
package/lib/api/ml-engine.js
CHANGED
|
@@ -104,7 +104,15 @@ export class MLEngine extends Emitter {
|
|
|
104
104
|
const sourceCode = await this.#file.getCode();
|
|
105
105
|
if (verifyResult instanceof Error) {
|
|
106
106
|
this.emit('lint-error', this.#file.path, sourceCode, verifyResult);
|
|
107
|
-
|
|
107
|
+
// Accessing `.stack` can throw in Deno when source map resolution
|
|
108
|
+
// encounters invalid mappings (e.g., negative column values).
|
|
109
|
+
let errMessage;
|
|
110
|
+
try {
|
|
111
|
+
errMessage = verifyResult.stack ?? verifyResult.message;
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
errMessage = verifyResult.message;
|
|
115
|
+
}
|
|
108
116
|
log('exec: error %O', errMessage);
|
|
109
117
|
return {
|
|
110
118
|
violations: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markuplint",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-rc.0",
|
|
4
4
|
"description": "An HTML linter for all markup developers",
|
|
5
5
|
"author": "Yusuke Hirao",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@markuplint/cli-utils": "5.0.0-
|
|
30
|
-
"@markuplint/file-resolver": "5.0.0-
|
|
31
|
-
"@markuplint/html-parser": "5.0.0-
|
|
32
|
-
"@markuplint/html-spec": "5.0.0-
|
|
33
|
-
"@markuplint/i18n": "5.0.0-
|
|
34
|
-
"@markuplint/ml-ast": "5.0.0-
|
|
35
|
-
"@markuplint/ml-config": "5.0.0-
|
|
36
|
-
"@markuplint/ml-core": "5.0.0-
|
|
37
|
-
"@markuplint/ml-spec": "5.0.0-
|
|
38
|
-
"@markuplint/rules": "5.0.0-
|
|
39
|
-
"@markuplint/shared": "5.0.0-
|
|
29
|
+
"@markuplint/cli-utils": "5.0.0-rc.0",
|
|
30
|
+
"@markuplint/file-resolver": "5.0.0-rc.0",
|
|
31
|
+
"@markuplint/html-parser": "5.0.0-rc.0",
|
|
32
|
+
"@markuplint/html-spec": "5.0.0-rc.0",
|
|
33
|
+
"@markuplint/i18n": "5.0.0-rc.0",
|
|
34
|
+
"@markuplint/ml-ast": "5.0.0-rc.0",
|
|
35
|
+
"@markuplint/ml-config": "5.0.0-rc.0",
|
|
36
|
+
"@markuplint/ml-core": "5.0.0-rc.0",
|
|
37
|
+
"@markuplint/ml-spec": "5.0.0-rc.0",
|
|
38
|
+
"@markuplint/rules": "5.0.0-rc.0",
|
|
39
|
+
"@markuplint/shared": "5.0.0-rc.0",
|
|
40
40
|
"@types/debug": "4.1.12",
|
|
41
41
|
"chokidar": "5.0.0",
|
|
42
42
|
"debug": "4.4.3",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"strip-ansi": "7.2.0",
|
|
47
47
|
"type-fest": "5.4.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ebf4d7cfca0c259aead3b292c6b8a202db4cd802"
|
|
50
50
|
}
|