Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: afa10c747e44bc6fa12cfeb3ece7a8e25ac4beae
Choose a base ref
...
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0e7491162965e539da51903f87fa5991d3cd04b
Choose a head ref

Commits on Jun 22, 2022

  1. Copy the full SHA
    362325a View commit details
  2. deps: libnpmversion@3.0.5

    npm-cli-bot authored and fritzy committed Jun 22, 2022
    Copy the full SHA
    a5be4d6 View commit details
  3. Copy the full SHA
    76bbb9a View commit details
  4. deps: libnpmpack@4.1.1

    npm-cli-bot authored and fritzy committed Jun 22, 2022
    Copy the full SHA
    3ea332b View commit details
  5. Copy the full SHA
    d450d23 View commit details
  6. deps: libnpmexec@4.0.7

    npm-cli-bot authored and fritzy committed Jun 22, 2022
    Copy the full SHA
    14a08d6 View commit details
  7. Copy the full SHA
    04682b7 View commit details
  8. deps: @npmcli/arborist@5.2.2

    npm-cli-bot authored and fritzy committed Jun 22, 2022
    Copy the full SHA
    1ab9776 View commit details
  9. chore: changelog for v8.13.0

    fritzy authored Jun 22, 2022
    Copy the full SHA
    d8acfb3 View commit details
  10. chore: update AUTHORS

    fritzy authored Jun 22, 2022
    Copy the full SHA
    3f13e82 View commit details
  11. 8.13.0

    fritzy authored Jun 22, 2022
    Copy the full SHA
    69fa5ff View commit details

