Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 14 additions & 7 deletions .github/workflows/npm-ls_demo-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,27 @@ jobs:
- local-workspaces
- juice-shop
npm-version:
- '8' # Current
## see https://www.npmjs.com/package/npm?activeTab=versions
## see also: https://github.com/npm/cli/releases
- '9' # Current
- '8' # Latest
- '7' # Legacy
- '6' # Legacy
node-version:
## action based on https://github.com/actions/node-versions/releases
## see also: https://nodejs.org/en/about/releases/
- '18' # Current
- '16' # Active LTS
- '14' # Maintenance LTS
- '18' # Current
- '16' # Active LTS
- '14' # Maintenance LTS
os:
- ubuntu-latest
- windows-latest
- macos-latest
exclude:
- # npm9 upgrade/install failed on node14
# !! REVISIT THIS !!
npm-version: '9'
node-version: '14'
- # juice-shop might not be node14 compatible
subject: juice-shop
node-version: '14'
Expand All @@ -73,19 +80,19 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: up-/down-grade npm to ${{ matrix.npm-version }}
run: npm i -g npm@${{ matrix.npm-version }}
run: npm i -g 'npm@${{ matrix.npm-version }}'
- name: report versions
run: |
node --version
npm --version
- name: setup demo
run: npm i --no-audit --no-fund
working-directory: ${{ env.DEMO_ROOT_DIR }}/${{ matrix.subject }}/project
- name: npm-ls --all --long --json
- name: npm-ls ls --json --all --long
# important: the command in use is the same used by the internal builders of this project
run: >
npm --prefix project
ls --all --long --json
ls --json --all --long
2> ${{ env.OUT_FILE_PREFIX }}.err.log
1> ${{ env.OUT_FILE_PREFIX }}.json
working-directory: ${{ env.DEMO_ROOT_DIR}}/${{ matrix.subject }}
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

## unreleased

* Added
* Enabled support for NPM v9. ([#245] via [#246])

[#245]: https://github.com/CycloneDX/cyclonedx-node-npm/issues/245
[#246]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/246

## 1.3.0 - 2022-10-30

* Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Create [CycloneDX] Software Bill of Materials (SBOM) from _[npm]_ projects.
## Requirements

* `node` >= `14`
* `npm` in range `6 - 8`
* `npm` in range `6 - 9`

## Installation

Expand Down
1 change: 1 addition & 0 deletions demo/local-dependencies/project/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
!/.gitignore
!/package.json
!/.npmrc
!/README.md
!/packages/
2 changes: 2 additions & 0 deletions demo/local-dependencies/project/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# mitigate https://github.com/npm/cli/issues/5733
install-links=false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"type": "commonjs",
"engines": {
"node": ">=14",
"npm": "6 - 8"
"npm": "6 - 9"
},
"directories": {
"doc": "docs",
Expand Down
Loading