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

v8.4.0 #4339

Merged
merged 23 commits into from
Jan 27, 2022
Merged

v8.4.0 #4339

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0813625
chore: add docs issue templates (#4321)
bnb Jan 26, 2022
1f853f8
fix(arborist): load actual tree on named updates
ruyadorno Jan 21, 2022
fbe48a8
feat(arborist): add named updates validation (#4307)
ruyadorno Jan 26, 2022
b28ad38
Update repository and bugs URLs
ggrossetie Jan 22, 2022
52c9608
deps: pacote@12.0.3
wraithgar Jan 25, 2022
2bbeedf
deps: npm-profile@6.0.0
wraithgar Jan 25, 2022
1bfc507
deps: npm-registry-fetch@12.0.1
wraithgar Jan 25, 2022
90c384c
fix(logout): require proper auth.js from npm-registry-fetch
wraithgar Jan 25, 2022
fabcf43
fix(arborist): correctly load overrides on workspace edges, closes #4205
nlf Jan 25, 2022
8c3b143
fix(arborist): shrinkwrap throws when trying to read a folder without…
Linkgoron Jan 26, 2022
8558527
deps: make-fetch-happen@10.0.0
wraithgar Jan 26, 2022
b51b29c
fix(arborist): update save exact
ruyadorno Jan 26, 2022
9652d68
chore(release): @npmcli/arborist@4.3.0
wraithgar Jan 27, 2022
0ee4927
chore(release): libnpmaccess@5.0.1
wraithgar Jan 27, 2022
6c0dc1f
chore(release): libnpmexec@3.0.3
wraithgar Jan 27, 2022
41b8f7b
chore(release): libnpmorg@3.0.1
wraithgar Jan 27, 2022
433e6aa
chore(release): libnpmpublish@5.0.1
wraithgar Jan 27, 2022
6654b6e
chore(release): libnpmsearch@4.0.1
wraithgar Jan 27, 2022
3423a98
chore(release): libnpmteam@3.0.1
wraithgar Jan 27, 2022
fb03e48
chore(release): libnpmhook@7.0.1
wraithgar Jan 27, 2022
385cf5e
docs: changelog for v8.4.0
wraithgar Jan 27, 2022
1acae20
update AUTHORS
wraithgar Jan 27, 2022
b7ba444
8.4.0
wraithgar Jan 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/docs-enhancement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 📄 CLI Docs Enhancement
description: File a potential enhancement for the npm documentation
title: "[DOCS] <title>"
labels: [Documentation, Needs Triage]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](https://github.com/npm/cli/issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues
required: true
- type: checkboxes
attributes:
label: This is a CLI Docs Enhancement, not another kind of Docs Enhancement.
description: These issue templates are only for CLI documentation enhancements. If you are looking to submit another kind of documentation enhancement, please submit it to the [documentation](https://github.com/npm/documentation) repo.
options:
- label: This is a CLI Docs Enhancement.
required: true
- type: textarea
attributes:
label: Description of Problem
description: A clear & concise description of the current state of the docs.
validations:
required: true
- type: textarea
attributes:
label: Potential Solution
description: A clear & concise description of the potential enhancement, if there is one.
validations:
required: false
- type: input
attributes:
label: Docs URL
description: Please provide the URL of the page you'd like to see an enhancement to.
validations:
required: false
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/docs-problem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 📄 CLI Docs Problem
description: File a problem with the npm documentation
title: "[DOCS] <title>"
labels: [Documentation, Needs Triage]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](https://github.com/npm/cli/issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues
required: true
- type: checkboxes
attributes:
label: This is a CLI Docs Problem, not another kind of Docs Problem.
description: These issue templates are only for CLI documentation problems. If you are looking to submit another kind of documentation problem, please submit it to the [documentation](https://github.com/npm/documentation) repo.
options:
- label: This is a CLI Docs Problem.
required: true
- type: textarea
attributes:
label: Description of Problem
description: A clear & concise description of what is wrong with the docs.
validations:
required: true
- type: textarea
attributes:
label: Potential Solution
description: A clear & concise description of a potential solution or fix to the problem, if there is one.
validations:
required: false
- type: input
attributes:
label: Affected URL
description: Please provide the affected URL.
validations:
required: false
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -815,3 +815,6 @@ yotamselementor <83912471+yotamselementor@users.noreply.github.com>
Felipe Plets <fsplets@gmail.com>
fncolon <fncolon@pm.me>
Emin Buğra Saral <eminbugrasaral@me.com>
Tierney Cyren <accounts@bnb.im>
Guillaume Grossetie <g.grossetie@gmail.com>
linkgoron <Linkgoron@users.noreply.github.com>
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
## v8.4.0 (2022-01-27)

### Features

* [`fbe48a840`](https://github.com/npm/cli/commit/fbe48a84047e0c5de31bdaa84707f0f8fdcef71d)
[#4307](https://github.com/npm/cli/pull/4307)
feat(arborist): add named updates validation
([@ruyadorno](https://github.com/ruyadorno))

### Bug Fixes

* [`1f853f8bf`](https://github.com/npm/cli/commit/1f853f8bf7cecd1222703dde676a4b664526141d)
[#4306](https://github.com/npm/cli/pull/4306)
fix(arborist): load actual tree on named updates
([@ruyadorno](https://github.com/ruyadorno))
* [`90c384ccc`](https://github.com/npm/cli/commit/90c384ccccac32c80c481a04c438cbcbea82539c)
[#4326](https://github.com/npm/cli/pull/4326)
fix(logout): require proper auth.js from npm-registry-fetch
([@wraithgar](https://github.com/wraithgar))
* [`fabcf431a`](https://github.com/npm/cli/commit/fabcf431a63ecf93b56ae5d9a05ad4e7ef280c2a)
[#4327](https://github.com/npm/cli/pull/4327)
fix(arborist): correctly load overrides on workspace edges, closes #4205
([@nlf](https://github.com/nlf))
* [`8c3b143ca`](https://github.com/npm/cli/commit/8c3b143ca20d0da56c0ce2764e288a4c203b9f93)
[#4258](https://github.com/npm/cli/pull/4258)
fix(arborist): shrinkwrap throws when trying to read a folder without permissions
([@Linkgoron](https://github.com/Linkgoron))
* [`b51b29c56`](https://github.com/npm/cli/commit/b51b29c563fa97aa4fbf38250d1f04e879a8d961)
[#4334](https://github.com/npm/cli/pull/4334)
fix(arborist): update save exact
([@ruyadorno](https://github.com/ruyadorno))

### Dependencies

* [`8558527c7`](https://github.com/npm/cli/commit/8558527c7158b2c1c353f8ab9c31de2a66ab470e)
[#4333](https://github.com/npm/cli/pull/4333)
deps: `make-fetch-happen@10.0.0`
* compress option and accept/content encoding header edge cases
* strip cookie header on redirect across hostnames
* [`1bfc507f2`](https://github.com/npm/cli/commit/1bfc507f2a5afa02f04d4dea2fc6d151d4fef3ac)
[#4326](https://github.com/npm/cli/pull/4326)
deps: `npm-registry-fetch@12.0.1`
* [`52c9608e7`](https://github.com/npm/cli/commit/52c9608e7bb1cda396b2cef3fc1b48dbaa2b7de3)
[#4326](https://github.com/npm/cli/pull/4326)
deps: `pacote@12.0.3`
* [`2bbeedfeb`](https://github.com/npm/cli/commit/2bbeedfebb3aea082d612deb5e4d9de9e550c529)
[#4326](https://github.com/npm/cli/pull/4326)
deps: `npm-profile@6.0.0`
* [`9652d685b`](https://github.com/npm/cli/commit/9652d685b1e4bd21cec107a611c2e307387623d6)
chore(release): `@npmcli/arborist@4.3.0`
([@wraithgar](https://github.com/wraithgar))
* [`0ee4927d2`](https://github.com/npm/cli/commit/0ee4927d2e8206dd24fa7eea5e1c10ea649ecc49)
chore(release): `libnpmaccess@5.0.1`
([@wraithgar](https://github.com/wraithgar))
* [`6c0dc1ffb`](https://github.com/npm/cli/commit/6c0dc1ffb70858be1e9ca9afdb6950e39609a367)
chore(release): `libnpmexec@3.0.3`
([@wraithgar](https://github.com/wraithgar))
* [`41b8f7b6f`](https://github.com/npm/cli/commit/41b8f7b6ff62f0e738865eb8e98df8650f5467bd)
chore(release): `libnpmorg@3.0.1`
([@wraithgar](https://github.com/wraithgar))
* [`433e6aafb`](https://github.com/npm/cli/commit/433e6aafbbf56efcf71e991767a6f00afe4aba7c)
chore(release): `libnpmpublish@5.0.1`
([@wraithgar](https://github.com/wraithgar))
* [`6654b6efe`](https://github.com/npm/cli/commit/6654b6efe02666bdb9864f4608e477ba132fd215)
chore(release): `libnpmsearch@4.0.1`
([@wraithgar](https://github.com/wraithgar))
* [`3423a9804`](https://github.com/npm/cli/commit/3423a980436492b7f0ee9e002517387a801f4f4a)
chore(release): `libnpmteam@3.0.1`
([@wraithgar](https://github.com/wraithgar))
* [`fb03e485d`](https://github.com/npm/cli/commit/fb03e485d9b1f09eb1cbcce00ee8e3e5c012097f)
chore(release): `libnpmhook@7.0.1`
([@wraithgar](https://github.com/wraithgar))

## v8.3.2 (2022-01-20)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/logout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const getAuth = require('npm-registry-fetch/auth.js')
const getAuth = require('npm-registry-fetch/lib/auth.js')
const npmFetch = require('npm-registry-fetch')
const log = require('../utils/log-shim')
const BaseCommand = require('../base-command.js')
Expand Down
21 changes: 21 additions & 0 deletions node_modules/@tootallnate/once/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Nathan Rajlich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 4 additions & 11 deletions node_modules/@tootallnate/once/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
/// <reference types="node" />
import { EventEmitter } from 'events';
declare function once<T>(emitter: EventEmitter, name: string): once.CancelablePromise<T>;
declare namespace once {
interface CancelFunction {
(): void;
}
interface CancelablePromise<T> extends Promise<T> {
cancel: CancelFunction;
}
type CancellablePromise<T> = CancelablePromise<T>;
function spread<T extends any[]>(emitter: EventEmitter, name: string): once.CancelablePromise<T>;
import { EventNames, EventListenerParameters, AbortSignal } from './types';
export interface OnceOptions {
signal?: AbortSignal;
}
export = once;
export default function once<Emitter extends EventEmitter, Event extends EventNames<Emitter>>(emitter: Emitter, name: Event, { signal }?: OnceOptions): Promise<EventListenerParameters<Emitter, Event>>;
57 changes: 21 additions & 36 deletions node_modules/@tootallnate/once/dist/index.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
"use strict";
function noop() { }
function once(emitter, name) {
const o = once.spread(emitter, name);
const r = o.then((args) => args[0]);
r.cancel = o.cancel;
return r;
}
(function (once) {
function spread(emitter, name) {
let c = null;
const p = new Promise((resolve, reject) => {
function cancel() {
emitter.removeListener(name, onEvent);
emitter.removeListener('error', onError);
p.cancel = noop;
}
function onEvent(...args) {
cancel();
resolve(args);
}
function onError(err) {
cancel();
reject(err);
}
c = cancel;
emitter.on(name, onEvent);
emitter.on('error', onError);
});
if (!c) {
throw new TypeError('Could not get `cancel()` function');
Object.defineProperty(exports, "__esModule", { value: true });
function once(emitter, name, { signal } = {}) {
return new Promise((resolve, reject) => {
function cleanup() {
signal === null || signal === void 0 ? void 0 : signal.removeEventListener('abort', cleanup);
emitter.removeListener(name, onEvent);
emitter.removeListener('error', onError);
}
function onEvent(...args) {
cleanup();
resolve(args);
}
p.cancel = c;
return p;
}
once.spread = spread;
})(once || (once = {}));
module.exports = once;
function onError(err) {
cleanup();
reject(err);
}
signal === null || signal === void 0 ? void 0 : signal.addEventListener('abort', cleanup);
emitter.on(name, onEvent);
emitter.on('error', onError);
});
}
exports.default = once;
//# sourceMappingURL=index.js.map
2 changes: 1 addition & 1 deletion node_modules/@tootallnate/once/dist/index.js.map
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,SAAS,IAAI,KAAI,CAAC;AAElB,SAAS,IAAI,CACZ,OAAqB,EACrB,IAAY;IAEZ,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAM,OAAO,EAAE,IAAI,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAA8B,CAAC;IACtE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACpB,OAAO,CAAC,CAAC;AACV,CAAC;AAED,WAAU,IAAI;IAWb,SAAgB,MAAM,CACrB,OAAqB,EACrB,IAAY;QAEZ,IAAI,CAAC,GAA+B,IAAI,CAAC;QACzC,MAAM,CAAC,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC5C,SAAS,MAAM;gBACd,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;gBACtC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,C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