[d24f17c] | 1 | # Changelog
|
---|
| 2 |
|
---|
| 3 | ## 8.0.0
|
---|
| 4 |
|
---|
| 5 | - Add support for multiple patch files for a single package. #474
|
---|
| 6 |
|
---|
| 7 | ## 7.0.2
|
---|
| 8 |
|
---|
| 9 | - Bump semver again (contribution from @rsanchez in #477)
|
---|
| 10 |
|
---|
| 11 | ## 7.0.1
|
---|
| 12 |
|
---|
| 13 | - Bump semver (contribution from @stianjensen in #466)
|
---|
| 14 |
|
---|
| 15 | ### Breaking changes
|
---|
| 16 |
|
---|
| 17 | - Bump `yaml` to fix security issue. Required bumping minimum node version from
|
---|
| 18 | 8 to 14. (contribution from @mayank99 in #463)
|
---|
| 19 |
|
---|
| 20 | ### Other changes
|
---|
| 21 |
|
---|
| 22 | - Bump `cross-spawn` (contribution from @stianjensen in #457)
|
---|
| 23 | - Replace `is-ci` with `ci-info` (contribution from @paescuj in #446)
|
---|
| 24 | - Make version number parsing more robust (contribution from @MHekert in #361)
|
---|
| 25 |
|
---|
| 26 | ## 6.5.1
|
---|
| 27 |
|
---|
| 28 | Special thanks to @orta again for putting this release together.
|
---|
| 29 |
|
---|
| 30 | - Improve error message for missing lockfile entry (contribution from @Andarist
|
---|
| 31 | and @farskid in #439)
|
---|
| 32 | - Fix creating patches for github dependencies (contribution from @dijonkitchen
|
---|
| 33 | in #444)
|
---|
| 34 | - Improve yarn 2 support by copying .yarn dir when creating patch (contribution
|
---|
| 35 | from @bdwain in #438)
|
---|
| 36 | - Upgrade `fs-extra` (contribution from @stianjensen in #441)
|
---|
| 37 | - Add support for nmp lockfile v2 (contribution from @anas10 in #434)
|
---|
| 38 |
|
---|
| 39 | ## 6.5.0
|
---|
| 40 |
|
---|
| 41 | Special thanks to @orta for stepping in to get this release out.
|
---|
| 42 |
|
---|
| 43 | - Don't show issue creation tips for DefinitelyTyped (contribution from @orta in
|
---|
| 44 | #331)
|
---|
| 45 | - Add --error-on-warn flag (contribution from @mvargeson in #345)
|
---|
| 46 | - Add excplit git diff path prefixes (contribution from @tye-singwa in #395)
|
---|
| 47 | - Add yarn 2 compatibility (contribution from @maman in #363)
|
---|
| 48 | - Update license (contribution from @Serjobas in #422)
|
---|
| 49 | - Fix patch file parse but (contribution from @bill2004158 in #301)
|
---|
| 50 | - Add unit tests for getPackageVersion (contribution from @MHekert in #359)
|
---|
| 51 | - Deref symlink on copying .npmrc and .yarnrc in makePatch (contribution from
|
---|
| 52 | @jimmyltsinn in 402)
|
---|
| 53 | - Fix package.json exclusion (contribution from @milahu in #390)
|
---|
| 54 | - Upgrade minimist (contribution from @tapanprakasht in #412)
|
---|
| 55 | - Upgrade chalk (contribution from @stianjensen in #389)
|
---|
| 56 | - Support .yarnrc (contribution from @NMinhNguyen in #222)
|
---|
| 57 |
|
---|
| 58 | ## 6.4.7
|
---|
| 59 |
|
---|
| 60 | - Use npm i --force when creating patches
|
---|
| 61 |
|
---|
| 62 | ## 6.4.6
|
---|
| 63 |
|
---|
| 64 | - Update find-yarn-workspace-root (contribution from @sarimarton in #282)
|
---|
| 65 | - Fix rare npm crash when creating patches (contribution from @kf6kjg in #271)
|
---|
| 66 |
|
---|
| 67 | ## 6.4.5
|
---|
| 68 |
|
---|
| 69 | - Increase max pipe buffer size when creating patch. (contribution from
|
---|
| 70 | @nomi9995 in #287)
|
---|
| 71 |
|
---|
| 72 | ## 6.4.4
|
---|
| 73 |
|
---|
| 74 | - Refine --create-issue template
|
---|
| 75 |
|
---|
| 76 | ## 6.4.3
|
---|
| 77 |
|
---|
| 78 | - Ensure real path is used when copying package contents. Potentially adds pnpm
|
---|
| 79 | support (contribution from @milahu in #252)
|
---|
| 80 |
|
---|
| 81 | ## 6.4.2
|
---|
| 82 |
|
---|
| 83 | - Add package version to --create-issue template
|
---|
| 84 |
|
---|
| 85 | ## 6.4.1
|
---|
| 86 |
|
---|
| 87 | - Add backlink to patch-package repo to collect public usage of --create-issue
|
---|
| 88 |
|
---|
| 89 | ## 6.4.0
|
---|
| 90 |
|
---|
| 91 | - Add --create-issue option
|
---|
| 92 |
|
---|
| 93 | ## 6.3.1
|
---|
| 94 |
|
---|
| 95 | - Fix another createPatch bug involving .git folder hygiene (contribution from
|
---|
| 96 | @gomain in #258)
|
---|
| 97 |
|
---|
| 98 | ## 6.3.0
|
---|
| 99 |
|
---|
| 100 | - Add --error-on-fail cli option
|
---|
| 101 | - Collate errors and warnings to avoid exiting early (with help from
|
---|
| 102 | @akwodkiewicz in #217)
|
---|
| 103 | - Fix .dev.patch suffix bug (with help from @pdcastro in #224)
|
---|
| 104 | - Support build metadata in package.json version strings (with help from
|
---|
| 105 | @snowystinger in #213)
|
---|
| 106 | - Change 'no patch files found' message from red to blue (contribution from
|
---|
| 107 | @dmhalejr in #211)
|
---|
| 108 | - Fix environment variable propogation for spawned tasks (contribution from
|
---|
| 109 | @chpio in #223)
|
---|
| 110 | - Add --patch-dir option to readme (contribution from @mikehardy in #225)
|
---|
| 111 | - Fix createPatch bug involving .git folder hygiene (contribution from @haroenv
|
---|
| 112 | in #231)
|
---|
| 113 |
|
---|
| 114 | ## 6.2.2
|
---|
| 115 |
|
---|
| 116 | - Take config from .yarnrc when making patches (contribution from @NMinhNguyen
|
---|
| 117 | in #222)
|
---|
| 118 |
|
---|
| 119 | ## 6.2.1
|
---|
| 120 |
|
---|
| 121 | - Avoid infinite loop when invoked without package.json
|
---|
| 122 | - Fall back to version in package-lock (contribution from @bschlenk in #206)
|
---|
| 123 | - Add tips about Docker and CI to README (contribution from @harriha in #208)
|
---|
| 124 | - Remove update notifier (contribution from @christianbundy in #196)
|
---|
| 125 | - Add github actions checks (contribution from @asadm in #186 and @DanielRuf in
|
---|
| 126 | #188, #187)
|
---|
| 127 | - Fix url in README (contribution from @DanielRuf in #184)
|
---|
| 128 | - Upgrade node in CI to 12 (contribution from @DanielRuf in #183)
|
---|
| 129 |
|
---|
| 130 | ## 6.2.0
|
---|
| 131 |
|
---|
| 132 | - Add support for dev-only patches (#159 again)
|
---|
| 133 |
|
---|
| 134 | ## 6.1.4
|
---|
| 135 |
|
---|
| 136 | - Use --ignore-scripts when making patches if it fails without (#151)
|
---|
| 137 |
|
---|
| 138 | ## 6.1.3
|
---|
| 139 |
|
---|
| 140 | - Fail when patches are found for uninstalled packages (#159)
|
---|
| 141 | - Support private registries declared in .npmrc (Contribution from @cherniavskii
|
---|
| 142 | in #152)
|
---|
| 143 |
|
---|
| 144 | ## 6.1.2
|
---|
| 145 |
|
---|
| 146 | - Explicitly handle failure edge case where symlinks are modified/created (#118)
|
---|
| 147 |
|
---|
| 148 | ## 6.1.1
|
---|
| 149 |
|
---|
| 150 | - Fix npm edge case of package installed from url (#134)
|
---|
| 151 |
|
---|
| 152 | ## 6.1.0
|
---|
| 153 |
|
---|
| 154 | - Add support for yarn workspaces
|
---|
| 155 | - Degrade 'file mode change not required' error to warning
|
---|
| 156 |
|
---|
| 157 | ## 6.0.7
|
---|
| 158 |
|
---|
| 159 | - Don't try to detect package manager on patch application (#133)
|
---|
| 160 |
|
---|
| 161 | ## 6.0.6
|
---|
| 162 |
|
---|
| 163 | - Better error messages for patch parse failures (#131)
|
---|
| 164 |
|
---|
| 165 | ## 6.0.5
|
---|
| 166 |
|
---|
| 167 | - Use lockfiles to get package resolutions.
|
---|
| 168 |
|
---|
| 169 | ## 6.0.4
|
---|
| 170 |
|
---|
| 171 | - Fix patch parsing issue affecting windows (#124)
|
---|
| 172 |
|
---|
| 173 | ## 6.0.3
|
---|
| 174 |
|
---|
| 175 | - Allow relative file paths for --patch-dir (Contribution from @lots0logs in
|
---|
| 176 | #119)
|
---|
| 177 | - Fix version string handling (Contribution from @teppeis in #122)
|
---|
| 178 | - Add support for custom resolutions field in app's package.json (#125)
|
---|
| 179 | - Fix property access bug (#123)
|
---|
| 180 | - Move @types/is-ci from dependencies to devDependencies (#121)
|
---|
| 181 |
|
---|
| 182 | ## 6.0.2
|
---|
| 183 |
|
---|
| 184 | - Revert failure exit code when no patches are found.
|
---|
| 185 |
|
---|
| 186 | ## 6.0.1
|
---|
| 187 |
|
---|
| 188 | - Document --patch-dir option in readme
|
---|
| 189 |
|
---|
| 190 | ## 6.0.0
|
---|
| 191 |
|
---|
| 192 | ### Highlights!
|
---|
| 193 |
|
---|
| 194 | - No longer dependent on Git to apply patches
|
---|
| 195 | - Patch files are created much much much faster 🏃🏽♀️💨
|
---|
| 196 | - Fixed lots of small bugs
|
---|
| 197 | - Explicit support for nested packages
|
---|
| 198 |
|
---|
| 199 | For full details see the prerelease notes.
|
---|
| 200 |
|
---|
| 201 | ## 6.0.0-18
|
---|
| 202 |
|
---|
| 203 | - Allow fuzzy patch hunk application.
|
---|
| 204 | - Minor UI tweaks
|
---|
| 205 | - Ignore global git config to prevent issues like #109 & #115
|
---|
| 206 | - Add --ignore-engines to yarn invocation
|
---|
| 207 |
|
---|
| 208 | ## 6.0.0-17
|
---|
| 209 |
|
---|
| 210 | - Fix the removal of old patch files when creating new ones.
|
---|
| 211 |
|
---|
| 212 | ## 6.0.0-16
|
---|
| 213 |
|
---|
| 214 | - Fail postinstall only on CI to prevent weird upgrade issues locally (see #86)
|
---|
| 215 | - Fail if no patches are present
|
---|
| 216 |
|
---|
| 217 | ## 6.0.0-15
|
---|
| 218 |
|
---|
| 219 | - Handle mode changes
|
---|
| 220 | - Backwards-compatible patch file parsing
|
---|
| 221 |
|
---|
| 222 | ## 6.0.0-14
|
---|
| 223 |
|
---|
| 224 | - Handle renaming files properly
|
---|
| 225 |
|
---|
| 226 | ## 6.0.0-13
|
---|
| 227 |
|
---|
| 228 | - Handle large diffs by not calling .toString on stdout buffer
|
---|
| 229 | - Git usage fixes
|
---|
| 230 |
|
---|
| 231 | ## 6.0.0-12
|
---|
| 232 |
|
---|
| 233 | - Support explicit nested package patching
|
---|
| 234 | - Improve performance of patch creation
|
---|
| 235 |
|
---|
| 236 | ## 6.0.0-11
|
---|
| 237 |
|
---|
| 238 | - Handle crlf line breaks in patch parser (Contribution from @NMinhNguyen)
|
---|
| 239 |
|
---|
| 240 | ## 6.0.0-10
|
---|
| 241 |
|
---|
| 242 | - Add --patches-dir option (Contribution from @davidpett)
|
---|
| 243 |
|
---|
| 244 | ## 6.0.0-9
|
---|
| 245 |
|
---|
| 246 | - Fix patch application bug when creating new files (Contribution from
|
---|
| 247 | @stmarkidis)
|
---|
| 248 |
|
---|
| 249 | ## 6.0.0-8
|
---|
| 250 |
|
---|
| 251 | - Improve diffing speed (Contribution from @KevinVlaanderen)
|
---|
| 252 |
|
---|
| 253 | ## 6.0.0-7
|
---|
| 254 |
|
---|
| 255 | - Use --no-ext-diff option when generating diffs (Contribution from @janv)
|
---|
| 256 |
|
---|
| 257 | ## 6.0.0-6
|
---|
| 258 |
|
---|
| 259 | - Make include/exclude regexes applied relative to the package root. Fixes #54
|
---|
| 260 |
|
---|
| 261 | ## 6.0.0-5
|
---|
| 262 |
|
---|
| 263 | - Fix preventing scripts from running when making patch file
|
---|
| 264 |
|
---|
| 265 | ## 6.0.0-4
|
---|
| 266 |
|
---|
| 267 | - Don't delete package.json during patch creation
|
---|
| 268 |
|
---|
| 269 | ## 6.0.0-3
|
---|
| 270 |
|
---|
| 271 | - Bugfixes for patch application
|
---|
| 272 | - Prevent scripts from running when making patch file
|
---|
| 273 |
|
---|
| 274 | ## 6.0.0-2
|
---|
| 275 |
|
---|
| 276 | - Bugfixes for patch application
|
---|
| 277 |
|
---|
| 278 | ## 6.0.0-1
|
---|
| 279 |
|
---|
| 280 | - Bugfixes for patch application
|
---|
| 281 |
|
---|
| 282 | ## 6.0.0-0
|
---|
| 283 |
|
---|
| 284 | - Reimplement most of patch application in TypeScript
|
---|
| 285 |
|
---|
| 286 | ## 5.1.1
|
---|
| 287 |
|
---|
| 288 | - Fix idempotency regression. See #39
|
---|
| 289 |
|
---|
| 290 | ## 5.1.0
|
---|
| 291 |
|
---|
| 292 | - Add `--reverse` option for patch application. See #37
|
---|
| 293 |
|
---|
| 294 | ## 5.0.0
|
---|
| 295 |
|
---|
| 296 | - Remove yarn patching code
|
---|
| 297 | - Recommend postinstall-prepare in README for yarn compatibility
|
---|
| 298 |
|
---|
| 299 | ## 4.0.0
|
---|
| 300 |
|
---|
| 301 | - Ignore all package.json files by default
|
---|
| 302 | - Exit with appropriate error when git is not available
|
---|
| 303 |
|
---|
| 304 | ## 3.6.1
|
---|
| 305 |
|
---|
| 306 | - Fix bug where patch-package was complaining about failing when it had, in
|
---|
| 307 | fact, succeeded. See #31
|
---|
| 308 |
|
---|
| 309 | ## 3.6.0
|
---|
| 310 |
|
---|
| 311 | - Remove git headers from patch files to prevent git from thinking files are
|
---|
| 312 | part of the index
|
---|
| 313 |
|
---|
| 314 | ## 3.5.3
|
---|
| 315 |
|
---|
| 316 | - Change the way patch files are re-written when the project root dir is not the
|
---|
| 317 | same as the git root dir.
|
---|
| 318 | - Remove redundant windows warning about whitespace
|
---|
| 319 |
|
---|
| 320 | ## 3.5.2
|
---|
| 321 |
|
---|
| 322 | - Update README
|
---|
| 323 |
|
---|
| 324 | ## 3.5.1
|
---|
| 325 |
|
---|
| 326 | - Ignore end-of-line whitespace when creating and applying patch files
|
---|
| 327 |
|
---|
| 328 | ## 3.5.0
|
---|
| 329 |
|
---|
| 330 | - Add support for filtering particular paths
|
---|
| 331 |
|
---|
| 332 | ## 3.4.6
|
---|
| 333 |
|
---|
| 334 | - Ensure use of unix-style paths everywhere
|
---|
| 335 |
|
---|
| 336 | ## 3.4.5
|
---|
| 337 |
|
---|
| 338 | - Fix description of a hunk in error message
|
---|
| 339 |
|
---|
| 340 | ## 3.4.4
|
---|
| 341 |
|
---|
| 342 | - Don't use `git apply` with `--unsafe-paths` since it is useless.
|
---|
| 343 |
|
---|
| 344 | ## 3.4.3
|
---|
| 345 |
|
---|
| 346 | - Fix typo in error message
|
---|
| 347 |
|
---|
| 348 | ## 3.4.2
|
---|
| 349 |
|
---|
| 350 | - Revert previous fix and suggest editing .gitattributes as an alternative
|
---|
| 351 |
|
---|
| 352 | ## 3.4.1
|
---|
| 353 |
|
---|
| 354 | - Fix CRLF handling on Windows
|
---|
| 355 |
|
---|
| 356 | ## 3.4.0
|
---|
| 357 |
|
---|
| 358 | - Add npm shrinkwrap support
|
---|
| 359 |
|
---|
| 360 | ## 3.3.6
|
---|
| 361 |
|
---|
| 362 | - Use posix paths and line separators even on windows, for git's sake.
|
---|
| 363 |
|
---|
| 364 | ## 3.3.5
|
---|
| 365 |
|
---|
| 366 | - Resolve paths in patch files for situations where the git root is not the same
|
---|
| 367 | as the app root.
|
---|
| 368 |
|
---|
| 369 | ## 3.3.4
|
---|
| 370 |
|
---|
| 371 | - Pass --unsafe-paths option to `git apply` to let it work on arbitrary file
|
---|
| 372 | paths (i.e. files which are not in a git repo or files which are outside of
|
---|
| 373 | the working directory)
|
---|
| 374 |
|
---|
| 375 | ## 3.3.3
|
---|
| 376 |
|
---|
| 377 | - Fix bug introduced in 3.3.2
|
---|
| 378 | - Add progress reporting during patch making
|
---|
| 379 |
|
---|
| 380 | ## 3.3.2
|
---|
| 381 |
|
---|
| 382 | Windows fixes:
|
---|
| 383 |
|
---|
| 384 | - Use `cross-spawn` for spawning child processes
|
---|
| 385 | - Use `git apply` for applying patches, rather than `patch`
|
---|
| 386 |
|
---|
| 387 | Contribution by [@ashmind](https://github.com/ashmind)
|
---|
| 388 |
|
---|
| 389 | ## 3.3.1
|
---|
| 390 |
|
---|
| 391 | - Use `fs-extra` to copy files instead of the `cp` shell command, which doesn't
|
---|
| 392 | work on Windows
|
---|
| 393 |
|
---|
| 394 | ## 3.3.0
|
---|
| 395 |
|
---|
| 396 | - Use `+` instead of `:` in patch file names because `:` is illegal on Windows.
|
---|
| 397 |
|
---|
| 398 | ## 3.2.1
|
---|
| 399 |
|
---|
| 400 | - Make update-notifier message show local install
|
---|
| 401 |
|
---|
| 402 | ## 3.2.0
|
---|
| 403 |
|
---|
| 404 | - Add update-notifier to notify users of patch-package updates
|
---|
| 405 |
|
---|
| 406 | ## 3.1.0
|
---|
| 407 |
|
---|
| 408 | - Add support for scoped packages
|
---|
| 409 |
|
---|
| 410 | ## 3.0.0
|
---|
| 411 |
|
---|
| 412 | - Add support for npm5
|
---|
| 413 | - Make yarn patching a cli option, off by default
|
---|
| 414 |
|
---|
| 415 | ## 2.1.1
|
---|
| 416 |
|
---|
| 417 | Improve error messages
|
---|
| 418 |
|
---|
| 419 | ## 2.1.0
|
---|
| 420 |
|
---|
| 421 | Reduce yarn error to a warning
|
---|
| 422 |
|
---|
| 423 | ## 2.0.0
|
---|
| 424 |
|
---|
| 425 | - Require yarn as a peer dependency
|
---|
| 426 | - Remove support for NPM
|
---|
| 427 |
|
---|
| 428 | Moving fast and breaking things. It turns out yarn doesn't run the prepare hook
|
---|
| 429 | after removing a package, so we use patch-package to patch a local version of
|
---|
| 430 | yarn. I'm not proud of this. Probably wouldn't have released this in the first
|
---|
| 431 | place if I had known that yarn didn't have all the right hooks. Oh well. Now I
|
---|
| 432 | have a reason to contribute to Yarn I guess.
|
---|
| 433 |
|
---|
| 434 | ## 1.2.1
|
---|
| 435 |
|
---|
| 436 | - Fix patch creation logic around nested node_modules
|
---|
| 437 |
|
---|
| 438 | ## 1.2.0
|
---|
| 439 |
|
---|
| 440 | - Enable picking up changes in nested node_modules folders.
|
---|
| 441 | - Enable adding new files, not just patching existing files.
|
---|
| 442 |
|
---|
| 443 | ## 1.1.1
|
---|
| 444 |
|
---|
| 445 | - Fix bug that made exit code 1 regardless of success or failure.
|
---|
| 446 |
|
---|
| 447 | ## 1.1.0
|
---|
| 448 |
|
---|
| 449 | - Make applying patches work
|
---|
| 450 | - Add nice colorful log messages.
|
---|
| 451 |
|
---|
| 452 | ## 1.0.0
|
---|
| 453 |
|
---|
| 454 | Initial broken release
|
---|