html-validate 8.25.0 → 8.26.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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.11"
8
+ "packageVersion": "7.48.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -559,6 +559,7 @@ export declare class DOMNode {
559
559
  */
560
560
  get textContent(): string;
561
561
  append(node: DOMNode): void;
562
+ /* Excluded from this release type: insertBefore */
562
563
  isRootElement(): boolean;
563
564
  /**
564
565
  * Tests if two nodes are the same (references the same object).
@@ -576,6 +577,7 @@ export declare class DOMNode {
576
577
  * node has no children.
577
578
  */
578
579
  get lastChild(): DOMNode;
580
+ /* Excluded from this release type: removeChild */
579
581
  /* Excluded from this release type: blockRule */
580
582
  /* Excluded from this release type: blockRules */
581
583
  /* Excluded from this release type: disableRule */
@@ -591,6 +593,8 @@ export declare class DOMNode {
591
593
  /* Excluded from this release type: ruleEnabled */
592
594
  /* Excluded from this release type: ruleBlockers */
593
595
  generateSelector(): string | null;
596
+ /* Excluded from this release type: _setParent */
597
+ private _removeChild;
594
598
  }
595
599
 
596
600
  /**
@@ -758,13 +762,13 @@ export declare interface FormAssociated {
758
762
  */
759
763
  export declare class HtmlElement extends DOMNode {
760
764
  readonly tagName: string;
761
- readonly parent: HtmlElement | null;
762
765
  readonly voidElement: boolean;
763
766
  readonly depth: number;
764
767
  closed: NodeClosed;
765
768
  protected readonly attr: Record<string, Attribute[]>;
766
769
  private metaElement;
767
770
  private annotation;
771
+ private _parent;
768
772
  /* Excluded from this release type: _adapter */
769
773
  private constructor();
770
774
  /**
@@ -861,6 +865,7 @@ export declare class HtmlElement extends DOMNode {
861
865
  */
862
866
  matches(selector: string): boolean;
863
867
  get meta(): MetaElement | null;
868
+ get parent(): HtmlElement | null;
864
869
  /**
865
870
  * Get current role for this element (explicit with `role` attribute or mapped
866
871
  * with implicit role).
@@ -971,6 +976,7 @@ export declare class HtmlElement extends DOMNode {
971
976
  /* Excluded from this release type: someChildren */
972
977
  /* Excluded from this release type: everyChildren */
973
978
  /* Excluded from this release type: find */
979
+ /* Excluded from this release type: _setParent */
974
980
  }
975
981
 
976
982
  /**
@@ -657,6 +657,7 @@ export declare class DOMNode {
657
657
  */
658
658
  get textContent(): string;
659
659
  append(node: DOMNode): void;
660
+ /* Excluded from this release type: insertBefore */
660
661
  isRootElement(): boolean;
661
662
  /**
662
663
  * Tests if two nodes are the same (references the same object).
@@ -674,6 +675,7 @@ export declare class DOMNode {
674
675
  * node has no children.
675
676
  */
676
677
  get lastChild(): DOMNode;
678
+ /* Excluded from this release type: removeChild */
677
679
  /* Excluded from this release type: blockRule */
678
680
  /* Excluded from this release type: blockRules */
679
681
  /* Excluded from this release type: disableRule */
@@ -689,6 +691,8 @@ export declare class DOMNode {
689
691
  /* Excluded from this release type: ruleEnabled */
690
692
  /* Excluded from this release type: ruleBlockers */
691
693
  generateSelector(): string | null;
694
+ /* Excluded from this release type: _setParent */
695
+ private _removeChild;
692
696
  }
693
697
 
694
698
  /**
@@ -978,13 +982,13 @@ export declare interface FSLike {
978
982
  */
