@twin.org/nameof 0.0.1-next.9 → 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/docs/changelog.md +268 -1
- package/docs/reference/functions/nameof.md +10 -4
- package/package.json +4 -4
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,272 @@
|
|
|
1
1
|
# @twin.org/nameof - Changelog
|
|
2
2
|
|
|
3
|
-
## v0.0.
|
|
3
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.2...nameof-v0.0.2-next.3) (2025-08-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
9
|
+
* update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Dependencies
|
|
18
|
+
|
|
19
|
+
* The following workspace dependencies were updated
|
|
20
|
+
* devDependencies
|
|
21
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
22
|
+
|
|
23
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.1...nameof-v0.0.2-next.2) (2025-08-06)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
29
|
+
* update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Dependencies
|
|
38
|
+
|
|
39
|
+
* The following workspace dependencies were updated
|
|
40
|
+
* devDependencies
|
|
41
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
42
|
+
|
|
43
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.0...nameof-v0.0.2-next.1) (2025-08-06)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
49
|
+
* update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Dependencies
|
|
58
|
+
|
|
59
|
+
* The following workspace dependencies were updated
|
|
60
|
+
* devDependencies
|
|
61
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
62
|
+
|
|
63
|
+
## 0.0.1 (2025-07-03)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
* release to production ([829d53d](https://github.com/twinfoundation/framework/commit/829d53d3953b1e1b40b0243c04cfdfd3842aac7b))
|
|
69
|
+
* release to production ([5cf3a76](https://github.com/twinfoundation/framework/commit/5cf3a76a09eff2e6414d0cba846c7c37400a11d6))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Dependencies
|
|
73
|
+
|
|
74
|
+
* The following workspace dependencies were updated
|
|
75
|
+
* devDependencies
|
|
76
|
+
* @twin.org/nameof-transformer bumped from ^0.0.0 to ^0.0.1
|
|
77
|
+
|
|
78
|
+
## [0.0.1-next.70](https://github.com/twinfoundation/framework/compare/nameof-v0.0.1-next.69...nameof-v0.0.1-next.70) (2025-07-02)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Dependencies
|
|
92
|
+
|
|
93
|
+
* The following workspace dependencies were updated
|
|
94
|
+
* devDependencies
|
|
95
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
|
|
96
|
+
|
|
97
|
+
## [0.0.1-next.69](https://github.com/twinfoundation/framework/compare/nameof-v0.0.1-next.68...nameof-v0.0.1-next.69) (2025-07-02)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Features
|
|
101
|
+
|
|
102
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Dependencies
|
|
111
|
+
|
|
112
|
+
* The following workspace dependencies were updated
|
|
113
|
+
* devDependencies
|
|
114
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
|
|
115
|
+
|
|
116
|
+
## [0.0.1-next.68](https://github.com/twinfoundation/framework/compare/nameof-v0.0.1-next.67...nameof-v0.0.1-next.68) (2025-07-02)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Features
|
|
120
|
+
|
|
121
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Dependencies
|
|
125
|
+
|
|
126
|
+
* The following workspace dependencies were updated
|
|
127
|
+
* devDependencies
|
|
128
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
|
|
129
|
+
|
|
130
|
+
## [0.0.1-next.28](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.27...nameof-v0.0.1-next.28) (2025-06-18)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Miscellaneous Chores
|
|
134
|
+
|
|
135
|
+
* **nameof:** Synchronize repo versions
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Dependencies
|
|
139
|
+
|
|
140
|
+
* The following workspace dependencies were updated
|
|
141
|
+
* devDependencies
|
|
142
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.27 to 0.0.1-next.28
|
|
143
|
+
|
|
144
|
+
## [0.0.1-next.27](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.26...nameof-v0.0.1-next.27) (2025-06-17)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Miscellaneous Chores
|
|
148
|
+
|
|
149
|
+
* **nameof:** Synchronize repo versions
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Dependencies
|
|
153
|
+
|
|
154
|
+
* The following workspace dependencies were updated
|
|
155
|
+
* devDependencies
|
|
156
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.26 to 0.0.1-next.27
|
|
157
|
+
|
|
158
|
+
## [0.0.1-next.26](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.25...nameof-v0.0.1-next.26) (2025-06-11)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Miscellaneous Chores
|
|
162
|
+
|
|
163
|
+
* **nameof:** Synchronize repo versions
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Dependencies
|
|
167
|
+
|
|
168
|
+
* The following workspace dependencies were updated
|
|
169
|
+
* devDependencies
|
|
170
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.25 to 0.0.1-next.26
|
|
171
|
+
|
|
172
|
+
## [0.0.1-next.25](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.24...nameof-v0.0.1-next.25) (2025-06-10)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Features
|
|
176
|
+
|
|
177
|
+
* add ts-to-schema overrides ([3c54504](https://github.com/twinfoundation/tools/commit/3c5450468eb998204a75576b7791a7ca4027da62))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Dependencies
|
|
181
|
+
|
|
182
|
+
* The following workspace dependencies were updated
|
|
183
|
+
* devDependencies
|
|
184
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.24 to 0.0.1-next.25
|
|
185
|
+
|
|
186
|
+
## [0.0.1-next.24](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.23...nameof-v0.0.1-next.24) (2025-06-05)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Miscellaneous Chores
|
|
190
|
+
|
|
191
|
+
* **nameof:** Synchronize repo versions
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### Dependencies
|
|
195
|
+
|
|
196
|
+
* The following workspace dependencies were updated
|
|
197
|
+
* devDependencies
|
|
198
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.23 to 0.0.1-next.24
|
|
199
|
+
|
|
200
|
+
## [0.0.1-next.23](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.22...nameof-v0.0.1-next.23) (2025-06-03)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Miscellaneous Chores
|
|
204
|
+
|
|
205
|
+
* **nameof:** Synchronize repo versions
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Dependencies
|
|
209
|
+
|
|
210
|
+
* The following workspace dependencies were updated
|
|
211
|
+
* devDependencies
|
|
212
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.22 to 0.0.1-next.23
|
|
213
|
+
|
|
214
|
+
## [0.0.1-next.22](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.21...nameof-v0.0.1-next.22) (2025-06-03)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Miscellaneous Chores
|
|
218
|
+
|
|
219
|
+
* **nameof:** Synchronize repo versions
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Dependencies
|
|
223
|
+
|
|
224
|
+
* The following workspace dependencies were updated
|
|
225
|
+
* devDependencies
|
|
226
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.21 to 0.0.1-next.22
|
|
227
|
+
|
|
228
|
+
## [0.0.1-next.21](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.20...nameof-v0.0.1-next.21) (2025-04-17)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Features
|
|
232
|
+
|
|
233
|
+
* use shared store mechanism ([#31](https://github.com/twinfoundation/tools/issues/31)) ([d9fe68b](https://github.com/twinfoundation/tools/commit/d9fe68b903d1268c7cb3c64772df5cb78fd63667))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### Dependencies
|
|
237
|
+
|
|
238
|
+
* The following workspace dependencies were updated
|
|
239
|
+
* devDependencies
|
|
240
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.20 to 0.0.1-next.21
|
|
241
|
+
|
|
242
|
+
## [0.0.1-next.20](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.19...nameof-v0.0.1-next.20) (2025-03-28)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### Miscellaneous Chores
|
|
246
|
+
|
|
247
|
+
* **nameof:** Synchronize repo versions
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
### Dependencies
|
|
251
|
+
|
|
252
|
+
* The following workspace dependencies were updated
|
|
253
|
+
* devDependencies
|
|
254
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.19 to 0.0.1-next.20
|
|
255
|
+
|
|
256
|
+
## [0.0.1-next.19](https://github.com/twinfoundation/tools/compare/nameof-v0.0.1-next.18...nameof-v0.0.1-next.19) (2025-03-26)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Miscellaneous Chores
|
|
260
|
+
|
|
261
|
+
* **nameof:** Synchronize repo versions
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Dependencies
|
|
265
|
+
|
|
266
|
+
* The following workspace dependencies were updated
|
|
267
|
+
* devDependencies
|
|
268
|
+
* @twin.org/nameof-transformer bumped from 0.0.1-next.18 to 0.0.1-next.19
|
|
269
|
+
|
|
270
|
+
## v0.0.1-next.18
|
|
4
271
|
|
|
5
272
|
- Initial Release
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
# Function: nameof()
|
|
2
2
|
|
|
3
|
-
> **nameof**\<`T`\>(`property
|
|
3
|
+
> **nameof**\<`T`\>(`property?`, `replaceParent?`): `string`
|
|
4
4
|
|
|
5
5
|
Placeholder method which substitutes the type name as a string at runtime.
|
|
6
6
|
|
|
7
7
|
## Type Parameters
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### T
|
|
10
|
+
|
|
11
|
+
`T`
|
|
10
12
|
|
|
11
13
|
## Parameters
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
### property?
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
14
18
|
|
|
15
19
|
The property to get the name of.
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
### replaceParent?
|
|
22
|
+
|
|
23
|
+
`string`
|
|
18
24
|
|
|
19
25
|
Optional object name to replace the top level object of a property path.
|
|
20
26
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nameof",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.3",
|
|
4
4
|
"description": "Provides the definitions for the methods which are processed by the nameof-transformer",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/twinfoundation/
|
|
7
|
+
"url": "git+https://github.com/twinfoundation/framework.git",
|
|
8
8
|
"directory": "packages/nameof"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"types": "./dist/types/index.d.ts",
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
+
"types": "./dist/types/index.d.ts",
|
|
21
22
|
"require": "./dist/cjs/index.cjs",
|
|
22
|
-
"import": "./dist/esm/index.mjs"
|
|
23
|
-
"types": "./dist/types/index.d.ts"
|
|
23
|
+
"import": "./dist/esm/index.mjs"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"files": [
|