Commits (41)
-
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
762ae0a6 -
David Sveningsson authored8f742919
-
David Sveningsson authored
feat!: drop support for NodeJS 10 See merge request !535
69230622 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
7ddaa848 -
David Sveningsson authored
chore(deps): update dependency npm-pkg-lint to v1.4.0 See merge request !532
53121b29 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
38a0a133 -
David Sveningsson authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
04fb56bd -
David Sveningsson authored
chore(deps): update dependency @html-validate/jest-config to v2 See merge request !529
f22c8d20 -
David Sveningsson authored
these have been moved to @html-validate/eslint-config
5a303aaf -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
b080a71c -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
fcee95b2 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
93f67e37 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
65c1c573 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
d56d0a69 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
78cf19e2 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
8485e3bf -
David Sveningsson authored
chore(deps): update dependency @html-validate/semantic-release-config to v2 See merge request !536
5933bca3 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
6aa41c6b -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
7922f690 -
David Sveningsson authored47ae1409
-
David Sveningsson authored963b00b8
-
David Sveningsson authored
a bit easier to handle when using a bundler
940ec2a2 -
David Sveningsson authored13e2768c
-
David Sveningsson authored
in preparation for esm build
f47ae136 -
David Sveningsson authored
misc refactor in preparation for esm See merge request !537
87976e9d -
David Sveningsson authored525c7756
-
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
325ea2ef -
David Sveningsson authored
chore(deps): update dependency dgeni-front-matter to v3 See merge request !539
d084cab7 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
35036e91 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
3868aa3a -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
a2c01976 -
David Sveningsson authored09a1a289
-
David Sveningsson authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
cccb73ad -
David Sveningsson authored
fix(deps): update dependency ajv to v8 See merge request !500
58924b31 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
969e3be0 -
David Sveningsson authored
fixes #112 BREAKING CHANGE: the library is now shipped as a hybrid CJS/ESM package. If you are simply consuming the CLI tool or one of the existing integrations this will not affect you. 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: ```diff -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: ```diff -try { - require("html-validate/dist/rules/attr-case"); -} catch (err) { - /* fallback */ -} +import { ruleExists } from "html-validate"; +if (!ruleExists("attr-case")) { + /* fallback */ +} ```
39c960a1 -
David Sveningsson authored
feat!: cjs/esm hybrid package Closes #112 See merge request !538
330552f2 -
David Sveningsson authored47585951
-
David Sveningsson authored
feat: add `compatibilityCheck` helper for plugins See merge request !540
a6cf54d1 -
HTML-validate authored
Signed-off-by:
HTML-validate <gitlab@html-validate.org>
0529f6c3 -
## [5.0.0](v4.14.0...v5.0.0) (2021-06-27) ###
⚠ BREAKING CHANGES * the library is now shipped as a hybrid CJS/ESM package. If you are simply consuming the CLI tool or one of the existing integrations this will not affect you. 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: ```diff -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: ```diff -try { - require("html-validate/dist/rules/attr-case"); -} catch (err) { - /* fallback */ -} +import { ruleExists } from "html-validate"; +if (!ruleExists("attr-case")) { + /* fallback */ +} ``` * drop support for NodeJS 10 ### Features * add `compatibilityCheck` helper for plugins ([47585951](47585951)) * cjs/esm hybrid package ([39c960a1](39c960a1)), closes [#112](#112) * drop support for NodeJS 10 ([8f742919](8f742919)) ### Dependency upgrades * **deps:** update dependency ajv to v8 ([cccb73ad](cccb73ad))
This diff is collapsed.
{ | ||
"name": "html-validate", | ||
"version": "4.14.0", | ||
"description": "html linter", | ||
"version": "5.0.0", | ||
"description": "Offline html5 validator", | ||
"keywords": [ | ||
"html", | ||
"lint", | ||
... | ... | @@ -19,8 +19,23 @@ |
"license": "MIT", | ||
"author": "David Sveningsson <ext@sidvind.com>", | ||
"sideEffects": false, | ||
"main": "dist/main.js", | ||
"browser": "dist/browser.js", | ||
"type": "commonjs", | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/es/index.js" | ||
}, | ||
"./dist/cjs/*": "./dist/cjs/*", | ||
"./dist/es/*": "./dist/es/*", | ||
"./dist/schema/*": "./dist/schema/*", | ||
"./elements/*": "./elements/*", | ||
"./jest.js": "./jest.js", | ||
"./package.json": "./package.json", | ||
"./test-utils.js": "./test-utils.js" | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"browser": "dist/cjs/browser.js", | ||
"bin": { | ||
"html-validate": "bin/html-validate.js" | ||
}, | ||
... | ... | @@ -30,17 +45,14 @@ |
"elements", | ||
"jest.{js,d.ts}", | ||
"test-utils.{js,d.ts}", | ||
"!**/*.map", | ||
"!dist/types/**", | ||
"!**/*.snap", | ||
"!**/*.spec.d.ts", | ||
"!**/*.spec.js", | ||
"!**/*.spec.ts", | ||
"!**/__fixtures__", | ||
"!**/__mocks__", | ||
"!dist/rules/**/*.d.ts" | ||
"!**/*.spec.{js,ts,d.ts}" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"prebuild": "tsc", | ||
"build": "rollup --config rollup.config.js", | ||
"postbuild": "scripts/pkg", | ||
"build:docs": "grunt docs", | ||
"clean": "rm -rf dist public", | ||
"compatibility": "scripts/compatibility.sh", | ||
... | ... | @@ -102,7 +114,7 @@ |
"src/**/*.ts", | ||
"!src/**/*.spec.ts", | ||
"!src/**/index.ts", | ||
"!src/main.ts", | ||
"!src/index.ts", | ||
"!src/browser.ts", | ||
"!src/cli/html-validate.ts" | ||
], | ||
... | ... | @@ -112,9 +124,6 @@ |
"<rootDir>/elements", | ||
"<rootDir>/src", | ||
"<rootDir>/tests" | ||
], | ||
"snapshotSerializers": [ | ||
"pretty-format/build/plugins/ConvertAnsi" | ||
] | ||
}, | ||
"dependencies": { | ||
... | ... | @@ -122,7 +131,7 @@ |
"@html-validate/stylish": "^1.0.0", | ||
"@sidvind/better-ajv-errors": "^0.9.0", | ||
"acorn-walk": "^8.0.0", | ||
"ajv": "^7.0.0", | ||
"ajv": "^8.0.0", | ||
"deepmerge": "^4.2.0", | ||
"espree": "^7.3.0", | ||
"glob": "^7.1.0", | ||
... | ... | @@ -130,30 +139,36 @@ |
"json-merge-patch": "^1.0.0", | ||
"kleur": "^4.1.0", | ||
"minimist": "^1.2.0", | ||
"prompts": "^2.0.0" | ||
"prompts": "^2.0.0", | ||
"semver": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.14.5", | ||
"@babel/preset-env": "7.14.5", | ||
"@babel/core": "7.14.6", | ||
"@babel/preset-env": "7.14.7", | ||
"@commitlint/cli": "12.1.4", | ||
"@html-validate/commitlint-config": "1.3.1", | ||
"@html-validate/eslint-config": "4.4.1", | ||
"@html-validate/eslint-config": "4.4.3", | ||
"@html-validate/eslint-config-jest": "4.4.2", | ||
"@html-validate/eslint-config-typescript": "4.4.0", | ||
"@html-validate/jest-config": "1.2.10", | ||
"@html-validate/jest-config": "2.2.0", | ||
"@html-validate/prettier-config": "1.1.0", | ||
"@html-validate/semantic-release-config": "1.2.15", | ||
"@html-validate/semantic-release-config": "2.0.0", | ||
"@lodder/grunt-postcss": "3.0.1", | ||
"@rollup/plugin-json": "4.1.0", | ||
"@rollup/plugin-replace": "2.4.2", | ||
"@rollup/plugin-typescript": "8.2.1", | ||
"@rollup/plugin-virtual": "2.0.3", | ||
"@types/babar": "0.2.0", | ||
"@types/babel__code-frame": "7.0.2", | ||
"@types/estree": "0.0.47", | ||
"@types/glob": "7.1.3", | ||
"@types/inquirer": "7.3.1", | ||
"@types/inquirer": "7.3.2", | ||
"@types/jest": "26.0.23", | ||
"@types/json-merge-patch": "0.0.5", | ||
"@types/minimist": "1.2.1", | ||
"@types/node": "11.15.54", | ||
"@types/prompts": "2.0.13", | ||
"@types/semver": "7.3.6", | ||
"autoprefixer": "10.2.6", | ||
"babar": "0.2.0", | ||
"babelify": "10.0.0", | ||
... | ... | @@ -161,11 +176,9 @@ |
"canonical-path": "1.0.0", | ||
"cssnano": "5.0.6", | ||
"dgeni": "0.4.14", | ||
"dgeni-front-matter": "2.0.3", | ||
"dgeni-front-matter": "3.0.0", | ||
"dgeni-packages": "0.29.1", | ||
"eslint": "7.28.0", | ||
"eslint-plugin-security": "1.4.0", | ||
"eslint-plugin-sonarjs": "0.7.0", | ||
"eslint": "7.29.0", | ||
"font-awesome": "4.7.0", | ||
"front-matter": "4.0.2", | ||
"grunt": "1.4.1", | ||
... | ... | @@ -176,23 +189,25 @@ |
"grunt-sass": "3.1.0", | ||
"highlight.js": "11.0.1", | ||
"husky": "6.0.0", | ||
"jest": "27.0.4", | ||
"jest": "27.0.5", | ||
"jest-diff": "27.0.2", | ||
"jquery": "3.6.0", | ||
"lint-staged": "11.0.0", | ||
"load-grunt-tasks": "5.1.0", | ||
"marked": "2.0.7", | ||
"marked": "2.1.3", | ||
"minimatch": "3.0.4", | ||
"npm-pkg-lint": "1.3.0", | ||
"postcss": "8.3.2", | ||
"npm-pkg-lint": "1.4.0", | ||
"postcss": "8.3.5", | ||
"prettier": "2.3.1", | ||
"pretty-format": "27.0.2", | ||
"sass": "1.34.1", | ||
"semantic-release": "17.4.3", | ||
"rollup": "2.52.3", | ||
"rollup-plugin-copy": "3.4.0", | ||
"rollup-plugin-dts": "3.0.2", | ||
"sass": "1.35.1", | ||
"semantic-release": "17.4.4", | ||
"serve-static": "1.14.1", | ||
"stringmap": "0.2.2", | ||
"ts-jest": "27.0.3", | ||
"typescript": "4.3.2" | ||
"typescript": "4.3.4" | ||
}, | ||
"peerDependencies": { | ||
"jest": "^24 || ^25 || ^26 || ^27" | ||
... | ... | @@ -203,7 +218,7 @@ |
} | ||
}, | ||
"engines": { | ||
"node": ">= 10.0" | ||
"node": ">= 12.0" | ||
}, | ||
"release": { | ||
"extends": "@html-validate/semantic-release-config" | ||
... | ... |
rollup.config.js
0 → 100644
scripts/pkg
0 → 100755