@markuplint/file-resolver 5.0.0-rc.1 → 5.0.0-rc.2

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 CHANGED
@@ -3,6 +3,15 @@
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.2](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.1...v5.0.0-rc.2) (2026-04-15)
7
+
8
+ - feat(file-resolver)!: remove deprecated autoLoad parameter from resolveRules ([71cab2d](https://github.com/markuplint/markuplint/commit/71cab2d5fe5bedb3e28b162666cbad3d0a2773ff))
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ - The autoLoad parameter has been removed from resolveRules().
13
+ Rules are now always auto-loaded unconditionally.
14
+
6
15
  # [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
16
 
8
17
  ### Bug Fixes
@@ -1,7 +1,4 @@
1
1
  import type { Ruleset, AnyMLRule } from '@markuplint/ml-core';
2
- /**
3
- * @deprecated
4
- */
5
2
  export declare function autoLoadRules(ruleset: Ruleset): Promise<{
6
3
  rules: AnyMLRule[];
7
4
  errors: unknown[];
@@ -1,8 +1,5 @@
1
1
  import { MLRule } from '@markuplint/ml-core';
2
2
  const cache = new Map();
3
- /**
4
- * @deprecated
5
- */
6
3
  export async function autoLoadRules(ruleset) {
7
4
  const rules = [];
8
5
  const errors = [];
@@ -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
- autoLoad: boolean): Promise<Readonly<AnyMLRule>[]>;
11
+ export declare function resolveRules(plugins: readonly Plugin[], ruleset: Ruleset, importPreset: boolean): Promise<Readonly<AnyMLRule>[]>;
@@ -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
- autoLoad) {
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
- if (autoLoad) {
35
- const { rules: additionalRules } = await autoLoadRules(ruleset);
36
- for (const rule of additionalRules) {
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.1",
3
+ "version": "5.0.0-rc.2",
4
4
  "description": "The file resolver of markuplint",
5
- "repository": "git@github.com:markuplint/markuplint.git",
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.1",
34
- "@markuplint/ml-ast": "5.0.0-rc.1",
35
- "@markuplint/ml-config": "5.0.0-rc.1",
36
- "@markuplint/ml-core": "5.0.0-rc.1",
37
- "@markuplint/ml-spec": "5.0.0-rc.1",
38
- "@markuplint/parser-utils": "5.0.0-rc.1",
39
- "@markuplint/pretenders": "5.0.0-rc.1",
40
- "@markuplint/selector": "5.0.0-rc.1",
41
- "@markuplint/shared": "5.0.0-rc.1",
37
+ "@markuplint/html-parser": "5.0.0-rc.2",
38
+ "@markuplint/ml-ast": "5.0.0-rc.2",
39
+ "@markuplint/ml-config": "5.0.0-rc.2",
40
+ "@markuplint/ml-core": "5.0.0-rc.2",
41
+ "@markuplint/ml-spec": "5.0.0-rc.2",
42
+ "@markuplint/parser-utils": "5.0.0-rc.2",
43
+ "@markuplint/pretenders": "5.0.0-rc.2",
44
+ "@markuplint/selector": "5.0.0-rc.2",
45
+ "@markuplint/shared": "5.0.0-rc.2",
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.4"
52
+ "minimatch": "10.2.5"
49
53
  },
50
- "gitHead": "0d6b4324d9a7d6b9e1ba57d4a57e45d36975cba9"
54
+ "gitHead": "e43763858d9234c417053becc73dbd088c1e7ea6"
51
55
  }