Age | Commit message (Collapse) | Author |
|
PR-URL: https://github.com/npm/cli/pull/2587
Credit: @nlf
Close: #2587
Reviewed-by: @ruyadorno
|
|
PR-URL: https://github.com/npm/cli/pull/2361
Credit: @Edu93Jer
Close: #2361
Reviewed-by: @isaacs
EDIT(@isaacs): amended to match some of the fixes to our current style
conventions
|
|
We have a linter.
yolo
|
|
|
|
PR-URL: https://github.com/npm/cli/pull/1892
Credit: @isaacs
Close: #1892
Reviewed-by: @nlf
|
|
This commit fixes a problem in which npm outdated was breaking when
trying to read an invalid semver range spec defined for a given
installed dep by performing the `npm-package-arg` parsing within a
try/catch block instead of expecting to read properties from the
returned instance.
Also, adds the missing test for that specific line of code.
Fixes #1703
PR-URL: https://github.com/npm/cli/pull/1857
Credit: @ruyadorno
Close: #1857
Reviewed-by: @nlf
|
|
|
|
PR-URL: https://github.com/npm/cli/pull/1750
Credit: @claudiahdz
Close: #1750
Reviewed-by: @ruyadorno
|
|
|
|
PR-URL: https://github.com/npm/cli/pull/1543
Credit: @isaacs
Close: #1543
Reviewed-by: @ruyadorno
|
|
|
|
PR-URL: https://github.com/npm/cli/pull/1495
Credit: @isaacs
Close: #1495
Reviewed-by: @ruyadorno
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Restores ability to update packages using `--depth` as suggested by `npm audit`.
i.e `npm update eslint-utils --depth 2`.
PR-URL: https://github.com/npm/cli/pull/239
Credit: @G-Rath
Close: #239
Reviewed-by: @claudiahdz
|
|
PR-URL: https://github.com/npm/cli/pull/234
Credit: @claudiahdz
Close: #234
Reviewed-by: @isaacs
|
|
Close: https://github.com/npm/cli/pull/176
EDIT: Added test, do not set exitStatus to 1 if we're just printing an
empty list as JSON. -- @isaacs
|
|
Add a special case for 'remote' deps (tarballs). Before
b7b54f2d18e2d8d65ec67c850b21ae9f01c60e7e the package names were possibly
just looked up in the registry instead.
See https://npm.community/t/6187
Close: https://github.com/npm/cli/pull/180
|
|
PR-URL: https://github.com/npm/cli/pull/173
Fixes: https://npm.community/t/npm-outdated-throw-an-error-cannot-read-property-length-of-undefined/5929
Credit: @zkat
Reviewed-By: @aeschright
|
|
PR-URL: https://github.com/npm/cli/pull/3
Credit: @zkat
Reviewed-By: @aeschright
|
|
PR #11584 removed the possibility of updating local
packages (linked with symlinks) with `npm update`.
Reason was that this functionality didn't work in
v3.6.0. However, the system behind local dependencies
has since changed, and I can't reproduce the original
error anymore.
Reverts 59e5056a2129cb2951f4ff3b657ada20657f01a7
Fixes: https://npm.community/t/1725?u=larsgw
PR-URL: https://github.com/npm/cli/pull/73
Credit: @larsgw
Reviewed-By: @iarna
Reviewed-By: @zkat
|
|
PR-URL: https://github.com/npm/cli/pull/124
Credit: @anchnk
Reviewed-By: @aeschright
|
|
|
|
* feat(cli, outdated): Adds 'Homepage' to outdated --long output.
- `package.json`'s `homepage` property is displayed when using the `--long` option for `npm outdated`
* test: npm outdated --long
- Adds `homepage` to `--parseable` output.
- Updates `npm outdated --long` test to include `homepage` in expected output.
- Adds `homepage` to `npm-outdated` documentation.
* fix: javascript standard style updates
PR-URL: https://github.com/npm/cli/pull/81
Credit: @jbottigliero
Reviewed-By: @zkat
|
|
|
|
|
|
Use fetchPackageMetadata to get metadata for extracting version from
packages instead of cache.add (which in npm5 does not actually return
package metadata anymore)
PR-URL: https://github.com/npm/npm/pull/18385
Fixes: #16825
Credit: @joshclow
Reviewed-By: @iarna
|
|
Previously `isExtraneous` never flagged anything as extraneous w/o a
package.json. `isExtraneous` was simplified in the refactorings in npm@5
due to `npm install` creating synthetic dependency data. As `outdated`
didn't do that too it ended up ignoring all globals as extraneous.
PR-URL: https://github.com/npm/npm/pull/17654
Credit: @iarna
Reviewed-By: @zkat
|
|
PR-URL: https://github.com/npm/npm/pull/17652
Credit: @iarna
Reviewed-By: @zkat
|
|
PR-URL: https://github.com/npm/npm/pull/15900
Credit: @iarna
actions: Allow actions to return promises
extract: Eliminate extra callback
finalize: Rewrite finalize as promises
update-linked: Remove update-linked action
install: Remove obsolete invalid action filtering
fetch-package-metadata: Error on installing windows paths on non-windows systems
fetch-package-metadata: Read in modules installed inside of new links
finalize: Act on realpaths because we may be installing inside a link prior to the symlink being made
finalize: Create symlinks of directory deps
deps: Resolve ambiguity for file specifiers in the traditional way
deps: Set link and realpath properties for directory deps
inflate-bundled: Distinguish published bundles from lined modules
node: Add new fromLink attribute to track sourced-to-symlinks deps
diff-trees: Don't try to install deps that are already inside a link
fetch-package-metadata: Improve error messages for link failures
install: Run preinstall lifecycle after finalize
finalize: Start reading package.json files here
decompose-actions: Don't fetch or extract links
deps: Determine if a link matches spec based on where it points
deps: Compute correct save specifier for file spec
deps: Set the isInLink property on new children
deps: When finding the install location, don't walk up out of a symlink unless PRESERVE_SYMLINKS is on
diff-trees: Stop setting isInLink, this is now a first class property
diff-trees: Only exclude children of links from adding if they were already there behind the symlink
inflate-bundled: We are using isInLink now not fromLink
inflate-bundled: realpaths should be built on realpaths
node: Eliminate fromLink as a thing
node: Fill in values for inLink, isInLink & fromBundle
save: When updating a lock/shrinkwrap don't read the damn tree again
shrinkwrap: Fill in version per the new shrinkwrap spec
install: Make _inBundle purely a debugging artifact
inflate-shrinkwrap: Fix how bundle deps are inflated
save: Detect dependency type when saving
recalculateMetadata: Rewrite as simpler and synchronous
prune: Work off computed metadata
refreshPackageJson: Copy all of the in memory version over the on-disk version except empty items
install: Reduce normalize tree function to minimum
realize-package-specifier: Bring into closer alignment with spec
read-shrinkwrap: Use child.isTop not !child.parent
copy-tree: Don't crash of requires or requiredBy are missing
copy-tree: Initialize copied nodes
dedupe: use getRequested instead of child.package._requested
install: recompute the pkg relationships after finalize
Neccessary to align behavior with shrinkwraps where relationship information
isn't available until we read the module off disk.
install: Prune the tree after building it
install: Only save deps if we made changes
inflate-shrinkwrap: Better metadata while inflating
|
|
|
|
PR-URL: https://github.com/npm/npm/pull/15888
Credit: @iarna
Reviewed-By: @zkat
|
|
Credit: @watilde
Reviewed-By: @othiym23
Reviewed-By: @iarna
PR-URL: https://github.com/npm/npm/pull/14582
Fixes: #6756
|
|
PR-URL: https://github.com/npm/npm/pull/14013
Credit: @zkat
Reviewed-By: @iarna
|
|
PR-URL: https://github.com/npm/npm/pull/14013
Credit: @zkat
Reviewed-By: @iarna
|
|
This update is a breaking change feature. When outdated dependencies
exist in a project, the command displays a helpful error message
and then finish the action with `exit 1`. To ignore the error and
keep the previous behavior, it's possible via passing `--silent` option.
Fixes: #5999
PR-URL: https://github.com/npm/npm/pull/14013
Credit: @watilde
Reviewed-By: @zkat
Reviewed-By: @iarna
|
|
Fixes: #13115
Credit: @iarna
Reviewed-By: @othiym23
PR-URL: https://github.com/npm/npm/pull/13121
|
|
Previously they were colored dark gray, which was hard to read for some
users.
PR-URL: https://github.com/npm/npm/pull/12843
Credit: @tribou
|
|
This allows us to consistently make sure that the progress bar is hidden
before we try to write to stdout.
PR-URL: https://github.com/npm/npm/pull/13075
Credit: @iarna
|
|
We previously checked to see if a module was the root of the tree with
!node.parent. This explicitly sets a property (node.isTop), which in turn
makes code that uses much easier to grok.
Credit: @iarna
PR-URL: https://github.com/npm/npm/pull/12775
|
|
Fixes: #11362
PR-URL: https://github.com/npm/npm/pull/11584
Credit: @rhendric
Reviewed-By: @iarna
|
|
PR-URL: https://github.com/npm/npm/pull/11115
Credit: @halhenke
Reviewed-By: @othiym23
Fixes: #8752
|
|
PR-URL: https://github.com/npm/npm/pull/9954
|
|
Bring consistent guarding against null/undefined and consistent
business logic.
PR-URL: //github.com/npm/npm/pull/9890
Fixes: #9766
|