4.5 KiB
@pnpm/patching.config
1001.0.11
Patch Changes
- @pnpm/dependency-path@1001.1.3
1001.0.10
Patch Changes
- @pnpm/dependency-path@1001.1.2
1001.0.9
Patch Changes
- @pnpm/error@1000.0.5
1001.0.8
Patch Changes
- @pnpm/dependency-path@1001.1.1
1001.0.7
Patch Changes
- Updated dependencies [
d1edf73]- @pnpm/dependency-path@1001.1.0
- @pnpm/error@1000.0.4
1001.0.6
Patch Changes
- @pnpm/dependency-path@1001.0.2
- @pnpm/error@1000.0.3
1001.0.5
Patch Changes
- @pnpm/dependency-path@1001.0.1
1001.0.4
Patch Changes
- Updated dependencies [
540986f]- @pnpm/dependency-path@1001.0.0
1001.0.3
Patch Changes
09cf46f: Update@pnpm/loggerin peer dependencies.- @pnpm/dependency-path@1000.0.9
1001.0.2
Patch Changes
- Updated dependencies [
8a9f3a4]- @pnpm/logger@1001.0.0
- @pnpm/dependency-path@1000.0.8
1001.0.1
Patch Changes
- @pnpm/dependency-path@1000.0.7
1001.0.0
Major Changes
-
5f7be64: Add an ability to patch dependencies by version ranges. Exact versions override version ranges, which in turn override name-only patches. Version range*is the same as name-only, except that patch application failure will not be ignored.For example:
patchedDependencies: foo: patches/foo-1.patch foo@^2.0.0: patches/foo-2.patch foo@2.1.0: patches/foo-3.patchThe above configuration would apply
patches/foo-3.patchtofoo@2.1.0,patches/foo-2.patchto allfooversions which satisfy^2.0.0except2.1.0, andpatches/foo-1.patchto the remainingfooversions.Warning
The version ranges should not overlap. If you want to specialize a sub range, make sure to exclude it from the other keys. For example:
# pnpm-workspace.yaml patchedDependencies: # the specialized sub range 'foo@2.2.0-2.8.0': patches/foo.2.2.0-2.8.0.patch # the more general patch, excluding the sub range above 'foo@>=2.0.0 <2.2.0 || >2.8.0': 'patches/foo.gte2.patchIn most cases, however, it's sufficient to just define an exact version to override the range.
Minor Changes
-
5f7be64: Renamepnpm.allowNonAppliedPatchestopnpm.allowUnusedPatches. The old name is still supported but it would print a deprecation warning message. -
5f7be64: Addpnpm.ignorePatchFailuresto manage whether pnpm would ignore patch application failures.If
ignorePatchFailuresis not set, pnpm would throw an error when patches with exact versions or version ranges fail to apply, and it would ignore failures from name-only patches.If
ignorePatchFailuresis explicitly set tofalse, pnpm would throw an error when any type of patch fails to apply.If
ignorePatchFailuresis explicitly set totrue, pnpm would print a warning when any type of patch fails to apply.
Patch Changes
- Updated dependencies [
5f7be64] - Updated dependencies [
5f7be64] - Updated dependencies [
5f7be64]- @pnpm/patching.types@1000.1.0
- @pnpm/dependency-path@1000.0.6
1.0.0
Major Changes
-
cb006df: Add ability to apply patch to all versions: If the key ofpnpm.patchedDependenciesis a package name without a version (e.g.pkg), pnpm will attempt to apply the patch to all versions of the package, failure will be skipped. If it is a package name and an exact version (e.g.pkg@x.y.z), pnpm will attempt to apply the patch to that exact version only, failure will cause pnpm to fail.If there's only one version of
pkginstalled,pnpm patch pkgand subsequentpnpm patch-commit $edit_dirwill create an entry namedpkginpnpm.patchedDependencies. And pnpm will attempt to apply this patch to other versions ofpkgin the future.If there's multiple versions of
pkginstalled,pnpm patch pkgwill ask which version to edit and whether to attempt to apply the patch to all. If the user chooses to apply the patch to all,pnpm patch-commit $edit_dirwould create apkgentry inpnpm.patchedDependencies. If the user chooses not to apply the patch to all,pnpm patch-commit $edit_dirwould create apkg@x.y.zentry inpnpm.patchedDependencieswithx.y.zbeing the version the user chose to edit.If the user runs
pnpm patch pkg@x.y.zwithx.y.zbeing the exact version ofpkgthat has been installed,pnpm patch-commit $edit_dirwill always create apkg@x.y.zentry inpnpm.patchedDependencies.
Patch Changes
- Updated dependencies [
cb006df]- @pnpm/patching.types@1.0.0