Skip to content

Commit df6d9d2

Browse files
authored
Make HTTP/TS driver use the "@typedb" org in NPM registry (#798)
## Usage and product changes The HTTP/TS driver has been moved - it was previously `typedb-driver-http`; now it is `@typedb/driver-http`. ## Implementation Simple rename in package.json. Also added a couple of other handy package.json fields such as contact email. When we do the release, we'll need to update `typedb-docs`.
1 parent b9c4ecd commit df6d9d2

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

RELEASE_NOTES_LATEST.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ pip install typedb-driver==3.5.5
5050

5151
[//]: # (TODO: Update docs link)
5252

53-
NPM package: https://www.npmjs.com/package/typedb-driver-http
53+
NPM package: https://www.npmjs.com/package/@typedb/driver-http
5454
Documentation: https://typedb.com/docs/drivers/
5555

5656
```
57-
npm install typedb-driver-http@3.5.5
57+
npm install @typedb/driver-http@3.5.5
5858
```
5959

6060

RELEASE_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ pip install typedb-driver=={version}
5050

5151
[//]: # (TODO: Update docs link)
5252

53-
NPM package: https://www.npmjs.com/package/typedb-driver-http
53+
NPM package: https://www.npmjs.com/package/@typedb/driver-http
5454
Documentation: https://typedb.com/docs/drivers/
5555

5656
```
57-
npm install typedb-driver-http@{version}
57+
npm install @typedb/driver-http@{version}
5858
```
5959

6060
### C driver

http-ts/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ the [API Reference](https://typedb.com/docs/reference/http-drivers/typescript).
1212

1313
## Install TypeDB HTTP Typescript Driver through NPM
1414

15-
1. Install `typedb-driver-http` through npm:
15+
1. Install `@typedb/driver-http` through npm:
1616

1717
```bash
18-
npm install typedb-driver-http
18+
npm install @typedb/driver-http
1919
```
2020

2121
2. Make sure a [TypeDB Server](https://typedb.com/docs/home/install/) is
2222
running.
2323
3. Use TypeDB Driver in your program:
2424

2525
```ts
26-
import { TypeDBHttpDriver, isApiErrorResponse } from "typedb-driver-http";
26+
import { TypeDBHttpDriver, isApiErrorResponse } from "@typedb/driver-http";
2727

2828
const driver = new TypeDBHttpDriver({
2929
username: "admin",

http-ts/package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
{
2-
"name": "typedb-driver-http",
2+
"name": "@typedb/driver-http",
33
"version": "0.0.0",
44
"description": "TypeDB HTTP Driver",
5-
"author": "TypeDB",
5+
"author": "TypeDB Community <community@typedb.com>",
66
"license": "Apache-2.0",
77
"homepage": "https://typedb.com",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/typedb/typedb-driver"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/typedb/typedb-driver/issues"
14+
},
15+
"keywords": [
16+
"database",
17+
"typedb"
18+
],
819
"main": "dist/index.cjs",
920
"module": "dist/index.mjs",
1021
"types": "dist/index.d.ts",
@@ -16,14 +27,6 @@
1627
"require": "./dist/index.cjs"
1728
}
1829
},
19-
"repository": {
20-
"type": "git",
21-
"url": "https://github.com/typedb/typedb-driver"
22-
},
23-
"keywords": [
24-
"database",
25-
"typedb"
26-
],
2730
"scripts": {
2831
"build:dev": "tsc",
2932
"build": "tsup",

0 commit comments

Comments
 (0)