@enonic-types/lib-task 8.0.4-B2 → 8.1.0-B1

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/task.d.ts +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-task",
3
- "version": "8.0.4-B2",
3
+ "version": "8.1.0-B1",
4
4
  "description": "Type definitions for lib-task.",
5
5
  "types": "task.d.ts",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/enonic/xp/tree/master#readme",
29
29
  "dependencies": {
30
- "@enonic-types/core": "8.0.4-B2"
30
+ "@enonic-types/core": "8.1.0-B1"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
package/task.d.ts CHANGED
@@ -13,7 +13,13 @@ declare global {
13
13
  }
14
14
  import type { UserKey } from '@enonic-types/core';
15
15
  export type { ScriptValue, UserKey } from '@enonic-types/core';
16
+ /**
17
+ * @deprecated Only {@link executeFunction} uses this, which is deprecated.
18
+ */
16
19
  export type CallbackFn = () => void;
20
+ /**
21
+ * @deprecated Only {@link executeFunction} uses this, which is deprecated.
22
+ */
17
23
  export interface ExecuteFunctionParams {
18
24
  description: string;
19
25
  func: CallbackFn;
@@ -39,6 +45,10 @@ export interface ExecuteFunctionParams {
39
45
  *
40
46
  * This function returns immediately. The callback function will be executed asynchronously.
41
47
  *
48
+ * @deprecated Not supported on the GraalJS engine — calling this there fails immediately. Use a
49
+ * named task ({@link module:task.submitTask}) instead. Scheduled for removal together with the
50
+ * Nashorn engine.
51
+ *
42
52
  * @example-ref examples/task/executeFunction.js
43
53
  *
44
54
  * @param {object} params JSON with the parameters.