semantic-release 22.0.6 → 22.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,7 +60,7 @@ export function release({ release }) {
60
60
  return release;
61
61
  }
62
62
 
63
- // The intial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
63
+ // The initial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
64
64
  let lastVersion = getLatestVersion(tagsToVersions(release[0].tags)) || FIRST_RELEASE;
65
65
 
66
66
  return release.map(({ name, tags, channel, ...rest }, idx) => {
package/lib/get-config.js CHANGED
@@ -1,11 +1,10 @@
1
- import { dirname, resolve } from "node:path";
1
+ import { dirname } from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- import { createRequire } from "node:module";
4
3
 
5
4
  import { castArray, isNil, isPlainObject, isString, pickBy } from "lodash-es";
6
5
  import { readPackageUp } from "read-pkg-up";
7
6
  import { cosmiconfig } from "cosmiconfig";
8
- import resolveFrom from "resolve-from";
7
+ import importFrom from "import-from-esm";
9
8
  import debugConfig from "debug";
10
9
  import { repoUrl } from "./git.js";
11
10
  import PLUGINS_DEFINITIONS from "./definitions/plugins.js";
@@ -14,7 +13,6 @@ import { parseConfig, validatePlugin } from "./plugins/utils.js";
14
13
 
15
14
  const debug = debugConfig("semantic-release:config");
16
15
  const __dirname = dirname(fileURLToPath(import.meta.url));
17
- const require = createRequire(import.meta.url);
18
16
 
19
17
  const CONFIG_NAME = "release";
20
18
 
@@ -35,7 +33,7 @@ export default async (context, cliOptions) => {
35
33
  options = {
36
34
  ...(await castArray(extendPaths).reduce(async (eventualResult, extendPath) => {
37
35
  const result = await eventualResult;
38
- const extendsOptions = require(resolveFrom.silent(__dirname, extendPath) || resolveFrom(cwd, extendPath));
36
+ const extendsOptions = (await importFrom.silent(__dirname, extendPath)) || (await importFrom(cwd, extendPath));
39
37
 
40
38
  // For each plugin defined in a shareable config, save in `pluginsPath` the extendable config path,
41
39
  // so those plugin will be loaded relative to the config file
@@ -36,7 +36,7 @@ function formatAuthUrl(protocol, repositoryUrl, gitCredentials) {
36
36
  * @param {Object} context semantic-release context.
37
37
  * @param {String} authUrl Repository URL to verify
38
38
  *
39
- * @return {String} The authUrl as is if the connection was successfull, null otherwise
39
+ * @return {String} The authUrl as is if the connection was successful, null otherwise
40
40
  */
41
41
  async function ensureValidAuthUrl({ cwd, env, branch }, authUrl) {
42
42
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "semantic-release",
3
3
  "description": "Automated semver compliant package publishing",
4
- "version": "22.0.6",
4
+ "version": "22.0.8",
5
5
  "type": "module",
6
6
  "author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
7
7
  "ava": {
@@ -43,13 +43,14 @@
43
43
  "git-log-parser": "^1.2.0",
44
44
  "hook-std": "^3.0.0",
45
45
  "hosted-git-info": "^7.0.0",
46
+ "import-from-esm": "^1.3.1",
46
47
  "lodash-es": "^4.17.21",
47
48
  "marked": "^9.0.0",
48
49
  "marked-terminal": "^6.0.0",
49
50
  "micromatch": "^4.0.2",
50
51
  "p-each-series": "^3.0.0",
51
52
  "p-reduce": "^3.0.0",
52
- "read-pkg-up": "^10.0.0",
53
+ "read-pkg-up": "^11.0.0",
53
54
  "resolve-from": "^5.0.0",
54
55
  "semver": "^7.3.2",
55
56
  "semver-diff": "^4.0.0",
@@ -68,17 +69,17 @@
68
69
  "got": "13.0.0",
69
70
  "js-yaml": "4.1.0",
70
71
  "lockfile-lint": "4.12.1",
71
- "ls-engines": "0.9.0",
72
+ "ls-engines": "0.9.1",
72
73
  "mockserver-client": "5.15.0",
73
- "nock": "13.3.7",
74
+ "nock": "13.3.8",
74
75
  "npm-run-all2": "6.1.1",
75
76
  "p-retry": "6.1.0",
76
- "prettier": "3.0.3",
77
+ "prettier": "3.1.0",
77
78
  "publint": "0.2.5",
78
- "sinon": "17.0.0",
79
+ "sinon": "17.0.1",
79
80
  "stream-buffers": "3.0.2",
80
81
  "tempy": "3.1.0",
81
- "testdouble": "3.20.0"
82
+ "testdouble": "3.20.1"
82
83
  },
83
84
  "engines": {
84
85
  "node": "^18.17 || >=20.6.1"