This repository was archived by the owner on Mar 30, 2025. It is now read-only.
chore(deps): update dependency html-validate to v8 #506
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:
7.13.2->8.9.1Release Notes
html-validate/html-validate (html-validate)
v8.9.1Compare Source
Bug Fixes
<form>and<section>without explicit accessible name is no longer considered landmark (a36deac)<header>and<footer>nested in<main>or sectioning content is no longer considered landmark (bcab354), closes #234v8.9.0Compare Source
Features
focusableto mark elements as focusable (c59c8b2)hidden-focusable(243e7fb)unique-landmark(187be1e)Bug Fixes
listenersproperty from public API (303e5d5)role="presentation"no longer counts decendants as missing from a11y tree (cc72da1)role="none"as a synonym forrole="presentation"(b1d7b50)role="presentation"(017308f)require-sri(ffc3695)wcag/h30no longer requires text on<a hidden>(a20cc84)wcag/h30no longer requires text on links withdisplay: noneorvisibility: hidden(36ff07e)wcag/h32handles<button>without explicittype(84c6a6e)v8.8.0Compare Source
Features
Report.merge()can merge async results (35689fc)nodejsResolvertocjsResolver(8c72c8f)defineConfighelper (35e265a)Bug Fixes
v8.7.4Compare Source
Bug Fixes
v8.7.3Compare Source
Bug Fixes
doctype-stylewhen using prettier preset (f1f4004)v8.7.2Compare Source
Bug Fixes
v8.7.1Compare Source
Bug Fixes
form-dup-nameissue when more than two names are present in array (5d9ff3b), closes #228v8.7.0Compare Source
Features
referrerpolicyattribute (851b559)v8.6.1Compare Source
Bug Fixes
attribute-misuseerror message (fccce69), closes #226v8.6.0Compare Source
Features
meta: MetaAttributeinAttributeEvent(2cda0ae)--ruleseverity can now be set with strings, fixes #225. (054972e)v8.5.0Compare Source
Features
v8.4.1Compare Source
Bug Fixes
attr-patternrule (0082aef)v8.4.0Compare Source
Features
<search>element (720bdd9)implicitRolemetadata for better handling of implicit ARIA roles (fe45ec4), closes #224v8.3.0Compare Source
Features
no-implicit-button-type(38efd72), closes #221Bug Fixes
<label>cannot have emptyfor(3626e1a), closes #223element-required-attributesallows<button>withouttype(useno-implicit-button-typeinstead) (d32f492), closes #221v8.2.0Compare Source
Features
allowedIfParentIsPresentmetadata helper (2668899)<source>attributes metadata (e3a3311)HTMLElementto metadata helpers (8af6d01), closes #207Bug Fixes
Rule.setSeverity()changed to only acceptSeverity(64f4210)v8.1.0Compare Source
Features
no-redundant-aria-label(59b5bab), closes #206Bug Fixes
compatibilityCheckfunction to browser bundle (b89dcc2)nullreturn value from plugins api (0eb0ea8)v8.0.5Compare Source
Bug Fixes
elements/html5.js(0604c21), closes #219elements/html5work with esm (d95de27)v8.0.4Compare Source
Bug Fixes
v8.0.3Compare Source
Bug Fixes
elementsin extended configuration files and plugins (6892083)v8.0.2Compare Source
Bug Fixes
browsercondition for main import (d2f7a74)node:pathandprocessin browser build (2580aeb)v8.0.1Compare Source
Bug Fixes
v8.0.0Compare Source
⚠ BREAKING CHANGES
See {@link migration migration guide} for details.
ConfigFactoryparameter toConfigLoader(and its childclasses
StaticConfigLoaderandFileSystemConfigLoader) has been removed. Noreplacement.
If you are using this you are probably better off implementing a fully custom
loader later returning a
ResolvedConfig.getContextualDocumentationreplaces the now deprecatedgetRuleDocumentationmethod. The context parameter togetRuleDocumentationis now required and must not be omitted.
For rule authors this means you can now rely on the
contextparameter beingset in the
documentationcallback.For IDE integration and toolchain authors this means you should migrate to use
getContextualDocumentationas soon as possible or if you are continuing to usegetRuleDocumentationyou are now required to pass theconfigandcontextfield from the reported message.
directly using the
Configclass. Additionally when using theStaticConfigLoaderno modules will be resolved usingrequire(..)by defaultany longer. Instructions for running in a browser is also updated, see below.
To create a
Configinstance you must now pass in aResolver(single orarray):
This applies to calls to
Config.fromObject(..)as well.The default resolvers for
StaticConfigLoaderisStaticResolverand forFileSystemConfigLoaderisNodeJSResolver. Both can optionally take a new setof resolvers (including custom ones).
Each resolver will, in order, try to load things by name. For instance, when
using the
NodeJSResolverit usesrequire(..)to load new items.NodeJSResolver- usesrequire(..)StaticResolver- uses a predefined set of items.HtmlValidateclass now has aPromisebased API where mostmethods return a promise. The old synchronous methods are renamed.
Either adapt to the new asynchronous API:
or migrate to the synchronous API:
For unittesting with Jest it is recommended to make the entire test-case async:
ConfigLoadermust returnResolvedConfig. This changeaffects API users who implements custom configuration loaders.
In the simplest case this only requires to call
Config.resolve():A resolved configuration cannot further reference any new files to extend,
plugins to load, etc.
TemplateExtractorclass has been moved to the@html-validate/plugin-utilspackage. This change only affects API users whouse the
TemplateExtractorclass, typically this is only used when writingplugins.
disabledremoved. If you use this in yourconfiguration you need to update it to
off.{ "rules": { - "my-awesome-rule": "disabled" + "my-awesome-rule": "off" } }voidrule has been removed after being deprecated a longtime, it is replaced with the separate
void-content,void-styleandno-self-closingrules.Features
ConfigLoadermust returnResolvedConfig(d685e6a)FileSystemConfigLoadersupports passing a customfs-like object (fac704e)Promisebased API toHtmlValidateclass (adc7783)Resolverclasses as a mean to separatefsfrom browser build (3dc1724)getContextualDocumentationto replacegetRuleDocumentation(60c9a12)ConfigFactory(e309d89)TemplateExtractorin favour of@html-validate/plugin-utils(a0a512b)voidrule (3e727d8)Bug Fixes
disabled(6282293)v7.18.1Compare Source
Bug Fixes
v7.18.0Compare Source
Features
html-validate:prettier(9491016), closes #215Bug Fixes
Config.fromFile()as internal (3e70028)Config.getMetaTable()as internal (8cb6dd0)dumpEvents,dumpSource,dumpTokensanddumpTreeas internal (866f219)toMatchCodeframeandtoMatchInlineCodeframehandles async result (584c67e)v7.17.0Compare Source
Features
Bug Fixes
aria-label(513a813)v7.16.0Compare Source
Features
ConfigLoaderreturns aResolvedConfig(1fd8b73)Dependency upgrades
v7.15.3Compare Source
Bug Fixes
urlimport (a2017ff)v7.15.2Compare Source
Bug Fixes
form-dup-namedefaults to allow<button type="submit">to share name (b39b9ad), closes #212Dependency upgrades
v7.15.1Compare Source
Bug Fixes
html-validate/test-utilsentrypoint (62fbee3)v7.15.0Compare Source
Features
Bug Fixes
querySelectortypescript declaration returns null to match implementation (9c9befe)v7.14.0Compare Source
Features
[role="alertdialog"]as a default sectioning root forheading-level(b87581a)Bug Fixes
Dependency upgrades
v7.13.3Compare Source
Bug Fixes
wcag/h37(5f3b43f), closes #209Configuration
📅 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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.