mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-07 23:04:00 -05:00
Update 2025 (#2741)
* update node version in github testing action * inc timeout * bump node versions again * bump year * bump minor devDeps * Add copilot recommendation * inc timeout again * bump pupeteer * use newer mocha-headless * undo timeout inc * bump gulp * bump mocha * remove serve-static only used in legacy grunt --------- Co-authored-by: veeck <gitkraken@veeck.de>
This commit is contained in:
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
@@ -4,7 +4,7 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
4
.github/workflows/testing.yml
vendored
4
.github/workflows/testing.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
node-version: [16.x, 18.x, 20.x]
|
node-version: [20.x, 22.x, 24.x]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,4 +22,4 @@ jobs:
|
|||||||
- name: Installing gulp command line interface
|
- name: Installing gulp command line interface
|
||||||
run: npm install gulp-cli
|
run: npm install gulp-cli
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test -- --no-sandbox --disable-setuid-sandbox
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2021 The Modernizr Team | Modernizr 4.0.0-alpha
|
Copyright (c) 2025 The Modernizr Team | Modernizr 4.0.0-alpha
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ gulp.task('eslint', () => {
|
|||||||
'!src/html5shiv.js',
|
'!src/html5shiv.js',
|
||||||
'!src/html5printshiv.js',
|
'!src/html5printshiv.js',
|
||||||
'!test/coverage/**/*.js'
|
'!test/coverage/**/*.js'
|
||||||
])
|
], { allowEmpty: true })
|
||||||
.pipe(eslint({
|
.pipe(eslint({
|
||||||
fix: true,
|
fix: true,
|
||||||
configFile: '.eslintrc'
|
configFile: '.eslintrc'
|
||||||
@@ -93,7 +93,7 @@ gulp.task('mocha:browser', (done) => {
|
|||||||
const options = {
|
const options = {
|
||||||
reporter: 'dot',
|
reporter: 'dot',
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
args: ['disable-web-security']
|
args: ['disable-web-security', 'no-sandbox', 'disable-setuid-sandbox']
|
||||||
};
|
};
|
||||||
Mochaheadless.runner({
|
Mochaheadless.runner({
|
||||||
...options,
|
...options,
|
||||||
|
|||||||
11495
package-lock.json
generated
11495
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@@ -56,9 +56,9 @@
|
|||||||
"yargs": "^17.7.2"
|
"yargs": "^17.7.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.25.8",
|
"@babel/core": "^7.28.0",
|
||||||
"@babel/preset-env": "^7.25.8",
|
"@babel/preset-env": "^7.28.0",
|
||||||
"@babel/register": "^7.25.7",
|
"@babel/register": "^7.27.1",
|
||||||
"auto-changelog": "^2.5.0",
|
"auto-changelog": "^2.5.0",
|
||||||
"chai": "^4.3.7",
|
"chai": "^4.3.7",
|
||||||
"codecov": "^3.8.3",
|
"codecov": "^3.8.3",
|
||||||
@@ -66,20 +66,19 @@
|
|||||||
"eslint": "^8.45.0",
|
"eslint": "^8.45.0",
|
||||||
"eslint-plugin-jsdoc": "^46.4.4",
|
"eslint-plugin-jsdoc": "^46.4.4",
|
||||||
"find-parent-dir": "^0.3.1",
|
"find-parent-dir": "^0.3.1",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.3.0",
|
||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^5.0.1",
|
||||||
"gulp-connect": "^5.7.0",
|
"gulp-connect": "^5.7.0",
|
||||||
"gulp-eslint": "^6.0.0",
|
"gulp-eslint": "^6.0.0",
|
||||||
"gulp-pug": "^5.0.0",
|
"gulp-pug": "^5.0.0",
|
||||||
"joi": "^17.13.3",
|
"joi": "^17.13.3",
|
||||||
"jquery": "^3.7.1",
|
"jquery": "^3.7.1",
|
||||||
"json3": "^3.3.3",
|
"json3": "^3.3.3",
|
||||||
"mocha": "^10.7.3",
|
"mocha": "^11.7.1",
|
||||||
"mocha-headless-chrome": "^4.0.0",
|
"mocha-headless-chrome": "github:direct-adv-interfaces/mocha-headless-chrome#pull/68/head",
|
||||||
"nyc": "^17.1.0",
|
"nyc": "^17.1.0",
|
||||||
"proxyquire": "^2.1.3",
|
"proxyquire": "^2.1.3",
|
||||||
"serve-static": "^1.16.2",
|
|
||||||
"sinon": "^15.2.0",
|
"sinon": "^15.2.0",
|
||||||
"ua-parser-js": "^1.0.39"
|
"ua-parser-js": "^1.0.39"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user