Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency html-validate to v8 - autoclosed #182

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 4, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
html-validate (source) 7.18.1 -> 8.7.0 age adoption passing confidence

Release Notes

html-validate/html-validate (html-validate)

v8.7.0

Compare Source

Features
  • html5: support referrerpolicy attribute (851b559)

v8.6.1

Compare Source

Bug Fixes
  • dom: remove usage of regex negative lookbehind (f406393), closes #​147
  • rules: improve attribute-misuse error message (fccce69), closes #​226
  • typo in CONTRIBUTING.md (855bacf)

v8.6.0

Compare Source

Features
  • api: add meta: MetaAttribute in AttributeEvent (2cda0ae)
  • cli: --rule severity can now be set with strings, fixes #​225. (054972e)

v8.5.0

Compare Source

Features

v8.4.1

Compare Source

Bug Fixes
  • rules: fix contextual documentation for attr-pattern rule (0082aef)

v8.4.0

Compare Source

Features
  • html5: support <search> element (720bdd9)
  • new implicitRole metadata for better handling of implicit ARIA roles (fe45ec4), closes #​224

v8.3.0

Compare Source

Features
Bug Fixes
  • html5: <label> cannot have empty for (3626e1a), closes #​223
  • html5: element-required-attributes allows <button> without type (use no-implicit-button-type instead) (d32f492), closes #​221

v8.2.0

Compare Source

Features
  • add allowedIfParentIsPresent metadata helper (2668899)
  • html5: add <source> attributes metadata (e3a3311)
  • support passing native HTMLElement to metadata helpers (8af6d01), closes #​207
Bug Fixes
  • api: typing for Rule.setSeverity() changed to only accept Severity (64f4210)

v8.1.0

Compare Source

Features
Bug Fixes
  • add compatibilityCheck function to browser bundle (b89dcc2)
  • api: remove unintended null return value from plugins api (0eb0ea8)

v8.0.5

Compare Source

Bug Fixes
  • fix import issue with elements/html5.js (0604c21), closes #​219
  • make elements/html5 work with esm (d95de27)

v8.0.4

Compare Source

Bug Fixes
  • add explicit node import (73f9a1f)

v8.0.3

Compare Source

Bug Fixes
  • fix regression bug when using elements in extended configuration files and plugins (6892083)
  • use correct dts when using custom conditions (1b6971e)

v8.0.2

Compare Source

Bug Fixes
  • add browser condition for main import (d2f7a74)
  • remove usage of node:path and process in browser build (2580aeb)

v8.0.1

Compare Source

Bug Fixes
  • fix nodejs code being included in browser bundle (7c76a3b)

v8.0.0

Compare Source

⚠ BREAKING CHANGES

See {@​link migration migration guide} for details.

  • api: The ConfigFactory parameter to ConfigLoader (and its child
    classes StaticConfigLoader and FileSystemConfigLoader) has been removed. No
    replacement.

If you are using this you are probably better off implementing a fully custom
loader later returning a ResolvedConfig.

  • api: A new getContextualDocumentation replaces the now deprecated
    getRuleDocumentation method. The context parameter to getRuleDocumentation
    is now required and must not be omitted.

For rule authors this means you can now rely on the context parameter being
set 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 use
getRuleDocumentation you are now required to pass the config and context
field from the reported message.

  • api: This change affect API users only, specifically API users
    directly using the Config class. Additionally when using the
    StaticConfigLoader no modules will be resolved using require(..) by default
    any longer. Instructions for running in a browser is also updated, see below.

To create a Config instance you must now pass in a Resolver (single or
array):

+const resolvers = [ /* ... */ ];
-const config = new Config( /* ... */ );
+const config = new Config(resolvers, /* ... */ );

This applies to calls to Config.fromObject(..) as well.

The default resolvers for StaticConfigLoader is StaticResolver and for
FileSystemConfigLoader is NodeJSResolver. Both can optionally take a new set
of resolvers (including custom ones).

