包详细信息

check-package-dependencies

christophehurpeau11.7kISC10.5.0

Check package dependencies for duplicates, peer dependencies satisfaction and more early

eslint, eslintplugin, package.json

自述文件

没有找到 Readme 文件

更新日志

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

10.5.0 (2025-10-22)

Features

Bug Fixes

  • enhance getRealVersion to support npm versions with optional scope (ba05eee)
  • exclude node_modules (487b665)

10.4.1 (2025-08-04)

Bug Fixes

10.4.0 (2025-07-23)

Features

  • add REPORT_PROVIDED_PEER_DEPENDENCIES (c95eb2d)

Bug Fixes

  • add name of duplicate dependency (d0dcf13)
  • use run() in cli (be565ed)

10.3.0 (2025-06-08)

Features

10.2.1 (2025-06-03)

Note: no notable changes

10.2.0 (2025-04-27)

Features

  • add not great rule workspace-dependencies (227d744)

10.1.0 (2025-02-24)

Features

10.0.0 (2025-02-17)

⚠ BREAKING CHANGES

  • requires node >= 22.14

Features

  • eslint rule direct-duplicate-dependencies (e4bf5a9)
  • use node findPackageJSON (49d7239)

9.2.0 (2025-02-10)

Features

  • add eslint rule satisfies-versions (7906b49)
  • better locations for eslint plugin (db7d1d0)
  • eslint fixer (316a46e)
  • eslint fixer (7164e32)
  • eslint rule resolutions-versions-match (db8cb7f)
  • remove languageOptions and prefer rule config (c686de8)
  • rule direct-peer-dependencies (13d19a5)

Bug Fixes

  • dont check peerdep in workspace if was already checked in subpackage (cce70d6)
  • enable noUncheckedIndexedAccess (35a364b)
  • use chalk.dim instead of chalk.gray (0077a0f)

9.1.0 (2025-01-18)

Features

  • experimental eslint plugin (13a2482)
  • look for direct peer dependencies of subpackage matching monorepo devdependencies (7d88aa7)

9.0.0 (2024-12-10)

⚠ BREAKING CHANGES

  • fix checkSatisfiesVersionsBetweenDependencies config and result

Bug Fixes

  • fix checkSatisfiesVersionsBetweenDependencies config and result (f8ddc10)

8.0.1 (2024-12-08)

Note: no notable changes

8.0.0 (2024-12-08)

⚠ BREAKING CHANGES

  • drop node 18 and node 20
  • change message format
  • parse package to get line:column in error messages

Features

  • change message format (0f64246)
  • parse package to get line:column in error messages (6c82228)

Code Refactoring

  • update to node 22 and use fs.glob (10d509a)

7.2.0 (2024-07-17)

Features

7.1.2 (2024-06-09)

Bug Fixes

  • properly check peer dependency's dependencies for non-matching version when it is in pkg peer dependency (b40fdaa)

7.1.1 (2024-03-06)

Note: no notable changes

7.1.0 (2024-03-06)

Features

  • better support exact versions (e9e6aa2)

7.0.0 (2023-11-05)

⚠ BREAKING CHANGES

  • drop node 16, requires node 18

Features

  • indicate when the issue is auto fixable (f9a5609)

Bug Fixes

  • add missing newline when autofixing package.json (5e52efc)
  • display expected version in checkExactVersion if we could resolve it (14e1103)
  • update import-meta-resolve (77acefd)
  • use fileURLToPath (ad78573)

Miscellaneous Chores

  • pob update and update to yarn 4 and node 18 (d474f59)

0.2.0 (2021-03-13)

Features

  • check-package-dependencies: add bin script (1886768)

6.8.0 (2023-09-15)

