Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: never use cached npm ping request #7789

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

milaninfy
Copy link
Contributor

@milaninfy milaninfy commented Sep 23, 2024

Ping: Don't use cache so ping does not report ping sucess incorrectly if it's offline or no internet
Doctor: Don't use cache for pinging the registry.

Fixes: #5870, #3576, #4112

Testing of ping and doctor
# -- current npm last ping resuts in cached request replying PONG

~/workarea/npm-cli $ npm ping --registry=http://localhost:4873 -ddd
npm verbose cli /Users/milaninfy/.nvm/versions/node/v22.9.0/bin/node /Users/milaninfy/.nvm/versions/node/v22.9.0/bin/npm
npm info using [email protected]
npm info using [email protected]
npm silly config load:file:/Users/milaninfy/.nvm/versions/node/v22.9.0/lib/node_modules/npm/npmrc
npm silly config load:file:/Users/milaninfy/workarea/npm-cli/.npmrc
npm silly config load:file:/Users/milaninfy/.npmrc
npm silly config load:file:/Users/milaninfy/.nvm/versions/node/v22.9.0/etc/npmrc
npm verbose title npm ping
npm verbose argv "ping" "--registry" "http://localhost:4873" "--loglevel" "silly"
npm verbose logfile logs-max:10 dir:/Users/milaninfy/.npm/_logs/2024-09-26T20_37_04_583Z-
npm verbose logfile /Users/milaninfy/.npm/_logs/2024-09-26T20_37_04_583Z-debug-0.log
npm notice PING http://localhost:4873/
npm silly logfile start cleaning logs, removing 1 files
npm silly logfile done cleaning log files
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 1 failed with ECONNREFUSED
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 2 failed with ECONNREFUSED
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 3 failed with ECONNREFUSED
npm http fetch GET 200 http://localhost:4873/-/ping?write=true 70045ms (cache stale)
npm notice PONG 70046ms
npm verbose cwd /Users/milaninfy/workarea/npm-cli
npm verbose os Darwin 23.6.0
npm verbose node v22.9.0
npm verbose npm  v10.8.3
npm verbose exit 0
npm info ok


# -- After the change npm last ping resuts in failure after retries

