@lerna/version
Advanced tools
Comparing version 6.5.1 to 6.6.0
@@ -6,2 +6,6 @@ # Change Log | ||
# [6.6.0](https://github.com/lerna/lerna/compare/6.5.1...6.6.0) (2023-03-23) | ||
**Note:** Version bump only for package @lerna/version | ||
## [6.5.1](https://github.com/lerna/lerna/compare/6.5.0...6.5.1) (2023-02-14) | ||
@@ -8,0 +12,0 @@ |
@@ -1,3 +0,42 @@ | ||
const versionIndex = require("lerna/commands/version"); | ||
module.exports = versionIndex; | ||
module.exports.VersionCommand = versionIndex.VersionCommand; | ||
const Module = require("module"); | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const originalResolveFilename = Module._resolveFilename; | ||
const distPath = __dirname; | ||
const manifest = [{ "module": "@lerna/commands/bootstrap/*", "pattern": "libs/commands/bootstrap/src/*" }, { "module": "@lerna/commands/changed/*", "pattern": "libs/commands/changed/src/*" }, { "module": "@lerna/commands/publish/*", "pattern": "libs/commands/publish/src/*" }, { "module": "@lerna/commands/version/*", "pattern": "libs/commands/version/src/*" }, { "module": "@lerna/commands/create/*", "pattern": "libs/commands/create/src/*" }, { "module": "@lerna/commands/import/*", "pattern": "libs/commands/import/src/*" }, { "module": "@lerna/commands/clean/*", "pattern": "libs/commands/clean/src/*" }, { "module": "@lerna/commands/diff/*", "pattern": "libs/commands/diff/src/*" }, { "module": "@lerna/commands/exec/*", "pattern": "libs/commands/exec/src/*" }, { "module": "@lerna/commands/info/*", "pattern": "libs/commands/info/src/*" }, { "module": "@lerna/commands/init/*", "pattern": "libs/commands/init/src/*" }, { "module": "@lerna/commands/link/*", "pattern": "libs/commands/link/src/*" }, { "module": "@lerna/commands/list/*", "pattern": "libs/commands/list/src/*" }, { "module": "@lerna/commands/add/*", "pattern": "libs/commands/add/src/*" }, { "module": "@lerna/commands/run/*", "pattern": "libs/commands/run/src/*" }, { "module": "@lerna/test-helpers/*", "pattern": "libs/test-helpers/*" }, { "module": "@lerna/bootstrap", "exactMatch": "packages/legacy-structure/commands/bootstrap/src/index.js", "pattern": "packages/legacy-structure/commands/bootstrap/src/index.ts" }, { "module": "@lerna/commands/add", "exactMatch": "libs/commands/add/src/index.js", "pattern": "libs/commands/add/src/index.ts" }, { "module": "@lerna/commands/bootstrap", "exactMatch": "libs/commands/bootstrap/src/index.js", "pattern": "libs/commands/bootstrap/src/index.ts" }, { "module": "@lerna/commands/changed", "exactMatch": "libs/commands/changed/src/index.js", "pattern": "libs/commands/changed/src/index.ts" }, { "module": "@lerna/commands/clean", "exactMatch": "libs/commands/clean/src/index.js", "pattern": "libs/commands/clean/src/index.ts" }, { "module": "@lerna/commands/create", "exactMatch": "libs/commands/create/src/index.js", "pattern": "libs/commands/create/src/index.ts" }, { "module": "@lerna/commands/diff", "exactMatch": "libs/commands/diff/src/index.js", "pattern": "libs/commands/diff/src/index.ts" }, { "module": "@lerna/commands/exec", "exactMatch": "libs/commands/exec/src/index.js", "pattern": "libs/commands/exec/src/index.ts" }, { "module": "@lerna/commands/import", "exactMatch": "libs/commands/import/src/index.js", "pattern": "libs/commands/import/src/index.ts" }, { "module": "@lerna/commands/info", "exactMatch": "libs/commands/info/src/index.js", "pattern": "libs/commands/info/src/index.ts" }, { "module": "@lerna/commands/init", "exactMatch": "libs/commands/init/src/index.js", "pattern": "libs/commands/init/src/index.ts" }, { "module": "@lerna/commands/link", "exactMatch": "libs/commands/link/src/index.js", "pattern": "libs/commands/link/src/index.ts" }, { "module": "@lerna/commands/list", "exactMatch": "libs/commands/list/src/index.js", "pattern": "libs/commands/list/src/index.ts" }, { "module": "@lerna/commands/publish", "exactMatch": "libs/commands/publish/src/index.js", "pattern": "libs/commands/publish/src/index.ts" }, { "module": "@lerna/commands/run", "exactMatch": "libs/commands/run/src/index.js", "pattern": "libs/commands/run/src/index.ts" }, { "module": "@lerna/commands/version", "exactMatch": "libs/commands/version/src/index.js", "pattern": "libs/commands/version/src/index.ts" }, { "module": "@lerna/core", "exactMatch": "libs/core/src/index.js", "pattern": "libs/core/src/index.ts" }, { "module": "@lerna/create", "pattern": "packages/legacy-structure/commands/create" }, { "module": "@lerna/e2e-utils", "exactMatch": "libs/e2e-utils/src/index.js", "pattern": "libs/e2e-utils/src/index.ts" }, { "module": "@lerna/nx-plugin", "exactMatch": "libs/nx-plugin/src/index.js", "pattern": "libs/nx-plugin/src/index.ts" }, { "module": "@lerna/test-helpers", "exactMatch": "libs/test-helpers/src/index.js", "pattern": "libs/test-helpers/src/index.ts" }]; | ||
Module._resolveFilename = function(request, parent) { | ||
let found; | ||
for (const entry of manifest) { | ||
if (request === entry.module && entry.exactMatch) { | ||
const entry2 = manifest.find((x) => request === x.module || request.startsWith(x.module + "/")); | ||
const candidate = path.join(distPath, entry2.exactMatch); | ||
if (isFile(candidate)) { | ||
found = candidate; | ||
break; | ||
} | ||
} else { | ||
const re = new RegExp(entry.module.replace(/\*$/, "(?<rest>.*)")); | ||
const match = request.match(re); | ||
if (match?.groups) { | ||
const candidate = path.join(distPath, entry.pattern.replace("*", ""), match.groups.rest + ".js"); | ||
if (isFile(candidate)) { | ||
found = candidate; | ||
} | ||
} | ||
} | ||
} | ||
if (found) { | ||
const modifiedArguments = [found, ...[].slice.call(arguments, 1)]; | ||
return originalResolveFilename.apply(this, modifiedArguments); | ||
} else { | ||
return originalResolveFilename.apply(this, arguments); | ||
} | ||
}; | ||
function isFile(s) { | ||
try { | ||
return fs.statSync(s).isFile(); | ||
} catch (_e) { | ||
return false; | ||
} | ||
} | ||
require("./packages/legacy-structure/commands/version/src/index.js"); |
{ | ||
"name": "@lerna/version", | ||
"version": "6.5.1", | ||
"version": "6.6.0", | ||
"description": "Bump version of packages changed since the last release", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"dependencies": { | ||
"lerna": "6.5.1" | ||
"lerna": "6.6.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "exports": { | ||
}, | ||
"gitHead": "0a7ac45bb2b6322e6f20f37c2aa04eae74b553c8" | ||
"gitHead": "43afbf83a55698b0e6f8745753a87c7863f0e4c5" | ||
} |
@@ -54,2 +54,3 @@ # `lerna version` | ||
- [`--amend`](#--amend) | ||
- [`--build-metadata <buildMetadata>`](#--build-metadata) | ||
- [`--changelog-preset`](#--changelog-preset) | ||
@@ -141,2 +142,10 @@ - [`--conventional-commits`](#--conventional-commits) | ||
### `--build-metadata` | ||
```sh | ||
lerna version --build-metadata 001 | ||
``` | ||
Build metadata must be [SemVer compatible](https://semver.org/#spec-item-10). When provided it will apply to all updated packages, irrespective of whether independent or fixed versioning is utilised. If prompted to choose package version bumps, you can request a custom version to alter or remove build metadata for specific packages. | ||
### `--changelog-preset` | ||
@@ -411,3 +420,3 @@ | ||
The root-level configuration is intentional, as this also covers the [identically-named option in `lerna publish`](https://github.com/lerna/lerna/tree/main/commands/publish#--no-granular-pathspec). | ||
The root-level configuration is intentional, as this also covers the [identically-named option in `lerna publish`](https://github.com/lerna/lerna/tree/main/libs/commands/publish#--no-granular-pathspec). | ||
@@ -538,3 +547,3 @@ ### `--no-private` | ||
If you start using the [`--conventional-commits`](#--conventional-commits) option _after_ the monorepo has been active for awhile, you can still generate changelogs for previous releases using [`conventional-changelog-cli`](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli#readme) and [`lerna exec`](https://github.com/lerna/lerna/tree/main/commands/exec#readme): | ||
If you start using the [`--conventional-commits`](#--conventional-commits) option _after_ the monorepo has been active for awhile, you can still generate changelogs for previous releases using [`conventional-changelog-cli`](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli#readme) and [`lerna exec`](https://github.com/lerna/lerna/tree/main/libs/commands/exec#readme): | ||
@@ -541,0 +550,0 @@ ```bash |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 19 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
644009
245
14553
587
70
4
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@jest/schemas@29.6.3(transitive)
+ Added@lerna/child-process@6.6.0(transitive)
+ Added@lerna/create@6.6.0(transitive)
+ Added@lerna/legacy-package-management@6.6.0(transitive)
+ Added@npmcli/arborist@6.2.3(transitive)
+ Added@npmcli/fs@3.1.1(transitive)
+ Added@npmcli/git@4.1.0(transitive)
+ Added@npmcli/installed-package-contents@2.1.0(transitive)
+ Added@npmcli/map-workspaces@3.0.6(transitive)
+ Added@npmcli/metavuln-calculator@5.0.1(transitive)
+ Added@npmcli/name-from-folder@2.0.0(transitive)
+ Added@npmcli/node-gyp@3.0.0(transitive)
+ Added@npmcli/package-json@3.1.1(transitive)
+ Added@npmcli/promise-spawn@6.0.2(transitive)
+ Added@npmcli/query@3.1.0(transitive)
+ Added@npmcli/run-script@6.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Added@sigstore/bundle@1.1.0(transitive)
+ Added@sigstore/protobuf-specs@0.2.1(transitive)
+ Added@sigstore/sign@1.0.0(transitive)
+ Added@sigstore/tuf@1.0.3(transitive)
+ Added@sinclair/typebox@0.27.8(transitive)
+ Added@tufjs/canonical-json@1.0.0(transitive)
+ Added@tufjs/models@1.0.4(transitive)
+ Addedabbrev@2.0.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@5.2.06.2.1(transitive)
+ Addedare-we-there-yet@4.0.2(transitive)
+ Addedbin-links@4.0.4(transitive)
+ Addedcacache@17.1.4(transitive)
+ Addedcmd-shim@6.0.3(transitive)
+ Addedcrypto-random-string@2.0.0(transitive)
+ Addedcssesc@3.0.0(transitive)
+ Addeddel@6.1.1(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedfile-url@3.0.0(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedfs-minipass@3.0.3(transitive)
+ Addedgauge@5.0.2(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedhosted-git-info@6.1.3(transitive)
+ Addedignore-walk@6.0.5(transitive)
+ Addedinquirer@8.2.4(transitive)
+ Addedis-path-cwd@2.2.0(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedjson-parse-even-better-errors@3.0.2(transitive)
+ Addedjust-diff@6.0.2(transitive)
+ Addedlerna@6.6.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedmake-fetch-happen@11.1.1(transitive)
+ Addedminimatch@6.2.09.0.5(transitive)
+ Addedminipass@4.2.85.0.07.1.2(transitive)
+ Addedminipass-fetch@3.0.5(transitive)
+ Addednopt@7.2.1(transitive)
+ Addednormalize-package-data@5.0.0(transitive)
+ Addednpm-bundled@3.0.1(transitive)
+ Addednpm-install-checks@6.3.0(transitive)
+ Addednpm-normalize-package-bin@3.0.1(transitive)
+ Addednpm-package-arg@10.1.0(transitive)
+ Addednpm-packlist@7.0.4(transitive)
+ Addednpm-pick-manifest@8.0.2(transitive)
+ Addednpm-registry-fetch@13.3.114.0.314.0.5(transitive)
+ Addednpmlog@7.0.1(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpacote@13.6.215.2.0(transitive)
+ Addedparse-conflict-json@3.0.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedpostcss-selector-parser@6.1.2(transitive)
+ Addedpretty-format@29.4.3(transitive)
+ Addedproc-log@3.0.0(transitive)
+ Addedreact-is@18.3.1(transitive)
+ Addedread-cmd-shim@4.0.0(transitive)
+ Addedread-package-json@6.0.4(transitive)
+ Addedread-package-json-fast@3.0.2(transitive)
+ Addedsemver@7.3.8(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedsigstore@1.9.0(transitive)
+ Addedssri@10.0.6(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedtemp-dir@2.0.0(transitive)
+ Addedtempy@1.0.0(transitive)
+ Addedtreeverse@3.0.0(transitive)
+ Addedtuf-js@1.1.7(transitive)
+ Addedtype-fest@0.16.0(transitive)
+ Addedunique-filename@3.0.0(transitive)
+ Addedunique-slug@4.0.0(transitive)
+ Addedunique-string@2.0.0(transitive)
+ Addedvalidate-npm-package-name@5.0.1(transitive)
+ Addedwhich@3.0.1(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
+ Addedwrite-file-atomic@5.0.1(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removed@lerna/child-process@6.5.1(transitive)
- Removed@lerna/create@6.5.1(transitive)
- Removed@npmcli/arborist@5.3.0(transitive)
- Removed@npmcli/map-workspaces@2.0.4(transitive)
- Removed@npmcli/metavuln-calculator@3.1.1(transitive)
- Removed@npmcli/name-from-folder@1.0.1(transitive)
- Removed@npmcli/package-json@2.0.0(transitive)
- Removedasap@2.0.6(transitive)
- Removedbin-links@3.0.3(transitive)
- Removeddebuglog@1.0.1(transitive)
- Removeddezalgo@1.0.4(transitive)
- Removedjust-diff@5.2.0(transitive)
- Removedlerna@6.5.1(transitive)
- Removednopt@5.0.0(transitive)
- Removednpm-registry-fetch@13.3.0(transitive)
- Removedpacote@13.6.1(transitive)
- Removedparse-conflict-json@2.0.2(transitive)
- Removedreaddir-scoped-modules@1.1.0(transitive)
- Removedsemver@7.3.4(transitive)
- Removedtreeverse@2.0.0(transitive)
Updatedlerna@6.6.0