Skip to content

Commit

Permalink
fix!: update deps (incl mocha@10) & silence mocha warning
Browse files Browse the repository at this point in the history
This is a potential BREAKING CHANGE because it bumps the required version of
mocha to v10. The import that we have to use has changed from
mocha/mocha-2018.js to mocha/mocha.js, so it won't be happy with a library
that uses anything less than mocha@10.
  • Loading branch information
rvagg committed May 2, 2022
1 parent 5489ebb commit c631362
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 27 deletions.
1 change: 1 addition & 0 deletions lib/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function webpackConfig (env, options, runner) {
]
},
module: {
exprContextCritical: false, // mocha stil has a require.resolve resulting in a noisy warning
rules: [
{
test: testFiles,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"glob": "^8.0.1",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"puppeteer": "~13.7.0",
"raw-loader": "~4.0.2",
"puppeteer": "^13.7.0",
"raw-loader": "^4.0.2",
"readable-stream": "^3.6.0",
"rimraf": "^3.0.2",
"st": "^3.0.0",
"stream-browserify": "^3.0.0",
"strip-ansi": "^7.0.1",
"webpack": "~5.72.0",
"webpack-merge": "~5.8.0",
"yargs": "^17.3.0"
"webpack": "^5.72.0",
"webpack-merge": "^5.8.0",
"yargs": "^17.4.1"
},
"bin": {
"polendina": "./polendina-cli.js",
Expand Down
2 changes: 1 addition & 1 deletion resources/mocha-run.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// in-browser setup and runner for Mocha, at end of bundle

import mochaExport from 'mocha/mocha-es2018.js'
import mochaExport from 'mocha/mocha.js'
import { registry, executionQueue, log, setup } from './common-run.js'

function runMocha () {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/bare-async-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-async-failure-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-async-failure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-sync-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-sync-failure-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-sync-failure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/bare-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}
4 changes: 2 additions & 2 deletions test/fixtures/mocha-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"chai": "^4.3.4",
"mocha": "~9.2.0"
"chai": "^4.3.6",
"mocha": "^10.0.0"
}
}
4 changes: 2 additions & 2 deletions test/fixtures/mocha-failure-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"chai": "^4.3.4",
"mocha": "~9.2.0"
"chai": "^4.3.6",
"mocha": "^10.0.0"
}
}
4 changes: 2 additions & 2 deletions test/fixtures/mocha-failure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"chai": "^4.3.4",
"mocha": "~9.2.0"
"chai": "^4.3.6",
"mocha": "^10.0.0"
}
}
4 changes: 2 additions & 2 deletions test/fixtures/mocha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"chai": "^4.3.4",
"mocha": "~9.2.0"
"chai": "^4.3.6",
"mocha": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/tape-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"tape": "~5.5.0"
"tape": "^5.5.3"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/tape-failure-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"tape": "~5.5.0"
"tape": "^5.5.3"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/tape-failure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"tape": "~5.5.0"
"tape": "^5.5.3"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/tape/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"url": "https://github.com/rvagg/polendina.git"
},
"devDependencies": {
"tape": "~5.5.0"
"tape": "^5.5.3"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/webpack-merge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"chai": "^4.3.4"
"chai": "^4.3.6"
}
}

0 comments on commit c631362

Please sign in to comment.