Skip to content

Commit

Permalink
Merge pull request #620 from aerospike/Nodejs-Release-5.12.1
Browse files Browse the repository at this point in the history
Nodejs release 5.12.1
  • Loading branch information
DomPeliniAerospike authored Jun 3, 2024
2 parents b205634 + c320f70 commit bcc1273
Show file tree
Hide file tree
Showing 19 changed files with 579 additions and 458 deletions.
6 changes: 3 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
image:
- Visual Studio 2017
- Visual Studio 2019
- Visual Studio 2022
platform: x64
environment:
matrix:
- nodejs_version: "19"
- nodejs_version: "18"
- nodejs_version: "16"
- nodejs_version: "20"
- nodejs_version: "22"

install:
- ps: Install-Product node $env:nodejs_version $env:platform
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
nodejs: [
["v108", 18],
["v115", 20],
["v120", 21]
["v127", 22]
]
platform: [
"x86_64",
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
id: runcmd
with:
arch: aarch64
distro: ubuntu22.04
distro: ubuntu-22.04

# Set an output parameter `uname` for use in subsequent steps
run: |
Expand All @@ -175,7 +175,7 @@ jobs:
./scripts/build-c-client.sh
wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash;
source ~/.bashrc;
nvm i 20
nvm i 22
npm install
- name: Build client x64
Expand Down Expand Up @@ -215,9 +215,9 @@ jobs:
nodejs: [
["v108", 18],
["v115", 20],
["v120", 21]
["v127", 22]
]
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Show job status for commit
uses: myrotvorets/[email protected]
Expand Down Expand Up @@ -301,7 +301,7 @@ jobs:
# nodejs-version: [
# ["v108", "18"],
# ["v115", "20"],
# ["v120", "21"],
# ["v127", 22]
# ]
# fail-fast: false
# steps:
Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
# context: "Build bindings (${{ matrix.nodejs-version[0] }}-macosx_arm64)"

test-npm-install:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [manylinux, macOS-x86]
steps:
- uses: actions/checkout@v2
Expand All @@ -430,16 +430,22 @@ jobs:
- name: Modify the package.json
run: |
sudo npm install -g json
json -I -f package.json -e "this.scripts.install=\"npm-run-all removeExtraBinaries build\""
- name: Modify the package.json
run: |
sudo npm install -g json
json -I -f package.json -e "this.scripts.install=\"npm-run-all removeExtraBinaries build\""
- name: Run tests
run: |
mkdir -p testDir
cd testDir
pwd
sudo npm install ..
test-yarn-install:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [manylinux, macOS-x86]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -467,7 +473,7 @@ jobs:
yarn add link:..
test-pnpm-install:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [manylinux, macOS-x86]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -524,7 +530,7 @@ jobs:
bun link aerospike
test-typescript-install:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [manylinux, macOS-x86]
steps:
- uses: actions/checkout@v2
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/combine-bindings/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ runs:

# - uses: actions/download-artifact@v4
# with:
# name: v120-macosx_aarch64.build
# name: v127-macosx_aarch64.build

- uses: actions/download-artifact@v4
with:
name: v120-macosx_x86_64.build
name: v127-macosx_x86_64.build

- uses: actions/download-artifact@v4
with:
Expand All @@ -50,32 +50,31 @@ runs:

- uses: actions/download-artifact@v4
with:
name: v120-manylinux_x86_64.build
name: v127-manylinux_x86_64.build

# - uses: actions/download-artifact@v4
# with:
# name: v120-manylinux_aarch64.build
# name: v127-manylinux_aarch64.build

- name: Install client
shell: bash
run: |
mkdir -p lib/binding/node-v108-darwin-arm64 lib/binding/node-v115-darwin-arm64 lib/binding/node-v120-darwin-arm64
mkdir -p lib/binding/openssl@3/node-v108-linux-arm64 lib/binding/openssl@3/node-v115-linux-arm64 lib/binding/openssl@3/node-v120-linux-arm64
mkdir -p lib/binding/openssl@1/node-v108-linux-arm64 lib/binding/openssl@1/node-v115-linux-arm64 lib/binding/openssl@1/node-v120-linux-arm64
mkdir -p lib/binding/openssl@1/node-v108-linux-x64 lib/binding/openssl@1/node-v115-linux-x64 lib/binding/openssl@1/node-v120-linux-x64
cp -r node-v108-linux-x64 lib/binding/openssl@3/node-v108-linux-x64
cp -r node-v115-linux-x64 lib/binding/openssl@3/node-v115-linux-x64
cp -r node-v120-linux-x64 lib/binding/openssl@3/node-v120-linux-x64
mkdir -p lib/binding/node-v108-darwin-arm64 lib/binding/node-v115-darwin-arm64 lib/binding/node-v127-darwin-arm64
mkdir -p lib/binding/[email protected]/node-v108-linux-arm64 lib/binding/[email protected]/node-v115-linux-arm64 lib/binding/[email protected]/node-v127-linux-arm64
mkdir -p lib/binding/[email protected]/node-v108-linux-arm64 lib/binding/[email protected]/node-v115-linux-arm64 lib/binding/[email protected]/node-v127-linux-arm64
mkdir -p lib/binding/[email protected]/node-v108-linux-arm64 lib/binding/[email protected]/node-v115-linux-arm64 lib/binding/[email protected]/node-v127-linux-arm64
mkdir -p lib/binding/[email protected]/node-v108-linux-x64 lib/binding/[email protected]/node-v115-linux-x64 lib/binding/[email protected]/node-v127-linux-x64
mkdir -p lib/binding/[email protected]/node-v108-linux-x64 lib/binding/[email protected]/node-v115-linux-x64 lib/binding/[email protected]/node-v127-linux-x64
mkdir -p lib/binding/[email protected]/node-v108-linux-x64 lib/binding/[email protected]/node-v115-linux-x64 lib/binding/[email protected]/node-v127-linux-x64
cp -r node-v108-linux-x64 lib/binding/[email protected]/
cp -r node-v115-linux-x64 lib/binding/[email protected]/
cp -r node-v127-linux-x64 lib/binding/[email protected]/
cp -r node-v108-darwin-x64 lib/binding/node-v108-darwin-x64
cp -r node-v115-darwin-x64 lib/binding/node-v115-darwin-x64
cp -r node-v120-darwin-x64 lib/binding/node-v120-darwin-x64
cp -r node-v127-darwin-x64 lib/binding/node-v127-darwin-x64
# cp -r node-v108-linux-arm64 lib/binding/node-v108-linux-arm64
# cp -r node-v115-linux-arm64 lib/binding/node-v115-linux-arm64
# cp -r node-v120-linux-arm64 lib/binding/node-v120-linux-arm64
# cp -r node-v127-linux-arm64 lib/binding/node-v127-linux-arm64
# cp -r node-v108-darwin-arm64 lib/binding/node-v108-darwin-arm64
# cp -r node-v115-darwin-arm64 lib/binding/node-v115-darwin-arm64
# cp -r node-v120-darwin-arm64 lib/binding/node-v120-darwin-arm64



# cp -r node-v127-darwin-arm64 lib/binding/node-v127-darwin-arm64
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs-version: ["18", "20", "21"]
nodejs-version: ["18", "20", "22"]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
node-version: [
"18",
"20",
"21"
"22"
]
fail-fast: false

Expand Down Expand Up @@ -201,8 +201,8 @@ jobs:
cp -r node-v108-linux-x64 lib/binding/node-v108-linux-x64
elif [ "${{ matrix.node-version }}" = "20" ]; then
cp -r node-v115-linux-x64 lib/binding/node-v115-linux-x64
elif [ "${{ matrix.node-version }}" = "21" ]; then
cp -r node-v120-linux-x64 lib/binding/node-v120-linux-x64
elif [ "${{ matrix.node-version }}" = "22" ]; then
cp -r node-v127-linux-x64 lib/binding/node-v127-linux-x64
fi
- if: ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
run: sleep 3

- name: Run tests
run: npm run test
run: npm run test -- --t 20000

test-ee:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- 18.x
- 20.x
- 21.x
- 22.x
continue-on-error: true
name: Node ${{ matrix.node-version }} tester
steps:
Expand Down
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
# Changelog

All notable changes to this project will be documented in this file.

## [5.12.1]

* **Breaking Changes**
* [CLIENT-2984] - Dropped support for Node.js 21.

* **New Features**
* [CLIENT-2976] - Added support for Ubuntu 24.04.
* [CLIENT-2977] - Added support for Node.js 22.
* **Bug Fixes**
* [CLIENT-2975] - Fixed issue with TLS pending buffer calculation in as_uv_tls_try_send_pending().

## [5.12.0]

* **New Features**
* [CLIENT-2822] - Added the queryDuration enumeration to the policy module. The following values are supported:
* Aerospike.policy.queryDuration.LONG
* Aerospike.policy.queryDuration.SHORT
* Aerospike.policy.queryDuration.LONG_RELAX_AP
* [CLIENT-2822] - Added expectedDuration member to QueryPolicy. Use the queryDuration enumeration when setting expectedDuration.
* [CLIENT-2829] - Added support for readTouchTtlPercent for the following policies:
* ReadPolicy
* OperatePolicy
* BatchPolicy
* BatchReadPolicy

## [5.11.0]

* **New Features**
* [CLIENT-2770] - Added support for persistent list indexes.
* [CLIENT-2774] - Added 'ttl' property to 'batchWrite' policy.
* [CLIENT-2793] - Added support for the batchParentWrite policy in the client config policy.
* [CLIENT-2795] - Added the 'create' method for the 'aerospike/list' module.

* **Bug Fixes**
* [CLIENT-2773] - Added missing error codes to status.js.
* [CLIENT-2794] - Fixed typescript compiler errors.
* [CLIENT-2781] - Batch repeat flag is no longer set on batch writes when the 'sendKey' policy is true.

## [5.10.0]

* **New Features**
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

The Aerospike Node.js client is a Node.js add-on module, written using V8.

The client is compatible with Node.js 20 (Upcoming LTS) and 18 (LTS).
The client is compatible with Node.js 22, (Upcoming LTS), Node.js 20 (LTS),and 18 (LTS).
It supports the following operating systems:
- RHEL 8/9
- Debian 11
- Amazon Linux 2023
- Ubuntu 20.04/22.04 (Focal Fossa, Jammy Jellyfish)
- Ubuntu 20.04/22.04/24.04 (Focal Fossa, Jammy Jellyfish, Noble Numbat)
- Many Linux distributions compatible with one of the above OS releases.
- macOS 12/13/14

Expand Down
13 changes: 13 additions & 0 deletions incompatible.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Backward Incompatible API Changes

All notable changes to this project will be documented in this file.

## [5.12.1]
### Client no longer supports Node.js version 21

## [5.9.0]

### Client no longer supports Red Hat Enterprise Linux 7
### Client no longer supports Amazon Linux 2
### Client no longer supports Oracle Linux 7
### Client no longer supports CentOS 7
### Client no longer supports Debian 10
### Client no longer supports macOS 11

## [5.8.0]

### Client no longer supports Node.js version 19
Expand Down
Loading

0 comments on commit bcc1273

Please sign in to comment.