Skip to content

chore(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) devDependencies major 2.23.1 -> 5.0.1

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)

v4.0.2

Compare Source

v4.0.1

Compare Source

v4.0.0

Compare Source

BREAKING CHANGES
  • config: With this release any custom configuration files will no longer automatically extend html-validate:recommended.

The previous behaviour was to to always merge with the default configuration containing extends: ["html-validate:recommended"]. This is counter-intuitive when adding a blank {} .htmlvalidate.json configuration file (or a file with extends: []). The new behaviour is to not apply default configuration if another configuration is found.

To retain the previous behaviour you must ensure your configuration contains extends: ["html-validate:recommended"]. Users who have root: true are not affected. If unsure: test your configuration by deliberatly introducing and error and verify it is detected.

For CLI users: ensure your .htmlvalidate.json configuration files are updated.

For IDE integration users: ensure your .htmlvalidate.json configuration files are updated.

For CLI API users: same as with CLI the configuration loading has changed and all users must update their .htmlvalidate.json accordingly.

For HtmlValidate API users: you are most likely not affected, only if both of the following conditions are true you need to take care to ensure any .htmlvalidate.json is updated:

  1. you are using validateFile or supply filenames to other validation functions.
  2. you allow user-supplied configurations (or use them yourself) via .htmlvalidate.json (default unless root: true is set in the configuration object passed to new HtmlValidate(..))

The ConfigLoader API has also been updated and fromTarget may now return null if no configuration file was found.

  • The build folder has been renamed to dist.

This affects API users only and in general should not be an issue unless importing files via full path. In that case replace import 'html-validate/build/...' with import 'html-validate/dist/... but in general those imports are discouraged.

Instead users should import only via import { ... } from "html-validate" and file an issue if an export is missing.

This does not affect the elements imports which is considered a safe to import as-is.

  • Only node 10 or later is supported
Features
  • new utility function ruleExists to test presence of bundled rules (09aad04)
  • rules: new helper isHTMLHidden (ae20335)
  • shim: add new export html-validate/test-utils exposing test-utils (30f5d40)
  • shim: expose all event structures in shim (294bb0d)
  • shim: expose metadata structures (271e521)
Bug Fixes
  • config: dont automatically apply extends: ["html-validate:recommended"] (fcad0b2), closes #​98
  • require node 10 (d1a48b1)
  • rules: input-missing-label handles multiple labels (a6af2da)
  • rules: input-missing-label ignores hidden <input> (41c39e9)
  • rules: input-missing-label requires label to be non-hidden (ff5e855), closes #​99
Miscellaneous Chores

v3.5.0

Compare Source

Features
  • rules: new rule no-multiple-main (fa3c065)

3.4.1 (2020-10-13)

Bug Fixes
  • rules: ignore links hidden from accessibility tree - fixes #​97 (064514b)

v3.4.1

Compare Source

Bug Fixes
  • rules: ignore links hidden from accessibility tree - fixes #​97 (064514b)

v3.4.0

Compare Source

Bug Fixes
  • deps: update dependency acorn-walk to v8 (5a41662)
  • rules: fix issue in no-dup-id where value is dynamic (203debe), closes #​96
Features
  • api: add additional prototypes to validateString (69e8102)
  • dom: new api for caching data on DOMNode (13d99e4)
  • rules: implement caching in some helper methods (5746d6c)

v3.3.0

Compare Source

Bug Fixes
  • jest: add missing filename to typescript declaration (4be48fa)
  • meta: default to pass when testing excluded category from unknown element (07afa1a)
  • rules: handle unknown elements better in element-permitted-content (58ba1aa), closes #​95
Features
  • jest: toHTMLValidate() supports passing expected errors (7b3c30e)

v3.2.0

Compare Source

Features
  • rules: new rule allowed-links (d876206)

v3.1.0

Compare Source

Bug Fixes
  • rules: no-redundant-for should only target <label> (a2395b6)
Features
  • meta: new property labelable (bf5cd6e)
  • rules: new rule multiple-labeled-controls (ee28774), closes #​86
  • rules: new rule no-redundant-for (d4445bb), closes #​87

v3.0.0

Compare Source

Bug Fixes
  • deps: update dependency chalk to v4 (614da1b)
  • deps: update dependency eslint to v7 (186be9b)
  • deps: update dependency espree to v7 (863cd0f)
chore
BREAKING CHANGES
  • Node 8 support has been removed.

2.23.1 (2020-06-21)

Bug Fixes
  • rules: no-trailing-whitespace handles CRLF (windows) newlines (2aaddc2), closes #​93

Configuration

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

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

Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 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.

Merge request reports