|
| 1 | +## v5.6.0 (2017-11-27): |
| 2 | + |
| 3 | +### Features! |
| 4 | + |
| 5 | +You may have noticed this is a semver-minor bump. Wondering why? This is why! |
| 6 | + |
| 7 | +* [`bc263c3fd`](https://github.com/npm/npm/commit/bc263c3fde6ff4b04deee132d0a9d89379e28c27) |
| 8 | + [#19054](https://github.com/npm/npm/pull/19054) |
| 9 | + **Fully cross-platform `package-lock.json`**. Installing a failing optional |
| 10 | + dependency on one platform no longer removes it from the dependency tree, |
| 11 | + meaning that `package-lock.json` should now be generated consistently across |
| 12 | + platforms! 🎉 |
| 13 | + ([@iarna](https://github.com/iarna)) |
| 14 | +* [`f94fcbc50`](https://github.com/npm/npm/commit/f94fcbc50d8aec7350164df898d1e12a1e3da77f) |
| 15 | + [#19160](https://github.com/npm/npm/pull/19160) |
| 16 | + Add `--package-lock-only` config option. This makes it so you can generate a |
| 17 | + target `package-lock.json` without performing a full install of |
| 18 | + `node_modules`. |
| 19 | + ([@alopezsanchez](https://github.com/alopezsanchez)) |
| 20 | +* [`66d18280c`](https://github.com/npm/npm/commit/66d18280ca320f880f4377cf80a8052491bbccbe) |
| 21 | + [#19104](https://github.com/npm/npm/pull/19104) |
| 22 | + Add new `--node-options` config to pass through a custom `NODE_OPTIONS` for |
| 23 | + lifecycle scripts. |
| 24 | + ([@bmeck](https://github.com/bmeck)) |
| 25 | +* [`114d518c7`](https://github.com/npm/npm/commit/114d518c75732c42acbef3acab36ba1d0fd724e2) |
| 26 | + Ignore mtime when packing tarballs: This means that doing `npm pack` on the |
| 27 | + same repository should yield two tarballs with the same checksum. This will |
| 28 | + also help prevent cache bloat when using git dependencies. In the future, this |
| 29 | + will allow npm to explicitly cache git dependencies. |
| 30 | + ([@isaacs](https://github.com/isaacs)) |
| 31 | + |
| 32 | +### Performance |
| 33 | + |
| 34 | +* [`39ba4aa74`](https://github.com/npm/npm/commit/39ba4aa7479220e61573c0c1977124c2199f49d0) |
| 35 | + `[email protected]`: Reduce number of overall fs operations during packing/unpacking. |
| 36 | + |
| 37 | +### Node 9 |
| 38 | + |
| 39 | +Previously, it turns out npm broke on the latest Node, `node@9`. We went ahead |
| 40 | +and fixed it up so y'all should be able to use the latest npm again! |
| 41 | + |
| 42 | +* [`4ca695819`](https://github.com/npm/npm/commit/4ca6958196ae41cef179473e3f7dbed9df9a32f1) |
| 43 | + `[email protected]`: `Fix node@9` incompatibility. |
| 44 | + ([@isaacs](https://github.com/isaacs)) |
| 45 | +* [`c851bb503`](https://github.com/npm/npm/commit/c851bb503a756b7cd48d12ef0e12f39e6f30c577) |
| 46 | + `[email protected]`: Fix `node@9` incompatibility. |
| 47 | + ([@isaacs](https://github.com/isaacs)) |
| 48 | +* [`6caf23096`](https://github.com/npm/npm/commit/6caf2309613d14ce77923ad3d1275cb89c6cf223) |
| 49 | + Remove "unsupported" warning for Node 9 now that things are fixed. |
| 50 | + ([@iarna](https://github.com/iarna)) |
| 51 | +* [`1930b0f8c`](https://github.com/npm/npm/commit/1930b0f8c44373301edc9fb6ccdf7efcb350fa42) |
| 52 | + Update test matrix with `node@8` LTS and `node@9`. |
| 53 | + ([@iarna](https://github.com/iarna)) |
| 54 | + |
| 55 | +### Bug Fixes |
| 56 | + |
| 57 | +* [`b70321733`](https://github.com/npm/npm/commit/b7032173361665a12c9e4200bdc3f0eb4dee682f) |
| 58 | + [#18881](https://github.com/npm/npm/pull/18881) |
| 59 | + When dealing with a `node_modules` that was created with older versions of npm |
| 60 | + (and thus older versions of npa) we need to gracefully handle older spec |
| 61 | + entries. Failing to do so results in us treating those packages as if they |
| 62 | + were http remote deps, which results in invalid lock files with `version` set |
| 63 | + to tarball URLs. This should now be fixed. |
| 64 | + ([@iarna](https://github.com/iarna)) |
| 65 | +* [`2f9c5dd00`](https://github.com/npm/npm/commit/2f9c5dd0046a53ece3482e92a412413f5aed6955) |
| 66 | + [#18880](https://github.com/npm/npm/pull/18880) |
| 67 | + Stop overwriting version in package data on disk. This is another safeguard |
| 68 | + against the version overwriting that's plagued some folks upgrading from older |
| 69 | + package-locks. |
| 70 | + ([@iarna](https://github.com/iarna)) |
| 71 | + ([@joshclow](https://github.com/joshclow)) |
| 72 | +* [`a93e0a51d`](https://github.com/npm/npm/commit/a93e0a51d3dafc31c809ca28cd7dfa71b2836f86) |
| 73 | + [#18846](https://github.com/npm/npm/pull/18846) |
| 74 | + Correctly save transitive dependencies when using `npm update` in |
| 75 | + `package-lock.json`. |
| 76 | + ([@iarna](https://github.com/iarna)) |
| 77 | +* [`fdde7b649`](https://github.com/npm/npm/commit/fdde7b649987b2acd9a37ef203f1e263fdf6fece) |
| 78 | + [#18825](https://github.com/npm/npm/pull/18825) |
| 79 | + Fix typo and concatenation in error handling. |
| 80 | + ([@alulsh](https://github.com/alulsh)) |
| 81 | +* [`be67de7b9`](https://github.com/npm/npm/commit/be67de7b90790cef0a9f63f91c2f1a00942205ee) |
| 82 | + [#18711](https://github.com/npm/npm/pull/18711) |
| 83 | + Upgrade to bearer tokens from legacy auth when enabling 2FA. |
| 84 | + ([@iarna](https://github.com/iarna)) |
| 85 | +* [`bfdf0fd39`](https://github.com/npm/npm/commit/bfdf0fd39646b03db8e543e2bec7092da7880596) |
| 86 | + [#19033](https://github.com/npm/npm/pull/19033) |
| 87 | + Fix issue where files with `@` signs in their names would not get included |
| 88 | + when packing tarballs. |
| 89 | + ([@zkat](https://github.com/zkat)) |
| 90 | +* [`b65b89bde`](https://github.com/npm/npm/commit/b65b89bdeaa65516f3e13afdb6e9aeb22d8508f4) |
| 91 | + [#19048](https://github.com/npm/npm/pull/19048) |
| 92 | + Fix problem where `npm login` was ignoring various networking-related options, |
| 93 | + such as custom certs. |
| 94 | + ([@wejendorp](https://github.com/wejendorp)) |
| 95 | +* [`8c194b86e`](https://github.com/npm/npm/commit/8c194b86ec9617e2bcc31f30ee4772469a0bb440) |
| 96 | + `[email protected]`: Include `node_modules/` directories not in the root. |
| 97 | + ([@isaacs](https://github.com/isaacs)) |
| 98 | +* [`d7ef6a20b`](https://github.com/npm/npm/commit/d7ef6a20b44e968cb92babab1beb51f99110781d) |
| 99 | + `[email protected]`: Fix some *nix binary path escaping issues. |
| 100 | + ([@zkat](https://github.com/zkat)) |
| 101 | +* [`981828466`](https://github.com/npm/npm/commit/981828466a5936c70abcccea319b227c443e812b) |
| 102 | + `[email protected]`: Fix fallback to `copy-concurrently` when file move fails. |
| 103 | + This might fix permissions and such issues on platforms that were getting |
| 104 | + weird filesystem errors during install. |
| 105 | + ([@karolba](https://github.com/karolba)) |
| 106 | +* [`a0be6bafb`](https://github.com/npm/npm/commit/a0be6bafb6dd7acb3e7b717c27c8575a2215bfff) |
| 107 | + `[email protected]`: Includes a bunch of fixes, specially for issues around git |
| 108 | + dependencies. Shasum-related errors should be way less common now, too. |
| 109 | + ([@zkat](https://github.com/zkat)) |
| 110 | +* [`b80d650de`](https://github.com/npm/npm/commit/b80d650def417645d2525863e9f17af57a917b42) |
| 111 | + [#19163](https://github.com/npm/npm/pull/19163) |
| 112 | + Fix a number of git and tarball specs and checksum errors. |
| 113 | + ([@zkat](https://github.com/zkat)) |
| 114 | +* [`cac225025`](https://github.com/npm/npm/commit/cac225025fa06cd055286e75541138cd95f52def) |
| 115 | + [#19054](https://github.com/npm/npm/pull/19054) |
| 116 | + Don't count failed optionals when summarizing installed packages. |
| 117 | + ([@iarna](https://github.com/iarna)) |
| 118 | + |
| 119 | +### UX |
| 120 | + |
| 121 | +* [`b1ec2885c`](https://github.com/npm/npm/commit/b1ec2885c43f8038c4e05b83253041992fdfe382) |
| 122 | + [#18326](https://github.com/npm/npm/pull/18326) |
| 123 | + Stop truncating output of `npm view`. This means, for example, that you no |
| 124 | + longer need to use `--json` when a package has a lot of versions, to see the |
| 125 | + whole list. |
| 126 | + ([@SimenB](https://github.com/SimenB)) |
| 127 | +* [`55a124e0a`](https://github.com/npm/npm/commit/55a124e0aa6097cb46f1484f666444b2a445ba57) |
| 128 | + [#18884](https://github.com/npm/npm/pull/18884) |
| 129 | + Profile UX improvements: better messaging on unexpected responses, and stop |
| 130 | + claiming we set passwords to null when resetting them. |
| 131 | + ([@iarna](https://github.com/iarna)) |
| 132 | +* [`635481c61`](https://github.com/npm/npm/commit/635481c6143bbe10a6f89747795bf4b83f75a7e9) |
| 133 | + [#18844](https://github.com/npm/npm/pull/18844) |
| 134 | + Improve error messaging for OTP/2FA. |
| 135 | + ([@iarna](https://github.com/iarna)) |
| 136 | +* [`52b142ed5`](https://github.com/npm/npm/commit/52b142ed5e0f13f23c99209932e8de3f7649fd47) |
| 137 | + [#19054](https://github.com/npm/npm/pull/19054) |
| 138 | + Stop running the same rollback multiple times. This should address issues |
| 139 | + where Windows users saw strange failures when `fsevents` failed to install. |
| 140 | + ([@iarna](https://github.com/iarna)) |
| 141 | +* [`798428b0b`](https://github.com/npm/npm/commit/798428b0b7b6cfd6ce98041c45fc0a36396e170c) |
| 142 | + [#19172](https://github.com/npm/npm/pull/19172) |
| 143 | + `[email protected]`: Log the fact line endings are being changed upon install. |
| 144 | + ([@marcosscriven](https://github.com/marcosscriven)) |
| 145 | + |
| 146 | +### Refactors |
| 147 | + |
| 148 | +Usually, we don't include internal refactor stuff in our release notes, but it's |
| 149 | +worth calling out some of them because they're part of a larger effort the CLI |
| 150 | +team and associates are undertaking to modularize npm itself so other package |
| 151 | +managers and associated tools can reuse all that code! |
| 152 | + |
| 153 | +* [`9d22c96b7`](https://github.com/npm/npm/commit/9d22c96b7160729c8126a38dcf554611b9e3ba87) |
| 154 | + [#18500](https://github.com/npm/npm/pull/18500) |
| 155 | + Extract bin-links and gentle-fs to a separate library. This will allow |
| 156 | + external tools to do bin linking and certain fs operations in an |
| 157 | + npm-compatible way! |
| 158 | + ([@mikesherov](https://github.com/mikesherov)) |
| 159 | +* [`015a7803b`](https://github.com/npm/npm/commit/015a7803b7b63bc8543882196d987b92b461932d) |
| 160 | + [#18883](https://github.com/npm/npm/pull/18883) |
| 161 | + Capture logging from log events on the process global. This allows npm to use |
| 162 | + npmlog to report logging from external libraries like `npm-profile`. |
| 163 | + ([@iarna](https://github.com/iarna)) |
| 164 | +* [`c930e98ad`](https://github.com/npm/npm/commit/c930e98adc03cef357ae5716269a04d74744a852) |
| 165 | + `[email protected]`: Use our own `node-gyp`. This means npm no longer needs |
| 166 | + to pull some maneuvers to make sure `node-gyp` is in the right place, and that |
| 167 | + external packages using `npm-lifecycle` will get working native builds without |
| 168 | + having to do their own `node-gyp` maneuvers. |
| 169 | + ([@zkochan](https://github.com/zkochan)) |
| 170 | +* [`876f0c8f3`](https://github.com/npm/npm/commit/876f0c8f341f8915e338b409f4b8616bb5263500) [`829893d61`](https://github.com/npm/npm/commit/829893d617bf81bba0d1ce4ea303f76ea37a2b2d) |
| 171 | + [#19099](https://github.com/npm/npm/pull/19099) |
| 172 | + `[email protected]`: npm's prefix-finding logic is now a standalone |
| 173 | + module. That is, the logic that figures out where the root of your project is |
| 174 | + if you've `cd`'d into a subdirectory. Did you know you can run `npm install` |
| 175 | + from these subdirectories, and it'll only affect the root? It works like git! |
| 176 | + ([@iarna](https://github.com/iarna)) |
| 177 | + |
| 178 | +### Docs |
| 179 | + |
| 180 | +* [`7ae12b21c`](https://github.com/npm/npm/commit/7ae12b21cc841f76417d3bb13b74f177319d4deb) |
| 181 | + [#18823](https://github.com/npm/npm/pull/18823) |
| 182 | + Fix spelling of the word authenticator. Because English is hard. |
| 183 | + ([@tmcw](https://github.com/tmcw)) |
| 184 | +* [`5dfc3ab7b`](https://github.com/npm/npm/commit/5dfc3ab7bc2cb0fa7d9a8c00aa95fecdd14d7ae1) |
| 185 | + [#18742](https://github.com/npm/npm/pull/18742) |
| 186 | + Explicitly state 'github:foo/bar' as a valid shorthand for hosted git specs. |
| 187 | + ([@felicio](https://github.com/felicio)) |
| 188 | +* [`a9dc098a6`](https://github.com/npm/npm/commit/a9dc098a6eb7a87895f52a101ac0d41492da698e) |
| 189 | + [#18679](https://github.com/npm/npm/pull/18679) |
| 190 | + Add some documentation about the `script-shell` config. |
| 191 | + ([@gszabo](https://github.com/gszabo)) |
| 192 | +* [`24d7734d1`](https://github.com/npm/npm/commit/24d7734d1a1e906c83c53b6d1853af8dc758a998) |
| 193 | + [#18571](https://github.com/npm/npm/pull/18571) |
| 194 | + Change `verboten` to `forbidden`. |
| 195 | + ([@devmount](https://github.com/devmount)) |
| 196 | +* [`a8a45668f`](https://github.com/npm/npm/commit/a8a45668fb9b8eb84234fe89234bdcdf644ead58) |
| 197 | + [#18568](https://github.com/npm/npm/pull/18568) |
| 198 | + Improve wording for the docs for the "engines" section of package.json files. |
| 199 | + ([@apitman](https://github.com/apitman)) |
| 200 | +* [`dbc7e5b60`](https://github.com/npm/npm/commit/dbc7e5b602870330a8cdaf63bd303cd9050f792f) |
| 201 | + [#19118](https://github.com/npm/npm/pull/19118) |
| 202 | + Use valid JSON in example for bundledDependencies. |
| 203 | + ([@charmander](https://github.com/charmander)) |
| 204 | +* [`779339485`](https://github.com/npm/npm/commit/779339485bab5137d0fdc68d1ed6fa987aa8965a) |
| 205 | + [#19162](https://github.com/npm/npm/pull/19162) |
| 206 | + Remove trailing white space from `npm access` docs. |
| 207 | + ([@WispProxy](https://github.com/WispProxy)) |
| 208 | + |
| 209 | +### Dependency Bumps |
| 210 | + |
| 211 | +* [`0e7cac941`](https://github.com/npm/npm/commit/0e7cac9413ff1104cf242cc3006f42aa1c2ab63f) |
| 212 | + |
| 213 | + ([@petkaantonov](https://github.com/petkaantonov)) |
| 214 | +* [`c4d5887d9`](https://github.com/npm/npm/commit/c4d5887d978849ddbe2673630de657f141ae5bcf) |
| 215 | + |
| 216 | + ([@sindresorhus](https://github.com/sindresorhus)) |
| 217 | +* [`eb19a9691`](https://github.com/npm/npm/commit/eb19a9691cf76fbc9c5b66aa7aadb5d905af467a) |
| 218 | + |
| 219 | + ([@zkat](https://github.com/zkat)) |
| 220 | +* [`91d5dca96`](https://github.com/npm/npm/commit/91d5dca96772bc5c45511ddcbeeb2685c7ea68e8) |
| 221 | + |
| 222 | + ([@iarna](https://github.com/iarna)) |
| 223 | +* [`8de66c46e`](https://github.com/npm/npm/commit/8de66c46e57e4b449c9540c8ecafbc4fd58faff5) |
| 224 | + |
| 225 | + ([@zkat](https://github.com/zkat)) |
| 226 | +* [`cfbc3ea69`](https://github.com/npm/npm/commit/cfbc3ea69a8c62dc8e8543193c3ac472631dcef9) |
| 227 | + |
| 228 | + ([@rvagg](https://github.com/rvagg)) |
| 229 | +* [`60c228160`](https://github.com/npm/npm/commit/60c228160f22d41c2b36745166c9e8c2d84fee58) |
| 230 | + |
| 231 | + ([@sindresorhus](https://github.com/sindresorhus)) |
| 232 | +* [`72cad8c66`](https://github.com/npm/npm/commit/72cad8c664efd8eb1bec9a418bccd6c6ca9290de) |
| 233 | + |
| 234 | + ([@iarna](https://github.com/iarna)) |
| 235 | + |
1 | 236 | ## v5.5.1 (2017-10-04):
|
2 | 237 |
|
3 | 238 | A very quick, record time, patch release, of a bug fix to a (sigh) last minute bug fix.
|
|
0 commit comments