@twin.org/nameof-vitest-plugin 0.0.4-next.8 → 0.9.0-next.1

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.
@@ -10,6 +10,9 @@ import { manual } from "@twin.org/nameof-transformer";
10
10
  export function nameOfPluginTransform(code, id) {
11
11
  return manual(code);
12
12
  }
13
+ /**
14
+ * Vitest plugin that applies the nameof transformer to all source files before testing.
15
+ */
13
16
  // eslint-disable-next-line @typescript-eslint/naming-convention
14
17
  export const NameOfPlugin = {
15
18
  name: "name-of",
@@ -1 +1 @@
1
- {"version":3,"file":"nameOfPlugin.js","sourceRoot":"","sources":["../../src/nameOfPlugin.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY,EAAE,EAAU;IAC7D,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,qBAAqB;CAChC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { manual } from \"@twin.org/nameof-transformer\";\nimport type { Plugin } from \"vitest/config\";\n\n/**\n * Transforms the code using the nameOf plugin.\n * @param code The code to transform.\n * @param id The id of the file being transformed.\n * @returns The transformed code.\n */\nexport function nameOfPluginTransform(code: string, id: string): string {\n\treturn manual(code);\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const NameOfPlugin: Plugin = {\n\tname: \"name-of\",\n\tenforce: \"pre\",\n\ttransform: nameOfPluginTransform\n};\n"]}
1
+ {"version":3,"file":"nameOfPlugin.js","sourceRoot":"","sources":["../../src/nameOfPlugin.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY,EAAE,EAAU;IAC7D,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,qBAAqB;CAChC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { manual } from \"@twin.org/nameof-transformer\";\nimport type { Plugin } from \"vitest/config\";\n\n/**\n * Transforms the code using the nameOf plugin.\n * @param code The code to transform.\n * @param id The id of the file being transformed.\n * @returns The transformed code.\n */\nexport function nameOfPluginTransform(code: string, id: string): string {\n\treturn manual(code);\n}\n\n/**\n * Vitest plugin that applies the nameof transformer to all source files before testing.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const NameOfPlugin: Plugin = {\n\tname: \"name-of\",\n\tenforce: \"pre\",\n\ttransform: nameOfPluginTransform\n};\n"]}
@@ -6,4 +6,7 @@ import type { Plugin } from "vitest/config";
6
6
  * @returns The transformed code.
7
7
  */
8
8
  export declare function nameOfPluginTransform(code: string, id: string): string;
9
+ /**
10
+ * Vitest plugin that applies the nameof transformer to all source files before testing.
11
+ */
9
12
  export declare const NameOfPlugin: Plugin;
package/docs/changelog.md CHANGED
@@ -1,5 +1,143 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.0-next.1](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.9.0-next.0...nameof-vitest-plugin-v0.9.0-next.1) (2026-06-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * add context id features ([#206](https://github.com/iotaledger/twin-framework/issues/206)) ([ef0d4ee](https://github.com/iotaledger/twin-framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
9
+ * eslint migration to flat config ([74427d7](https://github.com/iotaledger/twin-framework/commit/74427d78d342167f7850e49ab87269326355befe))
10
+ * locales validation ([#197](https://github.com/iotaledger/twin-framework/issues/197)) ([55fdadb](https://github.com/iotaledger/twin-framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
11
+ * relocate core packages from tools ([bcab8f3](https://github.com/iotaledger/twin-framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
12
+ * typescript 6 update ([1d10f31](https://github.com/iotaledger/twin-framework/commit/1d10f31e6516ec622773f45e88af82fe749b384a))
13
+ * update dependencies ([4da77ab](https://github.com/iotaledger/twin-framework/commit/4da77ab30f499e52825ac5a76f51436ceb59c26e))
14
+ * update dependencies ([f3bd015](https://github.com/iotaledger/twin-framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
15
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/iotaledger/twin-framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * ensure __decorate is defined for decorators ([103a563](https://github.com/iotaledger/twin-framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
21
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/iotaledger/twin-framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
22
+
23
+
24
+ ### Dependencies
25
+
26
+ * The following workspace dependencies were updated
27
+ * dependencies
28
+ * @twin.org/nameof-transformer bumped from 0.9.0-next.0 to 0.9.0-next.1
29
+
30
+ ## [0.0.4-next.15](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.14...nameof-vitest-plugin-v0.0.4-next.15) (2026-06-19)
31
+
32
+
33
+ ### Miscellaneous Chores
34
+
35
+ * **nameof-vitest-plugin:** Synchronize repo versions
36
+
37
+
38
+ ### Dependencies
39
+
40
+ * The following workspace dependencies were updated
41
+ * dependencies
42
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.14 to 0.0.4-next.15
43
+
44
+ ## [0.0.4-next.14](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.13...nameof-vitest-plugin-v0.0.4-next.14) (2026-06-18)
45
+
46
+
47
+ ### Miscellaneous Chores
48
+
49
+ * **nameof-vitest-plugin:** Synchronize repo versions
50
+
51
+
52
+ ### Dependencies
53
+
54
+ * The following workspace dependencies were updated
55
+ * dependencies
56
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.13 to 0.0.4-next.14
57
+
58
+ ## [0.0.4-next.13](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.12...nameof-vitest-plugin-v0.0.4-next.13) (2026-06-18)
59
+
60
+
61
+ ### Miscellaneous Chores
62
+
63
+ * **nameof-vitest-plugin:** Synchronize repo versions
64
+
65
+
66
+ ### Dependencies
67
+
68
+ * The following workspace dependencies were updated
69
+ * dependencies
70
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.12 to 0.0.4-next.13
71
+
72
+ ## [0.0.4-next.12](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.11...nameof-vitest-plugin-v0.0.4-next.12) (2026-06-18)
73
+
74
+
75
+ ### Miscellaneous Chores
76
+
77
+ * **nameof-vitest-plugin:** Synchronize repo versions
78
+
79
+
80
+ ### Dependencies
81
+
82
+ * The following workspace dependencies were updated
83
+ * dependencies
84
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.11 to 0.0.4-next.12
85
+
86
+ ## [0.0.4-next.11](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.10...nameof-vitest-plugin-v0.0.4-next.11) (2026-06-15)
87
+
88
+
89
+ ### Miscellaneous Chores
90
+
91
+ * **nameof-vitest-plugin:** Synchronize repo versions
92
+
93
+
94
+ ### Dependencies
95
+
96
+ * The following workspace dependencies were updated
97
+ * dependencies
98
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.10 to 0.0.4-next.11
99
+
100
+ ## [0.0.4-next.10](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.9...nameof-vitest-plugin-v0.0.4-next.10) (2026-06-15)
101
+
102
+
103
+ ### Features
104
+
105
+ * add context id features ([#206](https://github.com/iotaledger/twin-framework/issues/206)) ([ef0d4ee](https://github.com/iotaledger/twin-framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
106
+ * eslint migration to flat config ([74427d7](https://github.com/iotaledger/twin-framework/commit/74427d78d342167f7850e49ab87269326355befe))
107
+ * locales validation ([#197](https://github.com/iotaledger/twin-framework/issues/197)) ([55fdadb](https://github.com/iotaledger/twin-framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
108
+ * relocate core packages from tools ([bcab8f3](https://github.com/iotaledger/twin-framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
109
+ * typescript 6 update ([1d10f31](https://github.com/iotaledger/twin-framework/commit/1d10f31e6516ec622773f45e88af82fe749b384a))
110
+ * update dependencies ([4da77ab](https://github.com/iotaledger/twin-framework/commit/4da77ab30f499e52825ac5a76f51436ceb59c26e))
111
+ * update dependencies ([f3bd015](https://github.com/iotaledger/twin-framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
112
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/iotaledger/twin-framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
113
+
114
+
115
+ ### Bug Fixes
116
+
117
+ * ensure __decorate is defined for decorators ([103a563](https://github.com/iotaledger/twin-framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
118
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/iotaledger/twin-framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
119
+
120
+
121
+ ### Dependencies
122
+
123
+ * The following workspace dependencies were updated
124
+ * dependencies
125
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.9 to 0.0.4-next.10
126
+
127
+ ## [0.0.4-next.9](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.8...nameof-vitest-plugin-v0.0.4-next.9) (2026-06-15)
128
+
129
+
130
+ ### Miscellaneous Chores
131
+
132
+ * **nameof-vitest-plugin:** Synchronize repo versions
133
+
134
+
135
+ ### Dependencies
136
+
137
+ * The following workspace dependencies were updated
138
+ * dependencies
139
+ * @twin.org/nameof-transformer bumped from 0.0.4-next.8 to 0.0.4-next.9
140
+
3
141
  ## [0.0.4-next.8](https://github.com/iotaledger/twin-framework/compare/nameof-vitest-plugin-v0.0.4-next.7...nameof-vitest-plugin-v0.0.4-next.8) (2026-06-10)
4
142
 
5
143
 
@@ -1,3 +1,5 @@
1
1
  # Variable: NameOfPlugin
2
2
 
3
3
  > `const` **NameOfPlugin**: `Plugin`
4
+
5
+ Vitest plugin that applies the nameof transformer to all source files before testing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/nameof-vitest-plugin",
3
- "version": "0.0.4-next.8",
3
+ "version": "0.9.0-next.1",
4
4
  "description": "Vitest plugin which perform the nameof transformation",
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-transformer": "0.0.4-next.8"
17
+ "@twin.org/nameof-transformer": "0.9.0-next.1"
18
18
  },
19
19
  "main": "./dist/es/index.js",
20
20
  "exports": {