@markuplint/ml-core 4.13.3 → 4.18.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 CHANGED
@@ -3,6 +3,22 @@
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
+ ## [4.18.1](https://github.com/markuplint/markuplint/compare/v4.18.0...v4.18.1) (2026-04-24)
7
+
8
+ **Note:** Version bump only for package @markuplint/ml-core
9
+
10
+ # [4.18.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v4.18.0) (2026-04-22)
11
+
12
+ ### Bug Fixes
13
+
14
+ - support TypeScript 6.0 ([0dcf708](https://github.com/markuplint/markuplint/commit/0dcf70835eb40b581589c4da824080c512ba198c)), closes [#3759](https://github.com/markuplint/markuplint/issues/3759) [#3759](https://github.com/markuplint/markuplint/issues/3759)
15
+
16
+ ## [4.13.4](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.13.3...@markuplint/ml-core@4.13.4) (2026-04-21)
17
+
18
+ ### Bug Fixes
19
+
20
+ - support TypeScript 6.0 ([0dcf708](https://github.com/markuplint/markuplint/commit/0dcf70835eb40b581589c4da824080c512ba198c)), closes [#3759](https://github.com/markuplint/markuplint/issues/3759) [#3759](https://github.com/markuplint/markuplint/issues/3759)
21
+
6
22
  ## [4.13.3](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.13.2...@markuplint/ml-core@4.13.3) (2026-02-10)
7
23
 
8
24
  **Note:** Version bump only for package @markuplint/ml-core
@@ -100,6 +100,14 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
100
100
  * @implements DOM API: `Document`
101
101
  */
102
102
  get activeElement(): Element | null;
103
+ /**
104
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
105
+ *
106
+ * @deprecated
107
+ * @unsupported
108
+ * @implements DOM API: `Document`
109
+ */
110
+ get activeViewTransition(): ViewTransition | null;
103
111
  /**
104
112
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
105
113
  *
@@ -197,6 +205,14 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
197
205
  * @implements DOM API: `Document`
198
206
  */
199
207
  get currentScript(): HTMLOrSVGScriptElement | null;
208
+ /**
209
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
210
+ *
211
+ * @deprecated
212
+ * @unsupported
213
+ * @implements DOM API: `Document`
214
+ */
215
+ get customElementRegistry(): CustomElementRegistry | null;
200
216
  /**
201
217
  * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
202
218
  * are needed by **Accessible Name and Description Computation**.
@@ -512,6 +528,14 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
512
528
  * @implements DOM API: `Document`
513
529
  */
514
530
  get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
531
+ /**
532
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
533
+ *
534
+ * @deprecated
535
+ * @unsupported
536
+ * @implements DOM API: `Document`
537
+ */
538
+ get oncommand(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
515
539
  /**
516
540
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
517
541
  *
@@ -100,6 +100,16 @@ export class MLDocument extends MLParentNode {
100
100
  get activeElement() {
101
101
  throw new UnexpectedCallError('Not supported "activeElement" property');
102
102
  }
103
+ /**
104
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
105
+ *
106
+ * @deprecated
107
+ * @unsupported
108
+ * @implements DOM API: `Document`
109
+ */
110
+ get activeViewTransition() {
111
+ throw new UnexpectedCallError('Not supported "activeViewTransition" property');
112
+ }
103
113
  /**
104
114
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
105
115
  *
@@ -223,6 +233,16 @@ export class MLDocument extends MLParentNode {
223
233
  get currentScript() {
224
234
  throw new UnexpectedCallError('Not supported "currentScript" property');
225
235
  }
236
+ /**
237
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
238
+ *
239
+ * @deprecated
240
+ * @unsupported
241
+ * @implements DOM API: `Document`
242
+ */
243
+ get customElementRegistry() {
244
+ throw new UnexpectedCallError('Not supported "customElementRegistry" property');
245
+ }
226
246
  /**
227
247
  * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
228
248
  * are needed by **Accessible Name and Description Computation**.
@@ -639,6 +659,16 @@ export class MLDocument extends MLParentNode {
639
659
  get onclose() {
640
660
  throw new UnexpectedCallError('Not supported "onclose" property');
641
661
  }
662
+ /**
663
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
664
+ *
665
+ * @deprecated
666
+ * @unsupported
667
+ * @implements DOM API: `Document`
668
+ */
669
+ get oncommand() {
670
+ throw new UnexpectedCallError('Not supported "oncommand" property');
671
+ }
642
672
  /**
643
673
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
644
674
  *
@@ -186,7 +186,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
186
186
  * @unsupported
187
187
  * @implements DOM API: `Element`
188
188
  */
189
- get ariaControlsElements(): readonly MLElement<T, O>[];
189
+ get ariaControlsElements(): readonly MLElement<T, O>[] | null;
190
190
  /**
191
191
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
192
192
  *
@@ -202,7 +202,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
202
202
  * @unsupported
203
203
  * @implements DOM API: `Element`
204
204
  */
205
- get ariaDescribedByElements(): readonly MLElement<T, O>[];
205
+ get ariaDescribedByElements(): readonly MLElement<T, O>[] | null;
206
206
  /**
207
207
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
208
208
  *
@@ -218,7 +218,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
218
218
  * @unsupported
219
219
  * @implements DOM API: `Element`
220
220
  */
221
- get ariaDetailsElements(): readonly MLElement<T, O>[];
221
+ get ariaDetailsElements(): readonly MLElement<T, O>[] | null;
222
222
  /**
223
223
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
224
224
  *
@@ -234,7 +234,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
234
234
  * @unsupported
235
235
  * @implements DOM API: `Element`
236
236
  */
237
- get ariaErrorMessageElements(): readonly MLElement<T, O>[];
237
+ get ariaErrorMessageElements(): readonly MLElement<T, O>[] | null;
238
238
  /**
239
239
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
240
240
  *
@@ -250,7 +250,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
250
250
  * @unsupported
251
251
  * @implements DOM API: `Element`
252
252
  */
253
- get ariaFlowToElements(): readonly MLElement<T, O>[];
253
+ get ariaFlowToElements(): readonly MLElement<T, O>[] | null;
254
254
  /**
255
255
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
256
256
  *
@@ -298,7 +298,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
298
298
  * @unsupported
299
299
  * @implements DOM API: `Element`
300
300
  */
301
- get ariaLabelledByElements(): readonly MLElement<T, O>[];
301
+ get ariaLabelledByElements(): readonly MLElement<T, O>[] | null;
302
302
  /**
303
303
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
304
304
  *
@@ -354,7 +354,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
354
354
  * @unsupported
355
355
  * @implements DOM API: `Element`
356
356
  */
357
- get ariaOwnsElements(): readonly MLElement<T, O>[];
357
+ get ariaOwnsElements(): readonly MLElement<T, O>[] | null;
358
358
  /**
359
359
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
360
360
  *
@@ -601,6 +601,14 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
601
601
  * @implements DOM API: `Element`
602
602
  */
603
603
  get currentCSSZoom(): number;
604
+ /**
605
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
606
+ *
607
+ * @deprecated
608
+ * @unsupported
609
+ * @implements DOM API: `Element`
610
+ */
611
+ get customElementRegistry(): CustomElementRegistry | null;
604
612
  /**
605
613
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
606
614
  *
@@ -747,7 +755,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
747
755
  * @unsupported
748
756
  * @implements DOM API: `Element`
749
757
  */
750
- get nonce(): string | undefined;
758
+ get nonce(): string;
751
759
  /**
752
760
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
753
761
  *
@@ -916,6 +924,14 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
916
924
  * @implements DOM API: `Element`
917
925
  */
918
926
  get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
927
+ /**
928
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
929
+ *
930
+ * @deprecated
931
+ * @unsupported
932
+ * @implements DOM API: `Element`
933
+ */
934
+ get oncommand(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
919
935
  /**
920
936
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
921
937
  *
@@ -2067,7 +2083,10 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
2067
2083
  * @implements DOM API: `Element`
2068
2084
  * @see https://dom.spec.whatwg.org/#ref-for-dom-element-matches%E2%91%A0
2069
2085
  */
2070
- matches(selector: string, scope?: MLParentNode<T, O>): boolean;
2086
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
2087
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
2088
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
2089
+ matches(selectors: string, scope?: MLParentNode<T, O>): boolean;
2071
2090
  /**
2072
2091
  * Matches this element against a CSS selector or regex selector pattern,
2073
2092
  * returning detailed match results. When the element is a pretender,
@@ -749,6 +749,16 @@ export class MLElement extends MLParentNode {
749
749
  get currentCSSZoom() {
750
750
  throw new UnexpectedCallError('Not supported "currentCSSZoom" property');
751
751
  }
752
+ /**
753
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
754
+ *
755
+ * @deprecated
756
+ * @unsupported
757
+ * @implements DOM API: `Element`
758
+ */
759
+ get customElementRegistry() {
760
+ throw new UnexpectedCallError('Not supported "customElementRegistry" property');
761
+ }
752
762
  /**
753
763
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
754
764
  *
@@ -1159,6 +1169,16 @@ export class MLElement extends MLParentNode {
1159
1169
  get onclose() {
1160
1170
  throw new UnexpectedCallError('Not supported "onclose" property');
1161
1171
  }
1172
+ /**
1173
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1174
+ *
1175
+ * @deprecated
1176
+ * @unsupported
1177
+ * @implements DOM API: `Element`
1178
+ */
1179
+ get oncommand() {
1180
+ throw new UnexpectedCallError('Not supported "oncommand" property');
1181
+ }
1162
1182
  /**
1163
1183
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
1164
1184
  *
@@ -2726,10 +2746,6 @@ export class MLElement extends MLParentNode {
2726
2746
  }
2727
2747
  return true;
2728
2748
  }
2729
- /**
2730
- * @implements DOM API: `Element`
2731
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-matches%E2%91%A0
2732
- */
2733
2749
  matches(selector,
2734
2750
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
2735
2751
  scope) {
@@ -439,6 +439,13 @@ export declare abstract class MLNode<T extends RuleConfigValue, O extends PlainD
439
439
  * @see https://dom.spec.whatwg.org/#dom-node-insertbefore
440
440
  */
441
441
  insertBefore<T extends Node>(node: T, child: Node | null): T;
442
+ /**
443
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
444
+ *
445
+ * @unsupported
446
+ * @implements DOM API: `Node`
447
+ */
448
+ moveBefore(node: Node, child: Node | null): Node;
442
449
  /**
443
450
  * @implements `@markuplint/ml-core` API: `MLNode`
444
451
  */
@@ -759,6 +759,19 @@ export class MLNode extends MLToken {
759
759
  child) {
760
760
  throw new UnexpectedCallError('Not supported "insertBefore" method');
761
761
  }
762
+ /**
763
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
764
+ *
765
+ * @unsupported
766
+ * @implements DOM API: `Node`
767
+ */
768
+ moveBefore(
769
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
770
+ node,
771
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
772
+ child) {
773
+ throw new UnexpectedCallError('Not supported "moveBefore" method');
774
+ }
762
775
  /**
763
776
  * @implements `@markuplint/ml-core` API: `MLNode`
764
777
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/ml-core",
3
- "version": "4.13.3",
3
+ "version": "4.18.1",
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>",
@@ -27,20 +27,20 @@
27
27
  "./lib/configs.js": "./lib/configs.browser.js"
28
28
  },
29
29
  "dependencies": {
30
- "@markuplint/config-presets": "4.5.14",
31
- "@markuplint/html-parser": "4.6.23",
32
- "@markuplint/html-spec": "4.17.0",
33
- "@markuplint/i18n": "4.7.1",
34
- "@markuplint/ml-ast": "4.4.11",
35
- "@markuplint/ml-config": "4.8.15",
36
- "@markuplint/ml-spec": "4.10.2",
37
- "@markuplint/parser-utils": "4.8.11",
38
- "@markuplint/selector": "4.7.8",
39
- "@markuplint/shared": "4.4.13",
40
- "@types/debug": "4.1.12",
30
+ "@markuplint/config-presets": "4.18.0",
31
+ "@markuplint/html-parser": "4.18.0",
32
+ "@markuplint/html-spec": "4.18.0",
33
+ "@markuplint/i18n": "4.18.0",
34
+ "@markuplint/ml-ast": "4.18.0",
35
+ "@markuplint/ml-config": "4.18.1",
36
+ "@markuplint/ml-spec": "4.18.0",
37
+ "@markuplint/parser-utils": "4.18.0",
38
+ "@markuplint/selector": "4.18.1",
39
+ "@markuplint/shared": "4.18.0",
40
+ "@types/debug": "4.1.13",
41
41
  "debug": "4.4.3",
42
42
  "is-plain-object": "5.0.0",
43
- "type-fest": "4.41.0"
43
+ "type-fest": "5.6.0"
44
44
  },
45
- "gitHead": "193ee7c1262bbed95424e38efdf1a8e56ff049f4"
45
+ "gitHead": "68194864bf358ff4763ee8edc578f7a137e60365"
46
46
  }