~/workarea/npm-cli $ lnpm ping --registry=http://localhost:4873 -ddd
npm verbose cli /Users/milaninfy/.nvm/versions/node/v22.9.0/bin/node /Users/milaninfy/workarea/npm-cli/index.js
npm info using [email protected]
npm info using [email protected]
npm silly config load:file:/Users/milaninfy/workarea/npm-cli/npmrc
npm silly config load:file:/Users/milaninfy/workarea/npm-cli/.npmrc
npm silly config load:file:/Users/milaninfy/.npmrc
npm silly config load:file:/Users/milaninfy/.nvm/versions/node/v22.9.0/etc/npmrc
npm verbose title npm ping
npm verbose argv "ping" "--registry" "http://localhost:4873" "--loglevel" "silly"
npm verbose logfile logs-max:10 dir:/Users/milaninfy/.npm/_logs/2024-09-26T20_38_51_059Z-
npm verbose logfile /Users/milaninfy/.npm/_logs/2024-09-26T20_38_51_059Z-debug-0.log
npm notice PING http://localhost:4873/
npm silly logfile start cleaning logs, removing 1 files
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 1 failed with ECONNREFUSED
npm silly logfile done cleaning log files
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 2 failed with ECONNREFUSED
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 3 failed with ECONNREFUSED
npm verbose type system
npm verbose stack FetchError: request to http://localhost:4873/-/ping?write=true failed, reason: 
npm verbose stack     at ClientRequest.<anonymous> (/Users/milaninfy/workarea/npm-cli/node_modules/minipass-fetch/lib/index.js:130:14)
npm verbose stack     at ClientRequest.emit (node:events:519:28)
npm verbose stack     at emitErrorEvent (node:_http_client:103:11)
npm verbose stack     at _destroy (node:_http_client:886:9)
npm verbose stack     at onSocketNT (node:_http_client:906:5)
npm verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
npm error code ECONNREFUSED
npm error errno ECONNREFUSED
npm error FetchError: request to http://localhost:4873/-/ping?write=true failed, reason: 
npm error     at ClientRequest.<anonymous> (/Users/milaninfy/workarea/npm-cli/node_modules/minipass-fetch/lib/index.js:130:14)
npm error     at ClientRequest.emit (node:events:519:28)
npm error     at emitErrorEvent (node:_http_client:103:11)
npm error     at _destroy (node:_http_client:886:9)
npm error     at onSocketNT (node:_http_client:906:5)
npm error     at process.processTicksAndRejections (node:internal/process/task_queues:91:21) {
npm error   code: 'ECONNREFUSED',
npm error   errno: 'ECONNREFUSED',
npm error   type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly.  See: 'npm help config'
npm verbose cwd /Users/milaninfy/workarea/npm-cli
npm verbose os Darwin 23.6.0
npm verbose node v22.9.0
npm verbose npm  v10.8.3
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /Users/milaninfy/.npm/_logs/2024-09-26T20_38_51_059Z-debug-0.log





# -- npm doctor ping resuts in success due to cache hit


~/workarea/npm-cli $ npm doctor --registry=http://localhost:4873 -ddd
npm verbose cli /Users/milaninfy/.nvm/versions/node/v22.9.0/bin/node /Users/milaninfy/.nvm/versions/node/v22.9.0/bin/npm
npm info using [email protected]
npm info using [email protected]
npm silly config load:file:/Users/milaninfy/.nvm/versions/node/v22.9.0/lib/node_modules/npm/npmrc
npm silly config load:file:/Users/milaninfy/workarea/npm-cli/.npmrc
npm silly config load:file:/Users/milaninfy/.npmrc
npm silly config load:file:/Users/milaninfy/.nvm/versions/node/v22.9.0/etc/npmrc
npm verbose title npm doctor
npm verbose argv "doctor" "--registry" "http://localhost:4873" "--loglevel" "silly"
npm verbose logfile logs-max:10 dir:/Users/milaninfy/.npm/_logs/2024-09-26T20_40_30_672Z-
npm verbose logfile /Users/milaninfy/.npm/_logs/2024-09-26T20_40_30_672Z-debug-0.log
npm info doctor Running checkup
Connecting to the registry
npm info doctor Pinging registry
npm silly logfile start cleaning logs, removing 1 files
npm silly logfile done cleaning log files
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 1 failed with ECONNREFUSED
npm http fetch GET 200 http://localhost:4873/-/ping?write=true 48ms (cache stale)
Ok



# -- after the changes npm doctor ping correctly resuts in failure after retires

~/workarea/npm-cli $ lnpm doctor --registry=http://localhost:4873 -ddd
npm verbose cli /Users/milaninfy/.nvm/versions/node/v22.9.0/bin/node /Users/milaninfy/workarea/npm-cli/index.js
npm info using [email protected]
npm info using [email protected]
npm silly config load:file:/Users/milaninfy/workarea/npm-cli/npmrc
npm silly config load:file:/Users/milaninfy/workarea/npm-cli/.npmrc
npm silly config load:file:/Users/milaninfy/.npmrc
npm silly config load:file:/Users/milaninfy/.nvm/versions/node/v22.9.0/etc/npmrc
npm verbose title npm doctor
npm verbose argv "doctor" "--registry" "http://localhost:4873" "--loglevel" "silly"
npm verbose logfile logs-max:10 dir:/Users/milaninfy/.npm/_logs/2024-09-26T20_41_05_904Z-
npm verbose logfile /Users/milaninfy/.npm/_logs/2024-09-26T20_41_05_904Z-debug-0.log
npm info doctor Running checkup
Connecting to the registry
npm info doctor Pinging registry
npm silly logfile start cleaning logs, removing 1 files
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 1 failed with ECONNREFUSED
npm silly logfile done cleaning log files
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 2 failed with ECONNREFUSED
npm http fetch GET http://localhost:4873/-/ping?write=true attempt 3 failed with ECONNREFUSED
Not ok
request to http://localhost:4873/-/ping?write=true failed, reason: 

@milaninfy milaninfy force-pushed the fix/ping branch 2 times, most recently from 3faefd0 to 710449f Compare September 26, 2024 20:55
@milaninfy milaninfy marked this pull request as ready for review September 27, 2024 12:43
@milaninfy milaninfy requested a review from a team as a code owner September 27, 2024 12:43
@wraithgar

This comment was marked as outdated.

@wraithgar wraithgar closed this Sep 27, 2024
@wraithgar wraithgar reopened this Sep 27, 2024
@wraithgar
Copy link
Member

Reopening, didn't see your testing there. Looks like the write=true behavior is different than cache: false!

This should work. This really should have a test though since we thought this was fixed already and it wasn't.

lib/commands/doctor.js Outdated Show resolved Hide resolved
@@ -74,3 +76,19 @@ t.test('invalid json', async t => {
details: {},
})
})
t.test('fail when registry is unreachable', async t => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.test('fail when registry is unreachable', async t => {
t.test('fail when registry is unreachable even if request is cached', async t => {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Updated..

@wraithgar wraithgar changed the title fix: ping and doctor commands fix for checking if registry is online fix: never use cached npm ping request Sep 30, 2024
@wraithgar wraithgar merged commit 6ca609e into npm:latest Sep 30, 2024
40 checks passed
@github-actions github-actions bot mentioned this pull request Sep 30, 2024
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 3, 2024
##### [`v10.9.0](https://github.com/npm/cli/blob/HEAD/CHANGELOG.md#1090-2024-10-03)

##### Features

-   [`4d57928`](npm/cli@4d57928) [#7766](npm/cli#7766) devEngines ([#7766](npm/cli#7766)) ([@reggi](https://github.com/reggi))

##### Bug Fixes

-   [`6ca609e`](npm/cli@6ca609e) [#7789](npm/cli#7789) ping and doctor commands fix for checking if registry is online ([#7789](npm/cli#7789)) ([@milaninfy](https://github.com/milaninfy))

##### Documentation

-   [`63d6a73`](npm/cli@63d6a73) [#7783](npm/cli#7783) package.json: add brief section on exports, link to Node.js docs ([#7783](npm/cli#7783)) ([@wheresrhys](https://github.com/wheresrhys))
-   [`366c07e`](npm/cli@366c07e) [#7776](npm/cli#7776) remove incorrect note about npm install ([#7776](npm/cli#7776)) ([@wraithgar](https://github.com/wraithgar))

##### Dependencies

-   [`60a7ee5`](npm/cli@60a7ee5) [#7803](npm/cli#7803) hoist npm-normalize-package-bin
-   [`20dd44f`](npm/cli@20dd44f) [#7803](npm/cli#7803) hoist minipass-fetch
-   [`5795987`](npm/cli@5795987) [#7803](npm/cli#7803) update `[email protected]`
-   [`99ccae3`](npm/cli@99ccae3) [#7803](npm/cli#7803) update `[email protected]`
-   [`75786ad`](npm/cli@75786ad) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`1c25a1d`](npm/cli@1c25a1d) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`2d7fc3d`](npm/cli@2d7fc3d) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`1e09334`](npm/cli@1e09334) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`820e983`](npm/cli@820e983) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`9cd6603`](npm/cli@9cd6603) [#7803](npm/cli#7803) update `[email protected]`
-   [`b84d907`](npm/cli@b84d907) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`53ed632`](npm/cli@53ed632) [#7803](npm/cli#7803) update `[email protected]`
-   [`ab40dab`](npm/cli@ab40dab) [#7803](npm/cli#7803) update `[email protected]`
-   [`b1c4770`](npm/cli@b1c4770) [#7803](npm/cli#7803) update `[email protected]`
-   [`8206c4f`](npm/cli@8206c4f) [#7803](npm/cli#7803) update `[email protected]`
-   [`8b7dbc8`](npm/cli@8b7dbc8) [#7803](npm/cli#7803) update `[email protected]`
-   [`f6909a0`](npm/cli@f6909a0) [#7803](npm/cli#7803) update `[email protected]`
-   [`f9b2e18`](npm/cli@f9b2e18) [#7803](npm/cli#7803) update `[email protected]`
-   [`e7ab206`](npm/cli@e7ab206) [#7803](npm/cli#7803) update `[email protected]`
-   [`b28dbb1`](npm/cli@b28dbb1) [#7803](npm/cli#7803) update `[email protected]`
-   [`d13a20b`](npm/cli@d13a20b) [#7803](npm/cli#7803) update `[email protected]`
-   [`5208f74`](npm/cli@5208f74) [#7803](npm/cli#7803) update `[email protected]`
-   [`092f41f`](npm/cli@092f41f) [#7803](npm/cli#7803) update `[email protected]`
-   [`50a7bc8`](npm/cli@50a7bc8) [#7803](npm/cli#7803) update `[email protected]`
-   [`591130d`](npm/cli@591130d) [#7803](npm/cli#7803) update `[email protected]`
-   [`be6ae96`](npm/cli@be6ae96) [#7803](npm/cli#7803) update `[email protected]`
-   [`8d4060a`](npm/cli@8d4060a) [#7803](npm/cli#7803) update `[email protected]`
-   [`105fa2b`](npm/cli@105fa2b) [#7803](npm/cli#7803) update `[email protected]`
-   [`eae4f57`](npm/cli@eae4f57) [#7803](npm/cli#7803) update `[email protected]`
-   [`7214149`](npm/cli@7214149) [#7803](npm/cli#7803) update `[email protected]`
-   [`c4bed31`](npm/cli@c4bed31) [#7803](npm/cli#7803) update `[email protected]`
-   [`f54b155`](npm/cli@f54b155) [#7803](npm/cli#7803) update `[email protected]`
-   [`6deae9e`](npm/cli@6deae9e) [#7803](npm/cli#7803) update `[email protected]`
-   [`034c729`](npm/cli@034c729) [#7803](npm/cli#7803) update `[email protected]`
-   [`ddb8be0`](npm/cli@ddb8be0) [#7803](npm/cli#7803) update `[email protected]`
-   [`538a4cc`](npm/cli@538a4cc) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`b80d048`](npm/cli@b80d048) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`81137fc`](npm/cli@81137fc) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`2076368`](npm/cli@2076368) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`feac87c`](npm/cli@feac87c) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`dd90f9e`](npm/cli@dd90f9e) [#7803](npm/cli#7803) update `@npmcli/[email protected]`

##### Chores

-   [`95e2cb1`](npm/cli@95e2cb1) [#7810](npm/cli#7810) ignore .github folder in release-please ([@reggi](https://github.com/reggi))
-   [`be1e6da`](npm/cli@be1e6da) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`43f2374`](npm/cli@43f2374) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`bb03036`](npm/cli@bb03036) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`2072705`](npm/cli@2072705) [#7803](npm/cli#7803) update `@npmcli/[email protected]` ([@reggi](https://github.com/reggi))
-   [`949d8f8`](npm/cli@949d8f8) [#7803](npm/cli#7803) engine ^18.17.0 || >=20.5.0 in package template ([@reggi](https://github.com/reggi))
-   [`fefd509`](npm/cli@fefd509) [#7764](npm/cli#7764) deps: bump actions/download-artifact from 3 to 4 in /.github/workflows ([#7764](npm/cli#7764)) ([@dependabot](https://github.com/dependabot)\[bot], [@wraithgar](https://github.com/wraithgar))
-   [workspace](https://github.com/npm/cli/releases/tag/arborist-v8.0.0): `@npmcli/[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/config-v9.0.0): `@npmcli/[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmaccess-v9.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmdiff-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmexec-v9.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmfund-v6.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmhook-v11.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmorg-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmpack-v8.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmpublish-v10.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmsearch-v8.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmteam-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmversion-v7.0.0): `[email protected]`
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 3, 2024
##### [`v10.9.0](https://github.com/npm/cli/blob/HEAD/CHANGELOG.md#1090-2024-10-03)

##### Features

-   [`4d57928`](npm/cli@4d57928) [#7766](npm/cli#7766) devEngines ([#7766](npm/cli#7766)) ([@reggi](https://github.com/reggi))

##### Bug Fixes

-   [`6ca609e`](npm/cli@6ca609e) [#7789](npm/cli#7789) ping and doctor commands fix for checking if registry is online ([#7789](npm/cli#7789)) ([@milaninfy](https://github.com/milaninfy))

##### Documentation

-   [`63d6a73`](npm/cli@63d6a73) [#7783](npm/cli#7783) package.json: add brief section on exports, link to Node.js docs ([#7783](npm/cli#7783)) ([@wheresrhys](https://github.com/wheresrhys))
-   [`366c07e`](npm/cli@366c07e) [#7776](npm/cli#7776) remove incorrect note about npm install ([#7776](npm/cli#7776)) ([@wraithgar](https://github.com/wraithgar))

##### Dependencies

-   [`60a7ee5`](npm/cli@60a7ee5) [#7803](npm/cli#7803) hoist npm-normalize-package-bin
-   [`20dd44f`](npm/cli@20dd44f) [#7803](npm/cli#7803) hoist minipass-fetch
-   [`5795987`](npm/cli@5795987) [#7803](npm/cli#7803) update `[email protected]`
-   [`99ccae3`](npm/cli@99ccae3) [#7803](npm/cli#7803) update `[email protected]`
-   [`75786ad`](npm/cli@75786ad) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`1c25a1d`](npm/cli@1c25a1d) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`2d7fc3d`](npm/cli@2d7fc3d) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`1e09334`](npm/cli@1e09334) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`820e983`](npm/cli@820e983) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`9cd6603`](npm/cli@9cd6603) [#7803](npm/cli#7803) update `[email protected]`
-   [`b84d907`](npm/cli@b84d907) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`53ed632`](npm/cli@53ed632) [#7803](npm/cli#7803) update `[email protected]`
-   [`ab40dab`](npm/cli@ab40dab) [#7803](npm/cli#7803) update `[email protected]`
-   [`b1c4770`](npm/cli@b1c4770) [#7803](npm/cli#7803) update `[email protected]`
-   [`8206c4f`](npm/cli@8206c4f) [#7803](npm/cli#7803) update `[email protected]`
-   [`8b7dbc8`](npm/cli@8b7dbc8) [#7803](npm/cli#7803) update `[email protected]`
-   [`f6909a0`](npm/cli@f6909a0) [#7803](npm/cli#7803) update `[email protected]`
-   [`f9b2e18`](npm/cli@f9b2e18) [#7803](npm/cli#7803) update `[email protected]`
-   [`e7ab206`](npm/cli@e7ab206) [#7803](npm/cli#7803) update `[email protected]`
-   [`b28dbb1`](npm/cli@b28dbb1) [#7803](npm/cli#7803) update `[email protected]`
-   [`d13a20b`](npm/cli@d13a20b) [#7803](npm/cli#7803) update `[email protected]`
-   [`5208f74`](npm/cli@5208f74) [#7803](npm/cli#7803) update `[email protected]`
-   [`092f41f`](npm/cli@092f41f) [#7803](npm/cli#7803) update `[email protected]`
-   [`50a7bc8`](npm/cli@50a7bc8) [#7803](npm/cli#7803) update `[email protected]`
-   [`591130d`](npm/cli@591130d) [#7803](npm/cli#7803) update `[email protected]`
-   [`be6ae96`](npm/cli@be6ae96) [#7803](npm/cli#7803) update `[email protected]`
-   [`8d4060a`](npm/cli@8d4060a) [#7803](npm/cli#7803) update `[email protected]`
-   [`105fa2b`](npm/cli@105fa2b) [#7803](npm/cli#7803) update `[email protected]`
-   [`eae4f57`](npm/cli@eae4f57) [#7803](npm/cli#7803) update `[email protected]`
-   [`7214149`](npm/cli@7214149) [#7803](npm/cli#7803) update `[email protected]`
-   [`c4bed31`](npm/cli@c4bed31) [#7803](npm/cli#7803) update `[email protected]`
-   [`f54b155`](npm/cli@f54b155) [#7803](npm/cli#7803) update `[email protected]`
-   [`6deae9e`](npm/cli@6deae9e) [#7803](npm/cli#7803) update `[email protected]`
-   [`034c729`](npm/cli@034c729) [#7803](npm/cli#7803) update `[email protected]`
-   [`ddb8be0`](npm/cli@ddb8be0) [#7803](npm/cli#7803) update `[email protected]`
-   [`538a4cc`](npm/cli@538a4cc) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`b80d048`](npm/cli@b80d048) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`81137fc`](npm/cli@81137fc) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`2076368`](npm/cli@2076368) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`feac87c`](npm/cli@feac87c) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`dd90f9e`](npm/cli@dd90f9e) [#7803](npm/cli#7803) update `@npmcli/[email protected]`

##### Chores

-   [`95e2cb1`](npm/cli@95e2cb1) [#7810](npm/cli#7810) ignore .github folder in release-please ([@reggi](https://github.com/reggi))
-   [`be1e6da`](npm/cli@be1e6da) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`43f2374`](npm/cli@43f2374) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`bb03036`](npm/cli@bb03036) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`2072705`](npm/cli@2072705) [#7803](npm/cli#7803) update `@npmcli/[email protected]` ([@reggi](https://github.com/reggi))
-   [`949d8f8`](npm/cli@949d8f8) [#7803](npm/cli#7803) engine ^18.17.0 || >=20.5.0 in package template ([@reggi](https://github.com/reggi))
-   [`fefd509`](npm/cli@fefd509) [#7764](npm/cli#7764) deps: bump actions/download-artifact from 3 to 4 in /.github/workflows ([#7764](npm/cli#7764)) ([@dependabot](https://github.com/dependabot)\[bot], [@wraithgar](https://github.com/wraithgar))
-   [workspace](https://github.com/npm/cli/releases/tag/arborist-v8.0.0): `@npmcli/[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/config-v9.0.0): `@npmcli/[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmaccess-v9.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmdiff-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmexec-v9.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmfund-v6.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmhook-v11.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmorg-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmpack-v8.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmpublish-v10.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmsearch-v8.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmteam-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmversion-v7.0.0): `[email protected]`
github-merge-queue bot pushed a commit to zemn-me/monorepo that referenced this pull request Oct 3, 2024
##### [`v10.9.0](https://github.com/npm/cli/blob/HEAD/CHANGELOG.md#1090-2024-10-03)

##### Features

-   [`4d57928`](npm/cli@4d57928) [#7766](npm/cli#7766) devEngines ([#7766](npm/cli#7766)) ([@reggi](https://github.com/reggi))

##### Bug Fixes

-   [`6ca609e`](npm/cli@6ca609e) [#7789](npm/cli#7789) ping and doctor commands fix for checking if registry is online ([#7789](npm/cli#7789)) ([@milaninfy](https://github.com/milaninfy))

##### Documentation

-   [`63d6a73`](npm/cli@63d6a73) [#7783](npm/cli#7783) package.json: add brief section on exports, link to Node.js docs ([#7783](npm/cli#7783)) ([@wheresrhys](https://github.com/wheresrhys))
-   [`366c07e`](npm/cli@366c07e) [#7776](npm/cli#7776) remove incorrect note about npm install ([#7776](npm/cli#7776)) ([@wraithgar](https://github.com/wraithgar))

##### Dependencies

-   [`60a7ee5`](npm/cli@60a7ee5) [#7803](npm/cli#7803) hoist npm-normalize-package-bin
-   [`20dd44f`](npm/cli@20dd44f) [#7803](npm/cli#7803) hoist minipass-fetch
-   [`5795987`](npm/cli@5795987) [#7803](npm/cli#7803) update `[email protected]`
-   [`99ccae3`](npm/cli@99ccae3) [#7803](npm/cli#7803) update `[email protected]`
-   [`75786ad`](npm/cli@75786ad) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`1c25a1d`](npm/cli@1c25a1d) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`2d7fc3d`](npm/cli@2d7fc3d) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`1e09334`](npm/cli@1e09334) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`820e983`](npm/cli@820e983) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`9cd6603`](npm/cli@9cd6603) [#7803](npm/cli#7803) update `[email protected]`
-   [`b84d907`](npm/cli@b84d907) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`53ed632`](npm/cli@53ed632) [#7803](npm/cli#7803) update `[email protected]`
-   [`ab40dab`](npm/cli@ab40dab) [#7803](npm/cli#7803) update `[email protected]`
-   [`b1c4770`](npm/cli@b1c4770) [#7803](npm/cli#7803) update `[email protected]`
-   [`8206c4f`](npm/cli@8206c4f) [#7803](npm/cli#7803) update `[email protected]`
-   [`8b7dbc8`](npm/cli@8b7dbc8) [#7803](npm/cli#7803) update `[email protected]`
-   [`f6909a0`](npm/cli@f6909a0) [#7803](npm/cli#7803) update `[email protected]`
-   [`f9b2e18`](npm/cli@f9b2e18) [#7803](npm/cli#7803) update `[email protected]`
-   [`e7ab206`](npm/cli@e7ab206) [#7803](npm/cli#7803) update `[email protected]`
-   [`b28dbb1`](npm/cli@b28dbb1) [#7803](npm/cli#7803) update `[email protected]`
-   [`d13a20b`](npm/cli@d13a20b) [#7803](npm/cli#7803) update `[email protected]`
-   [`5208f74`](npm/cli@5208f74) [#7803](npm/cli#7803) update `[email protected]`
-   [`092f41f`](npm/cli@092f41f) [#7803](npm/cli#7803) update `[email protected]`
-   [`50a7bc8`](npm/cli@50a7bc8) [#7803](npm/cli#7803) update `[email protected]`
-   [`591130d`](npm/cli@591130d) [#7803](npm/cli#7803) update `[email protected]`
-   [`be6ae96`](npm/cli@be6ae96) [#7803](npm/cli#7803) update `[email protected]`
-   [`8d4060a`](npm/cli@8d4060a) [#7803](npm/cli#7803) update `[email protected]`
-   [`105fa2b`](npm/cli@105fa2b) [#7803](npm/cli#7803) update `[email protected]`
-   [`eae4f57`](npm/cli@eae4f57) [#7803](npm/cli#7803) update `[email protected]`
-   [`7214149`](npm/cli@7214149) [#7803](npm/cli#7803) update `[email protected]`
-   [`c4bed31`](npm/cli@c4bed31) [#7803](npm/cli#7803) update `[email protected]`
-   [`f54b155`](npm/cli@f54b155) [#7803](npm/cli#7803) update `[email protected]`
-   [`6deae9e`](npm/cli@6deae9e) [#7803](npm/cli#7803) update `[email protected]`
-   [`034c729`](npm/cli@034c729) [#7803](npm/cli#7803) update `[email protected]`
-   [`ddb8be0`](npm/cli@ddb8be0) [#7803](npm/cli#7803) update `[email protected]`
-   [`538a4cc`](npm/cli@538a4cc) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`b80d048`](npm/cli@b80d048) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`81137fc`](npm/cli@81137fc) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`2076368`](npm/cli@2076368) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`feac87c`](npm/cli@feac87c) [#7803](npm/cli#7803) update `@npmcli/[email protected]`
-   [`dd90f9e`](npm/cli@dd90f9e) [#7803](npm/cli#7803) update `@npmcli/[email protected]`

##### Chores

-   [`95e2cb1`](npm/cli@95e2cb1) [#7810](npm/cli#7810) ignore .github folder in release-please ([@reggi](https://github.com/reggi))
-   [`be1e6da`](npm/cli@be1e6da) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`43f2374`](npm/cli@43f2374) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`bb03036`](npm/cli@bb03036) [#7803](npm/cli#7803) update `[email protected]` ([@reggi](https://github.com/reggi))
-   [`2072705`](npm/cli@2072705) [#7803](npm/cli#7803) update `@npmcli/[email protected]` ([@reggi](https://github.com/reggi))
-   [`949d8f8`](npm/cli@949d8f8) [#7803](npm/cli#7803) engine ^18.17.0 || >=20.5.0 in package template ([@reggi](https://github.com/reggi))
-   [`fefd509`](npm/cli@fefd509) [#7764](npm/cli#7764) deps: bump actions/download-artifact from 3 to 4 in /.github/workflows ([#7764](npm/cli#7764)) ([@dependabot](https://github.com/dependabot)\[bot], [@wraithgar](https://github.com/wraithgar))
-   [workspace](https://github.com/npm/cli/releases/tag/arborist-v8.0.0): `@npmcli/[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/config-v9.0.0): `@npmcli/[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmaccess-v9.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmdiff-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmexec-v9.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmfund-v6.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmhook-v11.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmorg-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmpack-v8.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmpublish-v10.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmsearch-v8.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmteam-v7.0.0): `[email protected]`
-   [workspace](https://github.com/npm/cli/releases/tag/libnpmversion-v7.0.0): `[email protected]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] npm ping uses cache when registry is offline
2 participants