979
983
  export declare class HtmlElement extends DOMNode {
980
984
  readonly tagName: string;
981
- readonly parent: HtmlElement | null;
982
985
  readonly voidElement: boolean;
983
986
  readonly depth: number;
984
987
  closed: NodeClosed;
985
988
  protected readonly attr: Record<string, Attribute[]>;
986
989
  private metaElement;
987
990
  private annotation;
991
+ private _parent;
988
992
  /* Excluded from this release type: _adapter */
989
993
  private constructor();
990
994
  /**
@@ -1081,6 +1085,7 @@ export declare class HtmlElement extends DOMNode {
1081
1085
  */
1082
1086
  matches(selector: string): boolean;
1083
1087
  get meta(): MetaElement | null;
1088
+ get parent(): HtmlElement | null;
1084
1089
  /**
1085
1090
  * Get current role for this element (explicit with `role` attribute or mapped
1086
1091
  * with implicit role).
@@ -1191,6 +1196,7 @@ export declare class HtmlElement extends DOMNode {
1191
1196
  /* Excluded from this release type: someChildren */
1192
1197
  /* Excluded from this release type: everyChildren */
1193
1198
  /* Excluded from this release type: find */
1199
+ /* Excluded from this release type: _setParent */
1194
1200
  }
1195
1201
 
1196
1202
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-validate",
3
- "version": "8.25.0",
3
+ "version": "8.26.0",
4
4
  "description": "Offline html5 validator",
5
5
  "keywords": [
6
6
  "html",
@@ -95,165 +95,16 @@
95
95
  "jest.{js,d.ts}",
96
96
  "test-utils.{js,d.ts}"
97
97
  ],
98
- "workspaces": [
99
- "docs",
100
- "tests/vitest"
101
- ],
102
- "scripts": {
103
- "prebuild": "run-s codegen && tsc",
104
- "build": "run-s build:cjs build:esm build:script",
105
- "postbuild": "bash scripts/pkg",
106
- "build:cjs": "rollup --config rollup.cjs.config.mjs",
107
- "build:esm": "rollup --config rollup.esm.config.mjs",
108
- "build:script": "node build.mjs",
109
- "clean": "rm -rf dist public",
110
- "codegen": "node scripts/codegen.cjs",
111
- "compatibility": "scripts/compatibility.sh",
112
- "debug": "node --inspect ./node_modules/.bin/jest --runInBand --watch --no-coverage",
113
- "docs": "node docs/build.js",
114
- "postdocs": "tsc -b docs/examples",
115
- "eslint": "eslint --cache .",
116
- "eslint:fix": "eslint --cache --fix .",
117
- "htmlvalidate": "node ./bin/html-validate.js",
118
- "prepack": "npm run build && release-prepack --bundle package.json",
119
- "postpack": "release-postpack package.json",
120
- "prepare": "husky && npm run codegen",
121
- "prettier:check": "prettier --check .",
122
- "prettier:write": "prettier --write .",
123
- "start": "node docs/server.js",
124
- "test": "jest --ci",
125
- "version": "scripts/version"
126
- },
127
- "commitlint": {
128
- "extends": "@html-validate",
129
- "rules": {
130
- "scope-enum": [
131
- 2,
132
- "always",
133
- [
134
- "api",
135
- "cli",
136
- "config",
137
- "context",
138
- "docs",
139
- "deps",
140
- "dom",
141
- "elements",
142
- "engine",
143
- "error",
144
- "eslint",
145
- "event",
146
- "formatters",
147
- "html5",
148
- "htmlvalidate",
149
- "jest",
150
- "lexer",
151
- "meta",
152
- "parser",
153
- "plugin",
154
- "prettier",
155
- "release",
156
- "reporter",
157
- "rules",
158
- "schema",
159
- "transform",
160
- "types",
161
- "utils"
162
- ]
163
- ]
164
- }
165
- },
166
- "prettier": "@html-validate/prettier-config",
167
- "release": {
168
- "extends": "@html-validate/semantic-release-config"
169
- },
170
- "jest": {
171
- "collectCoverageFrom": [
172
- "src/**/*.ts",
173
- "!src/**/*.spec.ts",
174
- "!src/**/index.ts",
175
- "!src/index.ts",
176
- "!src/browser.ts",
177
- "!src/html5.ts",
178
- "!src/cli/html-validate.ts",
179
- "!src/jest/jest.ts",
180
- "!src/vitest/vitest.ts",
181
- "!src/utils/compatibility-check.browser.ts",
182
- "!src/utils/compatibility-check.nodejs.ts",
183
- "!**/*.d.ts",
184
- "!**/__fixtures__/**"
185
- ],
186
- "moduleNameMapper": {
187
- "^html-validate/browser$": "<rootDir>/src/browser.ts"
188
- },
189
- "preset": "@html-validate/jest-config",
190
- "roots": [
191
- "<rootDir>/docs",
192
- "<rootDir>/elements",
193
- "<rootDir>/src",
194
- "<rootDir>/tests"
195
- ],
196
- "testPathIgnorePatterns": [
197
- "/node_modules/",
198
- "<rootDir>/dist/",
199
- "<rootDir>/tests/vitest/"
200
- ]
201
- },
202
98
  "dependencies": {
203
99
  "@html-validate/stylish": "^4.1.0",
204
100
  "@sidvind/better-ajv-errors": "3.0.1",
205
101
  "ajv": "^8.0.0",
206
- "deepmerge": "4.3.1",
207
102
  "glob": "^10.0.0",
208
- "ignore": "5.3.2",
209
103
  "kleur": "^4.1.0",
210
104
  "minimist": "^1.2.0",
211
105
  "prompts": "^2.0.0",
212
106
  "semver": "^7.0.0"
213
107
  },
