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

core:release 9.9.2 #6

Open
wants to merge 962 commits into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
962 commits
Select commit Hold shift + click to select a range
dcfc3de
chore: convert run-script tests to snapshots (#7517)
lukekarrys May 14, 2024
cb85973
deps: [email protected]
wraithgar May 14, 2024
fec3c94
deps: [email protected]
wraithgar May 14, 2024
898bcfd
deps: @sigstore/[email protected]
wraithgar May 14, 2024
1cdc662
deps: @tufjs/[email protected]
wraithgar May 14, 2024
10256e8
chore: dev dependency updates
wraithgar May 14, 2024
aa5d7b1
docs : suggest correct entry to bin (#7524)
Santoshraj2 May 14, 2024
badeac2
fix(config): use redact on config output (#7521)
lukekarrys May 14, 2024
12f103c
fix: add first param titles to logs where missing (#7533)
lukekarrys May 15, 2024
d5c3289
fix(refactor): use output buffer and error for more commands (#7513)
lukekarrys May 15, 2024
328f63c
chore: release 10.8.0
github-actions[bot] May 15, 2024
ef4c975
fix(view): dont immediately exit on first workspace 404 (#7508)
lukekarrys May 16, 2024
3cefdf6
fix(outdated): return array for outdated deps from multiple workspaces
lukekarrys May 16, 2024
4dfc7d2
fix: pass strings to JSON.stringify in --json mode (#7540)
lukekarrys May 17, 2024
61d5771
fix: remove json.stringify from all commands (#7541)
lukekarrys May 17, 2024
53cda32
fix: refactor ls to use output.buffer for json (#7542)
lukekarrys May 17, 2024
b1db070
fix(refactor): use output.buffer and set explicit json mode in query …
lukekarrys May 17, 2024
9e6686b
fix: send proper otp token on web auth (#7545)
wraithgar May 20, 2024
9122fb6
fix(cache): add both full and minified packument to cache (#7516)
milaninfy May 22, 2024
7d89b55
fix(ci): rm workspace node_modules (#7490)
reggi May 23, 2024
fd6479f
docs: update publish docs: dist-tag + publish case (#7560)
davidlj95 May 28, 2024
2d1d8d0
fix: adds `node:` specifier to all native node modules (#7559)
reggi May 28, 2024
8f94ae8
fix(utils/tar): index access while match is null (#7555) (#7556)
NormanPerrin May 29, 2024
e4c7a41
fix(publish): skip workspace packages marked private on publish (#7564)
milaninfy May 29, 2024
6278fe4
deps: [email protected]
wraithgar May 29, 2024
2508a83
deps: [email protected]
wraithgar May 29, 2024
5c6759d
deps: [email protected]
wraithgar May 29, 2024
18b42a4
deps: [email protected]
wraithgar May 29, 2024
41291ba
deps: @sigstore/[email protected]
wraithgar May 29, 2024
83fed2e
deps: [email protected]
wraithgar May 29, 2024
447a8d7
deps: [email protected]
wraithgar May 29, 2024
6574dc9
chore: dev dependency updates
wraithgar May 29, 2024
4b57b95
chore: fix linting in mock registry
wraithgar May 29, 2024
e3f0fd4
deps: @npmcli/[email protected]
wraithgar May 29, 2024
2d84091
chore: fix snapshots for updated @npmcli/package-json
wraithgar May 29, 2024
4a36d78
chore: fix linting in arborist debugger
wraithgar May 29, 2024
6b55646
fix(exec): look in workspace and root for bin entries (#7569)
wraithgar May 29, 2024
6109960
chore: release 10.8.1
github-actions[bot] May 29, 2024
4ef4830
deps: remove read-package-json-fast
wraithgar May 30, 2024
04d6910
deps: @npmcli/[email protected]
wraithgar May 30, 2024
d185c9b
fix: use @npmcli/package-json to parse local package
wraithgar May 30, 2024
15be6dd
fix: don't try parsing workspaces if none exist
wraithgar May 30, 2024
92e71e6
docs: fix links to community discussions (#7576)
leobalter May 30, 2024
93883bb
docs: Improve manpage section for `package.json` `funding` properties…
kemitchell Jun 3, 2024
71c6848
fix(exec): npx to run specified version if multiple version exist gl…
milaninfy Jun 14, 2024
2273183
fix(outdated): fixed wanted range for alias with version range (#7595)
milaninfy Jun 14, 2024
55639ef
docs: use git+https in package.com url examples (#7615)
MikeMcC399 Jun 27, 2024
a8e666e
fix(arborist): condition to include name field in package-lock fixed …
milaninfy Jun 27, 2024
ac937d4
docs(install): add save-peer flag (#7616)
drew4237 Jun 27, 2024
29204c8
deps: @npmcli/[email protected]
wraithgar Jun 20, 2024
6f0d7ce
deps: @npmcli/[email protected]
wraithgar Jun 20, 2024
4646768
deps: [email protected]
wraithgar Jun 20, 2024
8b8ce7a
deps: [email protected]
wraithgar Jun 20, 2024
941d0d7
deps: [email protected]
wraithgar Jun 20, 2024
7b584d3
deps: [email protected]
wraithgar Jun 20, 2024
e5451e1
deps: [email protected]
wraithgar Jun 20, 2024
3b8b111
chore: update devDependencies in lockfile
wraithgar Jun 20, 2024
2490b49
chore: remove .github/workflows/benchmark.yml (#7621)
wraithgar Jul 1, 2024
6f33d74
fix(arborist): safeguard against null node.target in flag calculation…
AmirSa12 Jul 1, 2024
3101a40
fix: limit concurrent open files during 'npm cache verify' (#7631)
oikumene Jul 9, 2024
1c8d41d
deps: @npmcli/[email protected]
wraithgar Jul 9, 2024
094c4ea
deps: [email protected]
wraithgar Jul 9, 2024
76dab91
deps: [email protected]
wraithgar Jul 9, 2024
d8fa116
deps: [email protected]
wraithgar Jul 9, 2024
5e4fa18
deps: [email protected]
wraithgar Jul 9, 2024
1c1adae
deps: [email protected]
wraithgar Jul 9, 2024
dbe7d98
chore: release 10.8.2
github-actions[bot] Jul 9, 2024
9214be9
fix: gracefully handle nonexistent global installation directory (#7640)
milaninfy Jul 11, 2024
a947f25
fix: update lifecycle script list in run-script (#7679)
sonsurim Jul 24, 2024
86b05fc
chore: allow for longer timer values (#7683)
wraithgar Jul 24, 2024
4e81a6a
fix: always set exit code if exiting uncleanly (#7674)
wraithgar Jul 29, 2024
91e46a3
fix(init): use locally installed version of given package (#7721)
milaninfy Aug 13, 2024
a303ddd
deps: [email protected]
wraithgar Aug 20, 2024
1a9ac86
deps: [email protected]
wraithgar Aug 20, 2024
12587fa
deps: [email protected]
wraithgar Aug 20, 2024
4e965ad
deps: [email protected]
wraithgar Aug 20, 2024
a44ab26
deps: [email protected]
wraithgar Aug 20, 2024
2986f4e
deps: [email protected]
wraithgar Aug 20, 2024
7342c24
deps: [email protected]
wraithgar Aug 20, 2024
df58b0c
deps: [email protected]
wraithgar Aug 20, 2024
d7e462b
deps: [email protected]
wraithgar Aug 20, 2024
3fd7a48
deps: [email protected]
wraithgar Aug 20, 2024
ed4add1
chore: dev dependency updates
wraithgar Aug 20, 2024
24d5350
docs: fix and update scoped configuration example (#7742)
demedos Aug 21, 2024
2404c7e
fix(publish): consider package-spec when inside workspace dir (#7738)
milaninfy Aug 21, 2024
e674987
docs: update docs for npmrc and package-json (#7743)
milaninfy Aug 21, 2024
8035725
chore: @npmcli/[email protected]
wraithgar Aug 27, 2024
1772276
chore: fix duplicate changelog entries
wraithgar Aug 27, 2024
7e61151
fix(docs): init usage description corrected (#7759)
milaninfy Aug 28, 2024
ec105f4
chore: release 10.8.3
github-actions[bot] Aug 28, 2024
fefd509
chore(deps): bump actions/download-artifact from 3 to 4 in /.github/w…
dependabot[bot] Sep 5, 2024
366c07e
docs: remove incorrect note about npm install (#7776)
wraithgar Sep 11, 2024
63d6a73
docs(package.json): add brief section on exports, link to Node.js doc…
wheresrhys Sep 17, 2024
6ca609e
fix: ping and doctor commands fix for checking if registry is online …
milaninfy Sep 30, 2024
949d8f8
chore: engine ^18.17.0 || >=20.5.0 in package template
reggi Oct 2, 2024
d3c0b1e
fix!: align libnpmversion to npm 10 node engine range
reggi Oct 2, 2024
61d9a90
fix!: align libnpmteam to npm 10 node engine range
reggi Oct 2, 2024
ecfa213
fix!: align libnpmsearch to npm 10 node engine range
reggi Oct 2, 2024
96f4e4e
fix!: align libnpmpublish to npm 10 node engine range
reggi Oct 2, 2024
1b61379
fix!: align libnpmpack to npm 10 node engine range
reggi Oct 2, 2024
47f6f76
fix!: align libnpmorg to npm 10 node engine range
reggi Oct 2, 2024
0e69c92
fix!: align libnpmhook to npm 10 node engine range
reggi Oct 2, 2024
e7298de
fix!: align libnpmfund to npm 10 node engine range
reggi Oct 2, 2024
a2c8016
fix!: align libnpmexec to npm 10 node engine range
reggi Oct 2, 2024
340a330
fix!: align libnpmdiff to npm 10 node engine range
reggi Oct 2, 2024
73068d6
fix!: align libnpmaccess to npm 10 node engine range
reggi Oct 2, 2024
f846ad3
fix!: align @npmcli/config to npm 10 node engine range
reggi Oct 2, 2024
365580a
fix!: align @npmcli/arborist to npm 10 node engine range
reggi Oct 2, 2024
dd90f9e
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
feac87c
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
2076368
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
81137fc
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
b80d048
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
538a4cc
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
ddb8be0
deps: update [email protected]
reggi Oct 2, 2024
034c729
deps: update [email protected]
reggi Oct 2, 2024
6deae9e
deps: update [email protected]
reggi Oct 2, 2024
f54b155
deps: update [email protected]
reggi Oct 2, 2024
c4bed31
deps: update [email protected]
reggi Oct 2, 2024
7214149
deps: update [email protected]
reggi Oct 2, 2024
eae4f57
deps: update [email protected]
reggi Oct 2, 2024
105fa2b
deps: update [email protected]
reggi Oct 2, 2024
8d4060a
deps: update [email protected]
reggi Oct 2, 2024
be6ae96
deps: update [email protected]
reggi Oct 2, 2024
591130d
deps: update [email protected]
reggi Oct 2, 2024
50a7bc8
deps: update [email protected]
reggi Oct 2, 2024
092f41f
deps: update [email protected]
reggi Oct 2, 2024
5208f74
deps: update [email protected]
reggi Oct 2, 2024
d13a20b
deps: update [email protected]
reggi Oct 2, 2024
b28dbb1
deps: update [email protected]
reggi Oct 2, 2024
e7ab206
deps: update [email protected]
reggi Oct 2, 2024
f9b2e18
deps: update [email protected]
reggi Oct 2, 2024
f6909a0
deps: update [email protected]
reggi Oct 2, 2024
8b7dbc8
deps: update [email protected]
reggi Oct 2, 2024
8206c4f
deps: update [email protected]
reggi Oct 2, 2024
b1c4770
deps: update [email protected]
reggi Oct 2, 2024
ab40dab
deps: update [email protected]
reggi Oct 2, 2024
53ed632
deps: update [email protected]
reggi Oct 2, 2024
b84d907
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
9cd6603
deps: update [email protected]
reggi Oct 2, 2024
820e983
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
1e09334
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
2d7fc3d
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
1c25a1d
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
75786ad
deps: update @npmcli/[email protected]
reggi Oct 2, 2024
99ccae3
deps: update [email protected]
reggi Oct 2, 2024
5795987
deps: update [email protected]
reggi Oct 2, 2024
2072705
chore: update @npmcli/[email protected]
reggi Oct 2, 2024
bb03036
chore: update [email protected]
reggi Oct 2, 2024
43f2374
chore: update [email protected]
reggi Oct 2, 2024
be1e6da
chore: update [email protected]
reggi Oct 2, 2024
20dd44f
deps: hoist minipass-fetch
reggi Oct 2, 2024
60a7ee5
deps: hoist npm-normalize-package-bin
reggi Oct 2, 2024
95e2cb1
chore: ignore .github folder in release-please
reggi Oct 2, 2024
4d57928
feat: devEngines (#7766)
reggi Oct 3, 2024
977fd57
chore: release 10.9.0
github-actions[bot] Oct 3, 2024
534ad77
fix: remove unused parameters catch statements (#7795)
btea Oct 3, 2024
feb54f7
docs(package.json): add libc field (#7822)
wraithgar Oct 7, 2024
70cd88d
fix(view): sort and truncate dist-tags (#7808)
wraithgar Oct 11, 2024
5a74478
chore: update engines `^20.17.0 || >=22.9.0` in package template
reggi Oct 14, 2024
95d009e
chore: update engine `^20.17.0 || >=22.9.0` in actions
reggi Oct 14, 2024
4c8ba0a
fix!: for @npmcli/docs sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
e6a8a17
fix!: for @npmcli/smoke-tests sets node engine range to `^20.17.0 || …
reggi Oct 14, 2024
874c0eb
fix!: for @npmcli/mock-globals sets node engine range to `^20.17.0 ||…
reggi Oct 14, 2024
802ea73
fix!: for @npmcli/mock-registry sets node engine range to `^20.17.0 |…
reggi Oct 14, 2024
57eef8d
fix!: for libnpmversion sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
9561fa7
fix!: for libnpmteam sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
2f2ee15
fix!: for libnpmsearch sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
a2f8af0
fix!: for libnpmpublish sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
f7b41a3
fix!: for libnpmpack sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
62c4604
fix!: for libnpmorg sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
10458ff
fix!: for libnpmhook sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
44be07c
fix!: for libnpmfund sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
2902d4c
fix!: for libnpmexec sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
dab3042
fix!: for libnpmdiff sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
687cfaf
fix!: for libnpmaccess sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
6e11eb2
fix!: for @npmcli/config sets node engine range to `^20.17.0 || >=22.…
reggi Oct 14, 2024
3ffc08b
fix!: for @npmcli/arborist sets node engine range to `^20.17.0 || >=2…
reggi Oct 14, 2024
3162620
fix!: sets node engine range to `^20.17.0 || >=22.9.0`
reggi Oct 14, 2024
852dd8b
chore: sets npm 11 to prerelase
reggi Oct 14, 2024
7f541e8
fix: make pack and exec work with git hash refs (#7815)
milaninfy Oct 14, 2024
286739c
chore: add creation of a DEPENDENCIES.json file (#7824)
reggi Oct 14, 2024
7ee15bb
deps!: bump sigstore from 2.x to 3.0.0
bdehamer Oct 14, 2024
f36dc59
deps: [email protected]
wraithgar Oct 15, 2024
720b4d8
chore: bump @npmcli/arborist to 8.0.0
wraithgar Oct 15, 2024
f75da94
fix: update libnpmpublish tests for sigstore 3.0.0
bdehamer Oct 15, 2024
62c71e5
fix!: removes `npm hook` command
reggi Oct 16, 2024
ecd2d23
fix: don't go into global mode if aliased to npmg (#7842)
wraithgar Oct 17, 2024
780afc5
fix(pkg): display if any of multiple attributes exist (#7855)
Sanderovich Oct 18, 2024
75a3f12
deps: remove unused deps (#7859)
reggi Nov 14, 2024
080a0f2
fix!: remove old audit fallback request
wraithgar Oct 24, 2024
ccd8420
chore: fix cli tests for audit fallback removal
wraithgar Nov 14, 2024
ec57f5f
chore: fix dependencies script for circular workspace deps
wraithgar Nov 18, 2024
e19bff0
fix(perf): enable compile cache if present (#7901)
H4ad Nov 20, 2024
7dbef6f
deps: [email protected]
reggi Oct 17, 2024
66fc8c9
deps: @npmcli/[email protected]
reggi Oct 17, 2024
6995303
feat!: adds `--ignore-scripts` flag to `pack`
reggi Oct 17, 2024
16b7367
fix!: publishing prerelease requires explicit tag (#7910)
reggi Nov 25, 2024
475285b
chore: clean up dependency graph repos (#7920)
hashtagchris Nov 25, 2024
eb6498d
deps: [email protected]
wraithgar Nov 25, 2024
1bd39e7
deps: @npmcli/[email protected]
wraithgar Nov 25, 2024
8cbf1a7
deps: @npmcli/[email protected]
wraithgar Nov 25, 2024
534bbe8
deps: [email protected]
wraithgar Nov 25, 2024
f00359f
deps: [email protected]
wraithgar Nov 25, 2024
3c74ec0
deps: [email protected]
wraithgar Nov 25, 2024
884bbde
deps: [email protected]
wraithgar Nov 25, 2024
69d9f01
deps: [email protected]
wraithgar Nov 25, 2024
5dffd11
deps: [email protected]
wraithgar Nov 25, 2024
e32284a
deps: [email protected]
wraithgar Nov 25, 2024
92e6f07
deps: [email protected]
wraithgar Nov 25, 2024
ef1c368
deps: [email protected]
wraithgar Nov 25, 2024
33cf580
deps: [email protected]
wraithgar Nov 25, 2024
78293ad
deps: [email protected]
wraithgar Nov 25, 2024
6edfe2f
chore: @npmcli/[email protected]
wraithgar Nov 25, 2024
2c1b369
chore: dev dependency updates
wraithgar Nov 25, 2024
2d530a5
chore(tests): account for when npm is a prerelease (#7941)
wraithgar Nov 26, 2024
523ad85
chore: release 11.0.0-pre.0
github-actions[bot] Nov 26, 2024
4906f3d
deps: [email protected]
wraithgar Nov 27, 2024
ca84b22
deps!: [email protected]
wraithgar Nov 27, 2024
4bf1901
deps: @npmcli/[email protected]
wraithgar Nov 27, 2024
1be8e95
docs: update ignore rules
wraithgar Nov 27, 2024
b87ba24
deps: @npmcli/[email protected]
wraithgar Nov 27, 2024
cfdf214
chore: fork changelog (#7943)
wraithgar Dec 2, 2024
e362c6d
fix(prefix): remove duplicate -g from usage output (#7944)
wraithgar Dec 2, 2024
2af31dd
docs: change certfile to cafile (#7947)
wraithgar Dec 2, 2024
d463a6f
deps!: [email protected]
wraithgar Dec 2, 2024
c0bcc2a
deps: [email protected]
wraithgar Dec 2, 2024
ac8eb39
deps: [email protected]
wraithgar Dec 2, 2024
8905037
deps: [email protected]
wraithgar Dec 2, 2024
fecfcf4
deps: [email protected]
wraithgar Dec 2, 2024
bc9b14d
deps: @npmcli/[email protected]
wraithgar Dec 4, 2024
f3ac7b7
feat!: no implicit latest tag on publish when latest > version (#7939)
reggi Dec 6, 2024
cf52b8b
chore: release 11.0.0-pre.1
github-actions[bot] Dec 6, 2024
8a911da
docs(ls): removed design change pending section note (#7963)
milaninfy Dec 9, 2024
687ab12
chore: remove pre-release mode from npm 11 and workspaces (#7970)
wraithgar Dec 9, 2024
28e8761
deps: [email protected]
wraithgar Dec 11, 2024
aabf345
deps: [email protected]
wraithgar Dec 11, 2024
52bcaf6
deps: [email protected]
wraithgar Dec 11, 2024
a598b7b
deps: [email protected]
wraithgar Dec 11, 2024
3b2951a
deps: [email protected]
wraithgar Dec 11, 2024
d369c77
deps: [email protected]
wraithgar Dec 11, 2024
a07f4e0
chore: @npmcli/[email protected]
wraithgar Dec 11, 2024
ecd7190
chore: dev dependency updates
wraithgar Dec 11, 2024
a7bfc6d
feat: trigger release process (#7972)
wraithgar Dec 13, 2024
5319e48
deps: remove unnecessary sprintf-js files in node_modules (#7973)
reggi Dec 16, 2024
a481f57
chore: release 11.0.0
github-actions[bot] Dec 16, 2024
f7da341
fix(search): properly display multiple search terms (#7980)
wraithgar Dec 16, 2024
ab9ddc0
fix(sbom): deduplicate sbom dependencies (#7992)
bdehamer Dec 20, 2024
1764a37
feat: add npm undeprecate command
wraithgar Jan 3, 2025
7f6c997
feat: add dry-run to deprecate/undeprecate commands
wraithgar Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
ignorePatterns: [

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.

'docs/**',
'smoke-tests/**',
'mock-globals/**',
'mock-registry/**',
'workspaces/**',
],
Expand Down
37 changes: 37 additions & 0 deletions .eslintrc.local.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const { resolve, relative } = require('path')

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.


// Create an override to lockdown a file to es6 syntax only
// and only allow it to require an allowlist of files

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

const rel = (p) => relative(__dirname, resolve(__dirname, p))
const braces = (a) => a.length > 1 ? `{${a.map(rel).join(',')}}` : a[0]

const es6Files = (e) => Object.entries(e).map(([file, allow]) => ({
files: `./${rel(file)}`,
parserOptions: {
ecmaVersion: 6,
},
rules: Array.isArray(allow) ? {
'node/no-restricted-require': ['error', [{
name: ['/**', `!${__dirname}/${braces(allow)}`],
message: `This file can only require: ${allow.join(',')}`,
}]],
} : {},
}))

module.exports = {
rules: {
'no-console': 'error',
},
overrides: es6Files({
'index.js': ['lib/cli.js'],
'bin/npm-cli.js': ['lib/cli.js'],
'lib/cli.js': ['lib/es6/validate-engines.js'],
'lib/es6/validate-engines.js': ['package.json'],
// TODO: This file should also have its requires restricted as well since it
// is an entry point but it currently pulls in config definitions which have
// a large require graph, so that is not currently feasible. A future config
// refactor should keep that in mind and see if only config definitions can
// be exported in a way that is compatible with ES6.
'bin/npx-cli.js': null,
}),
}
5 changes: 0 additions & 5 deletions .eslintrc.local.json

This file was deleted.

29 changes: 27 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
/node_modules/** linguist-generated=false
Ishmaello marked this conversation as resolved.
Show resolved Hide resolved

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

/package-lock.json linguist-generated=false
# normalize all line endings by default
* text=auto

# our shell/bin scripts always need to be LF
/bin/* text eol=lf
/workspaces/arborist/bin/index.js text eol=lf

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

/configure text eol=lf

# our cmd scripts always need to be CRLF
/bin/**/*.cmd text eol=crlf

# ignore all line endings in node_modules since we dont control that
/node_modules/** -text

# the files we write should be LF so they can be generated cross platform
/node_modules/.gitignore text eol=lf
/workspaces/arborist/test/fixtures/.gitignore text eol=lf
/DEPENDENCIES.md text eol=lf
/AUTHORS text eol=lf

# fixture tarballs should be treated as binary
/workspaces/*/test/fixtures/**/*.tgz binary

# these hint to GitHub to show these files as not generated so they default to
# showing the full diff in pull requests
/node_modules/** linguist-generated=false
/package-lock.json linguist-generated=false
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: 🐞 Bug v10
description: File a bug/issue against v10.x
title: "[BUG] <title>"
labels: [Bug, Needs Triage, Release 10.x]

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

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 issue exists in the latest npm version
description: Please make sure you have installed the latest npm and verified it is still an issue.
options:
- label: I am using the latest npm
required: true
- type: textarea
attributes:
label: Current Behavior
description: A clear & concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A clear & concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
value: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **`npm -v`**: **npm**: 10.0.0
- **`node -v`**: **Node.js**: 18.0.0
- **OS Name**: Ubuntu 20.04
- **System Model Name**: Macbook Pro
- **`npm config ls`**: `; "user" config from ...`
value: |
- npm:
- Node.js:
- OS Name:
- System Model Name:
- npm config:
```ini
; copy and paste output from `npm config ls` here
```
validations:
required: false
63 changes: 0 additions & 63 deletions .github/ISSUE_TEMPLATE/bug_8.yml

This file was deleted.

9 changes: 7 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm

- name: Check Git Status
run: node scripts/git-dirty.js

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

- name: Reset Deps
run: node . run resetdeps -- --package-lock
run: node scripts/resetdeps.js --package-lock
- name: Run Production Audit
run: node . audit --omit=dev
- name: Run Full Audit
Expand Down
114 changes: 61 additions & 53 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '*'

Choose a reason for hiding this comment

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

This file contains at least one console log. Please remove any present.

paths:
- lib/**
- workspaces/**/lib/**

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains leftover multi-line comments. Please review or remove them.

issue_comment:
types:
- created
Expand All @@ -17,63 +18,70 @@ jobs:
steps:
- name: Incoming Pull Request
if: |
github.event_name == 'pull_request' || (
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == 'npm/cli'
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.issue.state == 'open' &&
startsWith(github.event.comment.body, '@npm-cli-bot benchmark this')
)
env:
# gh cli uses these env vars for owner/repo/token
GH_REPO: "npm/benchmarks"
GITHUB_TOKEN: ${{ secrets.BENCHMARK_DISPATCH_TOKEN }}
run: |
EVENT_NAME="${{ github.event_name }}"
OWNER="${{ github.event.repository.owner.login }}"
REPO="${{ github.event.repository.name }}"
PR=""

if [[ "$EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_TOKEN" == "" ]]; then
echo "No auth - from fork pull request, exiting"
exit 0
fi
PR="${{ github.event.pull_request.number }}"
else
PR="${{ github.event.issue.number }}"
SENDER="${{ github.event.comment.user.login }}"
ROLE=$(gh api repos/${OWNER}/${REPO}/collaborators/${SENDER}/permission -q '.permission')

if [[ "$ROLE" != "admin" ]]; then
echo "${SENDER} is ${ROLE}, not an admin, exiting"
exit 0
fi

# add emoji to comment if user is an admin to signal
# benchmark is running
COMMENT_NODE_ID="${{ github.event.comment.node_id }}"
QUERY='mutation ($inputData:AddReactionInput!) {
addReaction (input:$inputData) {
reaction { content }
}
}'
echo '{
"query": "'${QUERY}'",
"variables": {
"inputData": {
"subjectId": "'"${COMMENT_NODE_ID}"'",
"content": "ROCKET"
}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.BENCHMARK_DISPATCH_TOKEN }}
script: |
const {
payload,
eventName,
repo: { owner, repo },
issue: { number },
} = context

if (eventName === 'issue_comment') {
const res = await github.rest.repos.getCollaboratorPermissionLevel({
owner,
repo,
username: payload.comment.user.login,
})
if (res.data.permission !== 'admin') {
core.info(`Commenter is not an admin, exiting`)
return
}
}' | gh api graphql --input -
fi

EVENT="${EVENT_NAME} ${OWNER}/${REPO}#${PR}"
echo '{
"event_type": "'"$EVENT"'",
"client_payload": {
"pr_id": "'"$PR"'",
"repo": "'"$REPO"'",
"owner": "'"$OWNER"'"

// add emoji to comment if user is an admin to signal benchmark is running
await github.rest.reactions.createForIssueComment({
owner,
repo,
comment_id: payload.comment.node_id,
content: 'rocket',
})
}
}' | gh api repos/{owner}/{repo}/dispatches --input -

const pullRequest = payload.pull_request || await github.rest.pulls.get({
owner,
repo,
pull_number: number,
}).then(r => r.data)

core.info(`Pull request: ${pullRequest.number}`)
core.info(`Base ref: ${pullRequest.base.ref}`)

const matchesRelease = pullRequest.base.ref.match(/^release\/v(\d+)$/)
const targetSpec = matchesRelease ? matchesRelease[1] : 'latest'
core.info(`Target spec: ${targetSpec}`)

const eventType = `"${eventName} ${owner}/${repo}#${pullRequest.number}"`
core.info(`Event type: ${eventType}`)

await github.rest.repos.createDispatchEvent({
owner: 'npm',
repo: 'benchmarks',
event_type: eventType,
client_payload: {
owner,
repo,
pr_id: number,
target_spec: targetSpec,
},
})
Loading