@twin.org/nameof 0.0.1-next.2 → 0.0.1-next.21

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,47 @@
1
1
  # @twin.org/nameof - Changelog
2
2
 
3
- ## v0.0.1-next.2
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * use shared store mechanism ([#31](https://github.com/twinfoundation/tools/issues/31)) ([d9fe68b](https://github.com/twinfoundation/tools/commit/d9fe68b903d1268c7cb3c64772df5cb78fd63667))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * devDependencies
15
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.20 to 0.0.1-next.21
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **nameof:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * devDependencies
29
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.19 to 0.0.1-next.20
30
+
31
+ ## [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)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **nameof:** Synchronize repo versions
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * devDependencies
43
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.18 to 0.0.1-next.19
44
+
45
+ ## v0.0.1-next.18
4
46
 
5
47
  - Initial Release
@@ -1,20 +1,26 @@
1
1
  # Function: nameof()
2
2
 
3
- > **nameof**\<`T`\>(`property`?, `replaceParent`?): `string`
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
- **T**
9
+ ### T
10
+
11
+ `T`
10
12
 
11
13
  ## Parameters
12
14
 
13
- **property?**: `unknown`
15
+ ### property?
16
+
17
+ `unknown`
14
18
 
15
19
  The property to get the name of.
16
20
 
17
- **replaceParent?**: `string`
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/nameof",
3
- "version": "0.0.1-next.2",
3
+ "version": "0.0.1-next.21",
4
4
  "description": "Provides the definitions for the methods which are processed by the nameof-transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,40 +13,14 @@
13
13
  "engines": {
14
14
  "node": ">=20.0.0"
15
15
  },
16
- "scripts": {
17
- "clean": "rimraf dist coverage",
18
- "build": "tsc",
19
- "test": "vitest --run --config ./vitest.config.ts --no-cache",
20
- "coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
21
- "bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
22
- "bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
23
- "bundle": "npm run bundle:esm && npm run bundle:cjs",
24
- "docs:clean": "rimraf docs/reference",
25
- "docs:generate": "typedoc",
26
- "docs": "npm run docs:clean && npm run docs:generate",
27
- "dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs"
28
- },
29
- "devDependencies": {
30
- "@twin.org/nameof-transformer": "0.0.1-next.2",
31
- "@vitest/coverage-v8": "2.1.1",
32
- "copyfiles": "2.4.1",
33
- "rimraf": "6.0.1",
34
- "rollup": "4.21.3",
35
- "rollup-plugin-typescript2": "0.36.0",
36
- "ts-patch": "3.2.1",
37
- "typedoc": "0.26.7",
38
- "typedoc-plugin-markdown": "4.2.7",
39
- "typescript": "5.6.2",
40
- "vitest": "2.1.1"
41
- },
42
16
  "main": "./dist/cjs/index.cjs",
43
17
  "module": "./dist/esm/index.mjs",
44
18
  "types": "./dist/types/index.d.ts",
45
19
  "exports": {
46
20
  ".": {
21
+ "types": "./dist/types/index.d.ts",
47
22
  "require": "./dist/cjs/index.cjs",
48
- "import": "./dist/esm/index.mjs",
49
- "types": "./dist/types/index.d.ts"
23
+ "import": "./dist/esm/index.mjs"
50
24
  }
51
25
  },
52
26
  "files": [