Repository navigation
Update npm: License Cop to v2 - #897
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/major-npm-license-cop
branch
from
October 5, 2026 17:40
4bd9c44 to
8bdf991
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #897 +/- ##
=======================================
Coverage 43.41% 43.41%
=======================================
Files 25 25
Lines 258 258
Branches 46 46
=======================================
Hits 112 112
Misses 146 146 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/major-npm-license-cop
branch
from
October 7, 2026 00:42
8bdf991 to
855e037
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.8.1→^2.0.0^1.8.1→^2.0.0Release Notes
tobysmith568/license-cop (@license-cop/permissive)
v2.2.0Compare Source
Added
node_modules. It reads the project's.pnp.cjsand the packages in your yarn cache (including the global cache and zero-install repositories) or in.yarn/unplugged. Yarn 3 and 4 are tested. Previously this was refused with an error asking you to setnodeLinker: node-modules; that is no longer needed. Reading a Plug'n'Play project loads its.pnp.cjs, which is JavaScript that yarn generates, so only scan a project you trust (see "Supported projects" in the docs).v2.1.2Compare Source
Release v2.1.2
Download from npm:
npm install [email protected] --save-devWhat's Changed
Full Changelog: tobysmith568/license-cop@v2.1.1...v2.1.2
v2.1.1Compare Source
Release v2.1.1
Download from npm:
npm install [email protected] --save-devFull Changelog: tobysmith568/license-cop@v2.1.0...v2.1.1
v2.1.0Compare Source
Added
node_modulesfor a single-package project, and the isolated linker (bun's default for a workspace, or set explicitly viabunfig.toml's[install] linker = "isolated"), which it reads the same way it already reads a pnpm install.v2.0.0Compare Source
Breaking Changes
@license-cop/core.license-copis now bin-only;checkLicenses,LicenseCopOptionsand the result types (CheckLicensesResult,AllowedPackage,LicensedPackage,NoLicenseResult,ForbiddenLicenseResult) are no longer exported from it. Runnpm install @license-cop/coreand import from there instead. The exports are unchanged, only the package.dist/bin.js(wassrc/bin/license-cop), and internal files are bundled intodist/instead of shipped one file per module. Invoke the command by name (npx license-cop, an npm script, ornode_modules/.bin/license-cop) rather than by path, and replace any deep imports fromlicense-cop/src/...with the public exports of@license-cop/core.require("@license-cop/core")no longer works; switch toimport, orawait import("@license-cop/core")if the caller can't move off CommonJS. The CLI itself is unaffected, however it's invoked.--initflag removed. Runlicense-cop initinstead; it does exactly the same thing.-D,--include-devand--dev-onlyreplaced by--dev-dependencies <mode>.-D/--include-devbecomes--dev-dependencies include;--dev-onlybecomes--dev-dependencies only. The config file'sincludeDevDependenciesanddevDependenciesOnlykeys are unchanged.initno longer overwrites an existing config. It now fails and names the file if the project already has one (any supported name/location, or alicensecopkey inpackage.json). Delete the existing config first if you want to regenerate it.error: <message>on stderr and exit 1. Pass--verboseto get the stack trace back.Found the following issues...header used to go to stdout while the details went to stderr, splitting the report across streams. Read stderr (or both streams), or rely on the exit code, which is unchanged (1 when there are issues).node_modules) reported success. Install dependencies before runninglicense-cop. For a workspace member under npm or yarn, where dependencies are hoisted to the root, run it from the workspace root instead.licensefield used to fail the check; members are now treated as the project's own code and skipped (their dependencies are still checked). You can remove any allow-list entry you added only to work around this.--dev-dependencies onlynow actually scans dev dependencies. It previously scanned nothing on pnpm and always passed.extends, when it doesn't set them itself, instead of silently resetting them tofalse. If you rely on a child not scanning dev dependencies even though its parent does, setincludeDevDependencies/devDependenciesOnlytofalseexplicitly in the child.ORlicense expressions are now satisfied by either side. A package licensed e.g.(MIT OR GPL-3.0)now passes if either license is allowed, not only if both are. You can remove any allow-list entry you added only to work around the old, stricter behaviour.v1.9.0Compare Source
Release v1.9.0
Download from npm:
npm install [email protected] --save-devWhat's Changed
Full Changelog: tobysmith568/license-cop@v1.8.1...v1.9.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.