Compare commits

..
Author SHA1 Message Date
1017e1aac2 fix(deps): update dependency aggregate-error to v5 (#2956)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-15 23:41:01 -05:00
6 changed files with 621 additions and 4108 deletions
+2 -3
View File
@@ -20,9 +20,8 @@ jobs:
strategy:
matrix:
node-version:
- 18.17.0
- 20.6.0
- 20
- 18.0.0
- 19
runs-on: ubuntu-latest
timeout-minutes: 10
-1
View File
@@ -1 +0,0 @@
v18
+608 -4091
View File
File diff suppressed because it is too large Load Diff
+7 -9
View File
@@ -8,7 +8,6 @@
"files": [
"test/**/*.test.js"
],
"failFast": true,
"nodeArguments": [
"--loader=testdouble",
"--no-warnings"
@@ -27,12 +26,12 @@
"Matt Travi <npm@travi.org> (https://matt.travi.org/)"
],
"dependencies": {
"@semantic-release/commit-analyzer": "^11.0.0-beta.3",
"@semantic-release/commit-analyzer": "^10.0.0",
"@semantic-release/error": "^4.0.0",
"@semantic-release/github": "^9.0.0",
"@semantic-release/npm": "^11.0.0",
"@semantic-release/release-notes-generator": "^12.0.0-beta.2",
"aggregate-error": "^4.0.1",
"@semantic-release/npm": "^10.0.2",
"@semantic-release/release-notes-generator": "^11.0.0",
"aggregate-error": "^5.0.0",
"cosmiconfig": "^8.0.0",
"debug": "^4.0.0",
"env-ci": "^9.0.0",
@@ -73,12 +72,11 @@
"sinon": "16.0.0",
"stream-buffers": "3.0.2",
"tempy": "3.1.0",
"testdouble": "3.19.0"
"testdouble": "3.18.0"
},
"engines": {
"node": "^18.17 || >=20.6"
"node": ">=18"
},
"exports": "./index.js",
"files": [
"bin",
"docs",
@@ -100,7 +98,7 @@
"version"
],
"license": "MIT",
"main": "./index.js",
"main": "index.js",
"types": "index.d.ts",
"c8": {
"include": [
+1 -1
View File
@@ -43,7 +43,7 @@ export async function initGit(withRemote) {
*
* @param {Boolean} withRemote `true` to create a shallow clone of a bare repository.
* @param {String} [branch='master'] The branch to initialize.
* @return {Promise<Object>} The path of the clone if `withRemote` is `true`, the path of the repository otherwise.
* @return {String} The path of the clone if `withRemote` is `true`, the path of the repository otherwise.
*/
export async function gitRepo(withRemote, branch = "master") {
let { cwd, repositoryUrl } = await initGit(withRemote);
+3 -3
View File
@@ -35,7 +35,7 @@ let env;
// Environment variables used only for the local npm command used to do verification
const npmTestEnv = {
...processEnvWithoutGitHubActionsVariables,
...process.env,
...npmRegistry.authEnv(),
npm_config_registry: npmRegistry.url,
};
@@ -516,8 +516,8 @@ test("Pass options via CLI arguments", async (t) => {
});
test("Run via JS API", async (t) => {
await td.replaceEsm("../lib/logger", null, { log: () => {}, error: () => {}, stdout: () => {} });
await td.replaceEsm("env-ci", null, () => ({ isCi: true, branch: "master", isPr: false }));
td.replace("../lib/logger", { log: () => {}, error: () => {}, stdout: () => {} });
td.replace("env-ci", () => ({ isCi: true, branch: "master", isPr: false }));
const semanticRelease = (await import("../index.js")).default;
const packageName = "test-js-api";
const owner = "git";