Features

  • checkResolutionsVersionsMatch: add support for resolutions with patch (42520ad)
  • deps: update dependency type-fest to v4 (#535) (4c94049)

6.7.0 (2023-07-13)

Features

  • add tryToAutoFix support in checkSatisfiesVersionsFromDependency (c4efa60)

6.6.0 (2023-07-05)

Features

  • allow * use in onlyWarnsForInMonorepoPackagesDependencies (350e62a)

6.5.0 (2023-07-05)

Features

  • add checkMinRangePeerDependenciesSatisfiesDependencies and enable in recommended for librairies (c04eb24)
  • deps: update dependency semver to v7.5.1 (#504) (d8079a5)

Bug Fixes

6.4.1 (2023-05-11)

Bug Fixes

  • fix colors when both errors and warnings are found (5779fe2)

6.4.0 (2023-05-08)

Features

  • add conclusion (d29d77c)
  • deps: update dependency glob to v10 (#491) (455068c)
  • deps: update dependency import-meta-resolve to v3 (#498) (626782a)

Bug Fixes

  • fix multiple beforeExit (d0595d2)

6.3.2 (2023-04-17)

Bug Fixes

  • ignore direct peer dependency check if the dependency is in peer dependencies (9eb7635)

6.3.1 (2023-03-13)

Bug Fixes

  • make sure all dependencies matches peerdependency range before skipping it (6b0db57)
  • only allow dependencies satisfiying peerdependencies when isLibrary is false (0093237)

6.3.0 (2023-03-13)

Features

  • allow direct peer dependencies to be satisfied by another direct peer dependency (2aba256)

Bug Fixes

6.2.1 (2023-01-29)

Bug Fixes

  • ignore directory with no package.json with warning (76cdddf)

6.2.0 (2023-01-09)

Features

  • checkExactVersion: add check for comparators range (c886651)

6.1.0 (2022-12-30)

Features

  • add checkMinRangeDependenciesSatisfiesDevDependencies (934247f)
  • autofix checkMinRangeSatisfies (63b20f7)

6.0.0 (2022-12-30)

⚠ BREAKING CHANGES

  • isLibrary is now an option on createCheckPackage instead of checkRecommended

Features

  • allow duplicate devdep and dep when pkg is library and dep is range (3697f8d)

5.0.0 (2022-12-30)

⚠ BREAKING CHANGES

  • requires node 16

Features

  • add checkSatisfiesVersionsInDependency (59cb1d2)
  • deps: update dependency chalk to v5 (#219) (b1ac9b1)

Miscellaneous Chores

4.0.0 (2022-11-29)

⚠ BREAKING CHANGES

  • removed deprecated methods
  • requires ESM, drop CJS support

Features

3.11.0 (2022-11-27)

Features

  • deps: update dependency type-fest to v3 (#419) (1195137)

3.10.0 (2022-09-21)

Features

  • add checkSatisfiesVersions (083b1ce)

3.9.2 (2022-07-30)

Bug Fixes

  • fix enable --fix cli option (2fff3cd)
  • fix run message warning always displaying for workspaces (2e7e01d)

3.9.1 (2022-07-30)

Bug Fixes

  • add beforeExit listener only once (ae46f9a)
  • glob.sync option cwd to fix windows compat (b663e18)

3.9.0 (2022-07-30)

Features

Bug Fixes

  • fix autofix exact dependencies (cb8108e)

3.8.0 (2022-07-30)

Features

  • prepare run() for async use with ESM (e904c03)

Bug Fixes

  • support windows ERR_PACKAGE_PATH_NOT_EXPORTED error (d77c4fe)

3.7.1 (2022-07-24)

Bug Fixes

  • allow peer dep of a dep to be in devdep (4e36aa8), closes #323

3.7.0 (2022-07-07)

Features

  • check duplicates from previously checked packages in monorepo (eec2e71)
  • deps: update dependency glob to v8 (#334) (32953d1)

3.6.0 (2022-04-27)

Features

  • add checkResolutionsVersionsMatch (af67b83)

3.5.2 (2022-03-12)

Bug Fixes

3.5.1 (2022-03-12)

Bug Fixes

  • default exactVersionsOnlyWarnsFor (f3a5a34)

3.5.0 (2022-03-12)

Features

  • better warns for checks (18c47ef)

3.4.0 (2022-03-05)

Features

  • support npm: in version (51959c2)

3.3.0 (2022-03-05)

Features

  • add createCheckPackageOptions to createCheckPackageWithWorkspaces (5168959)

Bug Fixes

  • better implementation of autofix and add tests (0abf7cc)
  • format package.json (3747ff8)

3.2.0 (2022-02-06)

Features

  • add allowRangeVersionsInDependencies option (fc5bc18)

3.1.0 (2022-01-26)

Features

  • add option monorepoDirectDuplicateDependenciesOnlyWarnsFor (0fa6149)

3.0.2 (2022-01-19)

Bug Fixes

  • beta in direct duplicate dependencies (bab86e1)

3.0.1 (2022-01-19)

Bug Fixes

3.0.0 (2021-12-11)

⚠ BREAKING CHANGES

  • requires node 14

Features

Bug Fixes

2.2.1 (2021-12-06)

Bug Fixes

2.2.0 (2021-12-06)

Features

  • allow to check identical version in other dep types (e157111)

2.1.0 (2021-12-04)

Features

  • deps: update dependency type-fest to v2 (#143) (faf6286)

2.0.2 (2021-07-11)

Bug Fixes

  • add main field for eslint (a3961be)

2.0.1 (2021-07-11)

Bug Fixes

  • ignore workspace in version or range (96284e8)

2.0.0 (2021-07-11)

⚠ BREAKING CHANGES

  • requires node that support module

Miscellaneous Chores

  • update dev dependencies (4c94bed)

1.2.7 (2021-07-11)

Bug Fixes

  • dont export mjs version of this lib (c6ea1b1)
  • use semver as default export (fe63dae)

1.2.6 (2021-07-08)

Bug Fixes

1.2.5 (2021-06-27)

Bug Fixes

  • allow peer to be used in both dependencies and peerDependencies (130cf50)

1.2.4 (2021-04-19)

Bug Fixes

  • allow peerDependencies to also be in peerDependencies for libraries but not in devDependencies (25269a7)

1.2.3 (2021-03-28)

Bug Fixes

  • warn when exact version not respected on workspaces (a8d5019)

1.2.2 (2021-03-28)

Bug Fixes

  • ignore checking when range starts with file: (fe5d3d8)

1.2.1 (2021-03-23)

Bug Fixes

  • internalWarnedForDuplicate use in workspace root pkg (fcff2ba)

1.2.0 (2021-03-23)

Features

Bug Fixes

  • checkExactVersions report multiple errors (fb716e0)
  • chek direct duplicate dependencies in workspaces (4904ca9)
  • missing docs (c728f26)
  • use report error and clearer message when a dependency is missing the dependency (c6215e2)

1.1.0 (2021-03-23)

Features

  • add checkSatisfiesVersionsBetweenDependencies (6b9a201)
  • deps: update dependency type-fest to v1 (#22) (da34b8f)

1.0.1 (2021-03-21)

Bug Fixes

  • improve regexp for detecting path in ERR_PACKAGE_PATH_NOT_EXPORTED error (81efce3)

1.0.0 (2021-03-14)

Features

0.1.2 (2021-03-13)

Bug Fixes

  • check-package-dependencies: onlyWarnsFor undefined (0a52498)

0.1.1 (2021-03-13)

Bug Fixes

  • check-package-dependencies: pkg path name (f056a54)

0.1.0 (2021-03-13)

Bug Fixes

  • check-package-dependencies: better duplicate message error and fix reportError pkgPath (fede23a)

Features

  • check-package-dependencies: improve error messages and add color (d89820c)
  • check-package-dependencies (#849) (213969e)