Skip to content

fix(deps): update dependency html-validate to v5

HTML-validate requested to merge renovate/html-validate-5.x into master

This MR contains the following updates:

Package Type Update Change
html-validate (source) dependencies major ^4.0.0 -> ^5.0.0

Release Notes

html-validate/html-validate

v5.0.1

Compare Source

v5.0.0

Compare Source

BREAKING CHANGES
  • the library is now shipped as a hybrid CJS/ESM package. If you are simply consuming the CLI tool or one of the existing integrations this will not affect you.

For plugin developers and if you consume the API in any way the biggest change is that the distributed source is now bundled and you can no longer access individual files.

Typically something like:

-import foo from "html-validate/dist/foo";
+import { foo } from "html-validate"

Feel free to open an issue if some symbol you need isn't exported.

If your usage includes checking presence of rules use the ruleExists helper:

-try {
-  require("html-validate/dist/rules/attr-case");
-} catch (err) {
-  /* fallback */
-}
+import { ruleExists } from "html-validate";
+if (!ruleExists("attr-case")) {
+  /* fallback */
+}
  • drop support for NodeJS 10
Features
Dependency upgrades
  • deps: update dependency ajv to v8 (cccb73a)

v4.14.0

Compare Source

Features
4.13.1 (2021-05-28)
Bug Fixes
  • jest: fix TypeError: diff is not a function (2afc2e8)

v4.13.1

Compare Source

v4.13.0

Compare Source

Features
  • jest: better compatibility with jest in node environment (79d14ca)
Dependency upgrades

v4.12.0

Compare Source

Features
  • rules: enforce initial heading-level in sectioning roots (c4306ad)

v4.11.0

Compare Source

Features
Bug Fixes
  • dom: throw if tagName is invalid (42d7100)
4.10.1 (2021-04-25)
Bug Fixes
  • handle directives with excessive whitespace (0400563)

v4.10.1

Compare Source

v4.10.0

Compare Source

Features
  • dom: implement {first,last}ElementChild accessors (5e70aee)
  • formatters: stylish and codeframe displays links to error descriptions (86cf213), closes #​113
  • formatters: checkstyle output is indented (e284fb7)
  • parser: add full location to attr event (key, quotes, value) (931a39f)
  • rules: add rule url to Message (6845fac)
  • rules: new option allowedProperties to no-inline-style (defaults to display) (75aa5f0)
Bug Fixes
  • rules: rule documentation url for rules in subdirectories (c91c36d)

v4.9.0

Compare Source

Features
  • add rule option schemas (f88f0da)
  • rules: validate rule configuration (5ab6a21)
Bug Fixes
  • config: validate preset configurations (dca9fc3)
  • error: present original json for configuration errors (23a50f3)
  • meta: memory leak when loading meta table (940ca4e), closes #​106

v4.8.0

Compare Source

Features
  • support ignoring files with .htmlvalidateignore (77ec9a6), closes #​109
4.7.1 (2021-03-19)
Bug Fixes
  • add $schema to html5.json (9a89d30)
4.1.1 (2021-03-19)
Bug Fixes
  • $schema keyword being invalid (3b67062)

v4.7.1

Compare Source

v4.7.0

Compare Source

Features
Bug Fixes
  • dom: input[type="hidden"] no longer labelable (244d37d)
4.6.1 (2021-03-02)
Bug Fixes
  • dom: generateSelector() escapes characters (c2e316c), closes #​108
  • dom: querySelector handles escaped characters (30e7503)
  • dom: throw error when selector is missing pseudoclass name (516ca06)

v4.6.1

Compare Source

v4.6.0

Compare Source

Features
  • parser: add DOCTYPE tag to DoctypeEvent (8c53d40)
  • parser: new event token emitted for each lexer token (f9d44d6)
  • rules: allow rules to unregister event listeners (8b1a6bc)
  • rules: new rule attr-spacing requiring attributes to be separated by whitespace (7734dc6), closes #​105
  • rules: new rule doctype-style requiring doctype to be specific case (e94f819)
  • rules: new rule no-utf8-bom disallowing usage of UTF-8 BOM (7a2d264)
Bug Fixes
  • lexer: handle CRLF after xml declaration (97fd77d)
  • lexer: handle doctype with mixed case (a40e28e)
  • lexer: handle html comment before doctype (6c1b830)
  • lexer: handle unicode bom (97506b1)

v4.5.0

Compare Source

Features
  • meta: transparent can be limited to specific elements (bef8a16)
Bug Fixes
  • html5: <audio> and <video> allows <track> and <source> transparently (526006c), closes #​104

v4.4.0

Compare Source

Features
  • events: new event tag:ready emitted when start tag is parsed (cfbf3dc)
  • events: rename tag:open and tag:close to tag:start and tag:end (7a2150f)
  • rules: heading-level supports sectioning roots (8149cc6), closes #​92
Bug Fixes
  • rules: better error message for heading-level (0871706)
Dependency upgrades

v4.3.0

Compare Source

Features
  • rules: new rule text-content (2fef395), closes #​101
  • transform: new helper processElement for writing tests (3052f81)
  • add browser entry point without cli classes (7840ec2)
  • set sideEffects to false (41b47f8)
Bug Fixes
  • dom: DOMTokenList (such as classlist) handles newlines and tabs (35e601e)

v4.2.0

Compare Source

Features
  • dom: disable cache until node is fully constructed (5e35c49)
  • htmlvalidate: add getConfigurationSchema() to get effective configuration schema (1dd81d9)
  • htmlvalidate: add getElementsSchema() to get effective elements schema (4baac36), closes #​78
  • rule: support filter callback for rule events (f3f949c)
  • rules: add allowMultipleH1 option to heading-level (a33071d)
Bug Fixes
  • enable strictNullCheck (64b5af2), closes #​76
  • event: location property can be null for some events (fbbc87c)
  • event: pass null when attribute value is missing (08c2876)
  • rules: rule options uses Partial<T> (221113b)
Dependency upgrades
  • deps: update dependency ajv to v7 (4c04388)

v4.1.1

Compare Source

v4.1.0

Compare Source

Features
  • replace inquirer with prompts (82d17eb)
4.0.2 (2020-11-19)
Bug Fixes
  • deps: replace dependency on eslint with @html-validate/stylish (2d1bc81)
4.0.1 (2020-11-09)
Bug Fixes
  • rules: wcag/h32 checks for type="image" (4a43819)
  • rules: wcag/h32 handles submit buttons using form attribute to associate (cb2e843)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box.

This MR has been generated by Renovate Bot.

Edited by HTML-validate

Merge request reports