Skip to content

Commit

Permalink
Merge pull request #558 from aerospike/stage
Browse files Browse the repository at this point in the history
Nodejs-Release-5.5.0
  • Loading branch information
DomPeliniAerospike authored May 24, 2023
2 parents 69138fd + 9469b89 commit 3407e3b
Show file tree
Hide file tree
Showing 247 changed files with 1,796 additions and 449 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
node-version: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- 18.x
- 20.x

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
strategy:
matrix:
node-version: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- 14.x
- 16.x
- 18.x
- 19.x
- 20.x
continue-on-error: true
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- 16.x
- 18.x
- 19.x
- 20.x
continue-on-error: true
name: Node ${{ matrix.node-version }} tester
steps:
Expand Down
2 changes: 1 addition & 1 deletion .travis/start_cluster.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
################################################################################
# Copyright 2013-2017 Aerospike, Inc.
# Copyright 2013-2023 Aerospike, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
93 changes: 93 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,99 @@
# Changelog

All notable changes to this project will be documented in this file.
## [5.5.0]

* **Breaking Changes**
* [CLIENT-2343] - Dropped support for Node.js 14

* **New Features**
* [CLIENT-2108] - Added pagination support for queries and scans.
* [CLIENT-2224] - Added support for rack aware reads when the replication factor is three.
* [CLIENT-2303] - Added support for Amazon Linux 2023.
* [CLIENT-2342] - Added support for Node.js 20

* **Improvements**
* [CLIENT-1819] - Fixed issue which caused the configuration class property "rackId" to be ignored.

* **Bug Fixes**
* [CLIENT-2231] - Fixed expression API documentation to show parameters for functions.

## [5.4.0]
* The new features require Aerospike Server version 6.3 or newer.

* **Breaking Changes**
* Dropped support for:
* Ubuntu 18.04
* Debian 10 (ARM64 only).

* **New Features**
* [CLIENT-2178] - Added ORDERED_MAP and UNORDERED_MAP map operation return types.
* [CLIENT-2187] - Added comparison of map values using expressions.

## [5.3.0]

* **New Features**
* [CLIENT-1750] - Added 'returnType.EXISTS' for 'aerospike/maps' and 'aerospike/list' module read operations. This feature requires server version 6.1+.
* [CLIENT-1818] - Added the 'getByKeyList' method 'aerospike/maps' module.
* [CLIENT-2210] - Added the 'getByValueList' method 'aerospike/maps' module.

* **Improvements**
* [CLIENT-1819] - Corrected 'Client.batchApply' to have a keys parameter rather than a records parameter.

* **Bug Fixes**
* [CLIENT-2231] - Fixed segmentation fault caused by using context with map and list expressions. Added unit tests for map and list expressions using context. Fixed parameter order for map and list expression methods.

## [5.2.2]
* **Improvements**
* [CLIENT-2202] - Corrected default values for MaxConnsPerNode, maxSocketIdle, and totalTimeout policies within the API documentation.

* **Bug Fixes**
* [CLIENT-2195] - Reworked batch write to accommodate promises and callbacks. Batch write will no longer return "AEROSPIKE_BATCH_FAILED" as an error, and will instead return results with status codes detailing the status of each batch operation.

## [5.2.1]

* **New Features**
* [CLIENT-1248] - AddListIndexCreate and AddMapKeyCreate added to cdt_context.js.

* **Improvements**
* [CLIENT-2011] - Batch writes now returns the results of transactions ending in the AEROSPIKE_BATCH_FAILED status as well as the status of each record.
* [CLIENT-2150] - Reduced install size from 500MB to 166MB.

* **Bug Fixes**
* [CLIENT-2167] - Fixed broken API documentation links.
* [CLIENT-2168] - Added missing methods from operations classes.

## [5.2.0]

* **Updates**
* BREAKING: Client does not support Node.js LTS version 14 on macOS using ARM architecture - see Incompatible API Changes for details.
* Added support for
* Node.js 19
* Ubuntu 22.04
* RHEL 9
* Dropped support for:
* Node.js 10, 12, 17
* RHEL 7
* Debian 8, 9

* **New Features**
* [CLIENT-2000] - Added ARM architecture support for all currently supported OS systems.

## [5.1.1]

* **Bug Fixes**
* [CLIENT-1944] - Node.js: Revamped existing API documentation.
* [CLIENT-1943] - Node.js: Added documentation for list, map, hll, and bit expressions
* [CLIENT-1942] - Node.js: Improved examples within the API documentation.

## [5.0.3]

* **Updates**
* Debian 9 Stretch LTS has reached its End of Life on June 30 2022. We will drop support for Debian 9 in an upcoming client release.

* **Bug Fixes**
* [CLIENT-1778] Node.js: document client support for PKI auth.
* [CLIENT-1762] Add Node.js client TypeScript support.

## [5.0.2]

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@

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

The client is compatible with Node.js 19, 18 (LTS), 16 (LTS) and 14 (LTS).
The client is compatible with Node.js 20 (LTS), 19, 18 (LTS), 16 (LTS).
It supports the following operating systems:
- RHEL 8/9
- Debian 10 (x86_64 architecture only)
- Debian 11
- Amazon Linux 2023
- Ubuntu 20.04/22.04 (Focal Fossa, Jammy Jellyfish)
- Many Linux distributions compatible with one of the above OS releases.
- macOS versions 11/12/13 are also supported. (Node.js 14 install unavailable on M1 Mac systems)
Expand Down
2 changes: 1 addition & 1 deletion aerospike-client-c
Submodule aerospike-client-c updated 86 files
+2 −2 .build.yml
+2 −40 Makefile
+1 −1 README.md
+2 −2 examples/async_examples/async_query/src/main/example.c
+235 −14 examples/async_examples/async_scan/src/main/example.c
+2 −2 examples/query_examples/aggregate/src/main/example.c
+131 −25 examples/query_examples/simple/src/main/example.c
+76 −6 examples/scan_examples/standard/src/main/example.c
+4 −6 examples/utils/src/include/example_utils.h
+3 −3 examples/utils/src/main/example_utils.c
+1 −1 modules/common
+1 −1 modules/mod-lua
+1 −1 pkg/package_type
+103 −47 src/include/aerospike/aerospike_query.h
+135 −108 src/include/aerospike/aerospike_scan.h
+30 −23 src/include/aerospike/as_async.h
+33 −1 src/include/aerospike/as_cdt_internal.h
+7 −7 src/include/aerospike/as_cluster.h
+12 −10 src/include/aerospike/as_command.h
+2 −2 src/include/aerospike/as_config.h
+6 −7 src/include/aerospike/as_event_internal.h
+3 −3 src/include/aerospike/as_exp.h
+2 −2 src/include/aerospike/as_info.h
+10 −6 src/include/aerospike/as_partition.h
+3 −7 src/include/aerospike/as_partition_filter.h
+29 −11 src/include/aerospike/as_partition_tracker.h
+13 −1 src/include/aerospike/as_policy.h
+52 −24 src/include/aerospike/as_query.h
+41 −1 src/include/aerospike/as_scan.h
+12 −55 src/include/aerospike/as_shm_cluster.h
+1 −1 src/include/aerospike/version.h
+60 −57 src/main/aerospike/aerospike_batch.c
+31 −31 src/main/aerospike/aerospike_key.c
+50 −17 src/main/aerospike/aerospike_query.c
+40 −13 src/main/aerospike/aerospike_scan.c
+2 −57 src/main/aerospike/as_cdt_ctx.c
+120 −1 src/main/aerospike/as_cdt_internal.c
+11 −4 src/main/aerospike/as_command.c
+2 −2 src/main/aerospike/as_config.c
+37 −13 src/main/aerospike/as_event.c
+9 −3 src/main/aerospike/as_exp.c
+3 −6 src/main/aerospike/as_node.c
+99 −159 src/main/aerospike/as_partition.c
+75 −62 src/main/aerospike/as_partition_tracker.c
+822 −18 src/main/aerospike/as_query.c
+508 −12 src/main/aerospike/as_scan.c
+110 −123 src/main/aerospike/as_shm_cluster.c
+1 −1 src/main/aerospike/version.c
+3 −3 src/test/aerospike_geo/query_geospatial.c
+101 −98 src/test/aerospike_key/key_apply2.c
+7 −4 src/test/aerospike_key/key_operate.c
+3 −1 src/test/aerospike_list/list_basics.c
+100 −0 src/test/aerospike_map/map_basics.c
+6 −2 src/test/aerospike_query/query_background.c
+7 −4 src/test/aerospike_query/query_foreach.c
+188 −189 src/test/aerospike_scan/scan_basics.c
+42 −1 src/test/aerospike_test.c
+2 −2 vs/README.md
+2 −2 vs/aerospike-client-c-libevent.nuspec
+2 −2 vs/aerospike-client-c-libuv.nuspec
+2 −2 vs/aerospike-client-c.nuspec
+7 −7 vs/aerospike-test/aerospike-test.vcxproj
+2 −2 vs/aerospike.sln
+9 −9 vs/aerospike/aerospike.vcxproj
+7 −7 vs/examples/append/append.vcxproj
+7 −7 vs/examples/async-batch-get/async-batch-get.vcxproj
+7 −7 vs/examples/async-delay-queue/async-delay-queue.vcxproj
+7 −7 vs/examples/async-get/async-get.vcxproj
+7 −7 vs/examples/async-query/async-query.vcxproj
+7 −7 vs/examples/async-scan/async-scan.vcxproj
+7 −7 vs/examples/batch-get/batch-get.vcxproj
+7 −7 vs/examples/expire/expire.vcxproj
+7 −7 vs/examples/generation/generation.vcxproj
+7 −7 vs/examples/geo-filter/geo-filter.vcxproj
+7 −7 vs/examples/geo-simple/geo-simple.vcxproj
+7 −7 vs/examples/get/get.vcxproj
+7 −7 vs/examples/incr/incr.vcxproj
+7 −7 vs/examples/list/list.vcxproj
+7 −7 vs/examples/map/map.vcxproj
+7 −7 vs/examples/put/put.vcxproj
+7 −7 vs/examples/query-aggregate/query-aggregate.vcxproj
+7 −7 vs/examples/query/query.vcxproj
+7 −7 vs/examples/scan-background/scan-background.vcxproj
+7 −7 vs/examples/scan/scan.vcxproj
+7 −7 vs/examples/touch/touch.vcxproj
+7 −7 vs/examples/udf/udf.vcxproj
2 changes: 1 addition & 1 deletion benchmarks/alerts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/inspect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2017 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/logging.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2021 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2021 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/memory.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2017 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/stats.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2022 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 2 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@
'src/main/commands/query_apply.cc',
'src/main/commands/query_background.cc',
'src/main/commands/query_foreach.cc',
'src/main/commands/query_pages.cc',
'src/main/commands/remove_async.cc',
'src/main/commands/scan_async.cc',
'src/main/commands/scan_background.cc',
'src/main/commands/scan_pages.cc',
'src/main/commands/select_async.cc',
'src/main/commands/truncate.cc',
'src/main/commands/index_create.cc',
Expand Down
2 changes: 1 addition & 1 deletion examples/add.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2018 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/append.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2018 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/apply.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2018 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/batch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/exists.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2018 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/geospatialMonteCarlo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2022 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/get.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2018 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/info.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/operate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/put.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/query.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/remove.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2018 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/run.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2018-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/scan.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2021 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/shared/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2018 Aerospike, Inc.
// Copyright 2018-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/shared/client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2018-2022 Aerospike, Inc.
// Copyright 2018-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/shared/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2018 Aerospike, Inc.
// Copyright 2018-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/shared/run.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2018 Aerospike, Inc.
// Copyright 2018-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/sindex.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/udf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
// *****************************************************************************
// Copyright 2013-2019 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
12 changes: 12 additions & 0 deletions incompatible.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Backward Incompatible API Changes

All notable changes to this project will be documented in this file.
## [5.5.0]

### Client no longer supports Node.js version 14

## [5.4.0]

### Client no longer supports Ubuntu 18.04
### Client no longer supports Debian 10 on ARM64 architecture

## [5.2.0]

### Client does not support Node.js LTS version 14 on macOS using ARM architecture

## [5.0.0]

Expand Down
2 changes: 1 addition & 1 deletion lib/aerospike.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// *****************************************************************************
// Copyright 2013-2022 Aerospike, Inc.
// Copyright 2013-2023 Aerospike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 3407e3b

Please sign in to comment.