fix(deps): update dependency html-validate to v5
Compare changes
+ 32
− 9
@@ -28,7 +28,7 @@
@@ -8854,13 +8854,13 @@
@@ -8889,6 +8889,19 @@
@@ -28293,13 +28306,13 @@
@@ -28314,6 +28327,16 @@
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
html-validate (source) | peerDependencies | major | ^2.17.0 || ^3.0.0 || ^4.0.0 -> ^2.17.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 |
html-validate (source) | devDependencies | major | 4.14.0 -> 5.0.1 |
v5.0.1
v5.0.0
For plugin developers and if you consume the API in any way the biggest change is that the distributed source is now bundled and you can no longer access individual files.
Typically something like:
-import foo from "html-validate/dist/foo";
+import { foo } from "html-validate"
Feel free to open an issue if some symbol you need isn't exported.
If your usage includes checking presence of rules use the ruleExists
helper:
-try {
- require("html-validate/dist/rules/attr-case");
-} catch (err) {
- /* fallback */
-}
+import { ruleExists } from "html-validate";
+if (!ruleExists("attr-case")) {
+ /* fallback */
+}
compatibilityCheck
helper for plugins (4758595)This MR has been generated by Renovate Bot.