Skip to content

Commit 543713a

Browse files
authored
fix: Fix multiple typos on "workflow" (#1204)
## What changed - Fix multiple typos on "workflow"
1 parent 9d28e2c commit 543713a

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,7 @@ Breaking changes marked with a :boom:
21112111
`execute` methods
21122112
- `WorkflowClient.signalWithStart` was added
21132113
- To get a handle to an existing Workflow use `WorkflowClient.getHandle`
2114-
- `wf.createChildWorklowHandle` was renamed to `wf.startChild` and
2114+
- `wf.createChildWorkflowHandle` was renamed to `wf.startChild` and
21152115
immediately starts the Workflow
21162116
- `wf.executeChild` replaces `ChildWorkflowHandle.execute`
21172117
- `wf.createExternalWorkflowHandle` was renamed to

packages/worker/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export {
5959
export {
6060
BundleOptions,
6161
bundleWorkflowCode,
62-
defaultWorflowInterceptorModules,
62+
defaultWorkflowInterceptorModules,
63+
/**
64+
* @deprecated Use `defaultWorkflowInterceptorModules` instead
65+
*/
66+
defaultWorkflowInterceptorModules as defaultWorflowInterceptorModules,
6367
WorkflowBundleWithSourceMap,
6468
} from './workflow/bundler';

packages/worker/src/replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface ReplayResult {
2323
}
2424

2525
/**
26-
* An iterable on worflow histories and their IDs, used for batch replaying.
26+
* An iterable on workflow histories and their IDs, used for batch replaying.
2727
*
2828
* @experimental - this API is not considered stable
2929
*/

packages/worker/src/worker-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Logger } from './logger';
1212
import { Runtime } from './runtime';
1313
import { InjectedSinks } from './sinks';
1414
import { MiB } from './utils';
15-
import { defaultWorflowInterceptorModules, WorkflowBundleWithSourceMap } from './workflow/bundler';
15+
import { defaultWorkflowInterceptorModules, WorkflowBundleWithSourceMap } from './workflow/bundler';
1616

1717
export type { WebpackConfiguration };
1818

@@ -631,7 +631,7 @@ export function appendDefaultInterceptors(
631631
): WorkerInterceptors {
632632
return {
633633
activityInbound: [...(interceptors.activityInbound ?? []), (ctx) => new ActivityInboundLogInterceptor(ctx, logger)],
634-
workflowModules: [...(interceptors.workflowModules ?? []), ...defaultWorflowInterceptorModules],
634+
workflowModules: [...(interceptors.workflowModules ?? []), ...defaultWorkflowInterceptorModules],
635635
};
636636
}
637637

packages/worker/src/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import {
8484
} from './worker-options';
8585
import { WorkflowCodecRunner } from './workflow-codec-runner';
8686
import { workflowLogAttributes } from './workflow-log-interceptor';
87-
import { defaultWorflowInterceptorModules, WorkflowCodeBundler } from './workflow/bundler';
87+
import { defaultWorkflowInterceptorModules, WorkflowCodeBundler } from './workflow/bundler';
8888
import { Workflow, WorkflowCreator } from './workflow/interface';
8989
import { ReusableVMWorkflowCreator } from './workflow/reusable-vm';
9090
import { ThreadedVMWorkflowCreator } from './workflow/threaded-vm';
@@ -643,7 +643,7 @@ export class Worker {
643643
}
644644
const modules = compiledOptions.interceptors?.workflowModules;
645645
// Warn if user tries to customize the default set of workflow interceptor modules
646-
if (modules && new Set([...modules, ...defaultWorflowInterceptorModules]).size !== modules.length) {
646+
if (modules && new Set([...modules, ...defaultWorkflowInterceptorModules]).size !== modules.length) {
647647
logger.warn(
648648
'Ignoring WorkerOptions.interceptors.workflowModules because WorkerOptions.workflowBundle is set.\n' +
649649
'To use workflow interceptors with a workflowBundle, pass them in the call to bundleWorkflowCode.'

packages/worker/src/workflow/bundler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Configuration, webpack } from 'webpack';
88
import { DefaultLogger, Logger } from '../logger';
99
import { toMB } from '../utils';
1010

11-
export const defaultWorflowInterceptorModules = [require.resolve('../workflow-log-interceptor')];
11+
export const defaultWorkflowInterceptorModules = [require.resolve('../workflow-log-interceptor')];
1212

1313
export const allowedBuiltinModules = ['assert', 'url'];
1414
export const disallowedBuiltinModules = builtinModules.filter((module) => !allowedBuiltinModules.includes(module));
@@ -67,7 +67,7 @@ export class WorkflowCodeBundler {
6767
this.workflowsPath = workflowsPath;
6868
this.payloadConverterPath = payloadConverterPath;
6969
this.failureConverterPath = failureConverterPath;
70-
this.workflowInterceptorModules = workflowInterceptorModules ?? defaultWorflowInterceptorModules;
70+
this.workflowInterceptorModules = workflowInterceptorModules ?? defaultWorkflowInterceptorModules;
7171
this.ignoreModules = ignoreModules ?? [];
7272
this.webpackConfigHook = webpackConfigHook ?? ((config) => config);
7373
}
@@ -319,7 +319,7 @@ export interface BundleOptions {
319319
* Modules should export an `interceptors` variable of type {@link WorkflowInterceptorsFactory}.
320320
*
321321
* By default, {@link WorkflowInboundLogInterceptor} is installed. If you wish to customize the interceptors while
322-
* keeping the defaults, add {@link defaultWorflowInterceptorModules} to the provided array.
322+
* keeping the defaults, add {@link defaultWorkflowInterceptorModules} to the provided array.
323323
*/
324324
workflowInterceptorModules?: string[];
325325
/**

0 commit comments

Comments
 (0)