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
2 changes: 1 addition & 1 deletion .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

strategy:
matrix:
node-version: [ 20.x ]
node-version: [ 22.x ]
db: [ 'athena', 'bigquery', 'snowflake' ]
target: [ "x86_64-unknown-linux-gnu" ]
fail-fast: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/drivers-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
name: Build native Linux ${{ matrix.node-version }} ${{ matrix.target }} Python ${{ matrix.python-version }}
strategy:
matrix:
node-version: [ 20 ]
node-version: [ 22 ]
python-version: [ "fallback" ]
target: [ "x86_64-unknown-linux-gnu" ]
fail-fast: false
Expand Down Expand Up @@ -254,10 +254,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js 20.x
- name: Install Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x

- name: Configure `yarn`
run: yarn policies set-version v1.22.22
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
workspaces: ./rust/cubesql -> target
key: cubesql-x86_64-unknown-linux-gnu
shared-key: cubesql-x86_64-unknown-linux-gnu
- name: Install Node.js 20
- name: Install Node.js 22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install Yarn
run: npm install -g yarn
- name: Set Yarn version
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20.x]
node-version: [22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -103,10 +103,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js 20.x
- name: Install Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Restore lerna
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -167,10 +167,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js 20.x
- name: Install Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Restore lerna
uses: actions/cache@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
# override: true # this is by default on
rustflags: ""
components: rustfmt
- name: Install Node.js 20.x
- name: Install Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
name: Build native Linux ${{ matrix.node-version }} ${{ matrix.target }} Python ${{ matrix.python-version }}
strategy:
matrix:
node-version: [20]
node-version: [22]
python-version: ["3.9", "3.10", "3.11", "3.12", "fallback"]
target: ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"]
include:
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
name: Build ${{ matrix.os-version }} ${{ matrix.target }} ${{ matrix.node-version }} Python ${{ matrix.python-version }}
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
os-version: ["macos-13"]
target: ["x86_64-apple-darwin", "aarch64-apple-darwin"]
python-version: ["3.9", "3.10", "3.11", "3.12", "fallback"]
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
name: Build ${{ matrix.os-version }} ${{ matrix.node-version }} Python ${{ matrix.python-version }}
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
python-version: ["fallback"]
os-version: [windows-2019]
include:
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ jobs:
strategy:
matrix:
# Current docker version + next LTS
node-version: [20.x, 22.x]
# TODO: Add 24 after it's been released
node-version: [22.x]
# Don't forget to update build-native-release
python-version: [3.11]
transpile-worker-threads: [false, true]
Expand Down Expand Up @@ -116,6 +117,7 @@ jobs:
run: yarn lerna run --concurrency 1 --stream --no-prefix unit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: (matrix.node-version == '22.x')
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/*/coverage/*
Expand All @@ -139,10 +141,10 @@ jobs:
# override: true # this is by default on
rustflags: ""
components: rustfmt
- name: Install Node.js 20.x
- name: Install Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -274,10 +276,10 @@ jobs:
workspaces: ./packages/cubejs-backend-native
key: native-${{ runner.OS }}-x86_64-unknown-linux-gnu
shared-key: native-${{ runner.OS }}-x86_64-unknown-linux-gnu
- name: Install Node.js 20
- name: Install Node.js 22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install Yarn
run: npm install -g yarn
- name: Set Yarn version
Expand Down Expand Up @@ -306,7 +308,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
fail-fast: false

steps:
Expand Down Expand Up @@ -394,7 +396,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
db: [
'clickhouse', 'druid', 'elasticsearch', 'mssql', 'mysql', 'postgres', 'prestodb',
'mysql-aurora-serverless', 'crate', 'mongobi', 'firebolt', 'dremio', 'vertica'
Expand Down Expand Up @@ -481,7 +483,7 @@ jobs:

strategy:
matrix:
node-version: [ 20.x ]
node-version: [ 22.x ]
python-version: [ 3.11 ]
fail-fast: false

Expand Down Expand Up @@ -609,7 +611,7 @@ jobs:
- 5000:5000
strategy:
matrix:
node-version: [ 20 ]
node-version: [ 22 ]
target: [ "x86_64-unknown-linux-gnu" ]
dockerfile:
- dev.Dockerfile
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/rust-cubesql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ jobs:
strategy:
matrix:
# Current used version + 1 LTS
node-version: [20, 22]
# TODO: Add 24 after it's been released (don't forget to uncomment excludes below!)
node-version: [22]
python-version: ["3.9", "3.10", "3.11", "3.12", "fallback"]
target: ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"]
# minimize number of jobs
exclude:
- node-version: 20
target: "aarch64-unknown-linux-gnu"
# TODO: uncomment after adding v24
# - node-version: 22
# target: "aarch64-unknown-linux-gnu"
- python-version: 3.10
target: "aarch64-unknown-linux-gnu"
- python-version: 3.11
Expand Down Expand Up @@ -216,7 +218,7 @@ jobs:
strategy:
matrix:
# We do not need to test under all versions, we do it under linux
node-version: [20.x]
node-version: [22.x]
os-version: ["macos-13"]
target: ["x86_64-apple-darwin", "aarch64-apple-darwin"]
include:
Expand Down Expand Up @@ -309,7 +311,7 @@ jobs:
strategy:
matrix:
# We do not need to test under all versions, we do it under linux
node-version: [20.x]
node-version: [22.x]
os-version: [windows-2019]
python-version: ["fallback"]
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.19.0
22.14.0
20 changes: 17 additions & 3 deletions DEPRECATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ features:
| Removed | [MySQL-based SQL API](#mysql-based-sql-api) | v0.35.0 | v0.35.0 |
| Removed | [`initApp` hook](#initapp-hook) | v0.35.0 | v0.35.0 |
| Removed | [`/v1/run-scheduled-refresh` REST API endpoint](#v1run-scheduled-refresh-rest-api-endpoint) | v0.35.0 | v0.36.0 |
| Deprecated | [Node.js 18](#nodejs-18) | v0.36.0 | |
| Deprecated | [`CUBEJS_SCHEDULED_REFRESH_CONCURRENCY`](#cubejs_scheduled_refresh_concurrency) | v1.2.7 | |
| Removed | [Node.js 18](#nodejs-18) | v0.36.0 | v1.3.0 |
| Deprecated | [`CUBEJS_SCHEDULED_REFRESH_CONCURRENCY`](#cubejs_scheduled_refresh_concurrency) | v1.2.7 | |
| Deprecated | [Node.js 20](#nodejs-20) | v1.3.0 | |

### Node.js 8

Expand Down Expand Up @@ -397,4 +398,17 @@ no more updates. Please upgrade to Node.js 20 or higher.

**Deprecated in Release: v1.2.7**

This environment variable was renamed to [`CUBEJS_SCHEDULED_REFRESH_QUERIES_PER_APP_ID`](https://cube.dev/docs/reference/configuration/environment-variables#cubejs_scheduled_refresh_queries_per_app_id). Please use the new name.
This environment variable was renamed to [`CUBEJS_SCHEDULED_REFRESH_QUERIES_PER_APP_ID`](https://cube.dev/docs/reference/configuration/environment-variables#cubejs_scheduled_refresh_queries_per_app_id). Please use the new name.

### Node.js 18

**Removed in Release: v1.3.0**

[link-nodejs-eol]: https://github.com/nodejs/Release#end-of-life-releases

### Node.js 20

**Deprecated in Release: v1.3.0**

Node.js 20 is in maintenance mode from [November 22, 2024][link-nodejs-eol]. This means
no more new features, only security updates. Please upgrade to Node.js 22 or higher.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"resolutions": {
"es5-ext": "0.10.53",
"lodash": "^4.17.0",
"@types/node": "^18",
"@types/node": "^20",
"@types/ramda": "0.27.40",
"thrift": "0.20.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-backend-maven/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@cubejs-backend/linter": "1.2.33",
"@types/jest": "^27",
"@types/node": "^18",
"@types/node": "^20",
"jest": "^27",
"typescript": "~5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-backend-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"devDependencies": {
"@cubejs-backend/linter": "1.2.33",
"@types/jest": "^27",
"@types/node": "^18",
"@types/node": "^20",
"cargo-cp-artifact": "^0.1.9",
"jest": "^27",
"pg": "^8.11.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-backend-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/cli-progress": "^3.9.1",
"@types/decompress": "^4.2.7",
"@types/jest": "^27",
"@types/node": "^18",
"@types/node": "^20",
"@types/node-fetch": "^2.5.8",
"@types/shelljs": "^0.8.5",
"@types/throttle-debounce": "^2.1.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/cubejs-backend-shared/src/node-check.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
import process from 'process';
import color from '@oclif/color';

const leastSupportedVersion = 20;

Check warning on line 4 in packages/cubejs-backend-shared/src/node-check.ts

View check run for this annotation

Codecov / codecov/patch

packages/cubejs-backend-shared/src/node-check.ts#L4

Added line #L4 was not covered by tests
const currentNodeVersion = process.versions.node;
const semver = currentNodeVersion.split('.');
const major = parseInt(<string> semver[0], 10);
// const _minor = parseInt(<string> semver[1], 10);

if (major < 18) {
if (major < leastSupportedVersion) {
console.error(
color.red(
`You are running Node.js ${currentNodeVersion}.\n` +
'Cube.js CLI requires Node.js 20 or higher \n' +
`Cube.js CLI requires Node.js ${leastSupportedVersion} or higher.\n` +
'Please update your Node.js version.'
)
);
process.exit(1);
}

if (major === 19) {
if (major === (leastSupportedVersion + 1)) {
process.emitWarning(
color.red(
`You are running Node.js ${currentNodeVersion}.\n` +
'Support for Node.js 19 not guaranty. Please upgrade to Node.js 20 or higher.'
`Support for Node.js ${leastSupportedVersion + 1} not guaranteed. Please upgrade to Node.js ${leastSupportedVersion + 2} or higher.`
)
);
}

if (major === 18) {
if (major === leastSupportedVersion) {
process.emitWarning(
color.red(
`You are running Node.js ${currentNodeVersion}.\n` +
'Support for Node.js 18 will be removed soon. Please upgrade to Node.js 20 or higher.'
`Support for Node.js ${leastSupportedVersion} will be removed soon. Please upgrade to Node.js ${leastSupportedVersion + 2} or higher.`
)
);
}
2 changes: 1 addition & 1 deletion packages/cubejs-base-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@cubejs-backend/linter": "1.2.33",
"@types/jest": "^27",
"@types/node": "^18",
"@types/node": "^20",
"jest": "^27",
"typescript": "~5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@types/inquirer": "^7.3.1",
"@types/jest": "^27",
"@types/jsonwebtoken": "^9.0.2",
"@types/node": "^18",
"@types/node": "^20",
"@types/semver": "^7.5.8",
"husky": "^4.2.3",
"jest": "^27",
Expand Down
14 changes: 7 additions & 7 deletions packages/cubejs-client-ngx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"tslib": "^2.3.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.3.11",
"@angular/cli": "^13.3.11",
"@angular/compiler": "^13.3.11",
"@angular/compiler-cli": "^13.3.11",
"@angular/core": "^13.3.11",
"ng-packagr": "^13.3.1",
"@angular-devkit/build-angular": "^18.2.16",
"@angular/cli": "^18.2.16",
"@angular/compiler": "^18.2.13",
"@angular/compiler-cli": "^18.2.13",
"@angular/core": "^18.2.13",
"ng-packagr": "^18.2.1",
"rxjs": "~7.5.0",
"typescript": "~4.6.2"
"typescript": "~5.4.5"
},
"peerDependencies": {
"@cubejs-client/core": ">=0.28.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-cubestore-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@cubejs-backend/linter": "1.2.33",
"@types/csv-write-stream": "^2.0.0",
"@types/generic-pool": "^3.8.2",
"@types/node": "^18",
"@types/node": "^20",
"@types/ws": "^7.4.0",
"jest": "^27",
"typescript": "~5.2.2"
Expand Down
Loading
Loading