fix(deps): update dependency html-validate to v5
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
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
compatibilityCheck
helper 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:ready
anddom:load
containssource
reference (430ec7c), closes #115 - add
:scope
pseudoselector (6e3d837), closes #114 - add
isSameNode()
(7d99007) - add new event
source:ready
(4c1d115), closes #115 -
rules:
deprecated
takesinclude
andexclude
options (e00d7c1)
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
v4.10.0
Features
- dom: implement {first,last}ElementChild accessors (5e70aee)
-
formatters:
stylish
andcodeframe
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
tono-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
$schema
tohtml5.json
(9a89d30)
4.1.1 (2021-03-19)
Bug Fixes
-
$schema
keyword 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:
querySelector
handles 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
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
Features
-
meta:
transparent
can be limited to specific elements (bef8a16)
Bug Fixes
v4.4.0
Features
-
events: new event
tag:ready
emitted when start tag is parsed (cfbf3dc) -
events: rename
tag:open
andtag:close
totag:start
andtag:end
(7a2150f) -
rules:
heading-level
supports 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
processElement
for writing tests (3052f81) - add
browser
entry point without cli classes (7840ec2) - set
sideEffects
tofalse
(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
allowMultipleH1
option toheading-level
(a33071d)
Bug Fixes
- enable
strictNullCheck
(64b5af2), closes #76 -
event:
location
property can benull
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
v4.1.0
Features
- replace
inquirer
withprompts
(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
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.