@temporalio/activity 1.17.2 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +4 -4
- package/lib/index.js +4 -4
- package/package.json +3 -4
- package/src/index.ts +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
*
|
|
13
13
|
* Any function can be used as an Activity as long as its parameters and return value are serializable using a
|
|
14
|
-
* {@link https://docs.temporal.io/
|
|
14
|
+
* {@link https://docs.temporal.io/default-custom-data-converters#custom-data-converter | DataConverter}.
|
|
15
15
|
*
|
|
16
16
|
* ### Cancellation
|
|
17
17
|
*
|
|
@@ -253,7 +253,7 @@ export interface Info {
|
|
|
253
253
|
* Activity Context, used to:
|
|
254
254
|
*
|
|
255
255
|
* - Get {@link Info} about the current Activity Execution
|
|
256
|
-
* - Send {@link https://docs.temporal.io/
|
|
256
|
+
* - Send {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeats}
|
|
257
257
|
* - Get notified of Activity cancellation
|
|
258
258
|
* - Sleep (cancellation-aware)
|
|
259
259
|
*
|
|
@@ -399,7 +399,7 @@ export declare class Context {
|
|
|
399
399
|
*/
|
|
400
400
|
_cancellationDetails: ActivityCancellationDetailsHolder);
|
|
401
401
|
/**
|
|
402
|
-
* Send a {@link https://docs.temporal.io/
|
|
402
|
+
* Send a {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeat} from an Activity.
|
|
403
403
|
*
|
|
404
404
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
405
405
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|
|
@@ -465,7 +465,7 @@ export declare const log: Logger;
|
|
|
465
465
|
*/
|
|
466
466
|
export declare function sleep(ms: Duration): Promise<void>;
|
|
467
467
|
/**
|
|
468
|
-
* Send a {@link https://docs.temporal.io/
|
|
468
|
+
* Send a {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeat} from an Activity.
|
|
469
469
|
*
|
|
470
470
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
471
471
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|
package/lib/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* ```
|
|
13
13
|
*
|
|
14
14
|
* Any function can be used as an Activity as long as its parameters and return value are serializable using a
|
|
15
|
-
* {@link https://docs.temporal.io/
|
|
15
|
+
* {@link https://docs.temporal.io/default-custom-data-converters#custom-data-converter | DataConverter}.
|
|
16
16
|
*
|
|
17
17
|
* ### Cancellation
|
|
18
18
|
*
|
|
@@ -141,7 +141,7 @@ exports.asyncLocalStorage = globalThis[asyncLocalStorageSymbol];
|
|
|
141
141
|
* Activity Context, used to:
|
|
142
142
|
*
|
|
143
143
|
* - Get {@link Info} about the current Activity Execution
|
|
144
|
-
* - Send {@link https://docs.temporal.io/
|
|
144
|
+
* - Send {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeats}
|
|
145
145
|
* - Get notified of Activity cancellation
|
|
146
146
|
* - Sleep (cancellation-aware)
|
|
147
147
|
*
|
|
@@ -247,7 +247,7 @@ class Context {
|
|
|
247
247
|
this._cancellationDetails = _cancellationDetails;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* Send a {@link https://docs.temporal.io/
|
|
250
|
+
* Send a {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeat} from an Activity.
|
|
251
251
|
*
|
|
252
252
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
253
253
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|
|
@@ -355,7 +355,7 @@ function sleep(ms) {
|
|
|
355
355
|
return Context.current().sleep(ms);
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
358
|
-
* Send a {@link https://docs.temporal.io/
|
|
358
|
+
* Send a {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeat} from an Activity.
|
|
359
359
|
*
|
|
360
360
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
361
361
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/activity",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Temporal.io SDK Activity sub-package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
"author": "Temporal Technologies Inc. <sdk@temporal.io>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"@temporalio/
|
|
18
|
-
"@temporalio/client": "1.17.2"
|
|
16
|
+
"@temporalio/common": "1.18.0",
|
|
17
|
+
"@temporalio/client": "1.18.0"
|
|
19
18
|
},
|
|
20
19
|
"engines": {
|
|
21
20
|
"node": ">= 20.0.0"
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
*
|
|
13
13
|
* Any function can be used as an Activity as long as its parameters and return value are serializable using a
|
|
14
|
-
* {@link https://docs.temporal.io/
|
|
14
|
+
* {@link https://docs.temporal.io/default-custom-data-converters#custom-data-converter | DataConverter}.
|
|
15
15
|
*
|
|
16
16
|
* ### Cancellation
|
|
17
17
|
*
|
|
@@ -283,7 +283,7 @@ export interface Info {
|
|
|
283
283
|
* Activity Context, used to:
|
|
284
284
|
*
|
|
285
285
|
* - Get {@link Info} about the current Activity Execution
|
|
286
|
-
* - Send {@link https://docs.temporal.io/
|
|
286
|
+
* - Send {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeats}
|
|
287
287
|
* - Get notified of Activity cancellation
|
|
288
288
|
* - Sleep (cancellation-aware)
|
|
289
289
|
*
|
|
@@ -382,7 +382,7 @@ export class Context {
|
|
|
382
382
|
) {}
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* Send a {@link https://docs.temporal.io/
|
|
385
|
+
* Send a {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeat} from an Activity.
|
|
386
386
|
*
|
|
387
387
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
388
388
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|
|
@@ -498,7 +498,7 @@ export function sleep(ms: Duration): Promise<void> {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
|
-
* Send a {@link https://docs.temporal.io/
|
|
501
|
+
* Send a {@link https://docs.temporal.io/encyclopedia/detecting-activity-failures#activity-heartbeat | heartbeat} from an Activity.
|
|
502
502
|
*
|
|
503
503
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
504
504
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|