chore(deps): update dependency html-validate to v10 #558
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->^10.0.0Release Notes
html-validate/html-validate (html-validate)
v10.2.1Compare Source
Bug Fixes
v10.1.2Compare Source
Bug Fixes
form-dup-namerule (cf1962e), closes #294v10.1.1Compare Source
Bug Fixes
unrecognized-char-reftriggering [secure] positives for<script>and<style>tags (efffc6b)v10.1.0Compare Source
Features
<textarea>content as literal characters instead of HTML elements (f3d4f5b), closes #314<script>and<style>content as text node (740b94a), closes #316v10.0.0Compare Source
⚠ BREAKING CHANGES
required.
required.
Features
v9.7.1Compare Source
Bug Fixes
no-raw-charactersignores boolean attributes in favor ofattribute-allowed-values(22b18be), closes #296<dialog>(bd07810), closes #304v9.7.0Compare Source
Features
templateRootmeta property for<template>element (beccfda)strictoption towcag/h63to enforce for all tables (51eecf2)wcag/h63(0e84024), closes #303Bug Fixes
v9.6.1Compare Source
Bug Fixes
<template>whenscriptSupportingis disabled (f4629f8)v9.6.0Compare Source
Features
Bug Fixes
v9.5.5Compare Source
Bug Fixes
<area>,<dd>and<dt>not being allowed in<template>(707d990), closes #307v9.5.4Compare Source
Bug Fixes
v9.5.3Compare Source
Bug Fixes
[..]contains escaped characters (0c19b82)v9.5.2Compare Source
Bug Fixes
.toHTMLValidate()from 10s to 30s (f5f9917), closes #298v9.5.1Compare Source
Bug Fixes
v9.5.0Compare Source
Features
v9.4.2Compare Source
Performance Improvements
HtmlElement.matches()increasing performance of large documents (4eb28a7), closes #45v9.4.1Compare Source
Bug Fixes
v9.4.0Compare Source
Features
fsimplementation invalidateFileand similar functions: optional for node required for browser (f9edf65), closes #293v9.3.0Compare Source
Features
widthandheightare non-negative integers on<img>and other embedded elements (6bde9e6), closes #280Bug Fixes
--ruleoverwritingextendsfrom--config(5623120)--ruleoverwriting all rules from--configor--preset(8cc81c8), closes #289valid-iderror message (c0c6b73), closes #282Performance Improvements
no-dup-idperformance (8da515f), closes #288void-style(5a156de), closes #287v9.2.2Compare Source
Bug Fixes
v9.2.1Compare Source
Bug Fixes
<link>withrel="stylesheet",rel="preload"orrel="modulepreload"(0b47d2a)v9.2.0Compare Source
Features
Bug Fixes
import.meta.resolveisnt available (8ed0ae8)--confignot finding configuration file on windows (9a1c41c)v9.1.3Compare Source
Bug Fixes
v9.1.2Compare Source
Bug Fixes
ERR_UNSUPPORTED_ESM_URL_SCHEMEon windows (6b193f3)v9.1.1Compare Source
Bug Fixes
require is not definedin vitest (6a42bb1), closes #276v9.1.0Compare Source
Features
Bug Fixes
toMatchCodeframe(3c29ad5)v9.0.1Compare Source
Bug Fixes
validateMultipleFilesincorrectly using sync API (0c26918)v9.0.0Compare Source
ESM support has finally landed in HTML-Validate V9!
.htmlvalidate.mjsor 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
Promiseso make sure toawaitit.⚠ 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 aPromisewhen used with anasync loader or resolver.
api: The deprecated
tag:openandtag:closeevents has beenremoved, use
tag:beginandtag:endinstead.api: The
Config.resolve()method can return aPromiseif anyunderlying loader or resolver has returned a
Promise.It is recommended to assume it returns a
Promiseand alwaysawaittheresult:
If you need synchronous code ensure the configuration, the loader and the
resolver all returns synchronous results, e.g. the
staticResolverwithsynchronous 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-utilsto write unit testsyou must now resolve the promise.
import { transformSource } from "html-validate/test-utils"; -const result = transformSource(transformer, source); +const result = await transformSource(transformer, source);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
CLIclass 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:
ConfigLoadermethods can optionally return aPromiseforasync operation. For most use-cases this will not require any changes.
api: The
ConfigLoader.globalConfigproperty 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)CLImethods async and return Promise (677c73e)Config.fromFileandConfig.fromObjectcan returnPromise(b126361)Config.merge(..)can returnPromise(cccb313)Config.resolve()can returnPromise(09159f3)ConfigLoaders can optionally returnPromisefor async operation (6041581)FileSystemConfigLoaderusesesmResolverby default (dd4cfb1)HtmlValidate.getConfigurationSchema()returns promise (f10ec1a)esmResolverusingimport(..)(available for both nodejs and browser) (81b4777), closes #230Config.init()(0bd8ab7)tag:openandtag:closeevents (88ac65e)ConfigLoader.globalConfigwithConfigLoader.getGlobalConfig()(a64935a)Promisefor async operation (fe3c6a6)Promisefor async operation (823da19)esmResolver) (3e4759e).htmlvalidate.mjsconfiguration files (0ffd9b5), closes #125v8.29.0Compare Source
Features
labelableproperty to be a callback (8204b5b)v8.28.0Compare Source
Features
toHTMLValidate(..)matcher (a6a60ab)v8.27.0Compare Source
Features
Config.init()(d4b5987)v8.26.0Compare Source
Features
v8.25.1Compare Source
Bug Fixes
v8.25.0Compare Source
Features
--presetto set preset when using cli (2ec038f), closes #269Bug Fixes
v8.24.2Compare Source
Bug Fixes
package.jsonexports (a21a1ef), closes #265v8.24.1Compare Source
Bug Fixes
v8.24.0Compare Source
Features
html-validate:browserconfiguration preset (f4e6f5b), closes #261v8.23.0Compare Source
Features
v8.22.0Compare Source
Features
DOMNodeconstructor internal (13377ac)HtmlElementconstructor private (fbf4303)@babel/code-framedependency (0003ffd)Bug Fixes
v8.21.0Compare Source
Features
DOMTree.readyState(1f6f69b)DOMTree.find(..)in favour ofquerySelector(..)(ac0bb77)DOMTreeremoved from public API (79a03be)walk.depthFirst(..)API to replace now deprecatedDOMTree.visitDepthFirst(..)method (f9dbda0)Bug Fixes
spellcheckis a global attribute (46594a1)v8.20.1Compare Source
Bug Fixes
attribute-allowed-valueserror location for empty values (2c04eeb)v8.20.0Compare Source
Features
setConfigmethod onStaticConfigLoaderto change config (1bf7559)v8.19.1Compare Source
Bug Fixes
wcag/h36no longer reports for hidden elements (aba06d1)wcag/h37no longer validates<input type="submit">(usewcag/h36instead) (e82b17a), closes #254wcag/h36have better message and location (8a80cc8)v8.19.0Compare Source
Features
allowCheckboxDefaultforform-dup-name(293b951), closes #251Bug Fixes
multiple-labeled-controlshandles hidden input (4d794b6), closes #251wcag/h30only applies to<a href>(cd93dfe), closes #252valid-id(c83687a), closes #253v8.18.2Compare Source
Bug Fixes
onandoff(c1dfbb1), closes #249v8.18.1Compare Source
Bug Fixes
form-dup-namehandles<template>element (9c77444), closes #247no-dup-idhandles<template>element (04f3e0d), closes #247v8.18.0Compare Source
Features
bemfor pattern rules (c1ead1b)snakecasefor pattern rules (4b95ccb), closes #245Bug Fixes
v8.17.1Compare Source
Bug Fixes
v8.17.0Compare Source
Features
name-pattern(f2209c0), closes #216id-pattern,class-patternandname-patternrules (15dd007)Bug Fixes
input-missing-labelnow ignores<input>hidden by css (c40e48e), closes #241input-missing-labelnow tests if<label>is inert or hidden by css (d0d6f40)id-pattern,class-patternandname-patternrules (4bd70ab)v8.16.0Compare Source
Features
tabIndexproperty reflecting the parsedtabindexattribute (a4e5d5b)inertas global attribute (a5e6477)formAssociated.disablableproperty (0b141ab)Bug Fixes
<summary>element is focusable if child of<details>(79dec74)hidden-focusablehandles inert elements (89bb969), closes #240hidden-focusableno longer reports for disabled form controls (d337397)hidden-focusableno longer reports for elements withtabindex="-1"(03d7223), closes #240v8.15.0Compare Source
Features
valid-autocomplete(bebd0d1)Bug Fixes
urlinmeta-refresh(3177295)v8.14.0Compare Source
Features
allowLongDelaytometa-refreshto allow 20h+ delays (629625c)v8.13.0Compare Source
Features
<link>under<body>if appropriaterelattribute is present (ae1e070)v8.12.0Compare Source
Features
no-abstract-role(923680b)v8.11.1Compare Source
Bug Fixes
a,dor9(a9a9ef9)v8.11.0Compare Source
Features
aria.namingrepresenting if the element can be named (4fca264)implicitRoletoaria.implicitRole(bc8cacf)Bug Fixes
allowAnyNamableforaria-label-misuse(c08a3ba), closes #237v8.10.0Compare Source
Features
no-implicit-input-type(6cc0c6d)Bug Fixes
typefor<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.