chore(deps): update dependency html-validate to v9 #552
+90
−87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.0.0
->^9.0.0
Release Notes
html-validate/html-validate (html-validate)
v9.1.3
Compare Source
Bug Fixes
v9.1.2
Compare Source
Bug Fixes
ERR_UNSUPPORTED_ESM_URL_SCHEME
on windows (6b193f3)v9.1.1
Compare Source
Bug Fixes
require is not defined
in vitest (6a42bb1), closes #276v9.1.0
Compare Source
Features
Bug Fixes
toMatchCodeframe
(3c29ad5)v9.0.1
Compare Source
Bug Fixes
validateMultipleFiles
incorrectly using sync API (0c26918)v9.0.0
Compare Source
ESM support has finally landed in HTML-Validate V9!
.htmlvalidate.mjs
or when"type"
is"module"
inpackage.json
).This release is primarly breaking for API uses but some configuration changes might be required (see below).
For API users the TL;DR version is most functions can return a
Promise
so make sure toawait
it.⚠ BREAKING CHANGES
config: This change affects all users. The following deprecated
configuration presets has been removed:
htmlvalidate:recommended
- replace withhtml-validate:recommended
.htmlvalidate:document
- replace withhtml-validate:document
.html-validate:a17y
- replace withhtml-validate:a11y
.cli: CLI uses ESM (with
esmResolver
). For most part this shouldn'taffect anything but in some cases you might need slight configuration
migration. See Migration Guide for details.
cli: use ESM in CLI
meta: The deprecated metadata property expressions have been removed
and can be replaced with callback functions. This gives greater control for the
metadata author, provides better IDE support and is more reusable when querying
the metadata directly.
deps: Requires NodeJS v18 or later.
api:
Config.merge(..)
will return aPromise
when used with anasync loader or resolver.
api: The deprecated
tag:open
andtag:close
events has beenremoved, use
tag:begin
andtag:end
instead.api: The
Config.resolve()
method can return aPromise
if anyunderlying loader or resolver has returned a
Promise
.It is recommended to assume it returns a
Promise
and alwaysawait
theresult:
If you need synchronous code ensure the configuration, the loader and the
resolver all returns synchronous results, e.g. the
staticResolver
withsynchronous code.
api: The
HtmlValidate.getConfigurationSchema()
method is now asyncand returns a
Promise
. If you use this method you need to await the result:api: If you are writing your own transformers they may now
optionally return a
Promise
. If you are usingtest-utils
to write unit testsyou must now resolve the promise.
This is no matter if your transformer is actually async or not.
api: The
CLI.isIgnored(..)
method has been removed from the publicAPI. There is no replacement. If you need this method open an issue describing
the use-case.
api: If you are using the
CLI
class most methods are now async andreturns
Promise
. There is no synchronous version of these API calls.api:
Config.fromFile(..)
andConfig.fromObject(..)
will return aPromise when used with an async loader or resolver.
api:
ConfigLoader
methods can optionally return aPromise
forasync operation. For most use-cases this will not require any changes.
api: The
ConfigLoader.globalConfig
property has been replaced withConfigLoader.getGlobalConfig()
(async) andConfigLoader.getGlobalConfigSync()
(sync).api: The redundant and deprecated
Config.init()
method has beenremoved.
Remove any calls to the method:
const config = Config.fromObject({ /* ... */ }); -config.init();
Features
CLI.isIgnored()
made private (9e3679a)CLI
methods async and return Promise (677c73e)Config.fromFile
andConfig.fromObject
can returnPromise
(b126361)Config.merge(..)
can returnPromise
(cccb313)Config.resolve()
can returnPromise
(09159f3)ConfigLoader
s can optionally returnPromise
for async operation (6041581)FileSystemConfigLoader
usesesmResolver
by default (dd4cfb1)HtmlValidate.getConfigurationSchema()
returns promise (f10ec1a)esmResolver
usingimport(..)
(available for both nodejs and browser) (81b4777), closes #230Config.init()
(0bd8ab7)tag:open
andtag:close
events (88ac65e)ConfigLoader.globalConfig
withConfigLoader.getGlobalConfig()
(a64935a)Promise
for async operation (fe3c6a6)Promise
for async operation (823da19)esmResolver
) (3e4759e).htmlvalidate.mjs
configuration files (0ffd9b5), closes #125v8.29.0
Compare Source
Features
labelable
property to be a callback (8204b5b)v8.28.0
Compare Source
Features
toHTMLValidate(..)
matcher (a6a60ab)v8.27.0
Compare Source
Features
Config.init()
(d4b5987)v8.26.0
Compare Source
Features
v8.25.1
Compare Source
Bug Fixes
v8.25.0
Compare Source
Features
--preset
to set preset when using cli (2ec038f), closes #269Bug Fixes
v8.24.2
Compare Source
Bug Fixes
package.json
exports (a21a1ef), closes #265v8.24.1
Compare Source
Bug Fixes
v8.24.0
Compare Source
Features
html-validate:browser
configuration preset (f4e6f5b), closes #261v8.23.0
Compare Source
Features
v8.22.0
Compare Source
Features
DOMNode
constructor internal (13377ac)HtmlElement
constructor private (fbf4303)@babel/code-frame
dependency (0003ffd)Bug Fixes
v8.21.0
Compare Source
Features
DOMTree.readyState
(1f6f69b)DOMTree.find(..)
in favour ofquerySelector(..)
(ac0bb77)DOMTree
removed from public API (79a03be)walk.depthFirst(..)
API to replace now deprecatedDOMTree.visitDepthFirst(..)
method (f9dbda0)Bug Fixes
spellcheck
is a global attribute (46594a1)v8.20.1
Compare Source
Bug Fixes
attribute-allowed-values
error location for empty values (2c04eeb)v8.20.0
Compare Source
Features
setConfig
method onStaticConfigLoader
to change config (1bf7559)v8.19.1
Compare Source
Bug Fixes
wcag/h36
no longer reports for hidden elements (aba06d1)wcag/h37
no longer validates<input type="submit">
(usewcag/h36
instead) (e82b17a), closes #254wcag/h36
have better message and location (8a80cc8)v8.19.0
Compare Source
Features
allowCheckboxDefault
forform-dup-name
(293b951), closes #251Bug Fixes
multiple-labeled-controls
handles hidden input (4d794b6), closes #251wcag/h30
only applies to<a href>
(cd93dfe), closes #252valid-id
(c83687a), closes #253v8.18.2
Compare Source
Bug Fixes
on
andoff
(c1dfbb1), closes #249v8.18.1
Compare Source
Bug Fixes
form-dup-name
handles<template>
element (9c77444), closes #247no-dup-id
handles<template>
element (04f3e0d), closes #247v8.18.0
Compare Source
Features
bem
for pattern rules (c1ead1b)snakecase
for pattern rules (4b95ccb), closes #245Bug Fixes
v8.17.1
Compare Source
Bug Fixes
v8.17.0
Compare Source
Features
name-pattern
(f2209c0), closes #216id-pattern
,class-pattern
andname-pattern
rules (15dd007)Bug Fixes
input-missing-label
now ignores<input>
hidden by css (c40e48e), closes #241input-missing-label
now tests if<label>
is inert or hidden by css (d0d6f40)id-pattern
,class-pattern
andname-pattern
rules (4bd70ab)v8.16.0
Compare Source
Features
tabIndex
property reflecting the parsedtabindex
attribute (a4e5d5b)inert
as global attribute (a5e6477)formAssociated.disablable
property (0b141ab)Bug Fixes
<summary>
element is focusable if child of<details>
(79dec74)hidden-focusable
handles inert elements (89bb969), closes #240hidden-focusable
no longer reports for disabled form controls (d337397)hidden-focusable
no longer reports for elements withtabindex="-1"
(03d7223), closes #240v8.15.0
Compare Source
Features
valid-autocomplete
(bebd0d1)Bug Fixes
url
inmeta-refresh
(3177295)v8.14.0
Compare Source
Features
allowLongDelay
tometa-refresh
to allow 20h+ delays (629625c)v8.13.0
Compare Source
Features
<link>
under<body>
if appropriaterel
attribute is present (ae1e070)v8.12.0
Compare Source
Features
no-abstract-role
(923680b)v8.11.1
Compare Source
Bug Fixes
a
,d
or9
(a9a9ef9)v8.11.0
Compare Source
Features
aria.naming
representing if the element can be named (4fca264)implicitRole
toaria.implicitRole
(bc8cacf)Bug Fixes
allowAnyNamable
foraria-label-misuse
(c08a3ba), closes #237v8.10.0
Compare Source
Features
no-implicit-input-type
(6cc0c6d)Bug Fixes
type
for<input>
no longer required (37284d0), closes #235no-implicit-button-type
(1926c06)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.