Commits on Jun 23, 2022

  1. deps: @npmcli/run-script@4.1.3 (#5064)

    * deps: @npmcli/run-script@4.1.3
    nlf authored Jun 23, 2022
    Copy the full SHA
    f59a114 View commit details
  2. Copy the full SHA
    c0bda31 View commit details
  3. deps: libnpmpack@4.1.2

    npm-cli-bot authored and fritzy committed Jun 23, 2022
    Copy the full SHA
    236b4a2 View commit details
  4. Copy the full SHA
    4e94393 View commit details
  5. deps: @npmcli/arborist@5.2.3

    npm-cli-bot authored and fritzy committed Jun 23, 2022
    Copy the full SHA
    0a6664d View commit details
  6. Copy the full SHA
    d997196 View commit details
  7. deps: libnpmexec@4.0.8

    npm-cli-bot authored and fritzy committed Jun 23, 2022
    Copy the full SHA
    9f94049 View commit details
  8. Copy the full SHA
    4ba1e36 View commit details
  9. deps: libnpmversion@3.0.6

    npm-cli-bot authored and fritzy committed Jun 23, 2022
    Copy the full SHA
    8212363 View commit details
  10. Copy the full SHA
    a76e107 View commit details
  11. chore: changelog for v8.13.1

    fritzy committed Jun 23, 2022
    Copy the full SHA
    5a0bf55 View commit details
  12. 8.13.1

    fritzy committed Jun 23, 2022
    Copy the full SHA
    0ce09f1 View commit details

Commits on Jun 29, 2022

  1. Copy the full SHA
    5be7d6e View commit details
  2. deps: @npmcli/run-script@4.1.4

    nlf authored and lukekarrys committed Jun 29, 2022
    Copy the full SHA
    dd62328 View commit details
  3. deps: @npmcli/run-script@4.1.5

    nlf authored and lukekarrys committed Jun 29, 2022
    Copy the full SHA
    5546906 View commit details
  4. deps: @npmcli/metavuln-calculator@3.1.1 (#5102)

    * don't throw on invalid semver versions
    wraithgar authored Jun 29, 2022
    Copy the full SHA
    c7d5a69 View commit details
  5. deps: npm-packlist@5.1.1 (#5103)

    * correctly ignore .gitignore when a .npmignore is present
    wraithgar authored Jun 29, 2022
    Copy the full SHA
    7ce66b0 View commit details
  6. chore: arborist test snapshots (#5106)

    run-script update changed cmd signatures
    wraithgar authored Jun 29, 2022
    Copy the full SHA
    7fd4f52 View commit details
  7. Copy the full SHA
    ffea70b View commit details
  8. 8.13.2

    lukekarrys committed Jun 29, 2022
    Copy the full SHA
    ef8d2ed View commit details

Commits on Jul 11, 2022

  1. feat: add npm audit signatures (#4827)

    * feat: add npm audit signatures
    
    Implements [RFC: Improve signature verification](npm/rfcs#550)
    
    Adds a new sub-command to `audit`: `npm audit signatures` (following [`npm audit licenses`](#3452))
    
    This command will verify registry signatures stored in the packument against a public key on the registry.
    
    Supporting:
    - Any registry that implements `host/-/npm/v1/keys` endpoint and provides `signatures` in the packument `dist` object
    - Validates public keys are not expired
    - Errors when encountering packages with missing signatures when the registry returns keys at `host/-/npm/v1/keys`
    - Errors when encountering invalid signatures
    - Output: json/human formats
    feelepxyz authored Jul 11, 2022
    Copy the full SHA
    f032e1c View commit details
  2. Copy the full SHA
    9697f16 View commit details
  3. docs: update reference to deprecated spdx package (#5079)

    Just refer to the spec instead.
    
    Author describes the reason here:
    
    kemitchell/spdx.js@616ce61
    kachick authored Jul 11, 2022
    Copy the full SHA
    da5a4ba View commit details
  4. docs: naming of files in example code should be consistent (#5043)

    The use of `a` workspace have some inconsistency in terms of naming, making the doc not easy to follow.
    xc1427 authored Jul 11, 2022
    Copy the full SHA
    25b3058 View commit details
  5. feat(arborist): add support for dependencies script (#5094)

    feat: add support for dependencies script
    
    this is a new feature that will run the `dependencies` (as well as the `pre` and `post` versions) script any time an npm action makes a change to the installed dependency tree, whether it's adding a new dependency, removing one, or just shuffling things around to dedupe/optimize
    nlf authored Jul 11, 2022
    Copy the full SHA
    e9b4214 View commit details
  6. Copy the full SHA
    ac56fc4 View commit details

Commits on Jul 12, 2022

  1. Copy the full SHA
    aa0ba5c View commit details
  2. deps: @npmcli/arborist@5.3.0

    npm-cli-bot authored and wraithgar committed Jul 12, 2022
    Copy the full SHA
    cb0db7c View commit details
  3. chore: add dependencies script (#5148)

    No more having to manually remember to run this!
    wraithgar authored Jul 12, 2022
    Copy the full SHA
    6e68d23 View commit details
  4. Copy the full SHA
    52ec5ec View commit details
  5. Copy the full SHA
    c6c4ba3 View commit details
  6. Copy the full SHA
    e58f02f View commit details
  7. deps: minipass@3.3.4

    wraithgar committed Jul 12, 2022
    Copy the full SHA
    b8c0580 View commit details
  8. deps: lru-cache@7.12.0

    wraithgar committed Jul 12, 2022
    Copy the full SHA
    ad72611 View commit details
  9. deps: just-diff@5.0.3

    wraithgar committed Jul 12, 2022
    Copy the full SHA
    c94919d View commit details
  10. deps: just-diff-apply@5.3.1

    wraithgar committed Jul 12, 2022
    Copy the full SHA
    18ddc57 View commit details
  11. deps: npm-package-arg@9.1.0

    wraithgar committed Jul 12, 2022
    Copy the full SHA
    a2d700b View commit details
  12. deps: @npmcli/run-script@4.1.7

      * unique filename for temporary script files
      * correctly translate paths when using bash in windows
    wraithgar committed Jul 12, 2022
    Copy the full SHA
    99dc697 View commit details
  13. chore: tap@16.3.0

    wraithgar committed Jul 12, 2022
    Copy the full SHA
    13381b9 View commit details
Showing 1,975 changed files with 182,659 additions and 140,642 deletions.
10 changes: 10 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']],
'header-max-length': [2, 'always', 80],
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']],
},
}
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

'use strict'

const { readdirSync: readdir } = require('fs')

const localConfigs = readdir(__dirname)
@@ -6,6 +10,13 @@ const localConfigs = readdir(__dirname)

module.exports = {
root: true,
ignorePatterns: [
'docs/**',
'smoke-tests/**',
'mock-globals/**',
'mock-registry/**',
'workspaces/**',
],
extends: [
'@npmcli',
...localConfigs,
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')

// Create an override to lockdown a file to es6 syntax only
// and only allow it to require an allowlist of files
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,
}),
}
20 changes: 0 additions & 20 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
/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
/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
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* @npm/cli-team
# This file is automatically added by @npmcli/template-oss. Do not edit.

* @npm/cli-team
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: 🐞 Bug v9
description: File a bug/issue against v9.x
title: "[BUG] <title>"
labels: [Bug, Needs Triage, Release 9.x]
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**: 7.6.3
- **`node -v`**: **Node.js**: 13.14.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
32 changes: 32 additions & 0 deletions .github/matchers/tap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"//@npmcli/template-oss": "This file is automatically added by @npmcli/template-oss. Do not edit.",
"problemMatcher": [
{
"owner": "tap",
"pattern": [
{
"regexp": "^\\s*not ok \\d+ - (.*)",
"message": 1
},
{
"regexp": "^\\s*---"
},
{
"regexp": "^\\s*at:"
},
{
"regexp": "^\\s*line:\\s*(\\d+)",
"line": 1
},
{
"regexp": "^\\s*column:\\s*(\\d+)",
"column": 1
},
{
"regexp": "^\\s*file:\\s*(.*)",
"file": 1
}
]
}
]
}
39 changes: 39 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: Audit

on:
workflow_dispatch:
schedule:
# "At 08:00 UTC (01:00 PT) on Monday" https://crontab.guru/#0_8_*_*_1
- cron: "0 8 * * 1"

jobs:
audit:
name: Audit Dependencies
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
check-latest: true
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js --package-lock
- name: Run Production Audit
run: node . audit --omit=dev
- name: Run Full Audit
run: node . audit --audit-level=none
85 changes: 0 additions & 85 deletions .github/workflows/ci-docs.yml

This file was deleted.

Loading