chore(deps): update dependency html-validate to v5
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
v5.0.0
⚠ 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
- add
compatibilityCheckhelper for plugins (4758595) - cjs/esm hybrid package (39c960a), closes #112
- drop support for NodeJS 10 (8f74291)
Dependency upgrades
- deps: update dependency ajv to v8 (cccb73a)
v4.14.0
Features
4.13.1 (2021-05-28)
Bug Fixes
-
jest: fix
TypeError: diff is not a function(2afc2e8)
v4.13.1
v4.13.0
Features
- jest: better compatibility with jest in node environment (79d14ca)
Dependency upgrades
- deps: support jest v27 (863f73d)
- deps: update dependency @sidvind/better-ajv-errors to ^0.9.0 (8f6d162)
v4.12.0
Features
- rules: enforce initial heading-level in sectioning roots (c4306ad)
v4.11.0
Features
-
dom:readyanddom:loadcontainssourcereference (430ec7c), closes #115 - add
:scopepseudoselector (6e3d837), closes #114 - add
isSameNode()(7d99007) - add new event
source:ready(4c1d115), closes #115 -
rules:
deprecatedtakesincludeandexcludeoptions (e00d7c1)
Bug Fixes
-
dom: throw if
tagNameis invalid (42d7100)
4.10.1 (2021-04-25)
Bug Fixes
- handle directives with excessive whitespace (0400563)
v4.10.1
v4.10.0
Features
- dom: implement {first,last}ElementChild accessors (5e70aee)
-
formatters:
stylishandcodeframedisplays links to error descriptions (86cf213), closes #113 - formatters: checkstyle output is indented (e284fb7)
-
parser: add full location to
attrevent (key, quotes, value) (931a39f) -
rules: add rule url to
Message(6845fac) -
rules: new option
allowedPropertiestono-inline-style(defaults todisplay) (75aa5f0)
Bug Fixes
- rules: rule documentation url for rules in subdirectories (c91c36d)
v4.9.0
Features
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
Features
4.7.1 (2021-03-19)
Bug Fixes
- add
$schematohtml5.json(9a89d30)
4.1.1 (2021-03-19)
Bug Fixes
-
$schemakeyword being invalid (3b67062)
v4.7.1
v4.7.0
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:
querySelectorhandles escaped characters (30e7503) - dom: throw error when selector is missing pseudoclass name (516ca06)
v4.6.1
v4.6.0
Features
-
parser: add DOCTYPE tag to
DoctypeEvent(8c53d40) -
parser: new event
tokenemitted for each lexer token (f9d44d6) - rules: allow rules to unregister event listeners (8b1a6bc)
-
rules: new rule
attr-spacingrequiring attributes to be separated by whitespace (7734dc6), closes #105 -
rules: new rule
doctype-stylerequiring doctype to be specific case (e94f819) -
rules: new rule
no-utf8-bomdisallowing 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
Features
-
meta:
transparentcan be limited to specific elements (bef8a16)
Bug Fixes
v4.4.0
Features
-
events: new event
tag:readyemitted when start tag is parsed (cfbf3dc) -
events: rename
tag:openandtag:closetotag:startandtag:end(7a2150f) -
rules:
heading-levelsupports sectioning roots (8149cc6), closes #92
Bug Fixes
-
rules: better error message for
heading-level(0871706)
Dependency upgrades
- deps: update dependency @sidvind/better-ajv-errors to ^0.8.0 (f317223)
v4.3.0
Features
-
rules: new rule
text-content(2fef395), closes #101 -
transform: new helper
processElementfor writing tests (3052f81) - add
browserentry point without cli classes (7840ec2) - set
sideEffectstofalse(41b47f8)
Bug Fixes
-
dom:
DOMTokenList(such asclasslist) handles newlines and tabs (35e601e)
v4.2.0
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
allowMultipleH1option toheading-level(a33071d)
Bug Fixes
- enable
strictNullCheck(64b5af2), closes #76 -
event:
locationproperty can benullfor some events (fbbc87c) -
event: pass
nullwhen attribute value is missing (08c2876) -
rules: rule options uses
Partial<T>(221113b)
Dependency upgrades
- deps: update dependency ajv to v7 (4c04388)
v4.1.1
v4.1.0
Features
- replace
inquirerwithprompts(82d17eb)
4.0.2 (2020-11-19)
Bug Fixes
-
deps: replace dependency on
eslintwith@html-validate/stylish(2d1bc81)
4.0.1 (2020-11-09)
Bug Fixes
-
rules:
wcag/h32checks fortype="image"(4a43819) -
rules:
wcag/h32handles submit buttons usingformattribute to associate (cb2e843)
v4.0.2
v4.0.1
v4.0.0
⚠ 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:
- you are using
validateFileor supply filenames to other validation functions. - you allow user-supplied configurations (or use them yourself) via
.htmlvalidate.json(default unlessroot: trueis set in the configuration object passed tonew HtmlValidate(..))
The ConfigLoader API has also been updated and fromTarget may now return
null if no configuration file was found.
- The
buildfolder has been renamed todist.
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
ruleExiststo test presence of bundled rules (09aad04) -
rules: new helper
isHTMLHidden(ae20335) -
shim: add new export
html-validate/test-utilsexposing 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-labelhandles multiple labels (a6af2da) -
rules:
input-missing-labelignores hidden<input>(41c39e9) -
rules:
input-missing-labelrequires label to be non-hidden (ff5e855), closes #99
Miscellaneous Chores
- migrate to
distfolder (3c6787c)
v3.5.0
Features
-
rules: new rule
no-multiple-main(fa3c065)
3.4.1 (2020-10-13)
Bug Fixes
v3.4.1
Bug Fixes
v3.4.0
Bug Fixes
- deps: update dependency acorn-walk to v8 (5a41662)
-
rules: fix issue in
no-dup-idwhere 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
Bug Fixes
-
jest: add missing
filenameto 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
Features
- rules: new rule allowed-links (d876206)
v3.1.0
Bug Fixes
-
rules:
no-redundant-forshould 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
Bug Fixes
- deps: update dependency chalk to v4 (614da1b)
- deps: update dependency eslint to v7 (186be9b)
- deps: update dependency espree to v7 (863cd0f)
chore
- drop node 8 support (b0a6731)
BREAKING CHANGES
- Node 8 support has been removed.
2.23.1 (2020-06-21)
Bug Fixes
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.