Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: libnpmpublish-v7.0.2
Choose a base ref
...
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: libnpmpublish-v7.0.3
Choose a head ref
  • 15 commits
  • 119 files changed
  • 3 contributors

Commits on Nov 3, 2022

  1. 1
    Copy the full SHA
    432e97e View commit details

Commits on Nov 7, 2022

  1. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    50d2ec2 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1bff064 View commit details

Commits on Nov 8, 2022

  1. deps: @npmcli/fs@3.1.0

    This also removes `readdir-scoped-modules` and `@npmcli/fs` since those
    are now a part of `@npmcli/fs`
    lukekarrys committed Nov 8, 2022
    Copy the full SHA
    878ddfb View commit details
  2. deps: cacache@17.0.2

    lukekarrys committed Nov 8, 2022
    Copy the full SHA
    335c7e4 View commit details
  3. Copy the full SHA
    a73a4c6 View commit details

Commits on Nov 9, 2022

  1. Copy the full SHA
    6a15d8a View commit details
  2. Copy the full SHA
    f36df46 View commit details
  3. Copy the full SHA
    6fffad7 View commit details
  4. Copy the full SHA
    1b29306 View commit details
  5. Partially verified

    This commit is signed with the committer’s verified signature. The key has expired.
    lukekarrys’s contribution has been verified via GPG key.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    a767aae View commit details
  6. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    lukekarrys Luke Karrys
    Copy the full SHA
    46b2728 View commit details
  7. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    lukekarrys Luke Karrys
    Copy the full SHA
    fd856d3 View commit details
  8. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    lukekarrys Luke Karrys
    Copy the full SHA
    139bce1 View commit details
  9. chore: release 9.1.1

    github-actions[bot] authored and lukekarrys committed Nov 9, 2022
    Copy the full SHA
    3794f03 View commit details
