chore(deps): update dependency html-validate to v8 #517
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.0.0
->^8.0.0
Release Notes
html-validate/html-validate (html-validate)
v8.8.0
Compare Source
Features
Report.merge()
can merge async results (35689fc)nodejsResolver
tocjsResolver
(8c72c8f)defineConfig
helper (35e265a)Bug Fixes
v8.7.4
Compare Source
Bug Fixes
v8.7.3
Compare Source
Bug Fixes
doctype-style
when using prettier preset (f1f4004)v8.7.2
Compare Source
Bug Fixes
v8.7.1
Compare Source
Bug Fixes
form-dup-name
issue when more than two names are present in array (5d9ff3b), closes #228v8.7.0
Compare Source
Features
referrerpolicy
attribute (851b559)v8.6.1
Compare Source
Bug Fixes
attribute-misuse
error message (fccce69), closes #226v8.6.0
Compare Source
Features
meta: MetaAttribute
inAttributeEvent
(2cda0ae)--rule
severity can now be set with strings, fixes #225. (054972e)v8.5.0
Compare Source
Features
v8.4.1
Compare Source
Bug Fixes
attr-pattern
rule (0082aef)v8.4.0
Compare Source
Features
<search>
element (720bdd9)implicitRole
metadata for better handling of implicit ARIA roles (fe45ec4), closes #224v8.3.0
Compare Source
Features
no-implicit-button-type
(38efd72), closes #221Bug Fixes
<label>
cannot have emptyfor
(3626e1a), closes #223element-required-attributes
allows<button>
withouttype
(useno-implicit-button-type
instead) (d32f492), closes #221v8.2.0
Compare Source
Features
allowedIfParentIsPresent
metadata helper (2668899)<source>
attributes metadata (e3a3311)HTMLElement
to metadata helpers (8af6d01), closes #207Bug Fixes
Rule.setSeverity()
changed to only acceptSeverity
(64f4210)v8.1.0
Compare Source
Features
no-redundant-aria-label
(59b5bab), closes #206Bug Fixes
compatibilityCheck
function to browser bundle (b89dcc2)null
return value from plugins api (0eb0ea8)v8.0.5
Compare Source
Bug Fixes
elements/html5.js
(0604c21), closes #219elements/html5
work with esm (d95de27)v8.0.4
Compare Source
Bug Fixes
v8.0.3
Compare Source
Bug Fixes
elements
in extended configuration files and plugins (6892083)v8.0.2
Compare Source
Bug Fixes
browser
condition for main import (d2f7a74)node:path
andprocess
in browser build (2580aeb)v8.0.1
Compare Source
Bug Fixes
v8.0.0
Compare Source
⚠ BREAKING CHANGES
See {@link migration migration guide} for details.
ConfigFactory
parameter toConfigLoader
(and its childclasses
StaticConfigLoader
andFileSystemConfigLoader
) has been removed. Noreplacement.
If you are using this you are probably better off implementing a fully custom
loader later returning a
ResolvedConfig
.getContextualDocumentation
replaces the now deprecatedgetRuleDocumentation
method. The context parameter togetRuleDocumentation
is now required and must not be omitted.
For rule authors this means you can now rely on the
context
parameter beingset in the
documentation
callback.For IDE integration and toolchain authors this means you should migrate to use
getContextualDocumentation
as soon as possible or if you are continuing to usegetRuleDocumentation
you are now required to pass theconfig
andcontext
field from the reported message.
directly using the
Config
class. Additionally when using theStaticConfigLoader
no modules will be resolved usingrequire(..)
by defaultany longer. Instructions for running in a browser is also updated, see below.
To create a
Config
instance you must now pass in aResolver
(single orarray):
This applies to calls to
Config.fromObject(..)
as well.The default resolvers for
StaticConfigLoader
isStaticResolver
and forFileSystemConfigLoader
isNodeJSResolver
. 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
NodeJSResolver
it usesrequire(..)
to load new items.NodeJSResolver
- usesrequire(..)
StaticResolver
- uses a predefined set of items.HtmlValidate
class now has aPromise
based 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:
ConfigLoader
must 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.
TemplateExtractor
class has been moved to the@html-validate/plugin-utils
package. This change only affects API users whouse the
TemplateExtractor
class, typically this is only used when writingplugins.
disabled
removed. If you use this in yourconfiguration you need to update it to
off
.void
rule has been removed after being deprecated a longtime, it is replaced with the separate
void-content
,void-style
andno-self-closing
rules.Features
ConfigLoader
must returnResolvedConfig
(d685e6a)FileSystemConfigLoader
supports passing a customfs
-like object (fac704e)Promise
based API toHtmlValidate
class (adc7783)Resolver
classes as a mean to separatefs
from browser build (3dc1724)getContextualDocumentation
to replacegetRuleDocumentation
(60c9a12)ConfigFactory
(e309d89)TemplateExtractor
in favour of@html-validate/plugin-utils
(a0a512b)void
rule (3e727d8)Bug Fixes
disabled
(6282293)v7.18.1
Compare Source
Bug Fixes
v7.18.0
Compare Source
Features
html-validate:prettier
(9491016), closes #215Bug Fixes
Config.fromFile()
as internal (3e70028)Config.getMetaTable()
as internal (8cb6dd0)dumpEvents
,dumpSource
,dumpTokens
anddumpTree
as internal (866f219)toMatchCodeframe
andtoMatchInlineCodeframe
handles async result (584c67e)v7.17.0
Compare Source
Features
Bug Fixes
aria-label
(513a813)v7.16.0
Compare Source
Features
ConfigLoader
returns aResolvedConfig
(1fd8b73)Dependency upgrades
v7.15.3
Compare Source
Bug Fixes
url
import (a2017ff)v7.15.2
Compare Source
Bug Fixes
form-dup-name
defaults to allow<button type="submit">
to share name (b39b9ad), closes #212Dependency upgrades
v7.15.1
Compare Source
Bug Fixes
html-validate/test-utils
entrypoint (62fbee3)v7.15.0
Compare Source
Features
Bug Fixes
querySelector
typescript declaration returns null to match implementation (9c9befe)v7.14.0
Compare Source
Features
[role="alertdialog"]
as a default sectioning root forheading-level
(b87581a)Bug Fixes
Dependency upgrades
v7.13.3
Compare Source
Bug Fixes
wcag/h37
(5f3b43f), closes #209v7.13.2
Compare Source
Bug Fixes
v7.13.1
Compare Source
Bug Fixes
no-unused-disable
properly reports location when more than two rules are disabled (26d1970)no-unused-disable
to be disabled by directive (b11166c)v7.13.0
Compare Source
Features
Validator
helper (6ef10dd), closes #204v7.12.2
Compare Source
Bug Fixes
form-dup-name
validate checkboxes by default (d5e7b7d), closes #202allowArrayBrackets
option toform-dup-name
rule (a43ea0b), closes #203shared
option toform-dup-name
to set which controls allow shared names (7ddc02b), closes #201v7.12.1
Compare Source
Bug Fixes
form-dup-name
reports when radio and non-radio uses same name (6d9a282), closes #200Configuration
📅 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.