|
| 1 | +### v3.10.9 (2016-10-06) |
| 2 | + |
| 3 | +Hi everyone! This is the last of our monthly releases. We're going to give |
| 4 | +an every-two-weeks schedule a try starting with our next release. We'll |
| 5 | +reevaluate in a quarter, but we suspect that will be what we'll stick with. |
| 6 | +You might be wondering _why_ we've been fiddling with the release cadence? Well, |
| 7 | +we've been trying to tune it to to minimize the overhead for our little team. |
| 8 | + |
| 9 | +This is ALSO the ULTIMATE release of `npm` version 3. That's right, in |
| 10 | +just two weeks' time (October 20th for you fans of calendar time), our dear |
| 11 | +`npm` will be hitting the big 4.0. |
| 12 | + |
| 13 | +**DON'T PANIC** |
| 14 | + |
| 15 | +This is gonna be a much, MUCH smaller major version than 3.x was. Maybe even |
| 16 | +smaller than 2.x was. I can't tell you everything that'll be in there just |
| 17 | +yet, but at the very least it's going to have what's in our |
| 18 | +[4.x milestone](https://github.com/npm/npm/pulls?q=is%3Aopen+is%3Apr+milestone%3A4.x), |
| 19 | +PLUS, the first steps in |
| 20 | +[making `prepublish` work](https://github.com/npm/npm/issues/10074) the way |
| 21 | +people expect it to. |
| 22 | + |
| 23 | +**NOW ABOUT THIS RELEASE** |
| 24 | + |
| 25 | +This release sees a whole slew of bug fixes. Notably a bunch of lifecycle |
| 26 | +fixes and a really important shrinkwrap fix. |
| 27 | + |
| 28 | +#### LIFECYCLE FIXES |
| 29 | + |
| 30 | +* [`d388f90`](https://github.com/npm/npm/commit/d388f90732981633b3cdb4fc7fb0fababd4e64ab) |
| 31 | + [#13942](https://github.com/npm/npm/pull/13942) |
| 32 | + Fix current working directory while running shrinkwrap lifecycle scripts. |
| 33 | + Previously if you ran a shrinkwrap from another lifecycle script AND |
| 34 | + `node_modules` existed (and if you're running `npm shrinkwrap` it probably |
| 35 | + should) then `npm` would run the shrinkwrap lifecycle from the |
| 36 | + `node_modules` folder instead of the package folder. |
| 37 | + ([@evocateur](https://github.com/evocateur)) |
| 38 | + ([@iarna](https://github.com/iarna)) |
| 39 | +* [`c3b6cdf`](https://github.com/npm/npm/commit/c3b6cdfedcdb4d9e7712be5245d9b274828d88d1) |
| 40 | + [#13964](https://github.com/npm/npm/pull/13964) |
| 41 | + Fix bug where the `uninstall` lifecycles weren't being run when you |
| 42 | + reinstalled/updated an existing module. |
| 43 | + ([@iarna](https://github.com/iarna)) |
| 44 | +* [`72bb89c`](https://github.com/npm/npm/commit/72bb89c1aa9811a18cbd766f3da73da76eb920c6) |
| 45 | + [#13344](https://github.com/npm/npm/pull/13344) |
| 46 | + When running lifecycles use `TMPDIR` if it's writable and fall back to the |
| 47 | + current working directory if not. Previously we just assumed `TMPDIR` |
| 48 | + wouldn't be writable (as we might have been running as `nobody` and |
| 49 | + `nobody` on some systems can't write to `TMPDIR`). |
| 50 | + ([@aaronjensen](https://github.com/aaronjensen)) |
| 51 | + |
| 52 | +#### SHRINKWRAP GIT & TAGGED DEPENDENCY FIX |
| 53 | + |
| 54 | +* [`3b5eee0`](https://github.com/npm/npm/commit/3b5eee0d31737d1c2518ed95dcc7aaaaa93c253c) |
| 55 | + [#13941](https://github.com/npm/npm/pull/13941) |
| 56 | + Fix git and tagged dependency matching with shrinkwraps. Previously git |
| 57 | + and tag (ie `foo@latest`) dependencies installed from a shrinkwrap would |
| 58 | + always be flagged as invalid. |
| 59 | + ([@iarna](https://github.com/iarna)) |
| 60 | + |
| 61 | +#### BUG FIXES |
| 62 | + |
| 63 | +* [`bf3bd1e`](https://github.com/npm/npm/commit/bf3bd1e4347ee2c5de08d23558c4444749178c8b) |
| 64 | + [#14143](https://github.com/npm/npm/pull/14143) |
| 65 | + Fix bug in `npm version` where `npm-shrinkwrap.json` wouldn't be updated |
| 66 | + if you ran `npm version` from outside of your project root. |
| 67 | + ([@lholmquist](https://github.com/lholmquist)) |
| 68 | +* [`1089878`](https://github.com/npm/npm/commit/1089878f58977559414c8a9addfc69a9c68905b0) |
| 69 | + [#13613](https://github.com/npm/npm/pull/13613) |
| 70 | + Log 'skipping action' as 'verbose' instead of 'warn'. This removes a lot of |
| 71 | + clutter when there are links in your `node_modules`. The long term plan is |
| 72 | + to entirely blind `npm` to what's inside links, which will make this code |
| 73 | + go away entirely. |
| 74 | + ([@timoxley](https://github.com/timoxley)) |
| 75 | +* [`952f1e1`](https://github.com/npm/npm/commit/952f1e109a070ab4066179f6104ba9394300e342) |
| 76 | + [#13999](https://github.com/npm/npm/pull/13999) |
| 77 | + Fix a bug where setting `bin` to `null` in your `package.json` would result |
| 78 | + in `npm` crashing. |
| 79 | + ([@IonicaBizau](https://github.com/IonicaBizau)) |
| 80 | +* [`fcf8b11`](https://github.com/npm/npm/commit/fcf8b11fb7fcf8902f6a887c3d5f0aef2897dde0) |
| 81 | + [#14032](https://github.com/npm/npm/pull/14032) |
| 82 | + When using `npm view`, if you specified a version that didn't exist it |
| 83 | + would previously print `undefined` (even if you asked for JSON output). It |
| 84 | + now prints nothing in this situation. This brings `npm@3`'s behavior in |
| 85 | + line with `npm@2`. |
| 86 | + ([@roblg](https://github.com/roblg)) |
| 87 | +* [`93c689f`](https://github.com/npm/npm/commit/93c689ff44c6042a2dcde7fe0d74d2264237d666) |
| 88 | + [#14032](https://github.com/npm/npm/pull/14032) |
| 89 | + When using `npm view --json` with a version range that matches multiple |
| 90 | + versions we now return a list of all of the metadata for all of those |
| 91 | + versions. Previously we picked one and only returned that. This brings |
| 92 | + `npm@3`'s behavior in line with `npm@2`. |
| 93 | + ([@roblg](https://github.com/roblg)) |
| 94 | +* [`2411728`](https://github.com/npm/npm/commit/24117289e09c373b845150c45e4793d98fe7cf4b) |
| 95 | + [#14045](https://github.com/npm/npm/pull/14045) |
| 96 | + Fix a Windows-only bug in the `git` tests. The tests had rather particular |
| 97 | + ideas about what arguments would be passed to `git` and on Windows they |
| 98 | + got this wrong. |
| 99 | + ([@watilde](https://github.com/watilde)) |
| 100 | + |
| 101 | +#### DOCUMENTATION & MISC |
| 102 | + |
| 103 | +* [`30772cc`](https://github.com/npm/npm/commit/30772cc5f80923bf21c003fbe53e5fed9d3a5d97) |
| 104 | + [#13904](https://github.com/npm/npm/pull/13904) |
| 105 | + Update `package.json` example to include GitHub branches. |
| 106 | + ([@stevokk](https://github.com/stevokk)) |
| 107 | +* [`f66876f`](https://github.com/npm/npm/commit/f66876f75c204fb78028cf2ff7979f80355bd06c) |
| 108 | + [#14010](https://github.com/npm/npm/pull/14010) |
| 109 | + Update the GitHub issue template to reflect Apple's change in name of its |
| 110 | + desktop operating system. |
| 111 | + ([@AlexChesters](https://github.com/AlexChesters)) |
| 112 | + |
| 113 | +#### DEPENDENCY UPDATES |
| 114 | + |
| 115 | +* [`b3f9bf1`](https://github.com/npm/npm/commit/b3f9bf1ada3f93e6775f5c232350030db6635d0c) |
| 116 | + [#13918](https://github.com/npm/npm/issues/13918) |
| 117 | + `graceful-fs@4.1.9`: |
| 118 | + Fix the _uid must be an unsigned int_ bug that's been around forever but that |
| 119 | + `npm` started tickling in v3.10.8. |
| 120 | + ([@addaleax](https://github.com/addaleax)) |
| 121 | + Also fixes wrapper to `fs.readdir` to actually pass through (rather than |
| 122 | + drop) optional arguments. |
| 123 | + ([@isaacs](https://github.com/isaacs)) |
| 124 | +* [`9402ead`](https://github.com/npm/npm/commit/9402ead67e3be9b431ade637fbfac86204ee96fe) |
| 125 | + [isaacs/node-glob#293](https://github.com/isaacs/node-glob/pull/293) |
| 126 | + `glob@7.1.0`: |
| 127 | + Add `absolute` option for `match` event. |
| 128 | + ([@phated](https://github.com/phated)) |
| 129 | +* [`58b83db`](https://github.com/npm/npm/commit/58b83db327dd87bf7cb5a7d503303537718f2f30) |
| 130 | + `asap@2.0.5` |
| 131 | + ([@kriskowal](https://github.com/kriskowal)) |
| 132 | +* [`5707e6e`](https://github.com/npm/npm/commit/5707e6e55b220439c3f83e77daf4c70d72eb46f0) |
| 133 | + `sorted-object@2.0.1` |
| 134 | + ([@domenic](https://github.com/domenic)) |
| 135 | +* [`9d20910`](https://github.com/npm/npm/commit/9d209107ce49a7424c50459284280cd2e6e215d1) |
| 136 | + `request@2.75.0` |
| 137 | + ([@simov](https://github.com/simov)) |
| 138 | +* [`dea4848`](https://github.com/npm/npm/commit/dea48487a9d03492edc68670d05776d32d9ee8cf) |
| 139 | + `path-is-inside@1.0.2` |
| 140 | + ([@domenic](https://github.com/domenic)) |
| 141 | +* [`b3f3db5`](https://github.com/npm/npm/commit/b3f3db52e864d607b6d9b18920e2f58acc4b1616) |
| 142 | + `opener@1.4.2` |
| 143 | + ([@dominic](https://github.com/dominic)) |
| 144 | +* [`6bb5f95`](https://github.com/npm/npm/commit/6bb5f953888bbaaeeb624d623c2a9746d1c243a0) |
| 145 | + `lockfile@1.0.2` |
| 146 | + ([@isaacs](https://github.com/isaacs)) |
| 147 | +* [`13f7c0a`](https://github.com/npm/npm/commit/13f7c0a73212284b53a2d96882fc298afbf9609c) |
| 148 | + `config-chain@1.1.11` |
| 149 | + ([@dominictarr](https://github.com/dominictarr)) |
| 150 | + |
1 | 151 | ### v3.10.8 (2016-09-08)
|
2 | 152 |
|
3 | 153 | Monthly releases are so big! Just look at all this stuff!
|
|
0 commit comments