@twin.org/background-task-scheduler 0.0.2-next.2 → 0.0.2-next.3
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/dist/cjs/index.cjs +4 -8
- package/dist/esm/index.mjs +4 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/{taskScheduler.d.ts → taskSchedulerService.d.ts} +2 -6
- package/docs/changelog.md +14 -0
- package/docs/reference/classes/{TaskSchedulerComponent.md → TaskSchedulerService.md} +4 -12
- package/docs/reference/index.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,17 +4,13 @@ var core = require('@twin.org/core');
|
|
|
4
4
|
var loggingModels = require('@twin.org/logging-models');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Class for
|
|
7
|
+
* Class for scheduling tasks.
|
|
8
8
|
*/
|
|
9
|
-
class
|
|
10
|
-
/**
|
|
11
|
-
* The namespace supported by the task scheduler.
|
|
12
|
-
*/
|
|
13
|
-
static NAMESPACE = "task-scheduler";
|
|
9
|
+
class TaskSchedulerService {
|
|
14
10
|
/**
|
|
15
11
|
* Runtime name for the class.
|
|
16
12
|
*/
|
|
17
|
-
CLASS_NAME = "
|
|
13
|
+
CLASS_NAME = "TaskSchedulerService";
|
|
18
14
|
/**
|
|
19
15
|
* The logger for the task connector.
|
|
20
16
|
* @internal
|
|
@@ -209,4 +205,4 @@ class TaskSchedulerComponent {
|
|
|
209
205
|
}
|
|
210
206
|
}
|
|
211
207
|
|
|
212
|
-
exports.
|
|
208
|
+
exports.TaskSchedulerService = TaskSchedulerService;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,17 +2,13 @@ import { Is, BaseError } from '@twin.org/core';
|
|
|
2
2
|
import { LoggingConnectorFactory } from '@twin.org/logging-models';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Class for
|
|
5
|
+
* Class for scheduling tasks.
|
|
6
6
|
*/
|
|
7
|
-
class
|
|
8
|
-
/**
|
|
9
|
-
* The namespace supported by the task scheduler.
|
|
10
|
-
*/
|
|
11
|
-
static NAMESPACE = "task-scheduler";
|
|
7
|
+
class TaskSchedulerService {
|
|
12
8
|
/**
|
|
13
9
|
* Runtime name for the class.
|
|
14
10
|
*/
|
|
15
|
-
CLASS_NAME = "
|
|
11
|
+
CLASS_NAME = "TaskSchedulerService";
|
|
16
12
|
/**
|
|
17
13
|
* The logger for the task connector.
|
|
18
14
|
* @internal
|
|
@@ -207,4 +203,4 @@ class TaskSchedulerComponent {
|
|
|
207
203
|
}
|
|
208
204
|
}
|
|
209
205
|
|
|
210
|
-
export {
|
|
206
|
+
export { TaskSchedulerService };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import type { IScheduledTaskInfo, IScheduledTaskTime, ITaskSchedulerComponent } from "@twin.org/background-task-models";
|
|
2
2
|
import type { ITaskSchedulerConstructorOptions } from "./models/ITaskSchedulerConstructorOptions";
|
|
3
3
|
/**
|
|
4
|
-
* Class for
|
|
4
|
+
* Class for scheduling tasks.
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
/**
|
|
8
|
-
* The namespace supported by the task scheduler.
|
|
9
|
-
*/
|
|
10
|
-
static readonly NAMESPACE: string;
|
|
6
|
+
export declare class TaskSchedulerService implements ITaskSchedulerComponent {
|
|
11
7
|
/**
|
|
12
8
|
* Runtime name for the class.
|
|
13
9
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/background-task/compare/background-task-scheduler-v0.0.2-next.2...background-task-scheduler-v0.0.2-next.3) (2025-07-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* rename task scheduler component to service ([f097a98](https://github.com/twinfoundation/background-task/commit/f097a988c9ee0795aa55d74deda616365ec4ffb1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/background-task-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
16
|
+
|
|
3
17
|
## [0.0.2-next.2](https://github.com/twinfoundation/background-task/compare/background-task-scheduler-v0.0.2-next.1...background-task-scheduler-v0.0.2-next.2) (2025-07-09)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Class:
|
|
1
|
+
# Class: TaskSchedulerService
|
|
2
2
|
|
|
3
|
-
Class for
|
|
3
|
+
Class for scheduling tasks.
|
|
4
4
|
|
|
5
5
|
## Implements
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ Class for performing task operations in entity storage.
|
|
|
10
10
|
|
|
11
11
|
### Constructor
|
|
12
12
|
|
|
13
|
-
> **new
|
|
13
|
+
> **new TaskSchedulerService**(`options?`): `TaskSchedulerService`
|
|
14
14
|
|
|
15
15
|
Create a new instance of TaskSchedulerComponent.
|
|
16
16
|
|
|
@@ -24,18 +24,10 @@ The options for the scheduler.
|
|
|
24
24
|
|
|
25
25
|
#### Returns
|
|
26
26
|
|
|
27
|
-
`
|
|
27
|
+
`TaskSchedulerService`
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### NAMESPACE
|
|
32
|
-
|
|
33
|
-
> `readonly` `static` **NAMESPACE**: `string` = `"task-scheduler"`
|
|
34
|
-
|
|
35
|
-
The namespace supported by the task scheduler.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
31
|
### CLASS\_NAME
|
|
40
32
|
|
|
41
33
|
> `readonly` **CLASS\_NAME**: `string`
|
package/docs/reference/index.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/background-task-scheduler",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.3",
|
|
4
4
|
"description": "Background task scheduler",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/background-task-models": "0.0.2-next.
|
|
17
|
+
"@twin.org/background-task-models": "0.0.2-next.3",
|
|
18
18
|
"@twin.org/core": "next",
|
|
19
19
|
"@twin.org/logging-models": "next",
|
|
20
20
|
"@twin.org/nameof": "next"
|