Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-validate

Package Overview
Dependencies
Maintainers
1
Versions
273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-validate - npm Package Versions

23
28

9.1.1

Diff

Changelog

Source

9.1.1 (2025-01-05)

Bug Fixes

  • vitest: fix require is not defined in vitest (6a42bb1), closes #276
ext
published 9.1.0 •

Changelog

Source

9.1.0 (2024-12-25)

Features

  • deps: update dependency ignore to v7 (43ae9ac)

Bug Fixes

  • use jest worker for toMatchCodeframe (3c29ad5)
ext
published 9.0.1 •

Changelog

Source

9.0.1 (2024-12-23)

Bug Fixes

  • fix validateMultipleFiles incorrectly using sync API (0c26918)
ext
published 9.0.0 •

Changelog

Source

9.0.0-rc.6 (2024-12-10)

  • no changes
ext
published 8.29.0 •

Changelog

Source

8.29.0 (2024-12-22)

Features

  • config: allow to specify transformer function directly in config (df2c752)
  • meta: allow labelable property to be a callback (8204b5b)
ext
published 9.0.0-rc.8 •

ext
published 9.0.0-rc.7 •

ext
published 8.28.0 •

Changelog

Source

8.28.0 (2024-12-18)

Features

  • refactor jest and vitest toHTMLValidate(..) matcher (a6a60ab)
ext
published 9.0.0-rc.6 •

Changelog

Source

9.0.0-rc.6 (2024-12-10)

  • no changes
ext
published 9.0.0-rc.4 •

Changelog

Source

9.0.0-rc.4 (2024-12-07)

⚠ BREAKING CHANGES

  • api: Config.merge(..) will return a Promise when used with an async loader or resolver.
  • config: This change affects all users. The following deprecated configuration presets has been removed:
  • htmlvalidate:recommended
  • htmlvalidate:document
  • html-validate:a17y
  • deps: Requires NodeJS v18 or later.
  • api: The deprecated tag:open and tag:close events has been removed, use tag:begin and tag:end instead.
  • api: The Config.resolve() method can return a Promise if any underlying loader or resolver has returned a Promise.

It is recommended to assume it returns a Promise and always await the result:

-const resolved = config.resolve();
+const resolved = await config.resolve();

If you need synchronous code ensure the configuration, the loader and the resolver all returns synchronous results, e.g. the staticResolver with synchronous code.

  • api: The HtmlValidate.getConfigurationSchema() method is now async and returns a Promise. If you use this method you need to await the result:
-const schema = htmlvalidate.getConfigurationSchema();
+const schema = await htmlvalidate.getConfigurationSchema();
  • api: If you are writing your own transformers they may now optionally return a Promise. If you are using test-utils to write unit tests you 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 public API. 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 and returns Promise. There is no synchronous version of these API calls.
  • api: Config.fromFile(..) and Config.fromObject(..) will return a Promise when used with an async loader or resolver.
  • api: ConfigLoader methods can optionally return a Promise for async operation. For most use-cases this will not require any changes.
  • api: The ConfigLoader.globalConfig property has been replaced with ConfigLoader.getGlobalConfig() (async) and ConfigLoader.getGlobalConfigSync() (sync).
  • api: The redundant and deprecated Config.init() method has been removed.

Remove any calls to the method:

 const config = Config.fromObject({ /* ... */ });
-config.init();

Features

  • api: CLI.isIgnored() made private (911e001)
  • api: CLI methods async and return Promise (8724bc8)
  • api: Config.fromFile and Config.fromObject can return Promise (0ab6633)
  • api: Config.merge(..) can return Promise (85ffaaf)
  • api: Config.resolve() can return Promise (f2851a5)
  • api: ConfigLoaders can optionally return Promise for async operation (42d41e3)
  • api: FileSystemConfigLoader uses esmResolver by default (c2547de)
  • api: HtmlValidate.getConfigurationSchema() returns promise (950b91e)
  • api: new esmResolver using import(..) (158c336)
  • api: remove deprecated Config.init() (75860b3)
  • api: remove deprecated tag:open and tag:close events (a58a110)
  • api: replace ConfigLoader.globalConfig with ConfigLoader.getGlobalConfig() (93815fe)
  • api: resolvers may optionally return Promise for async operation (1e9a276)
  • api: transformers may optionally return Promise for async operation (97f123f)
  • cli: use esmResolver (f98aa49)
  • config: remove deprecated configuration presets (8545475)
  • config: support .htmlvalidate.mjs configuration files (4d208a6)
  • deps: require node 18 or later (8a21652)

Bug Fixes

  • workaround rollup issue with import attributes (16b8265)
23
28
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc