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

check-dependency-version-consistency

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-dependency-version-consistency - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

5

dist/lib/cdvc.d.ts

@@ -9,4 +9,5 @@ import { Options } from './types.js';

version: string;
/** Relative path to each package.*/
packages: readonly string[];
packages: readonly {
pathRelative: string;
}[];
}[];

@@ -13,0 +14,0 @@ };

4

dist/lib/cdvc.js

@@ -36,3 +36,5 @@ import { check } from './check.js';

version: version.version,
packages: version.packages.map((package_) => package_.pathRelative),
packages: version.packages.map((package_) => ({
pathRelative: package_.pathRelative,
})),
})),

@@ -39,0 +41,0 @@ };

@@ -6,2 +6,3 @@ import { Command, Argument } from 'commander';

import { CDVC } from './cdvc.js';
import { DEPENDENCY_TYPE } from './types.js';
import { DEFAULT_DEP_TYPES } from './defaults.js';

@@ -27,3 +28,3 @@ const __dirname = dirname(fileURLToPath(import.meta.url));

.addArgument(new Argument('[path]', 'path to workspace root').default('.'))
.option('--dep-type <dependency-type>', `Type of dependency to check (default: ${DEFAULT_DEP_TYPES.join(', ')}) (option can be repeated)`, collect, [])
.option('--dep-type <dependency-type>', `Type of dependency to check (default: ${DEFAULT_DEP_TYPES.join(', ')}) (choices: ${Object.keys(DEPENDENCY_TYPE).join(', ')}) (option can be repeated)`, collect, [])
.option('--fix', 'Whether to autofix inconsistencies (using highest version present)', false)

@@ -30,0 +31,0 @@ .option('--ignore-dep <dependency-name>', 'Dependency to ignore (option can be repeated)', collect, [])

@@ -5,3 +5,5 @@ import { DEPENDENCY_TYPE } from './types.js';

DEPENDENCY_TYPE.devDependencies,
DEPENDENCY_TYPE.optionalDependencies,
DEPENDENCY_TYPE.resolutions,
// peerDependencies is not included by default, see discussion in: https://github.com/bmish/check-dependency-version-consistency/issues/402
];
{
"name": "check-dependency-version-consistency",
"version": "3.3.0",
"version": "4.0.0",
"description": "Ensures dependencies are on consistent versions across a monorepo.",

@@ -50,36 +50,36 @@ "keywords": [

"@types/js-yaml": "^4.0.5",
"chalk": "^5.0.1",
"commander": "^9.0.0",
"chalk": "^5.2.0",
"commander": "^10.0.1",
"edit-json-file": "^1.7.0",
"globby": "^13.1.1",
"globby": "^13.1.4",
"js-yaml": "^4.1.0",
"semver": "^7.3.5",
"table": "^6.7.1",
"type-fest": "^2.1.0"
"semver": "^7.5.1",
"table": "^6.8.1",
"type-fest": "^3.11.0"
},
"devDependencies": {
"@release-it-plugins/lerna-changelog": "^5.0.0",
"@types/edit-json-file": "^1.7.0",
"@types/jest": "^27.4.0",
"@types/jest": "^29.5.1",
"@types/mock-fs": "^4.13.1",
"@types/node": "^18.0.0",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"eslint": "^8.1.0",
"eslint-plugin-jest": "^26.1.1",
"@types/node": "^20.2.3",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"eslint": "^8.41.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-square": "^22.1.0",
"jest": "^27.4.7",
"markdownlint-cli": "^0.31.1",
"mock-fs": "^5.0.0",
"npm-package-json-lint": "^5.2.3",
"eslint-plugin-square": "^25.0.0",
"jest": "^29.5.0",
"markdownlint-cli": "^0.34.0",
"mock-fs": "^5.2.0",
"npm-package-json-lint": "^6.4.0",
"npm-run-all": "^4.1.5",
"release-it": "^14.2.2",
"release-it-lerna-changelog": "^4.0.1",
"sort-package-json": "^1.44.0",
"ts-jest": "^27.1.2",
"typescript": "^4.0.2"
"release-it": "^15.10.3",
"sort-package-json": "^2.4.1",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
},
"engines": {
"node": "^12.20.0 || ^14.14.0 || >=16.0.0"
"node": "^16.0.0 || ^18.0.0 || >=20.0.0"
},

@@ -91,3 +91,3 @@ "publishConfig": {

"plugins": {
"release-it-lerna-changelog": {
"@release-it-plugins/lerna-changelog": {
"infile": "CHANGELOG.md",

@@ -94,0 +94,0 @@ "launchEditor": true

@@ -144,7 +144,7 @@ # check-dependency-version-consistency

{
packages: ['package1', 'package2'],
packages: [{ pathRelative: 'package1' }, { pathRelative: 'package2' }],
version: '^7.0.0',
},
{
packages: ['package3'],
packages: [{ pathRelative: 'package3' }],
version: '^8.0.0',

@@ -176,3 +176,3 @@ },

| `name` | The dependency's name. |
| `versions` | A list of the versions present of this dependency and the packages each is found in, in the form of: `{ version: string, packages: string[] }`. The `packages` array has relative paths to each package. |
| `versions` | A list of the versions present of this dependency and the packages each is found in, in the form of: `{ version: string, packages: { pathRelative: string }[] }`. |

@@ -179,0 +179,0 @@ See [`lib/cli.ts`](./lib/cli.ts) for an example of how to use it.

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