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

Release/v8.5.1 #4434

Merged
merged 12 commits into from
Feb 17, 2022
4 changes: 4 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -821,3 +821,7 @@ linkgoron <Linkgoron@users.noreply.github.com>
Quentin Barbe <forty@everteam.org>
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Delapouite <delapouite@gmail.com>
F. Hinkelmann <franziska.hinkelmann@gmail.com>
Tierney Cyren <hello@bnb.im>
Mohamed Akram <mohd-akram@users.noreply.github.com>
Wassim Chegham <1699357+manekinekko@users.noreply.github.com>
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
## v8.5.1 (2022-02-17)

### Dependencies

* [`54cda9697`](https://github.com/npm/cli/commit/54cda9697b776fae807966097315c7b836623743)
[#4410](https://github.com/npm/cli/pull/4410)
fix(arborist): do not audit in offline mode
([@mohd-akram](https://github.com/mohd-akram))
* [`fb13bdaf1`](https://github.com/npm/cli/commit/fb13bdaf12dde3ef5685a77354e51a9cfa579879)
[#4403](https://github.com/npm/cli/pull/4403)
deps: `@npmcli/ci-detect@2.0.0`
* [`702801002`](https://github.com/npm/cli/commit/702801002e99bf02dd4d6d1e447a5ab332d56c79)
[#4415](https://github.com/npm/cli/pull/4415)
deps: `make-fetch-happen@10.0.3`
* [`88bab3540`](https://github.com/npm/cli/commit/88bab354097023c96c49e78d7ee54159f495bf73)
[#4416](https://github.com/npm/cli/pull/4416)
deps: `gauge@4.0.1`

### Documentation

* [`20378c67c`](https://github.com/npm/cli/commit/20378c67cd533db514dd2aec7828c6d119e9d6c7)
[#4423](https://github.com/npm/cli/pull/4423)
docs: update documentation for ping
([@fhinkel](https://github.com/fhinkel))
* [`408d2fc15`](https://github.com/npm/cli/commit/408d2fc150185ef66125f7d6bdb1c25edb71bba3)
[#4426](https://github.com/npm/cli/pull/4426)
docs: update workspaces guide for consistency
([@bnb](https://github.com/bnb))
* [`9275856eb`](https://github.com/npm/cli/commit/9275856eb75e7c394a3c7617c2b495aba35ee2de)
[#4424](https://github.com/npm/cli/pull/4424)
docs: update usage example for npm pkg
([@manekinekko](https://github.com/manekinekko))
* [`20c83fae7`](https://github.com/npm/cli/commit/20c83fae76ff4a051e4f6542a328f1c00cf071bb)
[#4428](https://github.com/npm/cli/pull/4428)
docs: update docs for npm install <folder>
([@manekinekko](https://github.com/manekinekko))

## v8.5.0 (2022-02-10)

### Features
Expand Down
9 changes: 6 additions & 3 deletions docs/content/commands/npm-ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ Ping the configured or given npm registry and verify authentication.
If it works it will output something like:

```bash
Ping success: {*Details about registry*}
npm notice PING https://registry.npmjs.org/
npm notice PONG 255ms
```
otherwise you will get:
otherwise you will get an error:
```bash
Ping error: {*Detail about error}
npm notice PING http://foo.com/
npm ERR! code E404
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
```

### Configuration
Expand Down
18 changes: 10 additions & 8 deletions docs/content/using-npm/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@ Workspaces are usually defined via the `workspaces` property of the
{
"name": "my-workspaces-powered-project",
"workspaces": [
"workspace-a"
"packages/a"
]
}
```

Given the above `package.json` example living at a current working
directory `.` that contains a folder named `workspace-a` that itself contains
directory `.` that contains a folder named `packages/a` that itself contains
a `package.json` inside it, defining a Node.js package, e.g:

```
.
+-- package.json
`-- workspace-a
`-- package.json
`-- packages
+-- a
| `-- package.json
```

The expected result once running `npm install` in this current working
directory `.` is that the folder `workspace-a` will get symlinked to the
directory `.` is that the folder `packages/a` will get symlinked to the
`node_modules` folder of the current working dir.

Below is a post `npm install` example, given that same previous example
Expand All @@ -56,11 +57,12 @@ structure of files and folders:
```
.
+-- node_modules
| `-- workspace-a -> ../workspace-a
| `-- packages/a -> ../packages/a
+-- package-lock.json
+-- package.json
`-- workspace-a
`-- package.json
`-- packages
+-- a
| `-- package.json
```

### Getting started with workspaces
Expand Down
2 changes: 2 additions & 0 deletions lib/commands/pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class Pkg extends BaseCommand {
'set <key>=<value> [<key>=<value> ...]',
'get [<key> [<key> ...]]',
'delete <key> [<key> ...]',
'set [<array>[<index>].<key>=<value> ...]',
'set [<array>[].<key>=<value> ...]',
]

static params = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = () =>
: process.env.DSARI ? 'dsari'
: process.env.GITHUB_ACTION ? 'github-actions'
: process.env.TDDIUM ? 'tddium'
: process.env.SCREWDRIVER ? 'screwdriver'
: process.env.STRIDER ? 'strider'
: process.env.TASKCLUSTER_ROOT_URL ? 'taskcluster'
: process.env.JENKINS_URL ? 'jenkins'
Expand Down
25 changes: 20 additions & 5 deletions node_modules/@npmcli/ci-detect/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
{
"name": "@npmcli/ci-detect",
"version": "1.4.0",
"version": "2.0.0",
"description": "Detect what kind of CI environment the program is in",
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
"author": "GitHub Inc.",
"license": "ISC",
"main": "./lib",
"scripts": {
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags"
"prepublishOnly": "git push origin --follow-tags",
"lint": "eslint '**/*.js'",
"postlint": "npm-template-check",
"template-copy": "npm-template-copy --force",
"lintfix": "npm run lint -- --fix",
"snap": "tap",
"posttest": "npm run lint"
},
"tap": {
"check-coverage": true
},
"devDependencies": {
"tap": "^14.10.2"
"@npmcli/template-oss": "^2.7.1",
"tap": "^15.1.6"
},
"files": [
"index.js"
"bin",
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/npm/ci-detect.git"
},
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16"
},
"templateOSS": {
"version": "2.7.1"
}
}
4 changes: 2 additions & 2 deletions node_modules/gauge/lib/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
})

themes.addTheme('brailleSpinner', {
preProgressbar: '',
postProgressbar: '',
preProgressbar: '(',
postProgressbar: ')',
progressbarTheme: {
complete: '#',
remaining: '⠂',
Expand Down
11 changes: 7 additions & 4 deletions node_modules/gauge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gauge",
"version": "4.0.0",
"version": "4.0.1",
"description": "A terminal based horizontal gauge",
"main": "lib",
"scripts": {
Expand All @@ -12,7 +12,8 @@
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
"posttest": "npm run lint"
"posttest": "npm run lint",
"template-copy": "npm-template-copy --force"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -41,7 +42,7 @@
"wide-align": "^1.1.2"
},
"devDependencies": {
"@npmcli/template-oss": "^2.3.0",
"@npmcli/template-oss": "^2.7.1",
"readable-stream": "^3.6.0",
"tap": "^15.0.10"
},
Expand All @@ -58,5 +59,7 @@
"functions": 92,
"lines": 90
},
"templateVersion": "2.3.0"
"templateOSS": {
"version": "2.7.1"
}
}
2 changes: 2 additions & 0 deletions node_modules/make-fetch-happen/lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ function getAgent (uri, opts) {
localAddress: opts.localAddress,
rejectUnauthorized: opts.rejectUnauthorized,
timeout: agentTimeout,
freeSocketTimeout: 15000,
}) : new HttpAgent({
maxSockets: agentMaxSockets,
localAddress: opts.localAddress,
timeout: agentTimeout,
freeSocketTimeout: 15000,
})
AGENT_CACHE.set(key, agent)
return agent
Expand Down
5 changes: 2 additions & 3 deletions node_modules/make-fetch-happen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "make-fetch-happen",
"version": "10.0.2",
"version": "10.0.3",
"description": "Opinionated, caching, retrying fetch client",
"main": "lib/index.js",
"files": [
Expand Down Expand Up @@ -52,10 +52,9 @@
},
"devDependencies": {
"@npmcli/template-oss": "^2.7.1",
"eslint": "^8.8.0",
"eslint": "^8.9.0",
"mkdirp": "^1.0.4",
"nock": "^13.2.4",
"npmlog": "^6.0.1",
"rimraf": "^3.0.2",
"safe-buffer": "^5.2.1",
"standard-version": "^9.3.2",
Expand Down
90 changes: 0 additions & 90 deletions node_modules/object-assign/index.js

This file was deleted.

21 changes: 0 additions & 21 deletions node_modules/object-assign/license

This file was deleted.

Loading