Showing with 3,944 additions and 4,238 deletions.
  1. +1 −0 .eslintrc.js
  2. +42 −0 .github/workflows/ci-npmcli-docs.yml
  3. +94 −0 .github/workflows/ci-npmcli-mock-registry.yml
  4. +4 −4 .github/workflows/{ci-smoke-tests.yml → ci-npmcli-smoke-tests.yml}
  5. +2 −0 .github/workflows/ci.yml
  6. +7 −1 .github/workflows/create-node-pr.yml
  7. +1 −0 .gitignore
  8. +7 −7 .release-please-manifest.json
  9. +17 −0 CHANGELOG.md
  10. +45 −30 DEPENDENCIES.md
  11. +12 −1 SECURITY.md
  12. +23 −4 docs/lib/build.js
  13. +10 −0 docs/lib/content/commands/npm-config.md
  14. +5 −3 docs/lib/index.js
  15. +13 −17 docs/lib/transform-html.js
  16. +15 −9 docs/package.json
  17. +5 −3 lib/utils/completion/installed-shallow.js
  18. +17 −0 mock-registry/.eslintrc.js
  19. +21 −0 mock-registry/.gitignore
  20. +28 −13 test/fixtures/mock-registry.js → mock-registry/lib/index.js
  21. +55 −0 mock-registry/package.json
  22. +8 −0 mock-registry/test/index.js
  23. +0 −5 node_modules/.gitignore
  24. +4 −0 node_modules/@npmcli/fs/lib/index.js
  25. +78 −0 node_modules/@npmcli/fs/lib/move-file.js
  26. +20 −0 node_modules/@npmcli/fs/lib/readdir-scoped.js
  27. +4 −4 node_modules/@npmcli/fs/package.json
  28. +0 −22 node_modules/@npmcli/move-file/LICENSE.md
  29. +0 −185 node_modules/@npmcli/move-file/lib/index.js
  30. +0 −48 node_modules/@npmcli/move-file/package.json
  31. +0 −70 node_modules/asap/CHANGES.md
  32. +0 −21 node_modules/asap/LICENSE.md
  33. +0 −65 node_modules/asap/asap.js
  34. +0 −66 node_modules/asap/browser-asap.js
  35. +0 −223 node_modules/asap/browser-raw.js
  36. +0 −58 node_modules/asap/package.json
  37. +0 −101 node_modules/asap/raw.js
  38. +1 −1 node_modules/cacache/lib/entry-index.js
  39. +1 −1 node_modules/cacache/lib/util/move-file.js
  40. +4 −5 node_modules/cacache/package.json
  41. +0 −19 node_modules/debuglog/LICENSE
  42. +0 −22 node_modules/debuglog/debuglog.js
  43. +0 −21 node_modules/debuglog/package.json
  44. +0 −15 node_modules/dezalgo/LICENSE
  45. +0 −22 node_modules/dezalgo/dezalgo.js
  46. +0 −46 node_modules/dezalgo/package.json
  47. +0 −15 node_modules/readdir-scoped-modules/LICENSE
  48. +0 −34 node_modules/readdir-scoped-modules/package.json
  49. +0 −121 node_modules/readdir-scoped-modules/readdir.js
  50. +2,132 −1,132 package-lock.json
  51. +19 −15 package.json
  52. +7 −0 scripts/bundle-and-gitignore-deps.js
  53. +218 −58 scripts/create-node-pr.js
  54. +29 −30 scripts/publish.js
  55. +0 −20 scripts/rebuild.js
  56. +1 −7 scripts/resetdeps.js
  57. +22 −0 scripts/template-oss/ci-npmcli-docs.yml
  58. +1 −1 scripts/template-oss/ci.yml
  59. +6 −2 scripts/template-oss/create-node-pr.yml
  60. +1 −0 scripts/update-authors.js
  61. +13 −8 scripts/util.js
  62. +10 −8 smoke-tests/package.json
  63. +224 −480 smoke-tests/tap-snapshots/test/index.js.test.cjs
  64. +0 −449 smoke-tests/test/fixtures/abbrev.json
  65. +0 −89 smoke-tests/test/fixtures/abbrev.min.json
  66. BIN smoke-tests/test/fixtures/abbrev/-/abbrev-1.0.4.tgz
  67. BIN smoke-tests/test/fixtures/abbrev/-/abbrev-1.1.1.tgz
  68. +0 −138 smoke-tests/test/fixtures/promise-all-reject-late.json
  69. +0 −44 smoke-tests/test/fixtures/promise-all-reject-late.min.json
  70. BIN smoke-tests/test/fixtures/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz
  71. +0 −49 smoke-tests/test/fixtures/server.js
  72. +219 −0 smoke-tests/test/fixtures/setup.js
  73. +285 −307 smoke-tests/test/index.js
  74. +36 −0 smoke-tests/test/workspace-ua.js
  75. +1 −1 test/lib/commands/access.js
  76. +1 −1 test/lib/commands/adduser.js
  77. +1 −1 test/lib/commands/audit.js
  78. +1 −1 test/lib/commands/cache.js
  79. +1 −1 test/lib/commands/ci.js
  80. +1 −1 test/lib/commands/dedupe.js
  81. +1 −1 test/lib/commands/deprecate.js
  82. +1 −1 test/lib/commands/exec.js
  83. +1 −1 test/lib/commands/find-dupes.js
  84. +1 −1 test/lib/commands/login.js
  85. +1 −1 test/lib/commands/owner.js
  86. +1 −1 test/lib/commands/ping.js
  87. +1 −1 test/lib/commands/publish.js
  88. +1 −1 test/lib/commands/search.js
  89. +1 −1 test/lib/commands/star.js
  90. +1 −1 test/lib/commands/unpublish.js
  91. +1 −1 test/lib/commands/unstar.js
  92. +1 −1 test/lib/commands/whoami.js
  93. +7 −0 workspaces/arborist/CHANGELOG.md
  94. +3 −3 workspaces/arborist/lib/arborist/build-ideal-tree.js
  95. +4 −5 workspaces/arborist/lib/arborist/load-actual.js
  96. +1 −1 workspaces/arborist/lib/arborist/reify.js
  97. +5 −6 workspaces/arborist/package.json
  98. +33 −21 workspaces/arborist/test/arborist/reify.js
  99. +2 −2 workspaces/config/package.json
  100. +2 −2 workspaces/libnpmaccess/package.json
  101. +6 −0 workspaces/libnpmdiff/CHANGELOG.md
  102. +4 −4 workspaces/libnpmdiff/package.json
  103. +10 −0 workspaces/libnpmexec/CHANGELOG.md
  104. +28 −14 workspaces/libnpmexec/lib/index.js
  105. +1 −1 workspaces/libnpmexec/lib/run-script.js
  106. +4 −4 workspaces/libnpmexec/package.json
  107. +7 −15 workspaces/libnpmexec/test/index.js
  108. +2 −1 workspaces/libnpmexec/test/run-script.js
  109. +6 −0 workspaces/libnpmfund/CHANGELOG.md
  110. +4 −4 workspaces/libnpmfund/package.json
  111. +2 −2 workspaces/libnpmhook/package.json
  112. +2 −2 workspaces/libnpmorg/package.json
  113. +6 −0 workspaces/libnpmpack/CHANGELOG.md
  114. +4 −4 workspaces/libnpmpack/package.json
  115. +6 −0 workspaces/libnpmpublish/CHANGELOG.md
  116. +4 −4 workspaces/libnpmpublish/package.json
  117. +2 −2 workspaces/libnpmsearch/package.json
  118. +2 −2 workspaces/libnpmteam/package.json
  119. +2 −2 workspaces/libnpmversion/package.json
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ module.exports = {
ignorePatterns: [
'docs/**',
'smoke-tests/**',
'mock-registry/**',
'workspaces/**',
],
extends: [
42 changes: 42 additions & 0 deletions .github/workflows/ci-npmcli-docs.yml
Original file line number Diff line number Diff line change
@@ -87,3 +87,45 @@ jobs:
- name: Check Git Status
if: matrix && matrix.platform.os != 'windows-latest'
run: node scripts/git-dirty.js

compare-docs:
name: Compare Docs
if: github.repository_owner == 'npm' && github.event_name == 'pull_request'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Build Docs
run: |
node . run build -w docs
mv man/ man-update/
mv docs/output/ docs/output-update/
mv docs/content/ docs/content-update/
- name: Get Current Docs
run: |
git clean -fd
git checkout ${{ github.event.pull_request.base.ref }}
node . run resetdeps
node . run build -w docs
- name: Diff Man
run: diff -r --color=always man/ man-update/ || true
- name: Diff HTML
run: diff -r --color=always docs/output/ docs/output-update/ || true
- name: Diff Markdown
run: diff -r --color=always docs/content/ docs/content-update/ || true
94 changes: 94 additions & 0 deletions .github/workflows/ci-npmcli-mock-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - @npmcli/mock-registry

on:
workflow_dispatch:
pull_request:
paths:
- mock-registry/**
push:
branches:
- main
- latest
paths:
- mock-registry/**
schedule:
# "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1
- cron: "0 9 * * 1"

jobs:
lint:
name: Lint
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Lint
run: node . run lint --ignore-scripts -w @npmcli/mock-registry
- name: Post Lint
run: node . run postlint --ignore-scripts -w @npmcli/mock-registry

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
- name: macOS
os: macos-latest
shell: bash
- name: Windows
os: windows-latest
shell: cmd
node-version:
- 14.17.0
- 14.x
- 16.13.0
- 16.x
- 18.0.0
- 18.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w @npmcli/mock-registry
- name: Check Git Status
if: matrix && matrix.platform.os != 'windows-latest'
run: node scripts/git-dirty.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - smoke-tests
name: CI - @npmcli/smoke-tests

on:
workflow_dispatch:
@@ -40,9 +40,9 @@ jobs:
- name: Reset Deps
run: node . run resetdeps
- name: Lint
run: node . run lint --ignore-scripts -w smoke-tests
run: node . run lint --ignore-scripts -w @npmcli/smoke-tests
- name: Post Lint
run: node . run postlint --ignore-scripts -w smoke-tests
run: node . run postlint --ignore-scripts -w @npmcli/smoke-tests

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,7 +88,7 @@ jobs:
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w smoke-tests
run: node . test --ignore-scripts -w @npmcli/smoke-tests
- name: Check Git Status
if: matrix && matrix.platform.os != 'windows-latest'
run: node scripts/git-dirty.js
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ on:
paths-ignore:
- docs/**
- smoke-tests/**
- mock-registry/**
- workspaces/**
push:
branches:
@@ -16,6 +17,7 @@ on:
paths-ignore:
- docs/**
- smoke-tests/**
- mock-registry/**
- workspaces/**
schedule:
# "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1
8 changes: 7 additions & 1 deletion .github/workflows/create-node-pr.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,10 @@ on:
description: "The npm spec to create the PR from"
required: true
default: 'latest'
branch:
description: "The major node version to serve as the base of the PR. Should be `main` or a number like `18`, `19`, etc."
required: true
default: 'main'
dryRun:
description: "Setting this to anything will run all the steps except opening the PR"

@@ -23,6 +27,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
@@ -46,4 +52,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.NODE_PULL_REQUEST_TOKEN }}
run: |
DRY_RUN=$([ -z "${{ inputs.dryRun }}" ] && echo "" || echo "--dry-run")
node scripts/create-node-pr.js "${{ inputs.spec }}" "$DRY_RUN"
node scripts/create-node-pr.js ${{ inputs.spec }} ${{ inputs.branch }} "$DRY_RUN"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@
!/test/
!/docs/
!/smoke-tests/
!/mock-registry/
!/workspaces/
/workspaces/*
!/workspaces/arborist/
14 changes: 7 additions & 7 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
".": "9.1.0",
"workspaces/arborist": "6.1.1",
".": "9.1.1",
"workspaces/arborist": "6.1.2",
"workspaces/libnpmaccess": "7.0.0",
"workspaces/libnpmdiff": "5.0.2",
"workspaces/libnpmexec": "5.0.2",
"workspaces/libnpmfund": "4.0.2",
"workspaces/libnpmdiff": "5.0.3",
"workspaces/libnpmexec": "5.0.3",
"workspaces/libnpmfund": "4.0.3",
"workspaces/libnpmhook": "9.0.0",
"workspaces/libnpmorg": "5.0.0",
"workspaces/libnpmpack": "5.0.2",
"workspaces/libnpmpublish": "7.0.2",
"workspaces/libnpmpack": "5.0.3",
"workspaces/libnpmpublish": "7.0.3",
"workspaces/libnpmsearch": "6.0.0",
"workspaces/libnpmteam": "5.0.0",
"workspaces/libnpmversion": "4.0.1",
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [9.1.1](https://github.com/npm/cli/compare/v9.1.0...v9.1.1) (2022-11-09)

### Documentation

* [`1bff064`](https://github.com/npm/cli/commit/1bff0640ccb8414e2d416a5cf9d64e9ff03c6403) [#5819](https://github.com/npm/cli/pull/5819) config: document `npm config fix` (#5819) (@wraithgar)

### Dependencies

* [`335c7e4`](https://github.com/npm/cli/commit/335c7e4348f5505fad33b8a78348a02a82b91426) [#5813](https://github.com/npm/cli/pull/5813) `cacache@17.0.2`
* [`878ddfb`](https://github.com/npm/cli/commit/878ddfb5b68c03bdcd7d7da8dae92c4947942801) `@npmcli/fs@3.1.0`
* [Workspace](https://github.com/npm/cli/compare/arborist-v6.1.1...arborist-v6.1.2): `@npmcli/arborist@6.1.2`
* [Workspace](https://github.com/npm/cli/compare/libnpmdiff-v5.0.2...libnpmdiff-v5.0.3): `libnpmdiff@5.0.3`
* [Workspace](https://github.com/npm/cli/compare/libnpmexec-v5.0.2...libnpmexec-v5.0.3): `libnpmexec@5.0.3`
* [Workspace](https://github.com/npm/cli/compare/libnpmfund-v4.0.2...libnpmfund-v4.0.3): `libnpmfund@4.0.3`
* [Workspace](https://github.com/npm/cli/compare/libnpmpack-v5.0.2...libnpmpack-v5.0.3): `libnpmpack@5.0.3`
* [Workspace](https://github.com/npm/cli/compare/libnpmpublish-v7.0.2...libnpmpublish-v7.0.3): `libnpmpublish@7.0.3`

## [9.1.0](https://github.com/npm/cli/compare/v9.0.1...v9.1.0) (2022-11-02)

### Features
Loading