@markuplint/ml-core 4.0.0-rc.0 → 4.0.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/lib/ml-core.d.ts CHANGED
@@ -10,7 +10,7 @@ export type MLCoreParams = {
10
10
  export declare class MLCore {
11
11
  #private;
12
12
  constructor({ parser, sourceCode, ruleset, rules, locale, schemas, parserOptions, pretenders, filename, debug, configErrors, }: MLCoreParams);
13
- get document(): Document<RuleConfigValue, PlainData> | ParserError;
13
+ get document(): ParserError | Document<RuleConfigValue, PlainData>;
14
14
  setCode(sourceCode: string): void;
15
15
  update({ parser, ruleset, rules, locale, schemas, parserOptions, configErrors }: Partial<MLFabric>): void;
16
16
  verify(fix?: boolean): Promise<Violation[]>;
package/lib/ml-core.js CHANGED
@@ -154,6 +154,7 @@ export class MLCore {
154
154
  filename: __classPrivateFieldGet(this, _MLCore_filename, "f"),
155
155
  endTag: __classPrivateFieldGet(this, _MLCore_parser, "f").endTag,
156
156
  booleanish: __classPrivateFieldGet(this, _MLCore_parser, "f").booleanish,
157
+ tagNameCaseSensitive: __classPrivateFieldGet(this, _MLCore_parser, "f").tagNameCaseSensitive,
157
158
  pretenders: __classPrivateFieldGet(this, _MLCore_pretenders, "f"),
158
159
  }), "f");
159
160
  }
@@ -55,6 +55,7 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
55
55
  *
56
56
  */
57
57
  readonly specs: MLMLSpec;
58
+ readonly tagNameCaseSensitive: boolean;
58
59
  /**
59
60
  *
60
61
  * @param ast node list of markuplint AST
@@ -64,6 +65,7 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
64
65
  readonly filename?: string;
65
66
  readonly endTag?: 'xml' | 'omittable' | 'never';
66
67
  readonly booleanish?: boolean;
68
+ readonly tagNameCaseSensitive?: boolean;
67
69
  readonly pretenders?: readonly Pretender[];
68
70
  });
69
71
  /**
@@ -48,6 +48,7 @@ export class MLDocument extends MLParentNode {
48
48
  this.booleanish = options?.booleanish ?? false;
49
49
  this.endTag = options?.endTag ?? 'omittable';
50
50
  __classPrivateFieldSet(this, _MLDocument_filename, options?.filename, "f");
51
+ this.tagNameCaseSensitive = options?.tagNameCaseSensitive ?? false;
51
52
  // console.log(ast.nodeList.map((n, i) => `${i}: ${n.uuid} "${n.raw.trim()}"(${n.type})`));
52
53
  this.nodeList = Object.freeze(ast.nodeList
53
54
  .map(astNode => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/ml-core",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0",
4
4
  "description": "The core module of markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -28,19 +28,19 @@
28
28
  "./lib/configs.js": "./lib/configs.browser.js"
29
29
  },
30
30
  "dependencies": {
31
- "@markuplint/config-presets": "4.0.0-rc.0",
32
- "@markuplint/html-parser": "4.0.0-rc.0",
33
- "@markuplint/html-spec": "4.0.0-rc.0",
34
- "@markuplint/i18n": "4.0.0-rc.0",
35
- "@markuplint/ml-ast": "4.0.0-rc.0",
36
- "@markuplint/ml-config": "4.0.0-rc.0",
37
- "@markuplint/ml-spec": "4.0.0-rc.0",
38
- "@markuplint/parser-utils": "4.0.0-rc.0",
39
- "@markuplint/selector": "4.0.0-rc.0",
31
+ "@markuplint/config-presets": "4.0.0",
32
+ "@markuplint/html-parser": "4.0.0",
33
+ "@markuplint/html-spec": "4.0.0",
34
+ "@markuplint/i18n": "4.0.0",
35
+ "@markuplint/ml-ast": "4.0.0",
36
+ "@markuplint/ml-config": "4.0.0",
37
+ "@markuplint/ml-spec": "4.0.0",
38
+ "@markuplint/parser-utils": "4.0.0",
39
+ "@markuplint/selector": "4.0.0",
40
40
  "@types/debug": "^4.1.12",
41
41
  "debug": "^4.3.4",
42
42
  "is-plain-object": "^5.0.0",
43
43
  "type-fest": "^4.10.2"
44
44
  },
45
- "gitHead": "3fdeb45cb69ed52b3a215a7520cea1181601443f"
45
+ "gitHead": "be4aabe189dc53a717b2fbd58583a03017646251"
46
46
  }