Skip to content

Commit

Permalink
Added ts-test to files in package.json. Updated version information.
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Oct 23, 2024
1 parent da10a0f commit 2e0ace8
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 45 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

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

## [5.13.1]

* **New Features**
* [CLIENT-3127] - Added client.ExistsWithMetadata.
* [CLIENT-3153] - Added support for Node.js 23.

* **Bug Fixes**
* [CLIENT-3107] - Map read and List read operations no longer throw a type error when using EXISTS, ORDERED_MAP, or UNORDERED_MAP return types.
* [CLIENT-3145] - Fixed issue with BatchResult not returning inDoubt status to the user.

* **Improvements**
* [CLIENT-3061] - Revamped typescript support by improving description file with tighter definitions and documentation.
* [CLIENT-3149] - Fixed import conflicts with third party packages in typescript description file.
* [CLIENT-3149] - Improved typescript description file compilation.
* [CLIENT-3151] - Converted API documentation to TypeDoc documentation.

## [5.12.1]

* **Breaking Changes**
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aerospike",
"version": "5.13.0",
"version": "5.13.1",
"description": "Aerospike Client Library",
"keywords": [
"aerospike",
Expand Down Expand Up @@ -106,6 +106,7 @@
"scripts/",
"src/",
"test/",
"ts-test/",
"typings/"
]
}
84 changes: 40 additions & 44 deletions scripts/prebuiltBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,67 +12,64 @@ const rm = util.promisify(fs.rm)

if (platform === 'darwin') {
console.log('Darwin binaries')
rm('lib/binding/node-v131-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v127-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v115-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v108-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v131-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v127-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v115-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v108-win32-x64', { recursive: true, force: true })
if (arch === 'x64') {
rm('lib/binding/node-v131-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v127-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v131-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v127-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
} else {
rm('lib/binding/node-v131-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v127-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v131-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v127-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
}
await rm('lib/binding/glibc@3', { recursive: true, force: true })
await rm('lib/binding/glibc@1', { recursive: true, force: true })
await rm('lib/binding/glibc@2.35', { recursive: true, force: true })
await rm('lib/binding/glibc@2.31', { recursive: true, force: true })
} else if (platform === 'win32') {
console.log('Windows binaries')
rm('lib/binding/node-v131-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v127-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v131-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v127-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/glibc@3', { recursive: true, force: true })
await rm('lib/binding/glibc@1', { recursive: true, force: true })
await rm('lib/binding/node-v131-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v127-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v131-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v127-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/glibc@2.35', { recursive: true, force: true })
await rm('lib/binding/glibc@2.31', { recursive: true, force: true })
} else {
console.log('Linux binaries')
rm('lib/binding/node-v131-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v127-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v115-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v108-win32-x64', { recursive: true, force: true })
rm('lib/binding/node-v131-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v127-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
rm('lib/binding/node-v131-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v127-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v131-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v127-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v115-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v108-win32-x64', { recursive: true, force: true })
await rm('lib/binding/node-v131-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v127-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
await rm('lib/binding/node-v131-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v127-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
await rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })

const output = await exec("ldd --version | awk 'NR==1{print $NF}'")
const version = Number(output.stdout)

let glibc
if (version < 2.39) {
if (version < 2.35) {
glibc = '2.31'
} else {
glibc = '2.35'
}

if (version < 2.35) {
glibc = '2.31'
} else {
glibc = '2.39'
glibc = '2.35'
}

console.log('GLIBC version: ' + glibc)
console.log('ARCH: ' + arch)

if (arch === 'x64') {
await rename('lib/binding/glibc@' + glibc + '/node-v131-linux-x64', 'lib/binding/node-v131-linux-x64')
await rename('lib/binding/glibc@' + glibc + '/node-v127-linux-x64', 'lib/binding/node-v127-linux-x64')
Expand All @@ -86,6 +83,5 @@ const rm = util.promisify(fs.rm)
}
await rm('lib/binding/[email protected]', { recursive: true, force: true })
await rm('lib/binding/[email protected]', { recursive: true, force: true })
await rm('lib/binding/[email protected]', { recursive: true, force: true })
}
})()

0 comments on commit 2e0ace8

Please sign in to comment.