@twin.org/modules 0.0.1-next.51 → 0.0.1-next.52
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/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/modules - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.52](https://github.com/twinfoundation/framework/compare/modules-v0.0.1-next.51...modules-v0.0.1-next.52) (2025-04-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/core bumped from 0.0.1-next.51 to 0.0.1-next.52
|
|
16
|
+
|
|
3
17
|
## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/modules-v0.0.1-next.50...modules-v0.0.1-next.51) (2025-03-27)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -4,13 +4,13 @@ Helper functions for modules.
|
|
|
4
4
|
|
|
5
5
|
## Constructors
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Constructor
|
|
8
8
|
|
|
9
|
-
> **new ModuleHelper**():
|
|
9
|
+
> **new ModuleHelper**(): `ModuleHelper`
|
|
10
10
|
|
|
11
11
|
#### Returns
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`ModuleHelper`
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -30,7 +30,9 @@ Get the module entry.
|
|
|
30
30
|
|
|
31
31
|
#### Type Parameters
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
##### T
|
|
34
|
+
|
|
35
|
+
`T`
|
|
34
36
|
|
|
35
37
|
#### Parameters
|
|
36
38
|
|
|
@@ -66,7 +68,9 @@ Get the method from a module.
|
|
|
66
68
|
|
|
67
69
|
#### Type Parameters
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
##### T
|
|
72
|
+
|
|
73
|
+
`T`
|
|
70
74
|
|
|
71
75
|
#### Parameters
|
|
72
76
|
|
|
@@ -96,13 +100,15 @@ GeneralError if executing the module entry failed.
|
|
|
96
100
|
|
|
97
101
|
### execModuleMethod()
|
|
98
102
|
|
|
99
|
-
> `static` **execModuleMethod**\<`T`\>(`module`, `method`, `args
|
|
103
|
+
> `static` **execModuleMethod**\<`T`\>(`module`, `method`, `args?`): `Promise`\<`T`\>
|
|
100
104
|
|
|
101
105
|
Execute the method in the module.
|
|
102
106
|
|
|
103
107
|
#### Type Parameters
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
##### T
|
|
110
|
+
|
|
111
|
+
`T`
|
|
106
112
|
|
|
107
113
|
#### Parameters
|
|
108
114
|
|
|
@@ -138,13 +144,15 @@ GeneralError if executing the module entry failed.
|
|
|
138
144
|
|
|
139
145
|
### execModuleMethodThread()
|
|
140
146
|
|
|
141
|
-
> `static` **execModuleMethodThread**\<`T`\>(`module`, `method`, `args
|
|
147
|
+
> `static` **execModuleMethodThread**\<`T`\>(`module`, `method`, `args?`): `Promise`\<`T`\>
|
|
142
148
|
|
|
143
149
|
Execute the method in the module in a thread.
|
|
144
150
|
|
|
145
151
|
#### Type Parameters
|
|
146
152
|
|
|
147
|
-
|
|
153
|
+
##### T
|
|
154
|
+
|
|
155
|
+
`T`
|
|
148
156
|
|
|
149
157
|
#### Parameters
|
|
150
158
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/modules",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.52",
|
|
4
4
|
"description": "Helper classes for loading and executing from modules",
|
|
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/core": "0.0.1-next.
|
|
17
|
+
"@twin.org/core": "0.0.1-next.52",
|
|
18
18
|
"@twin.org/nameof": "next"
|
|
19
19
|
},
|
|
20
20
|
"main": "./dist/cjs/index.cjs",
|