Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Javascript quickstarts with nightly dapr-dev (RC compatible) … #995

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion bindings/javascript/sdk/batch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
dapr run --app-id batch-sdk --app-port 5002 --dapr-http-port 3500 --resources-path ../../../components -- node index.js
*/

import { DaprClient, DaprServer } from "@dapr/dapr";
import { DaprClient, DaprServer } from "@dapr/dapr-dev";
import fs from 'fs';

const cronBindingName = "cron";
Expand Down
2 changes: 1 addition & 1 deletion bindings/javascript/sdk/batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@dapr/dapr": "^3.2.0",
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb",
"axios": "^0.25.0"
}
}
2 changes: 1 addition & 1 deletion configuration/javascript/sdk/order-processor/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CommunicationProtocolEnum, DaprClient } from "@dapr/dapr";
import { CommunicationProtocolEnum, DaprClient } from "@dapr/dapr-dev";

// JS SDK does not support Configuration API over HTTP protocol yet
const communicationProtocol = CommunicationProtocolEnum.GRPC;
Expand Down
2 changes: 1 addition & 1 deletion configuration/javascript/sdk/order-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@dapr/dapr": "^3.2.0"
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb"
},
"devDependencies": {
"eslint": "^8.8.0",
Expand Down
2 changes: 1 addition & 1 deletion cryptography/javascript/sdk/crypto-quickstart/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createReadStream, createWriteStream } from "node:fs";
import { readFile, writeFile } from "node:fs/promises";
import { pipeline } from "node:stream/promises";

import { DaprClient, CommunicationProtocolEnum } from "@dapr/dapr";
import { DaprClient, CommunicationProtocolEnum } from "@dapr/dapr-dev";

const daprHost = process.env.DAPR_HOST ?? "127.0.0.1";
const daprPort = process.env.DAPR_GRPC_PORT ?? "50001";
Expand Down
2 changes: 1 addition & 1 deletion cryptography/javascript/sdk/crypto-quickstart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@dapr/dapr": "^3.2.0"
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb"
},
"devDependencies": {
"@types/node": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion pub_sub/javascript/sdk/checkout/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DaprClient } from "@dapr/dapr";
import { DaprClient } from "@dapr/dapr-dev";

const daprHost = process.env.DAPR_HOST || "http://localhost";
const daprPort = process.env.DAPR_HTTP_PORT || "3500";
Expand Down
2 changes: 1 addition & 1 deletion pub_sub/javascript/sdk/checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@dapr/dapr": "^3.2.0"
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb"
}
}
2 changes: 1 addition & 1 deletion pub_sub/javascript/sdk/order-processor/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DaprServer } from "@dapr/dapr";
import { DaprServer } from "@dapr/dapr-dev";

const daprHost = process.env.DAPR_HOST || "http://localhost";
const daprPort = process.env.DAPR_HTTP_PORT || "3501";
Expand Down
2 changes: 1 addition & 1 deletion pub_sub/javascript/sdk/order-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@dapr/dapr": "^3.2.0"
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb"
}
}
2 changes: 1 addition & 1 deletion secrets_management/javascript/sdk/order-processor/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DaprClient, CommunicationProtocolEnum } from '@dapr/dapr';
import { DaprClient, CommunicationProtocolEnum } from '@dapr/dapr-dev';

const daprHost = process.env.DAPR_HOST || "http://localhost";
const daprPort = process.env.DAPR_HTTP_PORT || "3500";
Expand Down
50 changes: 35 additions & 15 deletions secrets_management/javascript/sdk/order-processor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@dapr/dapr": "^3.2.0"
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb"
},
"devDependencies": {
"eslint": "^8.8.0",
Expand Down
2 changes: 1 addition & 1 deletion state_management/javascript/sdk/order-processor/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CommunicationProtocolEnum, DaprClient } from "@dapr/dapr"
import { CommunicationProtocolEnum, DaprClient } from "@dapr/dapr-dev"

const communicationProtocol = (process.env.DAPR_PROTOCOL === "grpc")
? CommunicationProtocolEnum.GRPC
Expand Down
6 changes: 3 additions & 3 deletions state_management/javascript/sdk/order-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"author": "",
"license": "ISC",
"dependencies": {
"@dapr/dapr": "^3.2.0"
"@dapr/dapr-dev": "^3.2.0-20240212030427-319e2fb"
},
"devDependencies": {
"eslint": "^8.8.0",
"eslint-plugin-react": "^7.28.0"
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.33.2"
}
}
Loading