@markuplint/file-resolver 5.0.0-rc.1 → 5.0.0-rc.4
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 +17 -0
- package/lib/auto-load-rules.d.ts +0 -3
- package/lib/auto-load-rules.js +0 -3
- package/lib/resolve-rules.d.ts +1 -8
- package/lib/resolve-rules.js +4 -13
- package/package.json +17 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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.4](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.3...v5.0.0-rc.4) (2026-04-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @markuplint/file-resolver
|
|
9
|
+
|
|
10
|
+
# [5.0.0-rc.3](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.2...v5.0.0-rc.3) (2026-04-19)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @markuplint/file-resolver
|
|
13
|
+
|
|
14
|
+
# [5.0.0-rc.2](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.1...v5.0.0-rc.2) (2026-04-15)
|
|
15
|
+
|
|
16
|
+
- feat(file-resolver)!: remove deprecated autoLoad parameter from resolveRules ([71cab2d](https://github.com/markuplint/markuplint/commit/71cab2d5fe5bedb3e28b162666cbad3d0a2773ff))
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
- The autoLoad parameter has been removed from resolveRules().
|
|
21
|
+
Rules are now always auto-loaded unconditionally.
|
|
22
|
+
|
|
6
23
|
# [5.0.0-rc.1](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2026-03-27)
|
|
7
24
|
|
|
8
25
|
### Bug Fixes
|
package/lib/auto-load-rules.d.ts
CHANGED
package/lib/auto-load-rules.js
CHANGED
package/lib/resolve-rules.d.ts
CHANGED
|
@@ -6,13 +6,6 @@ import type { AnyMLRule, Ruleset, Plugin } from '@markuplint/ml-core';
|
|
|
6
6
|
* @param plugins - The resolved plugins that may provide custom rules
|
|
7
7
|
* @param ruleset - The current ruleset (used for auto-loading)
|
|
8
8
|
* @param importPreset - Whether to import the built-in preset rules from `@markuplint/rules`
|
|
9
|
-
* @param autoLoad - Whether to auto-load rules referenced in the ruleset
|
|
10
9
|
* @returns An array of all resolved MLRule instances
|
|
11
|
-
*
|
|
12
|
-
* @deprecated The `autoLoad` parameter is deprecated
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveRules(plugins: readonly Plugin[], ruleset: Ruleset, importPreset: boolean,
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated
|
|
17
10
|
*/
|
|
18
|
-
|
|
11
|
+
export declare function resolveRules(plugins: readonly Plugin[], ruleset: Ruleset, importPreset: boolean): Promise<Readonly<AnyMLRule>[]>;
|
package/lib/resolve-rules.js
CHANGED
|
@@ -8,16 +8,9 @@ let cachedPresetRules = null;
|
|
|
8
8
|
* @param plugins - The resolved plugins that may provide custom rules
|
|
9
9
|
* @param ruleset - The current ruleset (used for auto-loading)
|
|
10
10
|
* @param importPreset - Whether to import the built-in preset rules from `@markuplint/rules`
|
|
11
|
-
* @param autoLoad - Whether to auto-load rules referenced in the ruleset
|
|
12
11
|
* @returns An array of all resolved MLRule instances
|
|
13
|
-
*
|
|
14
|
-
* @deprecated The `autoLoad` parameter is deprecated
|
|
15
|
-
*/
|
|
16
|
-
export async function resolveRules(plugins, ruleset, importPreset,
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated
|
|
19
12
|
*/
|
|
20
|
-
|
|
13
|
+
export async function resolveRules(plugins, ruleset, importPreset) {
|
|
21
14
|
const rules = importPreset ? await importPresetRules() : [];
|
|
22
15
|
for (const plugin of plugins) {
|
|
23
16
|
if (!plugin.rules) {
|
|
@@ -31,11 +24,9 @@ autoLoad) {
|
|
|
31
24
|
rules.push(rule);
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
rules.push(rule);
|
|
38
|
-
}
|
|
27
|
+
const { rules: additionalRules } = await autoLoadRules(ruleset);
|
|
28
|
+
for (const rule of additionalRules) {
|
|
29
|
+
rules.push(rule);
|
|
39
30
|
}
|
|
40
31
|
// Clone
|
|
41
32
|
return [...rules];
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/file-resolver",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.4",
|
|
4
4
|
"description": "The file resolver of markuplint",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/markuplint/markuplint.git",
|
|
8
|
+
"directory": "packages/@markuplint/file-resolver"
|
|
9
|
+
},
|
|
6
10
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"engines": {
|
|
@@ -30,22 +34,22 @@
|
|
|
30
34
|
"@types/node": "24.5.1"
|
|
31
35
|
},
|
|
32
36
|
"dependencies": {
|
|
33
|
-
"@markuplint/html-parser": "5.0.0-rc.
|
|
34
|
-
"@markuplint/ml-ast": "5.0.0-rc.
|
|
35
|
-
"@markuplint/ml-config": "5.0.0-rc.
|
|
36
|
-
"@markuplint/ml-core": "5.0.0-rc.
|
|
37
|
-
"@markuplint/ml-spec": "5.0.0-rc.
|
|
38
|
-
"@markuplint/parser-utils": "5.0.0-rc.
|
|
39
|
-
"@markuplint/pretenders": "5.0.0-rc.
|
|
40
|
-
"@markuplint/selector": "5.0.0-rc.
|
|
41
|
-
"@markuplint/shared": "5.0.0-rc.
|
|
37
|
+
"@markuplint/html-parser": "5.0.0-rc.4",
|
|
38
|
+
"@markuplint/ml-ast": "5.0.0-rc.4",
|
|
39
|
+
"@markuplint/ml-config": "5.0.0-rc.4",
|
|
40
|
+
"@markuplint/ml-core": "5.0.0-rc.4",
|
|
41
|
+
"@markuplint/ml-spec": "5.0.0-rc.4",
|
|
42
|
+
"@markuplint/parser-utils": "5.0.0-rc.4",
|
|
43
|
+
"@markuplint/pretenders": "5.0.0-rc.4",
|
|
44
|
+
"@markuplint/selector": "5.0.0-rc.4",
|
|
45
|
+
"@markuplint/shared": "5.0.0-rc.4",
|
|
42
46
|
"cosmiconfig": "9.0.1",
|
|
43
47
|
"debug": "4.4.3",
|
|
44
48
|
"glob": "13.0.6",
|
|
45
49
|
"ignore": "7.0.5",
|
|
46
50
|
"import-meta-resolve": "4.2.0",
|
|
47
51
|
"jsonc": "2.0.0",
|
|
48
|
-
"minimatch": "10.2.
|
|
52
|
+
"minimatch": "10.2.5"
|
|
49
53
|
},
|
|
50
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "97a6339bbae23f556de5d307b3ce2ef7cfd9402d"
|
|
51
55
|
}
|