Skip to content

Commit

Permalink
update durabletask dependency to use fork
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Martinez <[email protected]>
  • Loading branch information
famarting committed Dec 3, 2024
1 parent 50f61af commit e575605
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions examples/workflow/authoring/package-lock.json

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

4 changes: 2 additions & 2 deletions examples/workflow/management/package-lock.json

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

38 changes: 19 additions & 19 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"dependencies": {
"@grpc/grpc-js": "^1.9.3",
"@js-temporal/polyfill": "^0.3.0",
"@microsoft/durabletask-js": "^0.1.0-alpha.2",
"@dapr/durabletask-js": "0.1.0-alpha.2",
"@types/google-protobuf": "^3.15.5",
"@types/node-fetch": "^2.6.2",
"body-parser": "^1.19.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import WorkflowActivityContext from "./workflow/runtime/WorkflowActivityContext"
import WorkflowContext from "./workflow/runtime/WorkflowContext";
import WorkflowRuntime from "./workflow/runtime/WorkflowRuntime";
import { TWorkflow } from "./types/workflow/Workflow.type";
import { Task } from "@microsoft/durabletask-js/task/task";
import { Task } from "@dapr/durabletask-js/task/task";
import { WorkflowFailureDetails } from "./workflow/client/WorkflowFailureDetails";
import { WorkflowState } from "./workflow/client/WorkflowState";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/types/workflow/Workflow.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ limitations under the License.
*/

import WorkflowContext from "../../workflow/runtime/WorkflowContext";
import { Task } from "@microsoft/durabletask-js/task/task";
import { Task } from "@dapr/durabletask-js/task/task";
import { TOutput } from "./InputOutput.type";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/client/DaprWorkflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { TaskHubGrpcClient } from "@microsoft/durabletask-js";
import { TaskHubGrpcClient } from "@dapr/durabletask-js";
import { WorkflowState } from "./WorkflowState";
import { generateApiTokenClientInterceptors, generateEndpoint, getDaprApiToken } from "../internal/index";
import { TWorkflow } from "../../types/workflow/Workflow.type";
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/client/WorkflowFailureDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { FailureDetails } from "@microsoft/durabletask-js/task/failure-details";
import { FailureDetails } from "@dapr/durabletask-js/task/failure-details";

/**
* Class that represents the details of a task failure.
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/client/WorkflowState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { OrchestrationState } from "@microsoft/durabletask-js/orchestration/orchestration-state";
import { OrchestrationState } from "@dapr/durabletask-js/orchestration/orchestration-state";
import { WorkflowFailureDetails } from "./WorkflowFailureDetails";
import { WorkflowRuntimeStatus, fromOrchestrationStatus } from "../runtime/WorkflowRuntimeStatus";

Expand Down
2 changes: 1 addition & 1 deletion src/workflow/runtime/WorkflowActivityContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { ActivityContext } from "@microsoft/durabletask-js";
import { ActivityContext } from "@dapr/durabletask-js";

/**
* Used by activity to perform actions such as getting activity's name and
Expand Down
10 changes: 5 additions & 5 deletions src/workflow/runtime/WorkflowContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { OrchestrationContext } from "@microsoft/durabletask-js";
import { Task } from "@microsoft/durabletask-js/task/task";
import { OrchestrationContext } from "@dapr/durabletask-js";
import { Task } from "@dapr/durabletask-js/task/task";
import { TWorkflowActivity } from "../../types/workflow/Activity.type";
import { TWorkflow } from "../../types/workflow/Workflow.type";
import { getFunctionName } from "../internal";
import { WhenAllTask } from "@microsoft/durabletask-js/task/when-all-task";
import { whenAll, whenAny } from "@microsoft/durabletask-js/task";
import { WhenAnyTask } from "@microsoft/durabletask-js/task/when-any-task";
import { WhenAllTask } from "@dapr/durabletask-js/task/when-all-task";
import { whenAll, whenAny } from "@dapr/durabletask-js/task";
import { WhenAnyTask } from "@dapr/durabletask-js/task/when-any-task";
import { TInput, TOutput } from "../../types/workflow/InputOutput.type";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/runtime/WorkflowRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { ActivityContext, OrchestrationContext, TaskHubGrpcWorker } from "@microsoft/durabletask-js";
import { ActivityContext, OrchestrationContext, TaskHubGrpcWorker } from "@dapr/durabletask-js";
import { TWorkflow } from "../../types/workflow/Workflow.type";
import { TWorkflowActivity } from "../../types/workflow/Activity.type";
import { TInput, TOutput } from "../../types/workflow/InputOutput.type";
Expand Down
2 changes: 1 addition & 1 deletion src/workflow/runtime/WorkflowRuntimeStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { OrchestrationStatus } from "@microsoft/durabletask-js/orchestration/enum/orchestration-status.enum";
import { OrchestrationStatus } from "@dapr/durabletask-js/orchestration/enum/orchestration-status.enum";

/**
* Enum describing the runtime status of a workflow.
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/workflow/workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { TWorkflow } from "../../../src/types/workflow/Workflow.type";
import { getFunctionName } from "../../../src/workflow/internal";
import { WorkflowRuntimeStatus } from "../../../src/workflow/runtime/WorkflowRuntimeStatus";
import WorkflowActivityContext from "../../../src/workflow/runtime/WorkflowActivityContext";
import { Task } from "@microsoft/durabletask-js/task/task";
import { Task } from "@dapr/durabletask-js/task/task";

const clientHost = "localhost";
const clientPort = "4001";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/workflow/workflowRuntimeStatus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { OrchestrationStatus } from "@microsoft/durabletask-js/orchestration/enum/orchestration-status.enum";
import { OrchestrationStatus } from "@dapr/durabletask-js/orchestration/enum/orchestration-status.enum";
import {
WorkflowRuntimeStatus,
fromOrchestrationStatus,
Expand Down

0 comments on commit e575605

Please sign in to comment.