Skip to content

Commit 45e8d5b

Browse files
Rename @dapr/js-sdk to dapr-client
1 parent 8eab134 commit 45e8d5b

23 files changed

+46
-45
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
**example.ts**
4242
4343
```javascript
44-
import { DaprClient, DaprServer } from "@dapr/js-sdk";
44+
import { DaprClient, DaprServer } from "dapr-client";
4545

4646
const daprHost = "127.0.0.1"; // Dapr Sidecar Host
4747
const daprPort = "50000"; // Dapr Sidecar Port

examples/grpc/hello-world-distributed/client/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.

examples/grpc/hello-world-distributed/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@dapr/js-sdk-example-grpc-hello-world-distributed-client",
2+
"name": "dapr-client-example-grpc-hello-world-distributed-client",
33
"version": "1.0.0",
44
"description": "An example utilizing the Dapr JS SDK",
55
"main": "index.js",
@@ -20,7 +20,7 @@
2020
"typescript": "^4.2.4"
2121
},
2222
"dependencies": {
23-
"@dapr/js-sdk": "file:../../../build",
23+
"dapr-client": "file:../../../build",
2424
"@types/node": "^15.3.0"
2525
}
2626
}

examples/grpc/hello-world-distributed/client/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DaprClient, HttpMethod } from "@dapr/js-sdk";
1+
import { DaprClient, HttpMethod } from "dapr-client";
22

33
const daprHost = "127.0.0.1";
44
const daprPort = "3500";

examples/grpc/hello-world-distributed/server/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.

examples/grpc/hello-world-distributed/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@dapr/js-sdk-example-grpc-hello-world-distributed-server",
2+
"name": "dapr-client-example-grpc-hello-world-distributed-server",
33
"version": "1.0.0",
44
"description": "An example utilizing the Dapr JS SDK",
55
"main": "index.js",
@@ -20,7 +20,7 @@
2020
"typescript": "^4.2.4"
2121
},
2222
"dependencies": {
23-
"@dapr/js-sdk": "file:../../../build",
23+
"dapr-client": "file:../../../build",
2424
"@types/node": "^15.3.0"
2525
}
2626
}

examples/grpc/hello-world-distributed/server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DaprServer, HttpMethod, CommunicationProtocolEnum } from "@dapr/js-sdk";
1+
import { DaprServer, HttpMethod, CommunicationProtocolEnum } from "dapr-client";
22

33
const daprHost = "127.0.0.1";
44
const daprPort = "50050"; // Dapr Sidecar Port of this Example Server

examples/grpc/hello-world/package-lock.json

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

examples/grpc/hello-world/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@dapr/js-sdk-example-grpc-hello-world",
2+
"name": "dapr-client-example-grpc-hello-world",
33
"version": "1.0.0",
44
"description": "An example utilizing the Dapr JS SDK",
55
"main": "index.js",
@@ -19,7 +19,7 @@
1919
"typescript": "^4.2.4"
2020
},
2121
"dependencies": {
22-
"@dapr/js-sdk": "file:../../../build",
22+
"dapr-client": "file:../../../build",
2323
"@types/node": "^15.3.0",
2424
"google-protobuf": "^3.17.0"
2525
}

examples/grpc/hello-world/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DaprServer, DaprClient, HttpMethod, CommunicationProtocolEnum } from "@dapr/js-sdk";
1+
import { DaprServer, DaprClient, HttpMethod, CommunicationProtocolEnum } from "dapr-client";
22

33
const daprHost = "127.0.0.1";
44
const daprPort = "50050"; // Dapr Sidecar Port of this Example Server

0 commit comments

Comments
 (0)