Skip to content

Commit 5e04a50

Browse files
committed
Update the package name
This changes the name for the GA to the `@scylladb/driver` as decided internally
1 parent 96cf140 commit 5e04a50

31 files changed

Lines changed: 65 additions & 65 deletions

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
build-command: |
212212
cd examples
213213
VERSION=$(node -p "require('../package.json').version")
214-
npm pkg set "dependencies.scylladb-driver-alpha=$VERSION"
214+
npm pkg set "dependencies.@scylladb/driver=$VERSION"
215215
(for i in 1 2 3 4 5; do
216216
npm install && exit 0
217217
echo "Attempt $i failed, retrying in 15s (waiting for npm propagation)..."

MAINTENANCE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ the main directory, `examples/`, and `benchmark/`. You can do this by running `n
9797
5. Create release notes on GitHub. The version tag must match version from `package.json` with `v` prefix (for example: `v0.2.0`).
9898
Once you publish release notes, CI action will trigger automatically. This action will build and publish the npm package.
9999
6. Once the CI action finishes, check if it succeeded. If it failed, you will have to fix the underlying issue, and re-run the CI action.
100-
7. Verify that the new release is visible at [npmjs site](https://www.npmjs.com/package/scylladb-driver-alpha).
100+
7. Verify that the new release is visible at [npmjs site](https://www.npmjs.com/package/@scylladb/driver).
101101
8. Test the package, by installing it directly from npm. Go to `examples` directory, in `package.json` update the line:
102-
`"scylladb-driver-alpha": "file:./../"`
102+
`"@scylladb/driver": "file:./../"`
103103
to:
104-
`"scylladb-driver-alpha": "<just-released-version>"`,
104+
`"@scylladb/driver": "<just-released-version>"`,
105105
then run the following command:
106106
`npm i && node ./runner.js`
107107
<!-- The last step can potentially be set up as a CI action step. -->

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This driver is currently in the experimental state. We are working on features n
1414

1515
### Installation
1616

17-
``npm install scylladb-driver-alpha``
17+
``npm install @scylladb/driver``
1818

1919
Currently only linux x86_64 architecture is supported with planned support for other architectures in the future.
2020

benchmark/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ SCYLLA_URI="172.17.0.2:9042" python3 benchmark/runner.py
8383

8484
Each benchmark recreates the table before execution to ensure consistent and isolated results.
8585

86-
Each of the JS benchmarks has an equivalent in Rust. For JS benchmarks, `driver` parameter determines which driver is tested. It can be `scylladb-driver-alpha` or `cassandra-driver`.
86+
Each of the JS benchmarks has an equivalent in Rust. For JS benchmarks, `driver` parameter determines which driver is tested. It can be `@scylladb/driver` or `cassandra-driver`.
8787

8888
For every benchmark you can use default values for either number of queries of concurrency level (supported benchmarks only).
8989
To use default values in JS benchmarks, provide `default` instead of numerical value for the parameter.

benchmark/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmark/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "scylladb-driver-alpha-benchmarks",
2+
"name": "@scylladb/driver-benchmarks",
33
"description": "Benchmarks for the driver",
44
"version": "0.0.2",
55
"license": "Apache-2.0",
66
"private": true,
77
"dependencies": {
88
"async": "^1.5.2",
99
"cassandra-driver": "^4.8.0",
10-
"scylladb-driver-alpha": "file:./../"
10+
"@scylladb/driver": "file:./../"
1111
}
1212
}

benchmark/runner-config/scylladb-driver/config.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,52 @@ defaults:
44

55
backends:
66
- benchmark-name: insert
7-
run-command: ./benchmark/runner-config/run-js-benchmark.sh insert scylladb-driver-alpha
7+
run-command: ./benchmark/runner-config/run-js-benchmark.sh insert @scylladb/driver
88

99
- benchmark-name: concurrent_insert
10-
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_insert scylladb-driver-alpha
10+
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_insert @scylladb/driver
1111

1212
- benchmark-name: concurrency_parametrized_insert
13-
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_insert scylladb-driver-alpha
13+
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_insert @scylladb/driver
1414

1515
- benchmark-name: select
16-
run-command: ./benchmark/runner-config/run-js-benchmark.sh select scylladb-driver-alpha
16+
run-command: ./benchmark/runner-config/run-js-benchmark.sh select @scylladb/driver
1717

1818
- benchmark-name: concurrent_select
19-
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_select scylladb-driver-alpha
19+
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_select @scylladb/driver
2020

2121
- benchmark-name: concurrency_parametrized_select
22-
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_select scylladb-driver-alpha
22+
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_select @scylladb/driver
2323

2424
- benchmark-name: batch
25-
run-command: ./benchmark/runner-config/run-js-benchmark.sh batch scylladb-driver-alpha
25+
run-command: ./benchmark/runner-config/run-js-benchmark.sh batch @scylladb/driver
2626

2727
- benchmark-name: paging
28-
run-command: ./benchmark/runner-config/run-js-benchmark.sh paging scylladb-driver-alpha
28+
run-command: ./benchmark/runner-config/run-js-benchmark.sh paging @scylladb/driver
2929

3030
- benchmark-name: concurrent_paging
31-
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_paging scylladb-driver-alpha
31+
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_paging @scylladb/driver
3232

3333
- benchmark-name: concurrency_parametrized_paging
34-
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_paging scylladb-driver-alpha
34+
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_paging @scylladb/driver
3535

3636
- benchmark-name: large_select
37-
run-command: ./benchmark/runner-config/run-js-benchmark.sh large_select scylladb-driver-alpha
37+
run-command: ./benchmark/runner-config/run-js-benchmark.sh large_select @scylladb/driver
3838

3939
- benchmark-name: deser
40-
run-command: ./benchmark/runner-config/run-js-benchmark.sh deser scylladb-driver-alpha
40+
run-command: ./benchmark/runner-config/run-js-benchmark.sh deser @scylladb/driver
4141

4242
- benchmark-name: concurrent_deser
43-
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_deser scylladb-driver-alpha
43+
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_deser @scylladb/driver
4444

4545
- benchmark-name: concurrency_parametrized_deser
46-
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_deser scylladb-driver-alpha
46+
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_deser @scylladb/driver
4747

4848
- benchmark-name: ser
49-
run-command: ./benchmark/runner-config/run-js-benchmark.sh ser scylladb-driver-alpha
49+
run-command: ./benchmark/runner-config/run-js-benchmark.sh ser @scylladb/driver
5050

5151
- benchmark-name: concurrent_ser
52-
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_ser scylladb-driver-alpha
52+
run-command: ./benchmark/runner-config/run-js-benchmark.sh concurrent_ser @scylladb/driver
5353

5454
- benchmark-name: concurrency_parametrized_ser
55-
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_ser scylladb-driver-alpha
55+
run-command: ./benchmark/runner-config/run-js-concurrency-benchmark.sh concurrent_ser @scylladb/driver

benchmark/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run_process(command):
7878
scale_factor = 4
7979

8080
# --------- libs and rust benchmark names ----------
81-
libs = ["scylladb-driver-alpha", "cassandra-driver"]
81+
libs = ["@scylladb/driver", "cassandra-driver"]
8282
benchmarks = ["concurrent_insert.js", "insert.js", "select.js",
8383
"concurrent_select.js", "batch.js", "paging.js",
8484
"concurrent_paging.js", "large_select.js", "deser.js",

docs/source/connecting/authentication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The Node.js RS Driver supports both username/password authentication and SSL/TLS
1111
To connect with username/password credentials, provide them in the `credentials` option:
1212

1313
```javascript
14-
const { Client } = require('scylladb-driver-alpha');
14+
const { Client } = require('@scylladb/driver');
1515

1616
(async () => {
1717
const client = new Client({
@@ -42,7 +42,7 @@ To connect over SSL, provide an `sslOptions` object. The SSL options are passed
4242

4343
```javascript
4444
const fs = require('fs');
45-
const { Client } = require('scylladb-driver-alpha');
45+
const { Client } = require('@scylladb/driver');
4646

4747
(async () => {
4848
const client = new Client({
@@ -75,7 +75,7 @@ You can combine username/password authentication with SSL for secure connections
7575

7676
```javascript
7777
const fs = require('fs');
78-
const { Client } = require('scylladb-driver-alpha');
78+
const { Client } = require('@scylladb/driver');
7979

8080
(async () => {
8181
const client = new Client({

docs/source/getting-started/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This page will guide you through installing the Node.js RS Driver and executing
77
Install the driver using npm:
88

99
```bash
10-
npm install scylladb-driver-alpha
10+
npm install @scylladb/driver
1111
```
1212

1313
**Supported architectures:** Linux x86_64 and Linux ARM.
@@ -17,7 +17,7 @@ npm install scylladb-driver-alpha
1717
Create a `Client` instance and connect to your ScyllaDB cluster:
1818

1919
```javascript
20-
const { Client } = require('scylladb-driver-alpha');
20+
const { Client } = require('@scylladb/driver');
2121

2222
(async () => {
2323
const client = new Client({
@@ -56,7 +56,7 @@ For a detailed overview of statement types and best practices, see [Executing CQ
5656
The following example creates a keyspace and table, inserts a row, and reads it back:
5757

5858
```javascript
59-
const { Client, types } = require('scylladb-driver-alpha');
59+
const { Client, types } = require('@scylladb/driver');
6060

6161
async function main() {
6262
const client = new Client({

0 commit comments

Comments
 (0)