PR-URL: https://github.com/nodejs/io.js/pull/1899 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Forrest L Norvell <forrest@npmjs.com>
184 KiB
v2.11.1 (2015-05-28):
This release brought to you from poolside at the Omni Amelia Island Resort and JSConf 2015, which is why it's so tiny.
CONFERENCE WIFI CAN'T STOP THESE BUG FIXES
cf109a6
#8381 Documented a subtle gotcha with.npmrc
, which is that it needs to have its permissions set such that only the owner can read or write the file. (@colakong)180da67
#8365 Git 2.3 adds support forGIT_SSH_COMMAND
, which allows you to pass an explicit git command (with, for example, a specific identity passed in on the command line). (@nmalaguti)
MY (VIRGIN) PINA COLADA IS GETTING LOW, BETTER UPGRADE THESE DEPENDENCIES
b72de41
node-gyp@2.0.0
: Use a newer version ofgyp
, and generally improve support for Visual Studios and Windows. (@TooTallNate)8edbe21
node-gyp@2.0.1
: Don't crash when Python's version doesn't parse as valid semver. (@TooTallNate)ba0e0a8
glob@5.0.10
: Add coverage to tests. (@isaacs)7333701
request@2.56.0
: Bug fixes and dependency upgrades. (@simov)
v2.11.0 (2015-05-21):
For the first time in a very long time, we've added new events to the life
cycle used by npm run-script
. Since running npm version (major|minor|patch)
is typically the last thing many developers do before publishing their updated
packages, it makes sense to add life cycle hooks to run tests or otherwise
preflight the package before doing a full publish. Thanks, as always, to the
indefatigable @watilde for yet another great
usability improvement for npm!
FEATURELETS
b07f7c7
#7906 Add newscripts
to allow you to run scripts before and after thenpm version
command has run. This makes it easy to, for instance, require that your test suite passes before bumping the version by just adding"preversion": "npm test"
to the scripts section of yourpackage.json
. (@watilde)8a46136
#8185 When we get a "not found" error from the registry, we'll now check to see if the package name you specified is invalid and if so, give you a better error message. (@thefourtheye)
BUG FIXES
9bcf573
#8324 On Windows, when you've configured a customnode-gyp
, run it with node itself instead of using the default open action (which is almost never what you want). (@bangbang93)1da9b04
#7195 #7260npm-registry-client@6.4.0
: (Re-)allow publication of existing mixed-case packages (part 1). (@smikes)e926783
#7195 #7260normalize-package-data@2.2.0
: (Re-)allow publication of existing mixed-case packages (part 2). (@smikes)
DOCUMENTATION IMPROVEMENTS
f62ee05
#8314 Update the README to warn folks away from using the CLI's internal API. For the love of glob, just use a child process to run the CLI! (@claycarpenter)1093921
#8279 Update the documentation to note that, yes, you can publish scoped packages to the public registry now! (@mantoni)f87cde5
#8292 Fix typo in an example and grammar in the description in the shrinkwrap documentation. (@vshih)d3526ce
Improve the formatting in the shrinkwrap documentation. (@othiym23)19fe6d2
#8311 Update README.md to use syntax highlighting in its code samples and bits of shell scripts. (@SimenB)
DEPENDENCY UPDATES! ALWAYS AND FOREVER!
fc52160
#4700 #5044init-package-json@1.6.0
: Make entering an invalid version while runningnpm init
give you an immediate error and prompt you to correct it. (@watilde)738853e
#7763fs-write-stream-atomic@1.0.3
: Fix a bug where errors would not propagate, making error messages unhelpful. (@iarna)6d74a2d
npm-package-arg@4.0.1
: Fix tests on windows (@Bacra) and with more recenthosted-git-info
. (@iarna)50f7178
hosted-git-info@2.1.4
: Correct spelling in its documentation. (@iarna)d7956ca
glob@5.0.7
: Fix a bug where unusual error conditions could make further use of the module fail. (@isaacs)44f7d74
tap@1.1.0
: Update to the most recent tap to get a whole host of bug fixes and integration with coveralls. (@isaacs)c21e8a8
nock@2.2.0
(@othiym23)
LICENSE FILES FOR THE LICENSE GOD
- Add missing ISC license file to package (@kasicka):
SPDX LICENSE UPDATES
- Switch license to BSD-2-Clause from plain "BSD" (@isaacs):
- Switch license to ISC from BSD (@isaacs):
- Switch license to ISC from MIT (@isaacs):
v2.10.1 (2015-05-14):
BUG FIXES & DOCUMENTATION TWEAKS
dc77520
When getting back a 404 from a request to a private registry that uses a registry path that extends past the root (http://registry.enterprise.co/path/to/registry
), display the name of the nonexistent package, rather than the first element in the registry API path. Sorry, Artifactory users! (@hayes)f70dea9
Make clearer that--registry
can be used on a per-publish basis to push a package to a non-default registry. (@mischkl)a3e26f5
Did you know that GitHub shortcuts can have commit-ishes included (org/repo#branch
)? They can! (@iarna)0e2c091
Some errors fromreadPackage
were being swallowed, potentially leading to invalid package trees on disk. (@smikes)
DEPENDENCY UPDATES! STILL! MORE! AGAIN!
0b901ad
lru-cache@2.6.3
: Removed some cruft from the published package. (@isaacs)d713e0b
mkdirp@0.5.1
: Made compliant withstandard
, dropped support for Node 0.6, added (Travis) support for Node 0.12 and io.js. (@isaacs)a2d6578
glob@1.0.3
: Updated to usetap@1
. (@isaacs)64cd1a5
fstream@ 1.0.6
: Made compliant withstandard
(done by @othiym23, and then debugged and fixed by @iarna), and license changed to ISC. (@othiym23 / @iarna)b527a7c
which@1.1.1
: Callers can pass in their ownPATH
instead of relying onprocess.env
. (@isaacs)
v2.10.0 (2015-05-8):
THE IMPLICATIONS ARE MORE PROFOUND THAN THEY APPEAR
If you've done much development in The Enterprise®™, you know that keeping track of software licenses is far more important than one might expect / hope / fear. Tracking licenses is a hassle, and while many (if not most) of us have (reluctantly) gotten around to setting a license to use by default with all our new projects (even if it's just WTFPL), that's about as far as most of us think about it. In big enterprise shops, ensuring that projects don't inadvertently use software with unacceptably encumbered licenses is serious business, and developers spend a surprising (and appalling) amount of time ensuring that licensing is covered by writing automated checkers and other license auditing tools.
The Linux Foundation has been working on a machine-parseable syntax for license
expressions in the form of SPDX, an appropriately
enterprisey acronym. IP attorney and JavaScript culture hero Kyle
Mitchell has put a considerable amount of effort into
bringing SPDX to JavaScript and Node. He's written
spdx.js
, a JavaScript SPDX
expression parser, and has integrated it into npm in a few different ways.
For you as a user of npm, this means:
- npm now has proper support for dual licensing in
package.json
, due to SPDX's compound expression syntax. Runnpm help package.json
for details. - npm will warn you if the
package.json
for your project is either missing a"license"
field, or if the value of that field isn't a valid SPDX expression (pro tip:"BSD"
becomes"BSD-2-Clause"
in SPDX (unless you really want one of its variants);"MIT"
and"ISC"
are fine as-is; the full list is its own package). npm init
now demands that you use a valid SPDX expression when using it interactively (pro tip: I mostly usenpm init -y
, having previously runnpm config set init.license=MIT
/npm config set init.author.email=foo
/npm config set init.author.name=me
).- The documentation for
package.json
has been updated to tell you how to use the"license"
field properly with SPDX.
In general, this shouldn't be a big deal for anybody other than people trying to run their own automated license validators, but in the long run, if everybody switches to this format, many people's lives will be made much simpler. I think this is an important improvement for npm and am very thankful to Kyle for taking the lead on this. Also, even if you think all of this is completely stupid, just choose a license anyway. Future you will thank past you someday, unless you are djb, in which case you are djb, and more power to you.
8669f7d
#8179 Document how to use SPDX inlicense
stanzas inpackage.json
, including how to migrate from old busted license declaration arrays to fancy new compound-license clauses. (@kemitchell)98ad98c
#8197init-package-json@1.5.0
Ensure that packages bootstrapped withnpm init
use an SPDX-compliant license expression. (@kemitchell)2ad3905
#8197normalize-package-data@2.1.0
: Warn when a package is missing a license declaration, or using a license expression that isn't valid SPDX. (@kemitchell)127bb73
#8197tar@2.1.1
: Switch fromBSD
toISC
for license, where the latter is valid SPDX. (@othiym23)e9a933a
#8197once@1.3.2
: Switch fromBSD
toISC
for license, where the latter is valid SPDX. (@othiym23)412401f
#8197semver@4.3.4
: Switch fromBSD
toISC
for license, where the latter is valid SPDX. (@othiym23)
As a corollary to the previous changes, I've put some work into making npm install
spew out fewer pointless warnings about missing values in transitive
dependencies. From now on, npm will only warn you about missing READMEs,
license fields, and the like for top-level projects (including packages you
directly install into your application, but we may relax that eventually).
Practically nobody liked having those warnings displayed for child dependencies, for the simple reason that there was very little that anybody could do about those warnings, unless they happened to be the maintainers of those dependencies themselves. Since many, many projects don't have SPDX-compliant licenses, the number of warnings reached a level where they ran the risk of turning into a block of visual noise that developers (read: me, and probably you) would ignore forever.
So I fixed it. If you still want to see the messages about child dependencies,
they're still there, but have been pushed down a logging level to info
. You
can display them by running npm install -d
or npm install --loglevel=info
.
eb18245
Only warn on normalization errors for top-level dependencies. Transitive dependency validation warnings are logged atinfo
level. (@othiym23)
BUG FIXES
e40e809
tap@1.0.1
: TAP: The Next Generation. Fix up many tests to they work properly with the new major version ofnode-tap
. Look at all the colors! (@isaacs)f9314e9
nock@1.9.0
: Minor tweaks and bug fixes. (@pgte)45c2b1a
#8187npm ls
wasn't properly recognizing dependencies installed from GitHub repositories as git dependencies, and so wasn't displaying them as such. (@zornme)1ab57c3
In some cases,npm help
was using something that looked like a regular expression where a glob pattern should be used, and vice versa. (@isaacs)
v2.9.1 (2015-04-30):
WOW! MORE GIT FIXES! YOU LOVE THOSE!
The first item below is actually a pretty big deal, as it fixes (with a
one-word change and a much, much longer test case (thanks again,
@iarna)) a regression that's been around for months
now. If you're depending on multiple branches of a single git dependency in a
single project, you probably want to check out npm@2.9.1
and verify that
things (again?) work correctly in your project.
178a6ad
#7202 When caching git dependencies, do so by the whole URL, including the branch name, so that if a single application depends on multiple branches from the same repository (in practice, multiple version tags), every install is of the correct version, instead of reusing whichever branch the caching process happened to check out first. (@iarna)63b79cc
#8084 Ensure that Bitbucket, GitHub, and Gitlab dependencies are installed the same way as non-hosted git dependencies, fixingnpm install --link
. (@laiso)
DOCUMENTATION FIXES AND TWEAKS
These changes may seem simple and small (except Lin's fix to the package name restrictions, which was more an egregious oversight on our part), but cleaner documentation makes npm significantly more pleasant to use. I really appreciate all the typo fixes, clarifications, and formatting tweaks people send us, and am delighted that we get so many of these pull requests. Thanks, everybody!
ca478dc
#8137 Somehow, we had failed to clearly document the full restrictions on package names. @linclark has now fixed that, although we will take with us to our graves the reasons why the maximum package name length is 214 characters (well, OK, it was that that was the longest name in the registry when we decided to put a cap on the name length). (@linclark)b574076
#8079 Make thenpm shrinkwrap
documentation use code formatting for examples consistently. It would be great to do this for more commands HINT HINT. (@RichardLitt)1ff636e
#8105 Document that the globalnpmrc
goes in$PREFIX/etc/npmrc
, instead of$PREFIX/npmrc
. (@anttti)c3f2f7c
#8127 Document how to usenpm run build
directly (hint: it's different fromnpm build
!). (@mikemaccana)873e467
#8069 Take the old, dead npm mailing list address out ofpackage.json
. It seems that people don't have much trouble figuring out how to report errors to npm. (@robertkowalski)
ENROBUSTIFICATIONMENT
5abfc9c
#7973npm run-script
completion will only suggest run scripts, instead of including dependencies. If for some reason you still wanted it to suggest dependencies, let us know. (@mantoni)4b564f0
#8081 Useosenv
to parse the environment'sPATH
in a platform-neutral way. (@watilde)a4b6238
#8094 When we refactored the configuration code to split out checking for IPv4 local addresses, we inadvertently completely broke it by failing to return the values. In addition, just the call toos.getInterfaces()
could throw on systems where querying the network configuration requires elevated privileges (e.g. Amazon Lambda). Add the return, and trap errors so they don't cause npm to explode. Thanks to @mhart for bringing this to our attention! (@othiym23)
DEPENDENCY UPDATES WAIT FOR NO SOPHONT
000cd8b
rimraf@2.3.3
: More informative assertions on argument validation failure. (@isaacs)530a2e3
lru-cache@2.6.2
: Revert to old key access-time behavior, as it was correct all along. (@isaacs)d88958c
minimatch@2.0.7
: Feature detection and test improvements. (@isaacs)3fa39e4
nock@1.7.1
(@pgte)
v2.9.0 (2015-04-23):
This week was kind of a breather to concentrate on fixing up the tests on the
multi-stage
branch, and not mess with git issues for a little while.
Unfortunately, There are now enough severe git issues that we'll probably have
to spend another couple weeks tackling them. In the meantime, enjoy these two
small features. They're just enough to qualify for a semver-minor bump:
NANOFEATURES
2799322
#7426 Include local modules innpm outdated
andnpm update
. (@ArnaudRinquin)2114862
#8014 The prefix used before the version on version tags is now configurable viatag-version-prefix
. Be careful with this one and read the docs before using it. (@kkragenbrink)
OTHER MINOR TWEAKS
18ce0ec
#3032npm unpublish
will now use the registry set inpackage.json
, just likenpm publish
. This only applies, for now, when unpublishing the entire package, as unpublishing a single version requires the name be included on the command line and therefore doesn't read frompackage.json
. (@watilde)9ad2100
#8008 Once again, when considering what to install onnpm install
, includedevDependencies
. (@smikes)5466260
#8003 Clarify the documentation around scopes to make it easier to understand how they support private packages. (@smikes)
DEPENDENCIES WILL NOT STOP UNTIL YOU ARE VERY SLEEPY
faf65a7
init-package-json@1.4.2
: If there are multiple validation errors and warnings, ensure they all get displayed (includes a rad new way of testinginit-package-json
contributed by @michaelnisi). (@MisumiRize)7f10f38
editor@1.0.0
:1.0.0
is literally more than0.1.0
(no change aside from version number). (@substack)4979af3
#6805npm-registry-client@6.3.3
: Decode scoped package names sent by the registry so they look nicer. (@mmalecki)
v2.8.4 (2015-04-16):
This is the fourth release of npm this week, so it's mostly just landing a few
small outstanding PRs on dependencies and some tiny documentation tweaks.
npm@2.8.3
is where the real action is.
ee2bd77
#7983tar@2.1.0
: Better error reporting in corrupted tar files, and add support for thefromBase
flag (rescued from the dustbin of history by @deanmarano). (@othiym23)d8eee6c
init-package-json@1.4.1
: Add support for a default author, and only add scope to a package name once. (@othiym23)4fc5d98
lru-cache@2.6.1
: Small tweaks to cache value aging and entry counting that are irrelevant to npm. (@isaacs)1fe5840
#7946 Makenpm init
text friendlier. (@sandfox)
v2.8.3 (2015-04-15):
TWO SMALL GIT TWEAKS
This is the last of a set of releases intended to ensure npm's git support is robust enough that we can stop working on it for a while. These fixes are small, but prevent a common crasher and clear up one of the more confusing error messages coming out of npm when working with repositories hosted on git.
387f889
#7961 Ensure that hosted git SSH URLs always have a valid protocol when stored inresolved
fields innpm-shrinkwrap.json
. (@othiym23)394c2f5
Switch the order in which hosted Git providers are checked togit:
,git+https:
, thengit+ssh:
(fromgit:
,git+ssh:
, thengit+https:
) in an effort to go from most to least likely to succeed, to make for less confusing error message. (@othiym23)
v2.8.2 (2015-04-14):
PEACE IN OUR TIME
npm has been having an issue with CouchDB's web server since the release
of io.js and Node.js 0.12.0 that has consumed a huge amount of my time
to little visible effect. Sam Mikes picked up the thread from me, and
after a lot of effort
figured out that ultimately there are probably a couple problems with
the new HTTP Agent keep-alive handling in new versions of Node. In
addition, npm-registry-client
was gratuitously sending a body along
with a GET request which was triggering the bugs. Sam removed about 10 bytes from
one file in npm-registry-client
, and this problem, which has been bugging us for months,
completely went away.
In conclusion, Sam Mikes is great, and anybody using a private registry hosted on CouchDB should thank him for his hard work. Also, thanks to the community at large for pitching in on this bug, which has been around for months now.
431c3bf
#7699npm-registry-client@6.3.2
: Don't send body with HTTP GET requests when logging in. (@smikes)
v2.8.1 (2015-04-12):
CORRECTION: NPM'S GIT INTEGRATION IS DOING OKAY
A helpful bug report
led to another round of changes to
hosted-git-info
,
some additional test-writing, and a bunch of hands-on testing against actual
private repositories. While the complexity of npm's git dependency handling is
nearly fractal (because npm is very complex, and git is even more complex),
it's feeling way more solid than it has for a while. We think this is a
substantial improvement over what we had before, so give npm@2.8.1
a shot if
you have particularly complex git use cases and
let us know how it goes.
(NOTE: These changes mostly affect cloning and saving references to packages hosted in git repositories, and don't address some known issues with things like lifecycle scripts not being run on npm dependencies. Work continues on other issues that affect parity between git and npm registry packages.)
66377c6
#7872hosted-git-info@2.1.2
: Pass through credentials embedded in SSH and HTTPs git URLs. (@othiym23)15efe12
#7872 Use the new version ofhosted-git-info
to pass along credentials embedded in git URLs. Test it. Test it a lot. (@othiym23)
SCOPED DEPENDENCIES AND PEER DEPENDENCIES: NOT QUITE REESE'S
Big thanks to @ewie for identifying an issue with
how npm was handling peerDependencies
that were implicitly installed from the
package.json
files of scoped dependencies. This
will be a moot point
with the release of npm@3
, but until then, it's important that
peerDependency
auto-installation work as expected.
b027319
#7920 Scoped packages withpeerDependencies
were installing thepeerDependencies
into the wrong directory. (@ewie)649e31a
#7920 TestpeerDependency
installs involving scoped packages usingnpm-package-arg
instead of simple path tests, for consistency. (@othiym23)
MAKING IT EASIER TO WRITE NPM TESTS, VERSION 0.0.1
@iarna and I
(@othiym23) have been discussing a
candidate plan
for improving npm's test suite, with the goal of making it easier for new
contributors to get involved with npm by reducing the learning curve
necessary to be able to write good tests for proposed changes. This is the
first substantial piece of that effort. Here's what the commit message for
ed7e249
had to say about this work:
It's too difficult for npm contributors to figure out what the conventional style is for tests. Part of the problem is that the documentation in CONTRIBUTING.md is inadequate, but another important factor is that the tests themselves are written in a variety of styles. One of the most notable examples of this is the fact that many tests use fixture directories to store precooked test scenarios and package.json files.
This had some negative consequences:
- tests weren't idempotent
- subtle dependencies between tests existed
- new tests get written in this deprecated style because it's not obvious that the style is out of favor
- it's hard to figure out why a lot of those directories existed, because they served a variety of purposes, so it was difficult to tell when it was safe to remove them
All in all, the fixture directories were a major source of technical debt, and cleaning them up, while time-consuming, makes the whole test suite much more approachable, and makes it more likely that new tests written by outside contributors will follow a conventional style. To support that, all of the tests touched by this changed were cleaned up to pass the
standard
style checker.
And here's a little extra context from a comment I left on #7929:
One of the other things that encouraged me was looking at this presentation on technical debt from Pycon 2015, especially slide 53, which I interpreted in terms of difficulty getting new contributors to submit patches to an OSS project like npm. npm has a long ways to go, but I feel good about this change.
ed7e249
#7929 Eliminate fixture directories fromtest/tap
, leaving each test self-contained. (@othiym23)4928d30
#7929 Move fixture files fromtest/tap/*
totest/fixtures
. (@othiym23)e925deb
#7929 Tweak the run scripts to stop slaughtering the CPU on doc rebuild. (@othiym23)65bf7cf
#7923 Use an alias of scripts and run-scripts innpm run test-all
(@watilde)756a3fb
#7923 Sync timeout time ofnpm run-script test-all
to be the same astest
andtap
scripts. (@watilde)8299b5f
Set a timeout for tap tests fornpm run-script test-all
. (@othiym23)
THE EVER-BEATING DRUM OF DEPENDENCY UPDATES
d90d0b9
#7924 Removechild-process-close
, as it was included for Node 0.6 compatibility, and npm no longer supports 0.6. (@robertkowalski)16427c1
lru-cache@2.5.2
: More accurate updating of expiry times whenmaxAge
is set. (@isaacs)03cce83
nock@1.6.0
: Mocked network error handling. (@pgte)f93b1f0
glob@5.0.5
: Usepath-is-absolute
polyfill, allowing newer Node.js and io.js versions to usepath.isAbsolute()
. (@sindresorhus)a70d694
request@2.55.0
: Bug fixes and simplification. (@simov)2aecc6f
columnify@1.5.1
: Switch to using babel from 6to5. (@timoxley)
v2.8.0 (2015-04-09):
WE WILL NEVER BE DONE FIXING NPM'S GIT SUPPORT
If you look at the last release's release
notes,
you will note that they confidently assert that it's perfectly OK to force all
GitHub URLs through the same git:
-> git+ssh:
fallback flow for cloning. It
turns out that many users depend on git+https:
URLs in their build
environments because they use GitHub auth tokens instead of SSH keys. Also, in
some cases you just want to be able to explicitly say how a given dependency
should be cloned from GitHub.
Because of the way we resolved the inconsistency in GitHub shorthand handling
before, this
turned out to be difficult to work around. So instead of hacking around it, we
completely redid how git is handled within npm and its attendant packages.
Again. This time, we changed things so that normalize-package-data
and
read-package-json
leave more of the git logic to npm itself, which makes
handling shorthand syntax consistently much easier, and also allows users to
resume using explicit, fully-qualified git URLs without npm messing with them.
Here's a summary of what's changed:
- Instead of converting the GitHub shorthand syntax to a
git+ssh:
,git:
, orgit+https:
URL and saving that, save the shorthand itself topackage.json
. - If presented with shortcuts, try cloning via the git protocol, SSH, and HTTPS (in that order).
- No longer prompt for credentials -- it didn't work right with the spinner,
and wasn't guaranteed to work anyway. We may experiment with doing this a
better way in the future. Users can override this by setting
GIT_ASKPASS
in their environment if they want to experiment with interactive cloning, but should also set--no-spin
on the npm command line (or runnpm config set spin=false
). - EXPERIMENTAL FEATURE: Add support for
github:
,gist:
,bitbucket:
, andgitlab:
shorthand prefixes. GitHub shortcuts will continue to be normalized toorg/repo
instead of being saved asgithub:org/repo
, butgitlab:
,gist:
, andbitbucket:
prefixes will be used on the command line and frompackage.json
. BE CAREFUL WITH THIS.package.json
files published with the new shorthand syntax can only be read bynpm@2.8.0
and later, and this feature is mostly meant for playing around with it. If you want to save git dependencies in a form that older versions of npm can read, use--save-exact
, which will save the git URL and resolved commit hash of the head of the branch in a manner similar to the way that--save-exact
pins versions for registry dependencies. This is documented (so checknpm help install
for details), but we're not going to make a lot of noise about it until it has a chance to bake in a little more.
It is @othiym23's sincere hope that this will resolve all of the inconsistencies users were seeing with GitHub and git-hosted packages, but given the level of change here, that may just be a fond wish. Extra testing of this change is requested.
6b0f588
#7867 Use git shorthand and git URLs as presented by user. Support newhosted-git-info
shortcut syntax. Save shorthand inpackage.json
. Try cloning viagit:
,git+ssh:
, andgit+https:
, in that order, when supported by the underlying hosting provider. (@othiym23)75d4267
#7867 Document new GitHub, GitHub gist, Bitbucket, and GitLab shorthand syntax. (@othiym23)7d92c75
#7867 When--save-exact
is used with git shorthand or URLs, save the fully-resolved URL, with branch name resolved to the exact hash for the commit checked out. (@othiym23)9220e59
#7867 Ensure that non-prefixed and non-normalized GitHub shortcuts are saved topackage.json
. (@othiym23)dd398e9
#7867hosted-git-info@2.1.1
: Ensure thatgist:
shorthand survives being round-tripped throughpackage.json
. (@othiym23)33d1420
#7867hosted-git-info@2.1.0
: Add support for auth embedded directly in git URLs. (@othiym23)23a1d5a
#7867hosted-git-info@2.0.2
: Make it possible to determine in which form a hosted git URL was passed. (@iarna)eaf75ac
#7867normalize-package-data@2.0.0
: Normalize GitHub specifiers so they pass through shortcut syntax and preserve explicit URLs. (@iarna)95e0535
#7867npm-package-arg@4.0.0
: Add git URL and shortcut to hosted git spec and usehosted-git-info@2.0.2
. (@iarna)a808926
#7867realize-package-specifier@3.0.0
: Usenpm-package-arg@4.0.0
and test shortcut specifier behavior. (@iarna)6dd1e03
#7867init-package-json@1.4.0
: Allow dependency onread-package-json@2.0.0
. (@iarna)63254bb
#7867read-installed@4.0.0
: Useread-package-json@2.0.0
. (@iarna)254b887
#7867read-package-json@2.0.0
: Usenormalize-package-data@2.0.0
. (@iarna)0b9f8be
#7867npm-registry-client@6.3.0
: Mark compatibility withnormalize-package-data@2.0.0
andnpm-package-arg@4.0.0
. (@iarna)f40ecaa
#7867 Extract a common method to use when cloning git repos for testing. (@othiym23)
TEST FIXES FOR NODE 0.8
npm continues to get closer to being completely green on Travis for Node 0.8.
26d36e9
#7842 When spawning child processes, map exit code 127 to ENOENT so Node 0.8 handles child process failures the same as later versions. (@SonicHedgehog)54cd895
#7842 Node 0.8 requires -e with -p when evaluating snippets; fix test. (@SonicHedgehog)
SMALL FIX AND DOC TWEAK
20e9003
tar@2.0.1
: Fix regression where relative symbolic links within an extraction root that pointed within an extraction root would get normalized to absolute symbolic links. (@isaacs)2ef8898
#7879 Better document thatnpm publish --tag=foo
will not setlatest
to that version. (@linclark)
v2.7.6 (2015-04-02):
GIT MEAN, GIT TUFF, GIT ALL THE WAY AWAY FROM MY STUFF
Part of the reason that we're reluctant to take patches to how npm deals with
git dependencies is that every time we touch the git support, something breaks.
The last few releases are a case in point. npm@2.7.4
completely broke
installing private modules from GitHub, and npm@2.7.5
fixed them at the cost
of logging a misleading error message that caused many people to believe that
their dependencies hadn't been successfully installed when they actually had
been.
This all started from a desire to ensure that GitHub shortcut syntax is being
handled correctly. The correct behavior is for npm to try to clone all
dependencies on GitHub (whether they're specified with the GitHub
organization/repository
shortcut syntax or not) via the plain git:
protocol
first, and to fall back to using git+ssh:
if git:
doesn't work. Previously,
sometimes npm would use git:
and git+ssh:
in some cases (most notably when
using GitHub shortcut syntax on the command line), and use git+https:
in
others (when the GitHub shortcut syntax was present in package.json
). This
led to subtle and hard-to-understand inconsistencies, and we're glad that as of
npm@2.7.6
, we've finally gotten things to where they were before we started,
only slightly more consistent overall.
We are now going to go back to our policy of being extremely reluctant to touch the code that handles Git dependencies.
b747593
#7630 Don't automatically log all git failures as errors.maybeGithub
needs to be able to fail without logging to support its fallback logic. (@othiym23)cd67a0d
#7829 When fetching a git remote URL, handle failures gracefully (without assuming standard output exists). (@othiym23)637c7d1
#7829 When fetching a git remote URL, handle failures gracefully (without assuming standard error exists). (@othiym23)