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 805 commits into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
805 commits
Select commit Hold shift + click to select a range
5a28a29
fix(perf): lazy load workspace dependency (#7352)
H4ad Apr 9, 2024
64bcf4c
fix(perf): only initialize workpaces when we are inside a workspace (…
H4ad Apr 10, 2024
3760dd2
fix(perf): do less work loading config (#7361)
wraithgar Apr 10, 2024
ef381b1
fix: use @npmcli/redact for url cleaning (#7363)
lukekarrys Apr 10, 2024
f69052e
deps: @npmcli/package-json@5.0.2
wraithgar Apr 10, 2024
49fb9b7
deps: socks@2.8.3
wraithgar Apr 10, 2024
699a1de
deps: @npmcli/map-workspaces@3.0.6
wraithgar Apr 10, 2024
ca15992
chore: release 10.5.2
github-actions[bot] Apr 10, 2024
c16dd4e
docs: Document that overrides only work in the root `package.json` (#…
s100 Apr 11, 2024
4736b0d
chore(smoke-tests): add expected lazy require failure (#7358)
lukekarrys Apr 11, 2024
2a80dab
fix: typo in `npm access` usage (#7370)
mbtools Apr 12, 2024
9622597
feat: refactor terminal display (#7339)
lukekarrys Apr 12, 2024
d3a0cfa
deps: @npmcli/git@5.0.6
lukekarrys Apr 12, 2024
9351570
deps: @npmcli/package-json@5.0.3
lukekarrys Apr 12, 2024
ac98fd3
deps: npm-package-arg@11.0.2
lukekarrys Apr 12, 2024
0e7789b
deps: npm-profile@9.0.1
lukekarrys Apr 12, 2024
ee4b3e0
deps: npm-registry-fetch@16.2.1
lukekarrys Apr 12, 2024
9027266
deps: pacote@18.0.0
lukekarrys Apr 12, 2024
79f79c7
deps: proc-log@4.0.0
lukekarrys Apr 12, 2024
b8f8b41
deps: @npmcli/run-script@8.0.0
lukekarrys Apr 12, 2024
39e4da0
feat(libnpmexec)!: no longer accept output function
lukekarrys Apr 12, 2024
60faa90
feat(libnpmversion)!: remove silent option
lukekarrys Apr 12, 2024
ee9bf6e
feat(libnpmpack)!: remove silent option
lukekarrys Apr 13, 2024
87f6c09
deps: @npmcli/metavuln-calculator@7.0.1
lukekarrys Apr 15, 2024
9123de4
feat: do all ouput over proc-log events
lukekarrys Apr 12, 2024
7678a3d
deps: proc-log@4.1.0
lukekarrys Apr 15, 2024
6512112
fix: use proc-log for all timers
lukekarrys Apr 15, 2024
38ed048
deps: @npmcli/metavuln-calculator@7.1.0
lukekarrys Apr 16, 2024
9216d59
fix: better output colors (#7377)
wraithgar Apr 16, 2024
140b9c9
docs(package-json): note that line endings are inferred (#7382)
ertw Apr 16, 2024
8eae4b3
fix(token): properly await registry request (#7385)
wraithgar Apr 17, 2024
ad7ab8c
fix(perf): lazy loading optimizations (#7388)
wraithgar Apr 18, 2024
9333e9d
chore: reduce windows shim test flakes (#7386)
lukekarrys Apr 19, 2024
fc6e291
deps: proc-log@4.2.0 (#7392)
lukekarrys Apr 19, 2024
2ec690d
deps: move cli-table3 to devDependencies
wraithgar Apr 20, 2024
c209e98
fix: Remove table output from many commands
wraithgar Apr 16, 2024
dfa4cab
docs: update output examples
wraithgar Apr 22, 2024
d531f8b
fix: Remove table output from search and tar summary
wraithgar Apr 23, 2024
c77f035
deps: remove columnify
wraithgar Apr 23, 2024
b0ca163
deps: remove @npmcli/disparity-colors
wraithgar Apr 23, 2024
03958c3
fix: inline color selector in libnpmdiff
wraithgar Apr 23, 2024
78447d7
fix: prefer fs/promises over promisify (#7399)
lukekarrys Apr 24, 2024
157d0ae
deps: @npmcli/package-json@5.1.0
lukekarrys Apr 23, 2024
486d46c
deps: @npmcli/installed-package-contents@2.1.0
lukekarrys Apr 23, 2024
36adff3
deps: pacote@18.0.2
lukekarrys Apr 23, 2024
ea66e95
chore: remove licensee as a devDependency (#7380)
lukekarrys Apr 24, 2024
dd39de7
chore: disable selflink test on apple silicon (#7411)
lukekarrys Apr 24, 2024
4ab6401
fix(cleanup): dont nest files utils dir
lukekarrys Apr 22, 2024
469f788
fix(cleanup): newlines and whitespace
lukekarrys Apr 22, 2024
28019d5
fix(cleanup): move cli specific files to separate dir
lukekarrys Apr 22, 2024
03634be
fix: remove granular config timers
lukekarrys Apr 22, 2024
fc68547
fix: remove some npm.load timers and exit earlier for --versions
lukekarrys Apr 22, 2024
08e0c0e
chore: move sigstore json files to fixtures dir
lukekarrys Apr 22, 2024
7e04417
fix: rename base-cmd to match other commands
lukekarrys Apr 22, 2024
2538438
fix: dont write timing logs to file unless requested
lukekarrys Apr 22, 2024
7ca6d84
fix: use proc-log META for flush and force
lukekarrys Apr 22, 2024
3cbc258
chore: test for early version exit
lukekarrys Apr 22, 2024
694dba9
fix: dont expose as many public properties of timers
lukekarrys Apr 23, 2024
43e6194
fix: dont show run script banners in silent
lukekarrys Apr 23, 2024
f309c1c
fix(refactor): move timer and error logfile messages to lib/npm
lukekarrys Apr 23, 2024
e5f1948
fix: run update notifier after exec but before waiting
lukekarrys Apr 23, 2024
06202f0
fix: store unref promises for awaiting in tests
lukekarrys Apr 23, 2024
7f4e667
fix: redact when displaying non-ascii arguments
lukekarrys Apr 24, 2024
0708b3b
fix: use name of level instead of label for logging prefixes (#7414)
lukekarrys Apr 24, 2024
180b919
fix: remove unused npm.setCmd method
lukekarrys Apr 24, 2024
c060e60
fix: return command and argv from load
lukekarrys Apr 24, 2024
0e74ee4
fix: clean up npm object (#7416)
wraithgar Apr 25, 2024
9fea383
chore: release 10.6.0
github-actions[bot] Apr 25, 2024
57ebebf
fix: update repository.url in package.json (#7418)
wraithgar Apr 25, 2024
71cbd91
fix: hide banner for exec and explore (#7421)
lukekarrys Apr 25, 2024
762888a
deps: update dependencies for workspaces (#7429)
wraithgar Apr 26, 2024
5230647
fix: rewrite powershell scripts to use PSScriptRoot (#7422)
lukekarrys Apr 29, 2024
9da5738
deps: @npmcli/run-script@8.1.0 (#7437)
lukekarrys Apr 29, 2024
104fcb5
fix: remove doctor log for each file permission check (#7438)
lukekarrys Apr 29, 2024
7e349f4
feat: add spinner (#7432)
lukekarrys Apr 29, 2024
bcc781a
fix: move run-script banners to stderr when in json mode (#7439)
lukekarrys Apr 29, 2024
1674136
docs: correct search help output (#7441)
wraithgar Apr 30, 2024
bc4c342
fix: account for registries with no publisher in search (#7448)
wraithgar Apr 30, 2024
2558283
fix(powershell): fallback to script root if globalPrefix does not exi…
lukekarrys Apr 30, 2024
432efb5
deps: make-fetch-happen@13.0.1
wraithgar Apr 30, 2024
2cffdfe
deps: lru-cache@10.2.2
wraithgar Apr 30, 2024
cadc0f0
deps: hoist production copy of sprintf-js
wraithgar Apr 30, 2024
2fba4b7
chore: update devDependencies in lockfile
wraithgar Apr 30, 2024
d679ce8
fix(linting): no-unused-vars
wraithgar Apr 30, 2024
abcbc54
fix(reify): cleanup of Symbols (#7430)
wraithgar Apr 30, 2024
65d76db
deps: npm-profile@9.0.2
wraithgar Apr 30, 2024
a785766
deps: pacote@18.0.3
wraithgar Apr 30, 2024
a7145d4
deps: npm-registry-fetch@17.0.0
wraithgar Apr 30, 2024
80eec03
deps: @npmcli/redact@2.0.0
wraithgar Apr 30, 2024
356c374
chore: fix test fixture for new redact behavior
wraithgar Apr 30, 2024
a1b95eb
fix(linting): no-unused-vars
wraithgar Apr 30, 2024
f76e769
chore(smoke-tests): force pack json test to use npmLocal (#7454)
lukekarrys Apr 30, 2024
3ec86a0
fix(linting): no-unused-vars (#7456)
wraithgar Apr 30, 2024
796971e
chore: release 10.7.0
github-actions[bot] Apr 30, 2024
f6fff32
docs: clarify what peerDependenciesMeta does (#7433)
xuhdev May 1, 2024
4ab6cf4
fix(publish): validate dist-tag (#7459)
reggi May 1, 2024
4cbc2d4
deps: npm-profile@10.0.0
lukekarrys May 2, 2024
261ea19
fix: run input.start around help and openining urls
lukekarrys May 2, 2024
63ef498
deps: npm-registry-fetch@17.0.1
lukekarrys May 2, 2024
8ded848
chore: remove doctor snapshot stack traces
lukekarrys May 2, 2024
2b7ec54
chore: template-oss@4.22.0
lukekarrys May 3, 2024
9c4d3c4
chore: template-oss-apply
lukekarrys May 3, 2024
e39d422
docs: suggest "npm repo" for showing the repo of a package (#7473)
bytebit8 May 5, 2024
ca1a68d
fix: log if `npm deprecate` does not match any version (#7474)
mbtools May 6, 2024
1e375c1
feat: create exit handler class (#7442)
lukekarrys May 6, 2024
effe910
fix: dont omit license from stored manifests (#7475)
lukekarrys May 6, 2024
6dfaebb
deps: @npmcli/git@5.0.7
lukekarrys May 6, 2024
8234412
deps: @npmcli/promise-spawn@7.0.2
lukekarrys May 6, 2024
43331e4
deps: bin-links@4.0.4
lukekarrys May 6, 2024
f94d672
deps: cacache@18.0.3
lukekarrys May 6, 2024
714e3e1
deps: hosted-git-info@7.0.2
lukekarrys May 6, 2024
4c5bf77
deps: init-package-json@6.0.3
lukekarrys May 6, 2024
18c3b40
deps: json-parse-even-better-errors@3.0.2
lukekarrys May 6, 2024
e71f541
deps: nopt@7.2.1
lukekarrys May 6, 2024
310a7a5
deps: normalize-package-data@6.0.1
lukekarrys May 6, 2024
e2fdb65
deps: npm-pick-manifest@9.0.1
lukekarrys May 6, 2024
a9a6dcd
deps: pacote@18.0.5
lukekarrys May 6, 2024
8b20f8c
deps: ssri@10.0.6
lukekarrys May 6, 2024
7e15b6d
deps: @npmcli/metavuln-calculator@7.1.1
lukekarrys May 6, 2024
552113e
deps: ignore-walk@6.0.5
lukekarrys May 6, 2024
d440011
deps: npm-user-validate@2.0.1
lukekarrys May 6, 2024
18e5312
deps: validate-npm-package-name@5.0.1
lukekarrys May 6, 2024
dade2c8
deps: minipass@7.1.0
lukekarrys May 6, 2024
419f9b9
deps: cmd-shim@6.0.3
lukekarrys May 6, 2024
ff6c5d1
deps: minipass-fetch@3.0.5
lukekarrys May 6, 2024
2146e1f
deps: npm-bundled@3.0.1
lukekarrys May 6, 2024
26fefb8
deps: promzard@1.0.2
lukekarrys May 6, 2024
5b2317b
deps: add lru-cache
wraithgar May 2, 2024
722c0fa
fix: limit packument cache size based on heap size
wraithgar May 2, 2024
268303c
docs: add npm version to every local help output (#7479)
klm-turing May 7, 2024
8d161a4
deps: semver@7.6.1
lukekarrys May 8, 2024
ea0b07d
deps: pacote@18.0.6
lukekarrys May 8, 2024
1524cfd
chore: remove extra quotes from benchmark event_type (#7484)
lukekarrys May 8, 2024
e9fdc9a
chore: create smoke-publish-test.sh script (#7483)
lukekarrys May 9, 2024
2ec2e75
chore: disable progress on shellout exit tests
wraithgar May 8, 2024
67ebb66
chore: disable color in config tests
wraithgar May 8, 2024
d3b9587
chore: disable progress on npm pack test
wraithgar May 8, 2024
56a27fa
fix: avoid caching manifests as promises
wraithgar May 8, 2024
58f773c
deps: path-scurry@1.11.0
wraithgar May 9, 2024
f078c82
deps: glob@10.3.14
wraithgar May 9, 2024
6d456bb
fix: dont write log file for completion commands (#7497)
lukekarrys May 9, 2024
c3d2819
docs: npm help json/global command on windows (#7496)
klm-turing May 9, 2024
e290352
fix: revert DepsQueue to re-sort on pop() (#7499)
lukekarrys May 10, 2024
7c7fba4
chore(benchmarks): fix emoji reaction to comment (#7500)
lukekarrys May 10, 2024
bdd2aae
docs: remove obsolete removal using make uninstall (#7502)
avinal May 10, 2024
db62910
fix(config): be more aggressive about hiding protected values (#7504)
wraithgar May 10, 2024
4e53e33
deps: semver@7.6.2
lukekarrys May 9, 2024
fd42986
deps: @npmcli/fs@3.1.1
lukekarrys May 9, 2024
9064ffc
deps: @sigstore/tuf@2.3.3
lukekarrys May 9, 2024
c2b28f9
deps: minipass@7.1.1
lukekarrys May 9, 2024
e189873
deps: @sigstore/sign@2.3.1
lukekarrys May 9, 2024
8add914
chore: create single bug report issue template (#7505)
lukekarrys May 10, 2024
6f64148
fix: require stdout to be a TTY for progress (#7507)
lukekarrys May 11, 2024
e40454c
fix(view): dont unwrap arrays in json mode (#7506)
lukekarrys May 11, 2024
b54cdb8
fix(refactor): create new error output primitives (#7515)
lukekarrys May 13, 2024
b2ce025
docs: suggest correct bin entry (#7518)
Santoshraj2 May 14, 2024
76aef74
fix(view): refactor exec and execWorkspaces to call same methods (#7520)
lukekarrys May 14, 2024
dcfc3de
chore: convert run-script tests to snapshots (#7517)
lukekarrys May 14, 2024
cb85973
deps: glob@10.3.15
wraithgar May 14, 2024
fec3c94
deps: path-scurry@1.11.1
wraithgar May 14, 2024
898bcfd
deps: @sigstore/protobuf-specs@0.3.2
wraithgar May 14, 2024
1cdc662
deps: @tufjs/repo-mock@2.0.1
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: ini@4.1.3
wraithgar May 29, 2024
2508a83
deps: is-cidr@5.1.0
wraithgar May 29, 2024
5c6759d
deps: postcss-selector-parser@6.1.0
wraithgar May 29, 2024
18b42a4
deps: glob@10.4.1
wraithgar May 29, 2024
41291ba
deps: @sigstore/tuf@2.3.4
wraithgar May 29, 2024
83fed2e
deps: sigstore@2.3.1
wraithgar May 29, 2024
447a8d7
deps: spdx-license-ids@3.0.18
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/package-json@5.1.1
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/package-json@5.1.1
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/package-json@5.2.0
wraithgar Jun 20, 2024
6f0d7ce
deps: @npmcli/redact@2.0.1
wraithgar Jun 20, 2024
4646768
deps: npm-registry-fetch@17.1.0
wraithgar Jun 20, 2024
8b8ce7a
deps: glob@10.4.2
wraithgar Jun 20, 2024
941d0d7
deps: debug@4.3.5
wraithgar Jun 20, 2024
7b584d3
deps: foreground-child@3.2.1
wraithgar Jun 20, 2024
e5451e1
deps: jackspeak@3.4.0
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/git@5.0.8
wraithgar Jul 9, 2024
094c4ea
deps: minimatch@9.0.5
wraithgar Jul 9, 2024
76dab91
deps: normalize-package-data@6.0.2
wraithgar Jul 9, 2024
d8fa116
deps: https-proxy-agent@7.0.5
wraithgar Jul 9, 2024
5e4fa18
deps: socks-proxy-agent@8.0.4
wraithgar Jul 9, 2024
1c1adae
deps: npm-pick-manifest@9.1.0
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: node-gyp@10.2.0
wraithgar Aug 20, 2024
1a9ac86
deps: debug@4.3.6
wraithgar Aug 20, 2024
12587fa
deps: npm-package-arg@11.0.3
wraithgar Aug 20, 2024
4e965ad
deps: semver@7.6.3
wraithgar Aug 20, 2024
a44ab26
deps: postcss-selector-parser@6.1.2
wraithgar Aug 20, 2024
2986f4e
deps: cacache@18.0.4
wraithgar Aug 20, 2024
7342c24
deps: foreground-child@3.3.0
wraithgar Aug 20, 2024
df58b0c
deps: glob@10.4.5
wraithgar Aug 20, 2024
d7e462b
deps: jackspeak@3.4.3
wraithgar Aug 20, 2024
3fd7a48
deps: lru-cache@10.4.3
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/template-oss@4.23.3
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
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