Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-18feat(help): refactor npm help/help-searchGar
Lots of dead code removed thanks to streamlining of logic. `npm help` `npm <command>` and `npm help-search` are all now separated concerns, handling their own use cases. `help` calls `help-search` as a last resort, but `npm <command>` no longer tries to wind its way through to `help-search` just to get the basic npm usage displayed. The `did you mean` output has been expanded. It now always suggests top level commands, scripts, and bins, and suggests them in the way they should be called. PR-URL: https://github.com/npm/cli/pull/2859 Credit: @wraithgar Close: #2859 Reviewed-by: @ruyadorno
2021-03-18chore(config): remove flatOptions referencesGar
Iterative change moving us towards a more unified config. No longer pulling config from flatOptions where we don't have to. PR-URL: https://github.com/npm/cli/pull/2892 Credit: @wraithgar Close: #2892 Reviewed-by: @ruyadorno
2021-03-09fix(usage): clean up usage declarationsGar
Small refactor of commands to allow usage to be more programmatically generated, leading us in the direction of more tighly coupling each command to the params it accepts. PR-URL: https://github.com/npm/cli/pull/2821 Credit: @wraithgar Close: #2821 Reviewed-by: @isaacs
2021-03-09fix(npm.output): make output go through npm.outputGar
All output that anything wants to make now goes through `npm.output()`. This is an incremental change getting us closer to where we want to be with testing. PR-URL: https://github.com/npm/cli/pull/2795 Credit: @wraithgar Close: #2795 Reviewed-by: @ruyadorno, @isaacs
2021-03-05fix(npm) pass npm context everywhereGar
Instead of files randomly requiring the npm singleton, we pass it where it needs to go so that tests don't need to do so much require mocking everywhere PR-URL: https://github.com/npm/cli/pull/2772 Credit: @wraithgar Close: #2772 Reviewed-by: @ruyadorno
2021-02-25chore(refactor): promisify completion scriptsGar
We also removed the "none" script because we handle a missing script just fine. There is no need to put an empty one in PR-URL: https://github.com/npm/cli/pull/2759 Credit: @wraithgar Close: #2759 Reviewed-by: @nlf
2021-02-01pass all settings through to pacote.packument, fixes #2060nlf/fix-proxy-outdatednlf
PR-URL: https://github.com/npm/cli/pull/2587 Credit: @nlf Close: #2587 Reviewed-by: @ruyadorno
2020-12-18Add max-len to lint rulesEdu93Jer
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
2020-12-11Remove 'use strict'isaacs
We have a linter. yolo
2020-10-23update lint rules to match @npmcli/arboristisaacs
2020-10-02Support --omit options in npm outdatedisaacs
PR-URL: https://github.com/npm/cli/pull/1892 Credit: @isaacs Close: #1892 Reviewed-by: @nlf
2020-09-29fix: npm outdated parsing invalid specsRuy Adorno
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
2020-09-16test: line missing coverageRuy Adorno
2020-09-16test: add outdated testsclaudiahdz
PR-URL: https://github.com/npm/cli/pull/1750 Credit: @claudiahdz Close: #1750 Reviewed-by: @ruyadorno
2020-09-04outdated: don't throw on non-version/tag/range depisaacs
2020-07-30fix lintfix script, use flat ternariesisaacs
PR-URL: https://github.com/npm/cli/pull/1543 Credit: @isaacs Close: #1543 Reviewed-by: @ruyadorno
2020-07-29lint the lib folderisaacs
2020-07-08remove trailing whitespaceisaacs
PR-URL: https://github.com/npm/cli/pull/1495 Credit: @isaacs Close: #1495 Reviewed-by: @ruyadorno
2020-07-08add completion module for 'no completion possible'isaacs
2020-07-08fix completion call signature in several commandsisaacs
2020-06-06chore: refactor npm outdated exportclaudiahdz
2020-06-06feat: use node.edges for outdated infoclaudiahdz
2020-06-06feat: add --all flag on npm outdatedclaudiahdz
2020-06-06feat: npm outdated with arboristclaudiahdz
2020-05-08chore: remove figgy-pudding from cliclaudiahdz
2020-05-08chore: update/removed usages of libnpmMichael Perrotte
2019-08-31Don't override user specified depth in outdatedGareth Jones
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
2019-08-20feat: add new forbidden 403 error codeclaudiahdz
PR-URL: https://github.com/npm/cli/pull/234 Credit: @claudiahdz Close: #234 Reviewed-by: @isaacs
2019-06-30fix: Always return JSON for outdated --jsonSreeram Jayan
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
2019-06-30outdated: fix special 'remote' depsLars Willighagen
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
2019-03-19outdated: fix rendering for global dependencies (#173)Kat Marchán
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
2019-02-19install: add support for package aliases (#3)Kat Marchán
PR-URL: https://github.com/npm/cli/pull/3 Credit: @zkat Reviewed-By: @aeschright
2019-02-19update: re-enable updating local packagesLars Willighagen
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
2019-01-09cli,outdated: default homepage to an empty string (#124)ƇʘƁ̆ąƇ́
PR-URL: https://github.com/npm/cli/pull/124 Credit: @anchnk Reviewed-By: @aeschright
2018-12-11outdated: stop using npm-registry-clientKat Marchán
2018-11-26cli,outdated: Adds 'Homepage' to outdated --long output. (#81)Joe Bottigliero
* 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
2018-03-23standardizeRebecca Turner
2018-03-23outdated: Make wanted respect latest interaction w/ semverRebecca Turner
2017-09-14outdated: Use fetch-package-metadata, not cache.addJosh Clow
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
2017-07-11outdated: Show results for globals againRebecca Turner
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
2017-07-11install: fix max callstack exceeded loops with linksRebecca Turner
PR-URL: https://github.com/npm/npm/pull/17652 Credit: @iarna Reviewed-By: @zkat
2017-05-26filespecs: Implement new file: specifier behaviorRebecca Turner
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
2017-04-28*: Patch to support npm-package-arg@5Rebecca Turner
2017-03-10outdated: Add variable guardRebecca Turner
PR-URL: https://github.com/npm/npm/pull/15888 Credit: @iarna Reviewed-By: @zkat
2016-12-15util: put ansiTrim into util from outdatedDaijiro Wachi
Credit: @watilde Reviewed-By: @othiym23 Reviewed-By: @iarna PR-URL: https://github.com/npm/npm/pull/14582 Fixes: #6756
2016-10-21outdated: use simple non-zero exit codeKat Marchán
PR-URL: https://github.com/npm/npm/pull/14013 Credit: @zkat Reviewed-By: @iarna
2016-10-21outdated: drop the error messageKat Marchán
PR-URL: https://github.com/npm/npm/pull/14013 Credit: @zkat Reviewed-By: @iarna
2016-10-21outdated: exitcode != 0 on outdated dependenciesDaijiro Wachi
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
2016-06-21outdated: Ensure errors reading the package tree do not crashRebecca Turner
Fixes: #13115 Credit: @iarna Reviewed-By: @othiym23 PR-URL: https://github.com/npm/npm/pull/13121
2016-06-17outdated: Stop colorizing the Location and Package Type columns.Aaron Tribou
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