Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/version

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/version - npm Package Compare versions

Comparing version 6.5.1 to 6.6.0

dist/libs/commands/add/src/command.js

4

CHANGELOG.md

@@ -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");

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc