Skip to content

Commit 87be05b

Browse files
authored
Upgrade to React 19 (#3709)
* fix JSX compatibility warnings * fix deprecation warning during build * upgrade to react 19
1 parent 85f59af commit 87be05b

18 files changed

Lines changed: 81 additions & 71 deletions

docs/develop/dotnet/continue-as-new.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It also receives your Workflow's usual parameters.
3737
First, design your Workflow parameters so that you can pass in the "current state" when you Continue-As-New into the next Workflow run.
3838
This state is typically set to `None` for the original caller of the Workflow.
3939

40-
<div class="copycode-notice-container">
40+
<div className="copycode-notice-container">
4141
<a href="https://github.com/temporalio/samples-dotnet/blob/main/src/SafeMessageHandlers/ClusterManagerWorkflow.workflow.cs">
4242
View the source code
4343
</a>{' '}
@@ -60,7 +60,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
6060
Inside your Workflow, throw a [`CreateContinueAsNewException`](https://dotnet.temporal.io/api/Temporalio.Workflows.ContinueAsNewException.html) exception.
6161
This stops the Workflow right away and starts a new one.
6262

63-
<div class="copycode-notice-container">
63+
<div className="copycode-notice-container">
6464
<a href="https://github.com/temporalio/samples-dotnet/blob/main/src/SafeMessageHandlers/ClusterManagerWorkflow.workflow.cs">
6565
View the source code
6666
</a>{' '}
@@ -95,7 +95,7 @@ Instead, add a test hook to check your Workflow's Continue-as-New behavior faste
9595
For example, when `TestContinueAsNew == true`, this sample creates a test-only variable called `maxHistoryLength` and sets it to a small value.
9696
A helper variable in the Workflow checks it each time it considers using Continue-as-New:
9797

98-
<div class="copycode-notice-container">
98+
<div className="copycode-notice-container">
9999
<a href="https://github.com/temporalio/samples-dotnet/blob/main/src/SafeMessageHandlers/ClusterManagerWorkflow.workflow.cs">
100100
View the source code
101101
</a>{' '}

docs/develop/dotnet/versioning.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ This video provides an overview of how the `patched()` function works:
217217
<iframe
218218
src="https://www.youtube.com/embed/videoseries?list=PLytZkHFJwKUdfxFQnuo0Fson0QM0VL9hL"
219219
style={{ position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }}
220-
frameborder="0"
220+
frameBorder="0"
221221
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
222-
allowfullscreen>
222+
allowFullScreen>
223223
</iframe>
224224
</div>
225225
<br/>

docs/develop/go/continue-as-new.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It also receives your Workflow's usual parameters.
3737
First, design your Workflow parameters so that you can pass in the "current state" when you Continue-As-New into the next Workflow run.
3838
This state is typically set to `None` for the original caller of the Workflow.
3939

40-
<div class="copycode-notice-container">
40+
<div className="copycode-notice-container">
4141
<a href="https://github.com/temporalio/samples-go/blob/main/safe_message_handler/workflow.go">
4242
View the source code
4343
</a>{' '}
@@ -57,7 +57,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
5757
Inside your Workflow, return the [`NewContinueAsNewError`](https://pkg.go.dev/go.temporal.io/sdk/workflow#NewContinueAsNewError) error.
5858
This stops the Workflow right away and starts a new one.
5959

60-
<div class="copycode-notice-container">
60+
<div className="copycode-notice-container">
6161
<a href="https://github.com/temporalio/samples-go/blob/main/safe_message_handler/workflow.go">
6262
View the source code
6363
</a>{' '}
@@ -95,7 +95,7 @@ Instead, add a test hook to check your Workflow's Continue-as-New behavior faste
9595
For example, when `TestContinueAsNew == True`, this sample creates a test-only variable called `maxHistoryLength` and sets it to a small value.
9696
A helper method in the Workflow checks it each time it considers using Continue-as-New:
9797
98-
<div class="copycode-notice-container">
98+
<div className="copycode-notice-container">
9999
<a href="https://github.com/temporalio/samples-go/blob/main/safe_message_handler/workflow.go">
100100
View the source code
101101
</a>{' '}

docs/develop/java/continue-as-new.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It also receives your Workflow's usual parameters.
3737
First, design your Workflow parameters so that you can pass in the "current state" when you Continue-As-New into the next Workflow run.
3838
This state is typically set to `None` for the original caller of the Workflow.
3939

40-
<div class="copycode-notice-container">
40+
<div className="copycode-notice-container">
4141
<a href="https://github.com/temporalio/samples-java/blob/main/core/src/main/java/io/temporal/samples/safemessagepassing/ClusterManagerWorkflow.java">
4242
View the source code
4343
</a>{' '}
@@ -58,7 +58,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
5858
Inside your Workflow, call the [`continueAsNew()`](https://javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/workflow/Workflow.html#continueAsNew(io.temporal.workflow.ContinueAsNewOptions,java.lang.Object...)) function with the same type.
5959
This stops the Workflow right away and starts a new one.
6060

61-
<div class="copycode-notice-container">
61+
<div className="copycode-notice-container">
6262
<a href="https://github.com/temporalio/samples-java/blob/main/core/src/main/java/io/temporal/samples/safemessagepassing/ClusterManagerWorkflowImpl.java">
6363
View the source code
6464
</a>{' '}
@@ -89,7 +89,7 @@ Instead, add a test hook to check your Workflow's Continue-as-New behavior faste
8989
For example, when `testContinueAsNew == true`, this sample creates a test-only variable called `maxHistoryLength` and sets it to a small value.
9090
A helper method in the Workflow checks it each time it considers using Continue-as-New:
9191

92-
<div class="copycode-notice-container">
92+
<div className="copycode-notice-container">
9393
<a href="https://github.com/temporalio/samples-java/blob/main/core/src/main/java/io/temporal/samples/safemessagepassing/ClusterManagerWorkflowImpl.java">
9494
View the source code
9595
</a>{' '}

docs/develop/php/continue-as-new.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It also receives your Workflow's usual parameters.
3737
First, design your Workflow parameters so that you can pass in the "current state" when you Continue-As-New into the next Workflow run.
3838
This state is typically set to `None` for the original caller of the Workflow.
3939

40-
<div class="copycode-notice-container">
40+
<div className="copycode-notice-container">
4141
<a href="https://github.com/temporalio/samples-php/blob/master/app/src/SafeMessageHandlers/MessageHandlerWorkflowInterface.php">
4242
View the source code
4343
</a>{' '}
@@ -64,7 +64,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
6464
Inside your Workflow, call the [`continueAsNew()`](https://php.temporal.io/classes/Temporal-Workflow.html#method_continueAsNew) function with the same type.
6565
This stops the Workflow right away and starts a new one.
6666

67-
<div class="copycode-notice-container">
67+
<div className="copycode-notice-container">
6868
<a href="https://github.com/temporalio/samples-php/blob/master/app/src/SafeMessageHandlers/MessageHandlerWorkflow.php">
6969
View the source code
7070
</a>{' '}
@@ -98,7 +98,7 @@ Instead, add a test hook to check your Workflow's Continue-as-New behavior faste
9898
For example, when `testContinueAsNew == true`, this sample creates a test-only variable called `$this->maxHistoryLength` and sets it to a small value.
9999
A helper method in the Workflow checks it each time it considers using Continue-as-New:
100100

101-
<div class="copycode-notice-container">
101+
<div className="copycode-notice-container">
102102
<a href="https://github.com/temporalio/samples-php/blob/master/app/src/SafeMessageHandlers/MessageHandlerWorkflow.php">
103103
View the source code
104104
</a>{' '}

docs/develop/python/child-workflows.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This is useful if you want to do something after it has only started, or to get
4949

5050
:::
5151

52-
<div class="copycode-notice-container">
52+
<div className="copycode-notice-container">
5353
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/your_child_workflow/your_child_workflow_dacx.py">
5454
View the source code
5555
</a>{' '}
@@ -87,7 +87,7 @@ The default Parent Close Policy option is set to terminate the Child Workflow Ex
8787

8888
Set the `parent_close_policy` parameter inside the [`start_child_workflow`](https://python.temporal.io/temporalio.workflow.html#start_child_workflow) function or the [`execute_child_workflow()`](https://python.temporal.io/temporalio.workflow.html#execute_child_workflow) function to specify the behavior of the Child Workflow when the Parent Workflow closes.
8989

90-
<div class="copycode-notice-container">
90+
<div className="copycode-notice-container">
9191
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/your_child_workflow/your_child_workflow_dacx.py">
9292
View the source code
9393
</a>{' '}

docs/develop/python/continue-as-new.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It also receives your Workflow's usual parameters.
3737
First, design your Workflow parameters so that you can pass in the "current state" when you Continue-As-New into the next Workflow run.
3838
This state is typically set to `None` for the original caller of the Workflow.
3939

40-
<div class="copycode-notice-container">
40+
<div className="copycode-notice-container">
4141
<a href="https://github.com/temporalio/samples-python/blob/main/message_passing/safe_message_handlers/workflow.py">
4242
View the source code
4343
</a>{' '}
@@ -58,7 +58,7 @@ The test hook in the above snippet is covered [below](#how-to-test).
5858
Inside your Workflow, call the [`continue_as_new()`](https://python.temporal.io/temporalio.workflow.html#continue_as_new) function with the same type.
5959
This stops the Workflow right away and starts a new one.
6060

61-
<div class="copycode-notice-container">
61+
<div className="copycode-notice-container">
6262
<a href="https://github.com/temporalio/samples-python/blob/main/message_passing/safe_message_handlers/workflow.py">
6363
View the source code
6464
</a>{' '}
@@ -94,7 +94,7 @@ Instead, add a test hook to check your Workflow's Continue-as-New behavior faste
9494
For example, when `test_continue_as_new == True`, this sample creates a test-only variable called `self.max_history_length` and sets it to a small value.
9595
A helper method in the Workflow checks it each time it considers using Continue-as-New:
9696

97-
<div class="copycode-notice-container">
97+
<div className="copycode-notice-container">
9898
<a href="https://github.com/temporalio/samples-python/blob/main/message_passing/safe_message_handlers/workflow.py">
9999
View the source code
100100
</a>{' '}

docs/develop/python/failure-detection.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Available timeouts are:
5454
- `run_timeout`
5555
- `task_timeout`
5656

57-
<div class="copycode-notice-container">
57+
<div className="copycode-notice-container">
5858
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/workflow_timeouts_retries/workflows_dacx.py">
5959
View the source code
6060
</a>{' '}
@@ -87,7 +87,7 @@ Workflow Executions do not retry by default, and Retry Policies should be used w
8787

8888
Set the Retry Policy to either the [`start_workflow()`](https://python.temporal.io/temporalio.client.Client.html#start_workflow) or [`execute_workflow()`](https://python.temporal.io/temporalio.client.Client.html#execute_workflow) asynchronous methods.
8989

90-
<div class="copycode-notice-container">
90+
<div className="copycode-notice-container">
9191
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/workflow_timeouts_retries/workflows_dacx.py">
9292
View the source code
9393
</a>{' '}
@@ -127,7 +127,7 @@ Available timeouts are:
127127
- schedule_to_start_timeout
128128
- start_to_close_timeout
129129

130-
<div class="copycode-notice-container">
130+
<div className="copycode-notice-container">
131131
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/activity_timeouts_retires/your_workflows_dacx.py">
132132
View the source code
133133
</a>{' '}
@@ -156,7 +156,7 @@ Activity Executions are automatically associated with a default [Retry Policy](/
156156

157157
To create an Activity Retry Policy in Python, set the [RetryPolicy](https://python.temporal.io/temporalio.common.RetryPolicy.html) class within the [`start_activity()`](https://python.temporal.io/temporalio.workflow.html#start_activity) or [`execute_activity()`](https://python.temporal.io/temporalio.workflow.html#execute_activity) function.
158158

159-
<div class="copycode-notice-container">
159+
<div className="copycode-notice-container">
160160
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/activity_timeouts_retires/your_workflows_dacx.py">
161161
View the source code
162162
</a>{' '}

docs/develop/python/schedules.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Set the `action` parameter to `ScheduleActionStartWorkflow` to start a Workflow
5959
Optionally, you can set the `spec` parameter to `ScheduleSpec` to specify the schedule or set the `intervals` parameter to `ScheduleIntervalSpec` to specify the interval.
6060
Other options include: `cron_expressions`, `skip`, `start_at`, and `jitter`.
6161

62-
<div class="copycode-notice-container">
62+
<div className="copycode-notice-container">
6363
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/start_schedule_dacx.py">
6464
View the source code
6565
</a>{' '}
@@ -104,7 +104,7 @@ The backfill action executes Actions ahead of their specified time range. This c
104104
To Backfill a Scheduled Workflow Execution in Python, use the [backfill()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#backfill) asynchronous
105105
method on the Schedule Handle.
106106

107-
<div class="copycode-notice-container">
107+
<div className="copycode-notice-container">
108108
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/backfill_schedule_dacx.py">
109109
View the source code
110110
</a>{' '}
@@ -144,7 +144,7 @@ The delete action enables you to delete a Schedule. When you delete a Schedule,
144144

145145
To delete a Scheduled Workflow Execution in Python, use the [delete()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#delete) asynchronous method on the Schedule Handle.
146146

147-
<div class="copycode-notice-container">
147+
<div className="copycode-notice-container">
148148
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/delete_schedule_dacx.py">
149149
View the source code
150150
</a>{' '}
@@ -170,7 +170,7 @@ The describe action shows the current Schedule configuration, including informat
170170
To describe a Scheduled Workflow Execution in Python, use the [describe()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#delete) asynchronous method on the Schedule Handle.
171171
You can get a complete list of the attributes of the Scheduled Workflow Execution from the [ScheduleDescription](https://python.temporal.io/temporalio.client.ScheduleDescription.html) class.
172172

173-
<div class="copycode-notice-container">
173+
<div className="copycode-notice-container">
174174
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/describe_schedule_dacx.py">
175175
View the source code
176176
</a>{' '}
@@ -199,7 +199,7 @@ The list action lists all the available Schedules. This command is useful when y
199199
To list all schedules, use the [list_schedules()](https://python.temporal.io/temporalio.client.Client.html#list_schedules) asynchronous method on the Client.
200200
If a schedule is added or deleted, it may not be available in the list immediately.
201201

202-
<div class="copycode-notice-container">
202+
<div className="copycode-notice-container">
203203
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/list_schedule_dacx.py">
204204
View the source code
205205
</a>{' '}
@@ -223,7 +223,7 @@ The pause action enables you to pause and unpause a Schedule. When you pause a S
223223
To pause a Scheduled Workflow Execution in Python, use the [pause()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#pause) asynchronous method on the Schedule Handle.
224224
You can pass a `note` to the `pause()` method to provide a reason for pausing the schedule.
225225

226-
<div class="copycode-notice-container">
226+
<div className="copycode-notice-container">
227227
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/pause_schedule_dacx.py">
228228
View the source code
229229
</a>{' '}
@@ -249,7 +249,7 @@ The trigger action triggers an immediate action with a given Schedule. By defaul
249249

250250
To trigger a Scheduled Workflow Execution in Python, use the [trigger()](https://python.temporal.io/temporalio.client.ScheduleHandle.html#trigger) asynchronous method on the Schedule Handle.
251251

252-
<div class="copycode-notice-container">
252+
<div className="copycode-notice-container">
253253
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/trigger_schedule_dacx.py">
254254
View the source code
255255
</a>{' '}
@@ -277,7 +277,7 @@ Create a function that takes `ScheduleUpdateInput` and returns `ScheduleUpdate`.
277277
To update a Schedule, use a callback to build the update from the description.
278278
The following example updates the Schedule to use a new argument.
279279

280-
<div class="copycode-notice-container">
280+
<div className="copycode-notice-container">
281281
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/schedule_your_workflow/update_schedule_dacx.py">
282282
View the source code
283283
</a>{' '}
@@ -311,7 +311,7 @@ A Cron Schedule is provided as an option when the call to spawn a Workflow Execu
311311

312312
You can set each Workflow to repeat on a schedule with the `cron_schedule` option from either the [`start_workflow()`](https://python.temporal.io/temporalio.client.Client.html#start_workflow) or [`execute_workflow()`](https://python.temporal.io/temporalio.client.Client.html#execute_workflow) asynchronous methods.
313313

314-
<div class="copycode-notice-container">
314+
<div className="copycode-notice-container">
315315
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/your_cron_job/your_cron_dacx.py">
316316
View the source code
317317
</a>{' '}

0 commit comments

Comments
 (0)