@twin.org/core 0.0.2-next.15 → 0.0.2-next.16
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.
|
@@ -11,19 +11,19 @@ export interface IComponent {
|
|
|
11
11
|
* @param nodeLoggingComponentType The node logging component type.
|
|
12
12
|
* @returns True if the bootstrapping process was successful.
|
|
13
13
|
*/
|
|
14
|
-
bootstrap?(nodeLoggingComponentType
|
|
14
|
+
bootstrap?(nodeLoggingComponentType?: string): Promise<boolean>;
|
|
15
15
|
/**
|
|
16
16
|
* The component needs to be started when the node is initialized.
|
|
17
17
|
* @param nodeIdentity The identity of the node starting the component.
|
|
18
18
|
* @param nodeLoggingComponentType The node logging component type.
|
|
19
19
|
* @returns Nothing.
|
|
20
20
|
*/
|
|
21
|
-
start?(nodeIdentity
|
|
21
|
+
start?(nodeIdentity?: string, nodeLoggingComponentType?: string): Promise<void>;
|
|
22
22
|
/**
|
|
23
23
|
* The component needs to be stopped when the node is closed.
|
|
24
24
|
* @param nodeIdentity The identity of the node stopping the component.
|
|
25
25
|
* @param nodeLoggingComponentType The node logging component type.
|
|
26
26
|
* @returns Nothing.
|
|
27
27
|
*/
|
|
28
|
-
stop?(nodeIdentity
|
|
28
|
+
stop?(nodeIdentity?: string, nodeLoggingComponentType?: string): Promise<void>;
|
|
29
29
|
}
|
package/dist/types/utils/is.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ export declare class Is {
|
|
|
195
195
|
* @param value The value to test.
|
|
196
196
|
* @returns True if the value is a function.
|
|
197
197
|
*/
|
|
198
|
-
static function(
|
|
198
|
+
static function<FN extends (args?: unknown[]) => unknown = (args?: unknown[]) => unknown>(value: unknown): value is FN;
|
|
199
199
|
/**
|
|
200
200
|
* Is the value a string formatted as an email address.
|
|
201
201
|
* @param value The value to test.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @twin.org/core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.16](https://github.com/twinfoundation/framework/compare/core-v0.0.2-next.15...core-v0.0.2-next.16) (2025-09-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* improve Is.function definition to retain types ([f20b6b0](https://github.com/twinfoundation/framework/commit/f20b6b0dd16e74b75dc359be72b05989305c6410))
|
|
9
|
+
* nodeIdentity optional in IComponent methods ([c78dc17](https://github.com/twinfoundation/framework/commit/c78dc17f4357d3e1ae40e415f468d3eae13e81f4))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @twin.org/nameof bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
19
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
20
|
+
|
|
3
21
|
## [0.0.2-next.15](https://github.com/twinfoundation/framework/compare/core-v0.0.2-next.14...core-v0.0.2-next.15) (2025-09-22)
|
|
4
22
|
|
|
5
23
|
|
|
@@ -730,10 +730,16 @@ True if the value is a TypedArray.
|
|
|
730
730
|
|
|
731
731
|
### function()
|
|
732
732
|
|
|
733
|
-
> `static` **function
|
|
733
|
+
> `static` **function**\<`FN`\>(`value`): `value is FN`
|
|
734
734
|
|
|
735
735
|
Is the property a function.
|
|
736
736
|
|
|
737
|
+
#### Type Parameters
|
|
738
|
+
|
|
739
|
+
##### FN
|
|
740
|
+
|
|
741
|
+
`FN` *extends* (`args?`) => `unknown` = (`args?`) => `unknown`
|
|
742
|
+
|
|
737
743
|
#### Parameters
|
|
738
744
|
|
|
739
745
|
##### value
|
|
@@ -744,7 +750,7 @@ The value to test.
|
|
|
744
750
|
|
|
745
751
|
#### Returns
|
|
746
752
|
|
|
747
|
-
`value is
|
|
753
|
+
`value is FN`
|
|
748
754
|
|
|
749
755
|
True if the value is a function.
|
|
750
756
|
|
|
@@ -14,17 +14,17 @@ The name of the component.
|
|
|
14
14
|
|
|
15
15
|
### bootstrap()?
|
|
16
16
|
|
|
17
|
-
> `optional` **bootstrap**(`nodeLoggingComponentType
|
|
17
|
+
> `optional` **bootstrap**(`nodeLoggingComponentType?`): `Promise`\<`boolean`\>
|
|
18
18
|
|
|
19
19
|
Bootstrap the component by creating and initializing any resources it needs.
|
|
20
20
|
|
|
21
21
|
#### Parameters
|
|
22
22
|
|
|
23
|
-
##### nodeLoggingComponentType
|
|
23
|
+
##### nodeLoggingComponentType?
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
`string`
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The node logging component type.
|
|
28
28
|
|
|
29
29
|
#### Returns
|
|
30
30
|
|
|
@@ -36,23 +36,23 @@ True if the bootstrapping process was successful.
|
|
|
36
36
|
|
|
37
37
|
### start()?
|
|
38
38
|
|
|
39
|
-
> `optional` **start**(`nodeIdentity
|
|
39
|
+
> `optional` **start**(`nodeIdentity?`, `nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
40
40
|
|
|
41
41
|
The component needs to be started when the node is initialized.
|
|
42
42
|
|
|
43
43
|
#### Parameters
|
|
44
44
|
|
|
45
|
-
##### nodeIdentity
|
|
45
|
+
##### nodeIdentity?
|
|
46
46
|
|
|
47
47
|
`string`
|
|
48
48
|
|
|
49
49
|
The identity of the node starting the component.
|
|
50
50
|
|
|
51
|
-
##### nodeLoggingComponentType
|
|
51
|
+
##### nodeLoggingComponentType?
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
`string`
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
The node logging component type.
|
|
56
56
|
|
|
57
57
|
#### Returns
|
|
58
58
|
|
|
@@ -64,23 +64,23 @@ Nothing.
|
|
|
64
64
|
|
|
65
65
|
### stop()?
|
|
66
66
|
|
|
67
|
-
> `optional` **stop**(`nodeIdentity
|
|
67
|
+
> `optional` **stop**(`nodeIdentity?`, `nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
68
68
|
|
|
69
69
|
The component needs to be stopped when the node is closed.
|
|
70
70
|
|
|
71
71
|
#### Parameters
|
|
72
72
|
|
|
73
|
-
##### nodeIdentity
|
|
73
|
+
##### nodeIdentity?
|
|
74
74
|
|
|
75
75
|
`string`
|
|
76
76
|
|
|
77
77
|
The identity of the node stopping the component.
|
|
78
78
|
|
|
79
|
-
##### nodeLoggingComponentType
|
|
79
|
+
##### nodeLoggingComponentType?
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
`string`
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
The node logging component type.
|
|
84
84
|
|
|
85
85
|
#### Returns
|
|
86
86
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/core",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.16",
|
|
4
4
|
"description": "Helper methods/classes for data type checking/validation/guarding/error handling",
|
|
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/nameof": "0.0.2-next.
|
|
17
|
+
"@twin.org/nameof": "0.0.2-next.16",
|
|
18
18
|
"intl-messageformat": "10.7.16",
|
|
19
19
|
"rfc6902": "5.1.2"
|
|
20
20
|
},
|