Skip to content

Commit a2007ac

Browse files
authored
chore: Remove experimental flags on Schedules, Failure Converters, Local Activities and Replay Histories (#1235)
1 parent a2c67bd commit a2007ac

File tree

10 files changed

+2
-78
lines changed

10 files changed

+2
-78
lines changed

packages/client/src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ export class Client extends BaseClient {
4343
public readonly activity: AsyncCompletionClient;
4444
/**
4545
* Schedule sub-client - use to start and interact with Schedules
46-
*
47-
* @experimental
4846
*/
4947
public readonly schedule: ScheduleClient;
5048
/**

packages/client/src/interceptors.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ export interface WorkflowClientInterceptors {
145145

146146
/**
147147
* Implement any of these methods to intercept ScheduleClient outbound calls
148-
*
149-
* @experimental
150148
*/
151149
export interface ScheduleClientInterceptor {
152150
/**
@@ -157,8 +155,6 @@ export interface ScheduleClientInterceptor {
157155

158156
/**
159157
* Input for {@link ScheduleClientInterceptor.create}
160-
*
161-
* @experimental
162158
*/
163159
export interface CreateScheduleInput {
164160
readonly headers: Headers;
@@ -178,8 +174,5 @@ export interface ClientInterceptors {
178174
// eslint-disable-next-line deprecation/deprecation
179175
workflow?: WorkflowClientInterceptors | WorkflowClientInterceptor[];
180176

181-
/**
182-
* @experimental
183-
*/
184177
schedule?: ScheduleClientInterceptor[];
185178
}

packages/client/src/schedule-client.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ import { rethrowKnownErrorTypes } from './helpers';
5050

5151
/**
5252
* Handle to a single Schedule
53-
*
54-
* @experimental
5553
*/
5654
export interface ScheduleHandle {
5755
/**
@@ -113,9 +111,6 @@ export interface ScheduleHandle {
113111
readonly client: ScheduleClient;
114112
}
115113

116-
/**
117-
* @experimental
118-
*/
119114
export interface ScheduleClientOptions extends BaseClientOptions {
120115
/**
121116
* Used to override and extend default Connection functionality
@@ -125,7 +120,6 @@ export interface ScheduleClientOptions extends BaseClientOptions {
125120
interceptors?: ScheduleClientInterceptor[];
126121
}
127122

128-
/** @experimental */
129123
export type LoadedScheduleClientOptions = LoadedWithDefaults<ScheduleClientOptions>;
130124

131125
function defaultScheduleClientOptions(): WithDefaults<ScheduleClientOptions> {
@@ -156,7 +150,6 @@ function assertRequiredScheduleOptions(
156150
}
157151
}
158152

159-
/** @experimental */
160153
export interface ListScheduleOptions {
161154
/**
162155
* How many results to fetch from the Server at a time.
@@ -167,8 +160,6 @@ export interface ListScheduleOptions {
167160

168161
/**
169162
* Client for starting Workflow executions and creating Workflow handles
170-
*
171-
* @experimental
172163
*/
173164
export class ScheduleClient extends BaseClient {
174165
public readonly options: LoadedScheduleClientOptions;
@@ -525,8 +516,6 @@ export class ScheduleClient extends BaseClient {
525516

526517
/**
527518
* Thrown from {@link ScheduleClient.create} if there's a running (not deleted) Schedule with the given `id`.
528-
*
529-
* @experimental
530519
*/
531520
@SymbolBasedInstanceOfError('ScheduleAlreadyRunning')
532521
export class ScheduleAlreadyRunning extends Error {
@@ -540,8 +529,6 @@ export class ScheduleAlreadyRunning extends Error {
540529
* It could be because:
541530
* - Id passed is incorrect
542531
* - Schedule was deleted
543-
*
544-
* @experimental
545532
*/
546533
@SymbolBasedInstanceOfError('ScheduleNotFoundError')
547534
export class ScheduleNotFoundError extends Error {

packages/client/src/schedule-types.ts

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { WorkflowStartOptions } from './workflow-options';
55

66
/**
77
* The specification of a Schedule to be created, as expected by {@link ScheduleClient.create}.
8-
*
9-
* @experimental
108
*/
119
export interface ScheduleOptions<A extends ScheduleOptionsAction = ScheduleOptionsAction> {
1210
/**
@@ -119,7 +117,6 @@ export interface ScheduleOptions<A extends ScheduleOptionsAction = ScheduleOptio
119117
};
120118
}
121119

122-
/** @experimental */
123120
export type CompiledScheduleOptions = Replace<
124121
ScheduleOptions,
125122
{
@@ -129,8 +126,6 @@ export type CompiledScheduleOptions = Replace<
129126

130127
/**
131128
* The specification of an updated Schedule, as expected by {@link ScheduleHandle.update}.
132-
*
133-
* @experimental
134129
*/
135130
export type ScheduleUpdateOptions<A extends ScheduleOptionsAction = ScheduleOptionsAction> = Replace<
136131
Omit<ScheduleOptions, 'scheduleId' | 'memo' | 'searchAttributes'>,
@@ -140,7 +135,6 @@ export type ScheduleUpdateOptions<A extends ScheduleOptionsAction = ScheduleOpti
140135
}
141136
>;
142137

143-
/** @experimental */
144138
export type CompiledScheduleUpdateOptions = Replace<
145139
ScheduleUpdateOptions,
146140
{
@@ -153,8 +147,6 @@ export type CompiledScheduleUpdateOptions = Replace<
153147
*
154148
* Note that schedule listing is eventual consistent; some returned properties may therefore
155149
* be undefined or incorrect for some time after creating or modifying a schedule.
156-
*
157-
* @experimental
158150
*/
159151
export interface ScheduleSummary {
160152
/**
@@ -212,7 +204,6 @@ export interface ScheduleSummary {
212204
};
213205
}
214206

215-
/** @experimental */
216207
export interface ScheduleExecutionResult {
217208
/** Time that the Action was scheduled for, including jitter */
218209
scheduledAt: Date;
@@ -224,10 +215,8 @@ export interface ScheduleExecutionResult {
224215
action: ScheduleExecutionActionResult;
225216
}
226217

227-
/** @experimental */
228218
export type ScheduleExecutionActionResult = ScheduleExecutionStartWorkflowActionResult;
229219

230-
/** @experimental */
231220
export interface ScheduleExecutionStartWorkflowActionResult {
232221
type: 'startWorkflow';
233222
workflow: {
@@ -243,8 +232,6 @@ export interface ScheduleExecutionStartWorkflowActionResult {
243232

244233
/**
245234
* A detailed description of an exisiting Schedule, as returned by {@link ScheduleHandle.describe}.
246-
*
247-
* @experimental
248235
*/
249236
export type ScheduleDescription = {
250237
/**
@@ -378,8 +365,6 @@ checkExtends<ScheduleUpdateOptions, ScheduleDescription>();
378365
* The times are the union of `calendars`, `intervals`, and `cronExpressions`, minus the `skip` times. These times
379366
* never change, except that the definition of a time zone can change over time (most commonly, when daylight saving
380367
* time policy changes for an area). To create a totally self-contained `ScheduleSpec`, use UTC.
381-
*
382-
* @experimental
383368
*/
384369
export interface ScheduleSpec {
385370
/** Calendar-based specifications of times. */
@@ -483,8 +468,6 @@ export interface ScheduleSpec {
483468

484469
/**
485470
* The version of {@link ScheduleSpec} that you get back from {@link ScheduleHandle.describe} and {@link ScheduleClient.list}
486-
*
487-
* @experimental
488471
*/
489472
export type ScheduleSpecDescription = Omit<
490473
ScheduleSpec,
@@ -515,8 +498,6 @@ checkExtends<ScheduleSpec, ScheduleSpecDescription>();
515498
* An event specification relative to the calendar, similar to a traditional cron specification.
516499
*
517500
* A second in time matches if all fields match. This includes `dayOfMonth` and `dayOfWeek`.
518-
*
519-
* @experimental
520501
*/
521502
export interface CalendarSpec {
522503
/**
@@ -574,8 +555,6 @@ export interface CalendarSpec {
574555
* An event specification relative to the calendar, similar to a traditional cron specification.
575556
*
576557
* A second in time matches if all fields match. This includes `dayOfMonth` and `dayOfWeek`.
577-
*
578-
* @experimental
579558
*/
580559
export interface CalendarSpecDescription {
581560
/**
@@ -644,8 +623,6 @@ export interface CalendarSpecDescription {
644623
* of 19 minutes would match every `xx:19:00`. An `every` of 28 days with `offset` zero would match `2022-02-17T00:00:00Z`
645624
* (among other times). The same `every` with `offset` of 3 days, 5 hours, and 23 minutes would match `2022-02-20T05:23:00Z`
646625
* instead.
647-
*
648-
* @experimental
649626
*/
650627
export interface IntervalSpec {
651628
/**
@@ -677,8 +654,6 @@ export interface IntervalSpec {
677654
* instead.
678655
*
679656
* This is the version of {@link IntervalSpec} that you get back from {@link ScheduleHandle.describe} and {@link ScheduleClient.list}
680-
*
681-
* @experimental
682657
*/
683658
export interface IntervalSpecDescription {
684659
/**
@@ -699,8 +674,6 @@ export interface IntervalSpecDescription {
699674
/**
700675
* Range represents a set of values, used to match fields of a calendar. If end < start, then end is
701676
* interpreted as equal to start. Similarly, if step is less than 1, then step is interpreted as 1.
702-
*
703-
* @experimental
704677
*/
705678
export interface Range<Unit> {
706679
/**
@@ -733,15 +706,12 @@ export interface Range<Unit> {
733706
* { start: 2, end: 4 } ➡️ 2, 3, 4
734707
* { start: 2, end: 10, step: 3 } ➡️ 2, 5, 8
735708
* ```
736-
*
737-
* @experimental
738709
*/
739710
export type LooseRange<Unit> =
740711
| Range<Unit>
741712
| { start: Range<Unit>['start']; end?: Range<Unit>['end']; step?: never }
742713
| Unit;
743714

744-
/** @experimental */
745715
export const MONTHS = [
746716
'JANUARY',
747717
'FEBRUARY',
@@ -757,19 +727,14 @@ export const MONTHS = [
757727
'DECEMBER',
758728
] as const;
759729

760-
/** @experimental */
761730
export type Month = (typeof MONTHS)[number];
762731

763-
/** @experimental */
764732
export const DAYS_OF_WEEK = ['SUNDAY', 'MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY'] as const;
765733

766-
/** @experimental */
767734
export type DayOfWeek = (typeof DAYS_OF_WEEK)[number];
768735

769-
/** @experimental */
770736
export type ScheduleOptionsAction = ScheduleOptionsStartWorkflowAction<Workflow>;
771737

772-
/** @experimental */
773738
export type ScheduleOptionsStartWorkflowAction<W extends Workflow> = {
774739
type: 'startWorkflow';
775740
workflowType: string | W;
@@ -793,18 +758,15 @@ export type ScheduleOptionsStartWorkflowAction<W extends Workflow> = {
793758
workflowId?: string;
794759
};
795760

796-
/** @experimental */
797761
export type ScheduleSummaryAction = ScheduleSummaryStartWorkflowAction;
798762

799-
/** @experimental */
800763
export interface ScheduleSummaryStartWorkflowAction {
801764
type: 'startWorkflow';
802765
workflowType: string;
803766
}
804-
/** @experimental */
767+
805768
export type ScheduleDescriptionAction = ScheduleDescriptionStartWorkflowAction;
806769

807-
/** @experimental */
808770
export type ScheduleDescriptionStartWorkflowAction = ScheduleSummaryStartWorkflowAction &
809771
Pick<
810772
WorkflowStartOptions<Workflow>,
@@ -822,7 +784,6 @@ export type ScheduleDescriptionStartWorkflowAction = ScheduleSummaryStartWorkflo
822784
// Invariant: an existing ScheduleDescriptionAction can be used as is to create or update a schedule
823785
checkExtends<ScheduleOptionsAction, ScheduleDescriptionAction>();
824786

825-
/** @experimental */
826787
export type CompiledScheduleAction = Replace<
827788
ScheduleDescriptionAction,
828789
{
@@ -833,8 +794,6 @@ export type CompiledScheduleAction = Replace<
833794

834795
/**
835796
* Policy for overlapping Actions.
836-
*
837-
* @experimental
838797
*/
839798
export enum ScheduleOverlapPolicy {
840799
/**
@@ -888,7 +847,6 @@ checkExtends<
888847
keyof typeof temporal.api.enums.v1.ScheduleOverlapPolicy
889848
>();
890849

891-
/** @experimental */
892850
export interface Backfill {
893851
/**
894852
* Start of the time range to evaluate Schedule in.

packages/common/src/converter/data-converter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ export interface DataConverter {
3838
* Path of a file that has a `failureConverter` named export.
3939
* `failureConverter` should be an object that implements {@link FailureConverter}.
4040
* If no path is provided, {@link defaultFailureConverter} is used.
41-
*
42-
* @experimental
4341
*/
4442
failureConverterPath?: string;
4543

packages/common/src/converter/failure-converter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ export function cutoffStackTrace(stack?: string): string {
4747
*
4848
* We recommended using the {@link DefaultFailureConverter} instead of customizing the default implementation in order
4949
* to maintain cross-language Failure serialization compatibility.
50-
*
51-
* @experimental
5250
*/
5351
export interface FailureConverter {
5452
/**
@@ -89,8 +87,6 @@ export interface DefaultFailureConverterOptions {
8987
* `encodeCommonAttributes` to `true` in the constructor options and use a {@link PayloadCodec} that can encrypt /
9088
* decrypt Payloads in your {@link WorkerOptions.dataConverter | Worker} and
9189
* {@link ClientOptions.dataConverter | Client options}.
92-
*
93-
* @experimental
9490
*/
9591
export class DefaultFailureConverter implements FailureConverter {
9692
public readonly options: DefaultFailureConverterOptions;

packages/worker/src/replay.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ export interface ReplayResult {
2424

2525
/**
2626
* An iterable on workflow histories and their IDs, used for batch replaying.
27-
*
28-
* @experimental - this API is not considered stable
2927
*/
3028
export type ReplayHistoriesIterable = AsyncIterable<HistoryAndWorkflowId> | Iterable<HistoryAndWorkflowId>;
3129

packages/worker/src/worker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,6 @@ export class Worker {
529529
* Create a replay Worker, running all histories provided by the passed in iterable.
530530
*
531531
* Returns an async iterable of results for each history replayed.
532-
*
533-
* @experimental - this API is considered unstable
534532
*/
535533
public static async *runReplayHistories(
536534
options: ReplayWorkerOptions,

packages/workflow/src/interceptors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export interface DisposeInput {}
196196
*
197197
* Use to manipulate or trace Workflow activations.
198198
*
199-
* @experimental
199+
* @experimental This API is for advanced use cases and may change in the future.
200200
*/
201201
export interface WorkflowInternalsInterceptor {
202202
/**

packages/workflow/src/workflow.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,6 @@ export function proxyActivities<A = UntypedActivities>(options: ActivityOptions)
546546
* @return a {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy | Proxy}
547547
* for which each attribute is a callable Activity function
548548
*
549-
* @experimental
550-
*
551549
* @see {@link proxyActivities} for examples
552550
*/
553551
export function proxyLocalActivities<A = UntypedActivities>(options: LocalActivityOptions): ActivityInterfaceFor<A> {

0 commit comments

Comments
 (0)