@twin.org/background-task-scheduler 0.0.1 → 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.
@@ -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 performing task operations in entity storage.
7
+ * Class for scheduling tasks.
8
8
  */
9
- class TaskSchedulerComponent {
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 = "TaskSchedulerComponent";
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.TaskSchedulerComponent = TaskSchedulerComponent;
208
+ exports.TaskSchedulerService = TaskSchedulerService;
@@ -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 performing task operations in entity storage.
5
+ * Class for scheduling tasks.
6
6
  */
7
- class TaskSchedulerComponent {
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 = "TaskSchedulerComponent";
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 { TaskSchedulerComponent };
206
+ export { TaskSchedulerService };
@@ -1,3 +1,3 @@
1
1
  export * from "./models/ITaskSchedulerConfig";
2
2
  export * from "./models/ITaskSchedulerConstructorOptions";
3
- export * from "./taskScheduler";
3
+ export * from "./taskSchedulerService";
@@ -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 performing task operations in entity storage.
4
+ * Class for scheduling tasks.
5
5
  */
6
- export declare class TaskSchedulerComponent implements ITaskSchedulerComponent {
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,59 @@
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
+
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)
18
+
19
+
20
+ ### Features
21
+
22
+ * add task scheduler ([754d973](https://github.com/twinfoundation/background-task/commit/754d973e7c8483e5e54e887c157661867d5a0375))
23
+ * rename task scheduler component ([2f8aa59](https://github.com/twinfoundation/background-task/commit/2f8aa59c069055ff020a3c0c149601f20c656022))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * models import ([c830b0d](https://github.com/twinfoundation/background-task/commit/c830b0da4deb06f8aeca6fec8988be4da877e73b))
29
+
30
+
31
+ ### Dependencies
32
+
33
+ * The following workspace dependencies were updated
34
+ * dependencies
35
+ * @twin.org/background-task-models bumped from 0.0.2-next.1 to 0.0.2-next.2
36
+
37
+ ## [0.0.2-next.1](https://github.com/twinfoundation/background-task/compare/background-task-scheduler-v0.0.2-next.0...background-task-scheduler-v0.0.2-next.1) (2025-07-09)
38
+
39
+
40
+ ### Features
41
+
42
+ * add task scheduler ([754d973](https://github.com/twinfoundation/background-task/commit/754d973e7c8483e5e54e887c157661867d5a0375))
43
+ * rename task scheduler component ([2f8aa59](https://github.com/twinfoundation/background-task/commit/2f8aa59c069055ff020a3c0c149601f20c656022))
44
+
45
+
46
+ ### Bug Fixes
47
+
48
+ * models import ([c830b0d](https://github.com/twinfoundation/background-task/commit/c830b0da4deb06f8aeca6fec8988be4da877e73b))
49
+
50
+
51
+ ### Dependencies
52
+
53
+ * The following workspace dependencies were updated
54
+ * dependencies
55
+ * @twin.org/background-task-models bumped from 0.0.2-next.0 to 0.0.2-next.1
56
+
3
57
  ## 0.0.1 (2025-07-07)
4
58
 
5
59
 
@@ -1,6 +1,6 @@
1
- # Class: TaskSchedulerComponent
1
+ # Class: TaskSchedulerService
2
2
 
3
- Class for performing task operations in entity storage.
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 TaskSchedulerComponent**(`options?`): `TaskSchedulerComponent`
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
- `TaskSchedulerComponent`
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`
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Classes
4
4
 
5
- - [TaskSchedulerComponent](classes/TaskSchedulerComponent.md)
5
+ - [TaskSchedulerService](classes/TaskSchedulerService.md)
6
6
 
7
7
  ## Interfaces
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/background-task-scheduler",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-next.3",
4
4
  "description": "Background task scheduler",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,44 +13,11 @@
13
13
  "engines": {
14
14
  "node": ">=20.0.0"
15
15
  },
16
- "scripts": {
17
- "clean": "rimraf dist coverage docs/reference",
18
- "build": "tsc",
19
- "dev": "nodemon --watch src --ext ts --exec \"npm run build && npm run bundle:esm\"",
20
- "test": "vitest --run --config ./vitest.config.ts --no-cache",
21
- "coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
22
- "bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
23
- "bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
24
- "bundle": "npm run bundle:esm && npm run bundle:cjs",
25
- "docs:clean": "rimraf docs/reference",
26
- "docs:generate": "typedoc",
27
- "docs": "npm run docs:clean && npm run docs:generate",
28
- "dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs",
29
- "dist:no-test": "npm run clean && npm run build && npm run bundle && npm run docs",
30
- "prepare": "ts-patch install -s"
31
- },
32
16
  "dependencies": {
33
- "@twin.org/background-task-models": "^0.0.1",
34
- "@twin.org/core": "^0.0.1",
35
- "@twin.org/nameof": "^0.0.1",
36
- "@twin.org/logging-models": "^0.0.1"
37
- },
38
- "devDependencies": {
39
- "@twin.org/nameof-transformer": "^0.0.1",
40
- "@twin.org/nameof-vitest-plugin": "^0.0.1",
41
- "@types/node": "24.0.1",
42
- "@vitest/coverage-v8": "3.2.3",
43
- "copyfiles": "2.4.1",
44
- "dotenv": "16.5.0",
45
- "rimraf": "6.0.1",
46
- "rollup": "4.43.0",
47
- "rollup-plugin-copy": "3.5.0",
48
- "ts-patch": "3.3.0",
49
- "nodemon": "3.1.10",
50
- "typedoc": "0.28.5",
51
- "typedoc-plugin-markdown": "4.6.4",
52
- "typescript": "5.8.3",
53
- "vitest": "3.2.3"
17
+ "@twin.org/background-task-models": "0.0.2-next.3",
18
+ "@twin.org/core": "next",
19
+ "@twin.org/logging-models": "next",
20
+ "@twin.org/nameof": "next"
54
21
  },
55
22
  "main": "./dist/cjs/index.cjs",
56
23
  "module": "./dist/esm/index.mjs",