From baf34a0bc8a9e9aea8b13dd7e2acafd376f4b14f Mon Sep 17 00:00:00 2001 From: Nathaniel Waisbrot Date: Mon, 14 Dec 2015 06:44:35 -0500 Subject: [PATCH] reword NPM note --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e7d42a0..76c6996 100644 --- a/README.md +++ b/README.md @@ -165,10 +165,11 @@ $ npm install supertest-as-promised SuperTest as Promised lists [`supertest`][SuperTest] as a [peer dependency][peer-dependency], so it'll wrap whatever version of SuperTest -you've asked for in your own `package.json`. If you don't specify a version of -SuperTest, npm will use the latest. +you've asked for in your own `package.json`. -**Note**: `supertest` will no longer be automatically installed to fulfill the peerDependency in npm 3+. Your application will need to depend on it explicitly. +In earlier versions of NPM, failing to list SuperTest as a dependency would get +you the latest version. In NPM 3, failing to list SuperTest as a dependency will +generate a warning and SuperTest will not be installed. Do note that SuperTest as Promised is a well-behaved citizen and doesn't monkey-patch SuperTest directly: