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

feat!: Drop support old Node version and integrate typescript SDK #548

Merged
merged 28 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
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
5 changes: 1 addition & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['14', '16', '18']
exclude:
- os: macos-latest
node: 14
node: ['18', '20', '22']
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- name: Checkout
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
# Box CLI

[![Project Status](http://opensource.box.com/badges/active.svg)](http://opensource.box.com/badges)
![Platform](https://img.shields.io/badge/node-14--18-blue)
![Platform](https://img.shields.io/badge/node-18--22-blue)
[![Coverage](https://coveralls.io/repos/github/box/boxcli/badge.svg?branch=main)](https://coveralls.io/github/box/boxcli?branch=main)

> 🚨**NEW MAJOR VERSION ALERT**
>
> We’re excited to announce that by the end of January 2025, we’ll be releasing Box CLI 4.0.0! This new major version introduces exciting features and improvements, including:
> We’re excited to announce that we have just released Box CLI 4.0.0! This new major version introduces exciting features and improvements, including:
> * Upgrading the oclif framework from v1 to v4
> * Adding support for Node 20 and 22, while dropping support for Node 14 and 16
>
> Stay tuned!
> Please refer to the [CHANGELOG](CHANGELOG.md) for more information on the changes in this release.

The Box CLI is a user-friendly command line tool which allows both technical and non-technical users to leverage the Box API to perform routine or bulk actions. There is no need to write any code, as these actions are executed through a [set of commands](#command-topics).

Expand Down Expand Up @@ -196,7 +196,8 @@ A current release is on the leading edge of our SDK development, and is intended

| Version | Supported Environments | State | First Release | EOL/Terminated |
|---------|-------------------------|-----------|---------------|----------------|
| 3 | Node.js >= 14 | Supported | 01 Feb 2022 | TBD |
| 4 | Node.js >= 18 | | | |
| 3 | Node.js >= 16 | Supported | 01 Feb 2022 | TBD |
| 2 | | EOL | 14 Dec 2018 | 01 Feb 2022 |
| 1 | | EOL | 01 Nov 2017 | 14 Dec 2018 |

Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
"@oclif/plugin-not-found": "^1.2.0",
"archiver": "^3.0.0",
"box-node-sdk": "^3.7.0",
"box-typescript-sdk-gen": "^1.11.0",
"chalk": "^2.4.1",
"cli-progress": "^2.1.0",
"csv": "^6.3.3",
"date-fns": "^1.29.0",
"debug": "^4.3.4",
"express": "^4.17.1",
"express": "^4.21.1",
"fs-extra": "^10.1.0",
"inquirer": "^6.2.0",
"js-yaml": "^3.13.1",
Expand Down Expand Up @@ -63,12 +64,11 @@
"mockery": "^2.1.0",
"nock": "^10.0.0",
"nyc": "^15.1.0",
"pkg": "^5.5.2",
"sinon": "^15.0.1",
"standard-version": "^9.5.0"
},
"engines": {
"node": ">=14.0.0"
"node": ">=18.0.0"
},
"files": [
"/bin",
Expand Down Expand Up @@ -128,18 +128,14 @@
}
}
},
"pkg": {
"scripts": "./src/**/*.js"
},
"scripts": {
"test": "nyc mocha \"test/**/*.test.js\"",
"posttest": "npm run lint",
"lint": "eslint --fix ./src ./test",
"prepack": "oclif-dev manifest && oclif-dev readme --multi && npm shrinkwrap && git checkout origin/main -- package-lock.json",
"postpack": "rm -f oclif.manifest.json && rm -f npm-shrinkwrap.json",
"version": "oclif-dev readme --multi && git add README.md && git add docs",
"build": "oclif-dev pack:macos && rm -rf tmp/ && oclif-dev pack:win && rm -rf tmp/ && npm run binaries",
"binaries": "pkg --targets node12-macos-x64,node12-win-x64,node12-linux-x64 --out-path ./dist .",
"build": "oclif-dev pack:macos && rm -rf tmp/ && oclif-dev pack:win && rm -rf tmp/",
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested the whole process of releasing on jenkins?

"changelog": "node node_modules/standard-version/bin/cli.js --skip.commit --skip.push --skip.tag --dry-run"
},
"overrides": {
Expand Down
Loading
Loading