- Move codecov config into subdirectory
- Add notes for required node version
- Update dependencies
- Small code style cleanups
This commit is contained in:
rejas
2021-08-28 12:52:13 +02:00
parent 313a7ade28
commit d4c7b60827
5 changed files with 808 additions and 888 deletions

View File

View File

@@ -18,7 +18,7 @@ Modernizr tests which native CSS3 and HTML5 features are available in the curren
## Breaking changes with v4
- Dropped Node 10 Support, please upgrade to Node v12
- Dropped support for node versions <= 10, please upgrade to at least version 12
- Following tests got renamed:

View File

@@ -69,7 +69,7 @@ function metadata(cb) {
// Force minimal metadata #2551
// Consider adding new tests in test/node/lib/metadata.js if you add new minimal requirements
if (!metadata.name || !metadata.property) {
throw new Error('Minimal metadata not found in `' + file + '`')
throw new Error('Minimal metadata not found in `' + file + '`');
}
var pfs = [];
@@ -89,9 +89,9 @@ function metadata(cb) {
const properties = Array.isArray(metadata.property) ? metadata.property : [metadata.property];
properties.forEach(function (property) {
if (!property.match(/^[a-z0-9-]+$/)) {
throw new Error(metadata.name + ' : ' + property + ': Property can only have lowercase alphanumeric characters and dashes ' )
throw new Error(metadata.name + ' : ' + property + ': Property can only have lowercase alphanumeric characters and dashes');
}
})
});
if (!metadata.async) {
metadata.async = false;

1661
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "modernizr",
"version": "3.11.0",
"version": "4.0.0-alpha",
"description": "Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the users browser.",
"main": "./lib/cli.js",
"bin": "./bin/modernizr",
@@ -50,22 +50,21 @@
"doctrine": "^3.0.0",
"file": "^0.2.2",
"lodash": "^4.17.21",
"markdown-it": "^12.1.0",
"markdown-it": "^12.2.0",
"mkdirp": "1.0.4",
"requirejs": "^2.3.6",
"yargs": "^17.0.1"
"yargs": "^17.1.1"
},
"devDependencies": {
"@alrra/travis-scripts": "^3.0.1",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/register": "^7.14.5",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/register": "^7.15.3",
"auto-changelog": "^2.3.0",
"chai": "^4.3.4",
"codecov": "^3.8.2",
"codecov": "^3.8.3",
"del": "^6.0.0",
"eslint": "^7.30.0",
"eslint-plugin-jsdoc": "^35.4.3",
"eslint": "^7.32.0",
"eslint-plugin-jsdoc": "^36.0.8",
"find-parent-dir": "^0.3.1",
"fs-extra": "^10.0.0",
"globby": "^11.0.4",
@@ -73,15 +72,15 @@
"gulp-connect": "^5.7.0",
"gulp-eslint": "^6.0.0",
"gulp-pug": "^5.0.0",
"joi": "^17.4.0",
"joi": "^17.4.2",
"jquery": "^3.6.0",
"json3": "^3.3.3",
"mocha": "^9.0.2",
"mocha": "^9.1.0",
"mocha-headless-chrome": "^3.1.0",
"nyc": "^15.1.0",
"proxyquire": "^2.1.3",
"serve-static": "^1.14.1",
"sinon": "^11.1.1",
"sinon": "^11.1.2",
"ua-parser-js": "^0.7.28"
},
"scripts": {
@@ -98,7 +97,7 @@
"update-license": "node scripts/generate-license.js && git add LICENSE.md"
},
"engines": {
"node": ">=10"
"node": ">=12"
},
"files": [
"LICENSE",