214
- "devDependencies": {
215
- "@babel/code-frame": "7.26.2",
216
- "@html-validate/commitlint-config": "3.2.5",
217
- "@html-validate/eslint-config": "5.21.8",
218
- "@html-validate/eslint-config-jest": "5.21.7",
219
- "@html-validate/eslint-config-typescript": "5.21.6",
220
- "@html-validate/eslint-config-typescript-typeinfo": "5.21.6",
221
- "@html-validate/jest-config": "3.10.0",
222
- "@html-validate/prettier-config": "2.5.6",
223
- "@html-validate/release-scripts": "6.7.0",
224
- "@microsoft/api-extractor": "7.47.11",
225
- "@rollup/plugin-commonjs": "28.0.1",
226
- "@rollup/plugin-json": "6.1.0",
227
- "@rollup/plugin-node-resolve": "15.3.0",
228
- "@rollup/plugin-replace": "6.0.1",
229
- "@rollup/plugin-virtual": "3.0.2",
230
- "@types/babar": "0.2.4",
231
- "@types/babel__code-frame": "7.0.6",
232
- "@types/jest": "29.5.14",
233
- "@types/minimist": "1.2.5",
234
- "@types/node": "16.18.119",
235
- "@types/prompts": "2.4.9",
236
- "@types/semver": "7.5.8",
237
- "@types/stream-buffers": "3.0.7",
238
- "babar": "0.2.3",
239
- "husky": "9.1.6",
240
- "is-ci": "3.0.1",
241
- "jest": "29.7.0",
242
- "jest-diff": "29.7.0",
243
- "jest-environment-jsdom": "29.7.0",
244
- "jest-snapshot": "29.7.0",
245
- "jsdom": "25.0.1",
246
- "memfs": "4.14.0",
247
- "npm-pkg-lint": "3.10.1",
248
- "npm-run-all2": "7.0.1",
249
- "rollup": "4.25.0",
250
- "rollup-plugin-esbuild": "6.1.1",
251
- "stream-buffers": "3.0.3",
252
- "ts-jest": "29.2.5",
253
- "typescript": "5.6.3",
254
- "vite": "4.5.5",
255
- "vitest": "0.34.6"
256
- },
257
108
  "peerDependencies": {
258
109
  "jest": "^27.1 || ^28.1.3 || ^29.0.3",
259
110
  "jest-diff": "^27.1 || ^28.1.3 || ^29.0.3",
@@ -276,16 +127,5 @@
276
127
  },
277
128
  "engines": {
278
129
  "node": ">= 16.14"
279
- },
280
- "externalDependencies": [
281
- "@babel/code-frame",
282
- "@html-validate/stylish",
283
- "@sidvind/better-ajv-errors",
284
- "ajv",
285
- "glob",
286
- "kleur",
287
- "minimist",
288
- "prompts",
289
- "semver"
290
- ]
130
+ }
291
131
  }