Each resolver will, in order, try to load things by name. For instance, when
using the NodeJSResolver it uses require(..) to load new items.

  • NodeJSResolver - uses require(..)
  • StaticResolver - uses a predefined set of items.
  • api: The HtmlValidate class now has a Promise based API where most
    methods return a promise. The old synchronous methods are renamed.

Either adapt to the new asynchronous API:

-const result = htmlvalidate.validateFile("my-awesome-file.html");
+const result = await htmlvalidate.validateFile("my-awesome-file.html");

or migrate to the synchronous API:

-const result = htmlvalidate.validateFile("my-awesome-file.html");
+const result = htmlvalidate.validateFileSync("my-awesome-file.html");

For unittesting with Jest it is recommended to make the entire test-case async:

-it("my awesome test", () => {
+it("my awesome test", async () => {
   const htmlvalidate = new HtmlValidate();
-  const report = htmlvalidate.validateString("...");
+  const report = await htmlvalidate.validateString("...");
   expect(report).toMatchCodeFrame();
});
  • api: ConfigLoader must return ResolvedConfig. This change
    affects API users who implements custom configuration loaders.

In the simplest case this only requires to call Config.resolve():

-return config;
+return config.resolve();

A resolved configuration cannot further reference any new files to extend,
plugins to load, etc.

  • api: The TemplateExtractor class has been moved to the
    @html-validate/plugin-utils package. This change only affects API users who
    use the TemplateExtractor class, typically this is only used when writing
    plugins.
  • config: Deprecated severity alias disabled removed. If you use this in your
    configuration you need to update it to off.
 {
   "rules": {
-    "my-awesome-rule": "disabled"
+    "my-awesome-rule": "off"
   }
 }
  • rules: The void rule has been removed after being deprecated a long
    time, it is replaced with the separate void-content, void-style and
    no-self-closing rules.
  • deps: minimum required node version is v16
  • deps: minimum required jest version is v27
Features
  • api: ConfigLoader must return ResolvedConfig (d685e6a)
  • api: FileSystemConfigLoader supports passing a custom fs-like object (fac704e)
  • api: add Promise based API to HtmlValidate class (adc7783)
  • api: add Resolver classes as a mean to separate fs from browser build (3dc1724)
  • api: new getContextualDocumentation to replace getRuleDocumentation (60c9a12)
  • api: remove ConfigFactory (e309d89)
  • api: remove TemplateExtractor in favour of @html-validate/plugin-utils (a0a512b)
  • deps: minimum required jest version is v27 (dc79b6b)
  • deps: minimum required node version is v16 (f6ccdb0)
  • rules: remove deprecated void rule (3e727d8)
Bug Fixes
  • config: remove deprecated severity alias disabled (6282293)

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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/html-validate-8.x branch 5 times, most recently from 410c94f to 2e0e7ef Compare June 14, 2023 01:26
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from 2e0e7ef to e89286b Compare July 22, 2023 04:00
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from e89286b to 44edbdc Compare August 7, 2023 19:43
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch 2 times, most recently from c95d7c6 to 3fd360e Compare August 20, 2023 05:29
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch 2 times, most recently from f1ef0f3 to 019ff7a Compare September 9, 2023 19:05
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from 019ff7a to b0e3caf Compare September 24, 2023 00:17
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from b0e3caf to d9e87c5 Compare October 1, 2023 01:58
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from d9e87c5 to 0abd74b Compare October 13, 2023 19:34
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from 0abd74b to 46183a6 Compare October 21, 2023 21:16
@renovate renovate bot force-pushed the renovate/html-validate-8.x branch from 46183a6 to 23f1bfc Compare October 22, 2023 01:17
@renovate renovate bot changed the title Update dependency html-validate to v8 Update dependency html-validate to v8 - autoclosed Nov 3, 2023
@renovate renovate bot closed this Nov 3, 2023
@renovate renovate bot deleted the renovate/html-validate-8.x branch November 3, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants