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
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x, 23.x]
coherence-version: [22.06.12, 14.1.2-0-2, 25.03.1]
node-version: [20.x, 22.x, 24.x]
coherence-version: [22.06.12, 14.1.2-0-2, 25.03.2]

steps:
- uses: actions/checkout@v4
Expand All @@ -42,6 +42,8 @@ jobs:
- run: echo "/tmp/grpc/bin" >> $GITHUB_PATH
# install project deps
- run: npm install
# print version of typescript
- run: npx tsc -v
# run tests
- run: COHERENCE_VERSION=${{ matrix.coherence-version }} npm run test-cycle
# run tests using TLS
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/discovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20.x, 21.x, 22.x, 23.x]
coherence-version: [22.06.12, 14.1.2-0-2, 25.03.1]
node-version: [20.x, 22.x, 24.x]
coherence-version: [22.06.12, 14.1.2-0-2, 25.03.2]

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
with:
ref: ${{ github.event.release.target_commitish }}
# install Node.js
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18.15.x
node-version: 20.19.x
# Specifies the registry, this field is required!
registry-url: https://registry.npmjs.org/
# install protoc
Expand All @@ -37,8 +37,8 @@ jobs:
- run: echo "/tmp/grpc/bin" >> $GITHUB_PATH
- run: npm install
# run unit tests
- run: COHERENCE_VERSION=22.06.11 npm run test-cycle
- run: COHERENCE_VERSION=25.03.1 npm run test-cycle
- run: COHERENCE_VERSION=22.06.12 npm run test-cycle
- run: COHERENCE_VERSION=25.03.2 npm run test-cycle
- run: npm install --no-save typedoc
# generate dist which runs other tasks
- run: npm run dist
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ the network transport.

### Requirements
* Coherence CE versions `22.06`, `14.1.2-0-0`, `25.03` or later (or equivalent non-open source editions) with a configured [gRPC Proxy](https://docs.oracle.com/en/middleware/standalone/coherence/14.1.1.2206/develop-remote-clients/using-coherence-grpc-server.html)
* Node `18.15.x` or later
* Node `20.19.x` or later
* NPM `9.x` or later

### Usage

Before testing the library, you must ensure a Coherence cluster is available. For local development, we recommend using the Coherence CE Docker image; it contains everything necessary for the client to operate correctly.

```bash
docker run -d -p 1408:1408 ghcr.io/oracle/coherence-ce:25.03.1
docker run -d -p 1408:1408 ghcr.io/oracle/coherence-ce:25.03.2
```

or to save some keystrokes/time, use the included npm script, `coh-up` to start a two-member Cluster with the gRPC port at 1408"
```bash
npm run coh-up
```

**Important!** When calling `coh-up` or `coh-down`, the LTS version of Coherence will be used (`22.06.11`).
To use a later Coherence version, such as `25.03.1`, prefix the calls with, or export `COHERENCE_VERSION=<desired-version>`.
**Important!** When calling `coh-up` or `coh-down`, the LTS version of Coherence will be used (`22.06.12`).
To use a later Coherence version, such as `25.03.2`, prefix the calls with, or export `COHERENCE_VERSION=<desired-version>`.
For example:
```bash
COHERENCE_VERSION=25.03.1 npm run coh-up
COHERENCE_VERSION=25.03.2 npm run coh-up
```

For more details on the image, see the [documentation](https://github.com/oracle/coherence/tree/master/prj/coherence-docker).
Expand All @@ -54,10 +54,10 @@ The following table provides a listing of mappings between Java types and Javasc
Coherence `25.03` or later. If using Coherence `22.06.x`, these types will be returned as Number. It is recommended
using `25.03` if intentionally using `java.math.BigInteger` or `java.math.BigDecimal` as part of your application.

| Java Type | JavascriptType |
|----------------------|------------------------|
| java.math.BigInteger | BigInt (ECMA standard) |
| java.math.BigDecimal | Decimal ([decimal.js](https://www.npmjs.com/package/decimal.js)) |
| Java Type | JavascriptType |
|----------------------|------------------------------------------------------------------|
| java.math.BigInteger | BigInt (ECMA standard) |
| java.math.BigDecimal | Decimal ([decimal.js](https://www.npmjs.com/package/decimal.js)) |

### Examples

Expand Down