Note: this is a fork of https://github.com/mxweaver/lock-diff, but it operates on Git commit ranges rather than on files.
npm install diff-lockfiles
diff-lockfiles --color origin/main dependabot/branch
diff-lockfiles --color HEAD~1 HEAD
diff-lockfiles --help
Usage: diff-lockfiles [options] <from> <to>
diff all changed package-lock.json files in repo
Options:
-V, --version output the version number
-f, --format <format> changes the output format (default: "table")
-m, --max-buffer maximum read buffer size
-c, --color colorizes certain output formats (default: false)
-h, --help display help for command
$ diff-lockfiles HEAD~1 HEAD
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββββββ€ββββββββββββββ
β package-lock.json β β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β package β old version β new version β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/console β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/core β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/environment β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/expect β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/expect-utils β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/fake-timers β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/globals β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/reporters β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/schemas β 29.6.0 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/source-map β 29.6.0 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/test-result β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/test-sequencer β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/transform β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/types β 29.6.1 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@types/babel__core β 7.20.0 β 7.20.1 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@types/babel__traverse β 7.18.2 β 7.20.1 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/babel-jest β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/babel-plugin-jest-hoist β 29.5.0 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/babel-preset-jest β 29.5.0 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/dedent β 1.3.0 β 1.5.1 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/diff-sequences β 29.4.3 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/expect β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/fsevents β 2.3.2 β 2.3.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/is-core-module β 2.12.1 β 2.13.0 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-changed-files β 29.5.0 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-circus β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-cli β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-config β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-diff β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-docblock β 29.4.3 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-each β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-environment-node β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-get-type β 29.4.3 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-haste-map β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-leak-detector β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-matcher-utils β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-message-util β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-mock β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-regex-util β 29.4.3 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-resolve β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-resolve-dependencies β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-runner β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-runtime β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-snapshot β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-util β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-validate β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-watcher β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/jest-worker β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/pretty-format β 29.6.2 β 29.6.3 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/resolve β 1.22.2 β 1.22.4 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββΌββββββββββββββ’
β node_modules/@jest/reporters/node_modules/istanbul-lib-instrument β null β 6.0.0 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββββββ§ββββββββββββββ
diff-lockfiles --format json HEAD~1 HEAD
{
"node_modules/@jest/console": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/core": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/environment": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/expect": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/expect-utils": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/fake-timers": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/globals": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/reporters": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/schemas": [
"29.6.0",
"29.6.3"
],
"node_modules/@jest/source-map": [
"29.6.0",
"29.6.3"
],
"node_modules/@jest/test-result": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/test-sequencer": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/transform": [
"29.6.2",
"29.6.3"
],
"node_modules/@jest/types": [
"29.6.1",
"29.6.3"
],
"node_modules/@types/babel__core": [
"7.20.0",
"7.20.1"
],
"node_modules/@types/babel__traverse": [
"7.18.2",
"7.20.1"
],
"node_modules/babel-jest": [
"29.6.2",
"29.6.3"
],
"node_modules/babel-plugin-jest-hoist": [
"29.5.0",
"29.6.3"
],
"node_modules/babel-preset-jest": [
"29.5.0",
"29.6.3"
],
"node_modules/dedent": [
"1.3.0",
"1.5.1"
],
"node_modules/diff-sequences": [
"29.4.3",
"29.6.3"
],
"node_modules/expect": [
"29.6.2",
"29.6.3"
],
"node_modules/fsevents": [
"2.3.2",
"2.3.3"
],
"node_modules/is-core-module": [
"2.12.1",
"2.13.0"
],
"node_modules/jest": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-changed-files": [
"29.5.0",
"29.6.3"
],
"node_modules/jest-circus": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-cli": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-config": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-diff": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-docblock": [
"29.4.3",
"29.6.3"
],
"node_modules/jest-each": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-environment-node": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-get-type": [
"29.4.3",
"29.6.3"
],
"node_modules/jest-haste-map": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-leak-detector": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-matcher-utils": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-message-util": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-mock": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-regex-util": [
"29.4.3",
"29.6.3"
],
"node_modules/jest-resolve": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-resolve-dependencies": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-runner": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-runtime": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-snapshot": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-util": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-validate": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-watcher": [
"29.6.2",
"29.6.3"
],
"node_modules/jest-worker": [
"29.6.2",
"29.6.3"
],
"node_modules/pretty-format": [
"29.6.2",
"29.6.3"
],
"node_modules/resolve": [
"1.22.2",
"1.22.4"
],
"node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": [
null,
"6.0.0"
]
}
$ diff-lockfiles --format text HEAD~1 HEAD
node_modules/@jest/console 29.6.2 -> 29.6.3
node_modules/@jest/core 29.6.2 -> 29.6.3
node_modules/@jest/environment 29.6.2 -> 29.6.3
node_modules/@jest/expect 29.6.2 -> 29.6.3
node_modules/@jest/expect-utils 29.6.2 -> 29.6.3
node_modules/@jest/fake-timers 29.6.2 -> 29.6.3
node_modules/@jest/globals 29.6.2 -> 29.6.3
node_modules/@jest/reporters 29.6.2 -> 29.6.3
node_modules/@jest/schemas 29.6.0 -> 29.6.3
node_modules/@jest/source-map 29.6.0 -> 29.6.3
node_modules/@jest/test-result 29.6.2 -> 29.6.3
node_modules/@jest/test-sequencer 29.6.2 -> 29.6.3
node_modules/@jest/transform 29.6.2 -> 29.6.3
node_modules/@jest/types 29.6.1 -> 29.6.3
node_modules/@types/babel__core 7.20.0 -> 7.20.1
node_modules/@types/babel__traverse 7.18.2 -> 7.20.1
node_modules/babel-jest 29.6.2 -> 29.6.3
node_modules/babel-plugin-jest-hoist 29.5.0 -> 29.6.3
node_modules/babel-preset-jest 29.5.0 -> 29.6.3
node_modules/dedent 1.3.0 -> 1.5.1
node_modules/diff-sequences 29.4.3 -> 29.6.3
node_modules/expect 29.6.2 -> 29.6.3
node_modules/fsevents 2.3.2 -> 2.3.3
node_modules/is-core-module 2.12.1 -> 2.13.0
node_modules/jest 29.6.2 -> 29.6.3
node_modules/jest-changed-files 29.5.0 -> 29.6.3
node_modules/jest-circus 29.6.2 -> 29.6.3
node_modules/jest-cli 29.6.2 -> 29.6.3
node_modules/jest-config 29.6.2 -> 29.6.3
node_modules/jest-diff 29.6.2 -> 29.6.3
node_modules/jest-docblock 29.4.3 -> 29.6.3
node_modules/jest-each 29.6.2 -> 29.6.3
node_modules/jest-environment-node 29.6.2 -> 29.6.3
node_modules/jest-get-type 29.4.3 -> 29.6.3
node_modules/jest-haste-map 29.6.2 -> 29.6.3
node_modules/jest-leak-detector 29.6.2 -> 29.6.3
node_modules/jest-matcher-utils 29.6.2 -> 29.6.3
node_modules/jest-message-util 29.6.2 -> 29.6.3
node_modules/jest-mock 29.6.2 -> 29.6.3
node_modules/jest-regex-util 29.4.3 -> 29.6.3
node_modules/jest-resolve 29.6.2 -> 29.6.3
node_modules/jest-resolve-dependencies 29.6.2 -> 29.6.3
node_modules/jest-runner 29.6.2 -> 29.6.3
node_modules/jest-runtime 29.6.2 -> 29.6.3
node_modules/jest-snapshot 29.6.2 -> 29.6.3
node_modules/jest-util 29.6.2 -> 29.6.3
node_modules/jest-validate 29.6.2 -> 29.6.3
node_modules/jest-watcher 29.6.2 -> 29.6.3
node_modules/jest-worker 29.6.2 -> 29.6.3
node_modules/pretty-format 29.6.2 -> 29.6.3
node_modules/resolve 1.22.2 -> 1.22.4
node_modules/@jest/reporters/node_modules/istanbul-lib-instrument added
NODE_OPTIONS=--experimental-vm-modules npm test