@cldmv/slothlet 3.9.2 → 3.11.0

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.
Files changed (181) hide show
  1. package/README.md +21 -21
  2. package/REFERENCE.md +19 -19
  3. package/dist/lib/builders/api_builder.mjs +1 -1
  4. package/dist/lib/builders/builder.mjs +1 -1
  5. package/dist/lib/builders/modes-processor.mjs +1 -1
  6. package/dist/lib/handlers/api-cache-manager.mjs +1 -1
  7. package/dist/lib/handlers/api-manager.mjs +1 -1
  8. package/dist/lib/handlers/hook-manager.mjs +1 -1
  9. package/dist/lib/handlers/permission-manager.mjs +1 -1
  10. package/dist/lib/handlers/unified-wrapper.mjs +1 -1
  11. package/dist/lib/helpers/config.mjs +1 -1
  12. package/dist/lib/helpers/generate-manifest.mjs +1 -1
  13. package/dist/lib/helpers/module-discovery.mjs +1 -1
  14. package/dist/lib/helpers/module-manifest-validator.mjs +1 -1
  15. package/dist/lib/helpers/platform.mjs +1 -1
  16. package/dist/lib/i18n/languages/en-us.json +92 -64
  17. package/dist/lib/i18n/translations.mjs +1 -1
  18. package/dist/lib/modes/eager.mjs +1 -1
  19. package/dist/lib/modes/lazy.mjs +1 -1
  20. package/dist/lib/processors/loader.mjs +1 -1
  21. package/dist/slothlet.mjs +1 -1
  22. package/package.json +64 -34
  23. package/types/stub/devcheck.d.mts +3 -0
  24. package/types/stub/index.d.mts +4 -0
  25. package/types/stub/lib/builders/api-assignment.d.mts +3 -0
  26. package/types/stub/lib/builders/api_builder.d.mts +3 -0
  27. package/types/stub/lib/builders/builder.d.mts +3 -0
  28. package/types/stub/lib/builders/modes-processor.d.mts +3 -0
  29. package/types/stub/lib/errors.d.mts +3 -0
  30. package/types/stub/lib/factories/component-base.d.mts +3 -0
  31. package/types/stub/lib/factories/context.d.mts +3 -0
  32. package/types/stub/lib/handlers/api-cache-manager.d.mts +3 -0
  33. package/types/stub/lib/handlers/api-manager.d.mts +3 -0
  34. package/types/stub/lib/handlers/context-async.d.mts +3 -0
  35. package/types/stub/lib/handlers/context-live.d.mts +3 -0
  36. package/types/stub/lib/handlers/hook-manager.d.mts +3 -0
  37. package/types/stub/lib/handlers/lifecycle-token.d.mts +3 -0
  38. package/types/stub/lib/handlers/lifecycle.d.mts +3 -0
  39. package/types/stub/lib/handlers/materialize-manager.d.mts +3 -0
  40. package/types/stub/lib/handlers/metadata.d.mts +3 -0
  41. package/types/stub/lib/handlers/module-manager.d.mts +3 -0
  42. package/types/stub/lib/handlers/ownership.d.mts +3 -0
  43. package/types/stub/lib/handlers/permission-manager.d.mts +3 -0
  44. package/types/stub/lib/handlers/unified-wrapper.d.mts +3 -0
  45. package/types/stub/lib/handlers/version-manager.d.mts +3 -0
  46. package/types/stub/lib/helpers/class-instance-wrapper.d.mts +3 -0
  47. package/types/stub/lib/helpers/config.d.mts +3 -0
  48. package/types/stub/lib/helpers/eventemitter-context.d.mts +3 -0
  49. package/types/stub/lib/helpers/generate-manifest.d.mts +3 -0
  50. package/types/stub/lib/helpers/hint-detector.d.mts +3 -0
  51. package/types/stub/lib/helpers/manifest-resolver.d.mts +3 -0
  52. package/types/stub/lib/helpers/modes-utils.d.mts +3 -0
  53. package/types/stub/lib/helpers/module-discovery.d.mts +3 -0
  54. package/types/stub/lib/helpers/module-manifest-validator.d.mts +3 -0
  55. package/types/stub/lib/helpers/module-sort.d.mts +3 -0
  56. package/types/stub/lib/helpers/pattern-matcher.d.mts +3 -0
  57. package/types/stub/lib/helpers/platform.d.mts +3 -0
  58. package/types/stub/lib/helpers/resolve-from-caller.d.mts +3 -0
  59. package/types/stub/lib/helpers/sanitize.d.mts +3 -0
  60. package/types/stub/lib/helpers/utilities.d.mts +3 -0
  61. package/types/stub/lib/i18n/translations.d.mts +3 -0
  62. package/types/stub/lib/modes/eager.d.mts +3 -0
  63. package/types/stub/lib/modes/lazy.d.mts +3 -0
  64. package/types/stub/lib/processors/flatten.d.mts +3 -0
  65. package/types/stub/lib/processors/loader.d.mts +3 -0
  66. package/types/stub/lib/processors/type-generator.d.mts +3 -0
  67. package/types/stub/lib/processors/typescript.d.mts +3 -0
  68. package/types/stub/lib/runtime/runtime-asynclocalstorage.d.mts +3 -0
  69. package/types/stub/lib/runtime/runtime-livebindings.d.mts +3 -0
  70. package/types/stub/lib/runtime/runtime.d.mts +3 -0
  71. package/types/stub/lib/typegen/typegen.d.mts +3 -0
  72. package/types/stub/slothlet.d.mts +4 -0
  73. package/dist/lib/i18n/languages/de-de.json +0 -444
  74. package/dist/lib/i18n/languages/en-gb.json +0 -444
  75. package/dist/lib/i18n/languages/es-es.json +0 -444
  76. package/dist/lib/i18n/languages/es-mx.json +0 -444
  77. package/dist/lib/i18n/languages/fr-fr.json +0 -444
  78. package/dist/lib/i18n/languages/hi-in.json +0 -444
  79. package/dist/lib/i18n/languages/ja-jp.json +0 -444
  80. package/dist/lib/i18n/languages/ko-kr.json +0 -444
  81. package/dist/lib/i18n/languages/pt-br.json +0 -444
  82. package/dist/lib/i18n/languages/ru-ru.json +0 -444
  83. package/dist/lib/i18n/languages/zh-cn.json +0 -444
  84. package/types/dist/lib/builders/api-assignment.d.mts +0 -8
  85. package/types/dist/lib/builders/api-assignment.d.mts.map +0 -1
  86. package/types/dist/lib/builders/api_builder.d.mts +0 -12
  87. package/types/dist/lib/builders/api_builder.d.mts.map +0 -1
  88. package/types/dist/lib/builders/builder.d.mts +0 -6
  89. package/types/dist/lib/builders/builder.d.mts.map +0 -1
  90. package/types/dist/lib/builders/modes-processor.d.mts +0 -8
  91. package/types/dist/lib/builders/modes-processor.d.mts.map +0 -1
  92. package/types/dist/lib/errors.d.mts +0 -28
  93. package/types/dist/lib/errors.d.mts.map +0 -1
  94. package/types/dist/lib/factories/component-base.d.mts +0 -12
  95. package/types/dist/lib/factories/component-base.d.mts.map +0 -1
  96. package/types/dist/lib/factories/context.d.mts +0 -8
  97. package/types/dist/lib/factories/context.d.mts.map +0 -1
  98. package/types/dist/lib/handlers/api-cache-manager.d.mts +0 -25
  99. package/types/dist/lib/handlers/api-cache-manager.d.mts.map +0 -1
  100. package/types/dist/lib/handlers/api-manager.d.mts +0 -47
  101. package/types/dist/lib/handlers/api-manager.d.mts.map +0 -1
  102. package/types/dist/lib/handlers/context-async.d.mts +0 -28
  103. package/types/dist/lib/handlers/context-async.d.mts.map +0 -1
  104. package/types/dist/lib/handlers/context-live.d.mts +0 -28
  105. package/types/dist/lib/handlers/context-live.d.mts.map +0 -1
  106. package/types/dist/lib/handlers/hook-manager.d.mts +0 -65
  107. package/types/dist/lib/handlers/hook-manager.d.mts.map +0 -1
  108. package/types/dist/lib/handlers/lifecycle-token.d.mts +0 -4
  109. package/types/dist/lib/handlers/lifecycle-token.d.mts.map +0 -1
  110. package/types/dist/lib/handlers/lifecycle.d.mts +0 -13
  111. package/types/dist/lib/handlers/lifecycle.d.mts.map +0 -1
  112. package/types/dist/lib/handlers/materialize-manager.d.mts +0 -13
  113. package/types/dist/lib/handlers/materialize-manager.d.mts.map +0 -1
  114. package/types/dist/lib/handlers/metadata.d.mts +0 -26
  115. package/types/dist/lib/handlers/metadata.d.mts.map +0 -1
  116. package/types/dist/lib/handlers/module-manager.d.mts +0 -29
  117. package/types/dist/lib/handlers/module-manager.d.mts.map +0 -1
  118. package/types/dist/lib/handlers/ownership.d.mts +0 -57
  119. package/types/dist/lib/handlers/ownership.d.mts.map +0 -1
  120. package/types/dist/lib/handlers/permission-manager.d.mts +0 -54
  121. package/types/dist/lib/handlers/permission-manager.d.mts.map +0 -1
  122. package/types/dist/lib/handlers/unified-wrapper.d.mts +0 -37
  123. package/types/dist/lib/handlers/unified-wrapper.d.mts.map +0 -1
  124. package/types/dist/lib/handlers/version-manager.d.mts +0 -37
  125. package/types/dist/lib/handlers/version-manager.d.mts.map +0 -1
  126. package/types/dist/lib/helpers/class-instance-wrapper.d.mts +0 -4
  127. package/types/dist/lib/helpers/class-instance-wrapper.d.mts.map +0 -1
  128. package/types/dist/lib/helpers/config.d.mts +0 -150
  129. package/types/dist/lib/helpers/config.d.mts.map +0 -1
  130. package/types/dist/lib/helpers/eventemitter-context.d.mts +0 -5
  131. package/types/dist/lib/helpers/eventemitter-context.d.mts.map +0 -1
  132. package/types/dist/lib/helpers/generate-manifest.d.mts +0 -11
  133. package/types/dist/lib/helpers/generate-manifest.d.mts.map +0 -1
  134. package/types/dist/lib/helpers/hint-detector.d.mts +0 -7
  135. package/types/dist/lib/helpers/hint-detector.d.mts.map +0 -1
  136. package/types/dist/lib/helpers/manifest-resolver.d.mts +0 -2
  137. package/types/dist/lib/helpers/manifest-resolver.d.mts.map +0 -1
  138. package/types/dist/lib/helpers/modes-utils.d.mts +0 -8
  139. package/types/dist/lib/helpers/modes-utils.d.mts.map +0 -1
  140. package/types/dist/lib/helpers/module-discovery.d.mts +0 -8
  141. package/types/dist/lib/helpers/module-discovery.d.mts.map +0 -1
  142. package/types/dist/lib/helpers/module-manifest-validator.d.mts +0 -14
  143. package/types/dist/lib/helpers/module-manifest-validator.d.mts.map +0 -1
  144. package/types/dist/lib/helpers/module-sort.d.mts +0 -2
  145. package/types/dist/lib/helpers/module-sort.d.mts.map +0 -1
  146. package/types/dist/lib/helpers/pattern-matcher.d.mts +0 -4
  147. package/types/dist/lib/helpers/pattern-matcher.d.mts.map +0 -1
  148. package/types/dist/lib/helpers/platform.d.mts +0 -12
  149. package/types/dist/lib/helpers/platform.d.mts.map +0 -1
  150. package/types/dist/lib/helpers/resolve-from-caller.d.mts +0 -9
  151. package/types/dist/lib/helpers/resolve-from-caller.d.mts.map +0 -1
  152. package/types/dist/lib/helpers/sanitize.d.mts +0 -10
  153. package/types/dist/lib/helpers/sanitize.d.mts.map +0 -1
  154. package/types/dist/lib/helpers/utilities.d.mts +0 -9
  155. package/types/dist/lib/helpers/utilities.d.mts.map +0 -1
  156. package/types/dist/lib/i18n/translations.d.mts +0 -7
  157. package/types/dist/lib/i18n/translations.d.mts.map +0 -1
  158. package/types/dist/lib/modes/eager.d.mts +0 -14
  159. package/types/dist/lib/modes/eager.d.mts.map +0 -1
  160. package/types/dist/lib/modes/lazy.d.mts +0 -16
  161. package/types/dist/lib/modes/lazy.d.mts.map +0 -1
  162. package/types/dist/lib/processors/flatten.d.mts +0 -63
  163. package/types/dist/lib/processors/flatten.d.mts.map +0 -1
  164. package/types/dist/lib/processors/loader.d.mts +0 -12
  165. package/types/dist/lib/processors/loader.d.mts.map +0 -1
  166. package/types/dist/lib/processors/type-generator.d.mts +0 -5
  167. package/types/dist/lib/processors/type-generator.d.mts.map +0 -1
  168. package/types/dist/lib/processors/typescript.d.mts +0 -18
  169. package/types/dist/lib/processors/typescript.d.mts.map +0 -1
  170. package/types/dist/lib/runtime/runtime-asynclocalstorage.d.mts +0 -4
  171. package/types/dist/lib/runtime/runtime-asynclocalstorage.d.mts.map +0 -1
  172. package/types/dist/lib/runtime/runtime-livebindings.d.mts +0 -3
  173. package/types/dist/lib/runtime/runtime-livebindings.d.mts.map +0 -1
  174. package/types/dist/lib/runtime/runtime.d.mts +0 -4
  175. package/types/dist/lib/runtime/runtime.d.mts.map +0 -1
  176. package/types/dist/lib/typegen/typegen.d.mts +0 -5
  177. package/types/dist/lib/typegen/typegen.d.mts.map +0 -1
  178. package/types/dist/slothlet.d.mts +0 -4
  179. package/types/dist/slothlet.d.mts.map +0 -1
  180. package/types/index.d.mts +0 -18
  181. package/types/index.d.mts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cldmv/slothlet",
3
- "version": "3.9.2",
3
+ "version": "3.11.0",
4
4
  "moduleVersions": {
5
5
  "lazy": "3.0.0",
6
6
  "eager": "3.0.0",
@@ -15,20 +15,30 @@
15
15
  },
16
16
  "exports": {
17
17
  ".": {
18
- "types": "./types/index.d.mts",
18
+ "slothlet-dev": {
19
+ "types": "./types/index.d.mts",
20
+ "import": "./index.mjs",
21
+ "require": "./index.cjs"
22
+ },
23
+ "types": "./types/stub/index.d.mts",
19
24
  "import": "./index.mjs",
20
25
  "require": "./index.cjs"
21
26
  },
27
+ "./package.json": "./package.json",
22
28
  "./typegen": {
23
29
  "slothlet-dev": {
24
30
  "types": "./types/src/lib/typegen/typegen.d.mts",
25
31
  "import": "./src/lib/typegen/typegen.mjs"
26
32
  },
27
- "types": "./types/dist/lib/typegen/typegen.d.mts",
33
+ "types": "./types/stub/lib/typegen/typegen.d.mts",
28
34
  "import": "./dist/lib/typegen/typegen.mjs"
29
35
  },
30
36
  "./devcheck": {
31
- "types": "./types/devcheck.d.mts",
37
+ "slothlet-dev": {
38
+ "types": "./types/devcheck.d.mts",
39
+ "import": "./devcheck.mjs"
40
+ },
41
+ "types": "./types/stub/devcheck.d.mts",
32
42
  "import": "./devcheck.mjs"
33
43
  },
34
44
  "./slothlet": {
@@ -36,7 +46,7 @@
36
46
  "types": "./types/src/slothlet.d.mts",
37
47
  "import": "./src/slothlet.mjs"
38
48
  },
39
- "types": "./types/dist/slothlet.d.mts",
49
+ "types": "./types/stub/slothlet.d.mts",
40
50
  "import": "./dist/slothlet.mjs"
41
51
  },
42
52
  "./runtime": {
@@ -44,7 +54,7 @@
44
54
  "types": "./types/src/lib/runtime/runtime.d.mts",
45
55
  "import": "./src/lib/runtime/runtime.mjs"
46
56
  },
47
- "types": "./types/dist/lib/runtime/runtime.d.mts",
57
+ "types": "./types/stub/lib/runtime/runtime.d.mts",
48
58
  "import": "./dist/lib/runtime/runtime.mjs"
49
59
  },
50
60
  "./runtime/async": {
@@ -52,7 +62,7 @@
52
62
  "types": "./types/src/lib/runtime/runtime-asynclocalstorage.d.mts",
53
63
  "import": "./src/lib/runtime/runtime-asynclocalstorage.mjs"
54
64
  },
55
- "types": "./types/dist/lib/runtime/runtime-asynclocalstorage.d.mts",
65
+ "types": "./types/stub/lib/runtime/runtime-asynclocalstorage.d.mts",
56
66
  "import": "./dist/lib/runtime/runtime-asynclocalstorage.mjs"
57
67
  },
58
68
  "./runtime/live": {
@@ -60,7 +70,7 @@
60
70
  "types": "./types/src/lib/runtime/runtime-livebindings.d.mts",
61
71
  "import": "./src/lib/runtime/runtime-livebindings.mjs"
62
72
  },
63
- "types": "./types/dist/lib/runtime/runtime-livebindings.d.mts",
73
+ "types": "./types/stub/lib/runtime/runtime-livebindings.d.mts",
64
74
  "import": "./dist/lib/runtime/runtime-livebindings.mjs"
65
75
  },
66
76
  "./helpers/*": {
@@ -68,7 +78,7 @@
68
78
  "types": "./types/src/lib/helpers/*.d.mts",
69
79
  "import": "./src/lib/helpers/*.mjs"
70
80
  },
71
- "types": "./types/dist/lib/helpers/*.d.mts",
81
+ "types": "./types/stub/lib/helpers/*.d.mts",
72
82
  "import": "./dist/lib/helpers/*.mjs"
73
83
  },
74
84
  "./modes/*": {
@@ -76,7 +86,7 @@
76
86
  "types": "./types/src/lib/modes/*.d.mts",
77
87
  "import": "./src/lib/modes/*.mjs"
78
88
  },
79
- "types": "./types/dist/lib/modes/*.d.mts",
89
+ "types": "./types/stub/lib/modes/*.d.mts",
80
90
  "import": "./dist/lib/modes/*.mjs"
81
91
  },
82
92
  "./builders/*": {
@@ -84,7 +94,7 @@
84
94
  "types": "./types/src/lib/builders/*.d.mts",
85
95
  "import": "./src/lib/builders/*.mjs"
86
96
  },
87
- "types": "./types/dist/lib/builders/*.d.mts",
97
+ "types": "./types/stub/lib/builders/*.d.mts",
88
98
  "import": "./dist/lib/builders/*.mjs"
89
99
  },
90
100
  "./handlers/*": {
@@ -92,7 +102,7 @@
92
102
  "types": "./types/src/lib/handlers/*.d.mts",
93
103
  "import": "./src/lib/handlers/*.mjs"
94
104
  },
95
- "types": "./types/dist/lib/handlers/*.d.mts",
105
+ "types": "./types/stub/lib/handlers/*.d.mts",
96
106
  "import": "./dist/lib/handlers/*.mjs"
97
107
  },
98
108
  "./processors/*": {
@@ -100,7 +110,7 @@
100
110
  "types": "./types/src/lib/processors/*.d.mts",
101
111
  "import": "./src/lib/processors/*.mjs"
102
112
  },
103
- "types": "./types/dist/lib/processors/*.d.mts",
113
+ "types": "./types/stub/lib/processors/*.d.mts",
104
114
  "import": "./dist/lib/processors/*.mjs"
105
115
  },
106
116
  "./factories/*": {
@@ -108,7 +118,7 @@
108
118
  "types": "./types/src/lib/factories/*.d.mts",
109
119
  "import": "./src/lib/factories/*.mjs"
110
120
  },
111
- "types": "./types/dist/lib/factories/*.d.mts",
121
+ "types": "./types/stub/lib/factories/*.d.mts",
112
122
  "import": "./dist/lib/factories/*.mjs"
113
123
  },
114
124
  "./errors": {
@@ -116,7 +126,7 @@
116
126
  "types": "./types/src/lib/errors.d.mts",
117
127
  "import": "./src/lib/errors.mjs"
118
128
  },
119
- "types": "./types/dist/lib/errors.d.mts",
129
+ "types": "./types/stub/lib/errors.d.mts",
120
130
  "import": "./dist/lib/errors.mjs"
121
131
  },
122
132
  "./i18n": {
@@ -124,7 +134,7 @@
124
134
  "types": "./types/src/lib/i18n/translations.d.mts",
125
135
  "import": "./src/lib/i18n/translations.mjs"
126
136
  },
127
- "types": "./types/dist/lib/i18n/translations.d.mts",
137
+ "types": "./types/stub/lib/i18n/translations.d.mts",
128
138
  "import": "./dist/lib/i18n/translations.mjs"
129
139
  },
130
140
  "./i18n/language/*": {
@@ -133,16 +143,21 @@
133
143
  },
134
144
  "./schemas/slothlet.module.schema.json": "./schemas/slothlet.module.schema.json"
135
145
  },
136
- "types": "./types/index.d.mts",
146
+ "types": "./types/stub/index.d.mts",
137
147
  "scripts": {
138
148
  "precommit": "node tools/dev/precommit-validation.mjs",
139
149
  "debug": "node tests/debug-slothlet.mjs",
140
150
  "i18n:check": "node tools/ci/check-i18n-languages.mjs",
141
151
  "vitest": "node tests/vitests/run-all-vitest.mjs --workers 8",
142
152
  "baseline": "npm run vitest -- --baseline",
143
- "coverage": "npm run vitest -- --coverage-quiet",
144
- "ci:coverage": "npm run coverage",
153
+ "coverage:node": "npm run vitest -- --coverage-quiet",
154
+ "precoverage:browser": "npx playwright install chromium",
155
+ "coverage:browser": "node --conditions=slothlet-dev node_modules/vitest/vitest.mjs run --config .configs/vitest.browser.config.mjs --coverage",
156
+ "coverage:merge": "node tools/coverage/merge-browser-coverage.mjs",
157
+ "coverage": "npm run coverage:node && npm run coverage:browser && npm run coverage:merge",
145
158
  "coverage:analyze": "node tools/coverage/analyze-coverage.mjs",
159
+ "coverage:all": "npm run coverage && npm run coverage:analyze",
160
+ "ci:coverage": "npm run coverage",
146
161
  "test": "npm run test:pre-build",
147
162
  "test:pre-build": "node tests/test-conditional.mjs",
148
163
  "test:post-build": "npm run test:types",
@@ -150,9 +165,11 @@
150
165
  "test:node": "node tests/run-all-tests.mjs",
151
166
  "test:all": "node tests/test-conditional.mjs && npm run test:node",
152
167
  "test:types": "node tests/validate-typescript.mjs",
153
- "ci:test:types": "npm run build:dist && npm run build:types && npm run test:types",
168
+ "test:typestubs": "node tests/validate-typestubs.mjs",
169
+ "ci:test:types": "npm run build:dist && npm run build:types && npm run build:typestubs && npm run test:types && npm run test:typestubs",
154
170
  "test:performance": "node tests/performance/performance-benchmark-aggregated.mjs",
155
171
  "test:performance-simple": "node tests/performance/performance-benchmark.mjs",
172
+ "pretest:browser": "npx playwright install chromium",
156
173
  "test:browser": "node --conditions=slothlet-dev tests/browser/playwright-smoke.mjs",
157
174
  "lint": "eslint --config .configs/eslint.config.mjs .",
158
175
  "inspect": "node tools/dev/inspect-api-structure.mjs",
@@ -161,18 +178,22 @@
161
178
  "audit": "npm run analyze",
162
179
  "analyze": "node tools/dev/analyze-errors.mjs",
163
180
  "fix:headers": "node tools/dev/fix-headers.mjs",
181
+ "format": "prettier --write . --config .configs/.prettierrc",
182
+ "format:check": "prettier --check . --config .configs/.prettierrc",
164
183
  "build": "npm run build:dev",
165
- "build:ci": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run test:types && npm run build:prepend-license && npm run ci:cleanup-src",
166
- "build:dev": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run test:types && npm run build:prepend-license",
167
- "build:dev:test": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run test:types && npm run build:prepend-license && npm run build:cleanup",
168
- "build:unsafe": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run test:types && npm run build:prepend-license",
184
+ "build:ci": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run build:typestubs && npm run test:types && npm run test:typestubs && npm run build:prepend-license && npm run ci:cleanup-src",
185
+ "build:dev": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run build:typestubs && npm run test:types && npm run test:typestubs && npm run build:prepend-license",
186
+ "build:dev:test": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run build:typestubs && npm run test:types && npm run test:typestubs && npm run build:prepend-license && npm run build:cleanup",
187
+ "build:unsafe": "npm run build:cleanup && npm run build:dist && npm run build:minify && npm run build:types && npm run build:exports && npm run build:typestubs && npm run test:types && npm run test:typestubs && npm run build:prepend-license",
169
188
  "ci:cleanup-src": "node tools/ci/ci-cleanup-src.mjs",
170
189
  "build:cleanup": "shx rm -rf types && shx rm -rf dist",
171
190
  "build:dist": "shx mkdir -p dist && node tools/build/build-dist.mjs && shx rm -rf dist/**/*.backup",
172
191
  "build:minify": "node tools/build/minify-dist.mjs",
173
- "build:types": "npx tsc -p .configs/tsconfig.dts.jsonc",
192
+ "build:types": "shx rm -rf types && npx tsc -p .configs/tsconfig.dts.jsonc",
174
193
  "build:exports": "node tools/build/build-exports.mjs",
194
+ "build:typestubs": "node tools/build/build-typestubs.mjs",
175
195
  "build:prepend-license": "node tools/build/prepend-license.mjs dist",
196
+ "build:subpackages": "node tools/build/build-subpackages.mjs",
176
197
  "prepublish-check": "npm run build && npm pack && node tools/build/prepublish-check.mjs",
177
198
  "docs:build": "npm run docs:build:slothlet && npm run docs:build:api-tests",
178
199
  "docs:build:slothlet": "jsdoc2md -g grouped -m dl --no-cache --separators -c \".configs/jsdoc.config.json\" --helper \"docs/generated/helpers.cjs\" --template \"docs/generated/template.hbs\" \"src/{slothlet.mjs,lib/**/**/*.mjs}\" > docs/generated/API.md",
@@ -269,10 +290,18 @@
269
290
  },
270
291
  "type": "module",
271
292
  "peerDependencies": {
293
+ "@cldmv/slothlet-i18n": "^3.11.0",
294
+ "@cldmv/slothlet-types": "^3.11.0",
272
295
  "esbuild": "^0.28.0",
273
296
  "typescript": "^6.0.3"
274
297
  },
275
298
  "peerDependenciesMeta": {
299
+ "@cldmv/slothlet-i18n": {
300
+ "optional": true
301
+ },
302
+ "@cldmv/slothlet-types": {
303
+ "optional": true
304
+ },
276
305
  "esbuild": {
277
306
  "optional": true
278
307
  },
@@ -281,14 +310,16 @@
281
310
  }
282
311
  },
283
312
  "devDependencies": {
284
- "@cldmv/fix-headers": "^1.2.2",
313
+ "@cldmv/fix-headers": "^1.3.0",
285
314
  "@cldmv/vitest-runner": "^1.1.0",
286
315
  "@eslint/css": "^1.1.0",
287
316
  "@eslint/js": "^10.0.1",
288
- "@eslint/json": "^1.2.0",
317
+ "@eslint/json": "^2.0.0",
289
318
  "@eslint/markdown": "^8.0.1",
290
319
  "@types/node": "^25.6.0",
291
- "@vitest/coverage-v8": "^4.1.5",
320
+ "@vitest/browser": "^4.1.8",
321
+ "@vitest/browser-playwright": "^4.1.8",
322
+ "@vitest/coverage-v8": "^4.1.8",
292
323
  "acorn": "^8.16.0",
293
324
  "chalk": "^5.6.2",
294
325
  "chokidar": "^5.0.0",
@@ -305,10 +336,10 @@
305
336
  "prettier": "^3.8.3",
306
337
  "shx": "^0.4.0",
307
338
  "typescript": "^6.0.3",
308
- "vitest": "^4.1.5"
339
+ "vitest": "^4.1.8"
309
340
  },
310
341
  "optionalDependencies": {
311
- "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.17"
342
+ "@rolldown/binding-linux-x64-gnu": "1.0.3"
312
343
  },
313
344
  "repository": {
314
345
  "type": "git",
@@ -321,17 +352,16 @@
321
352
  "publishConfig": {
322
353
  "access": "public"
323
354
  },
324
- "prepack": "npm run build:ci",
325
355
  "files": [
326
356
  "index.mjs",
327
357
  "index.cjs",
328
358
  "README.md",
329
359
  "REFERENCE.md",
330
360
  "LICENSE",
331
- "types/dist/",
332
- "types/index.d.mts",
333
- "types/index.d.mts.map",
361
+ "types/stub/",
334
362
  "dist/",
363
+ "!dist/lib/i18n/languages/*.json",
364
+ "dist/lib/i18n/languages/en-us.json",
335
365
  "bin/",
336
366
  "schemas/"
337
367
  ],
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export {};
@@ -0,0 +1,4 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types";
4
+ export { default } from "@cldmv/slothlet-types";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/builders/api-assignment";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/builders/api_builder";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/builders/builder";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/builders/modes-processor";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/errors";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/factories/component-base";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/factories/context";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/api-cache-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/api-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/context-async";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/context-live";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/hook-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/lifecycle-token";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/lifecycle";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/materialize-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/metadata";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/module-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/ownership";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/permission-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/unified-wrapper";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/handlers/version-manager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/class-instance-wrapper";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/config";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/eventemitter-context";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/generate-manifest";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/hint-detector";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/manifest-resolver";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/modes-utils";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/module-discovery";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/module-manifest-validator";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/module-sort";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/pattern-matcher";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/platform";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/resolve-from-caller";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/sanitize";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/helpers/utilities";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/i18n";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/modes/eager";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/modes/lazy";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/processors/flatten";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/processors/loader";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/processors/type-generator";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/processors/typescript";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/runtime/async";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/runtime/live";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/runtime";
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/typegen";
@@ -0,0 +1,4 @@
1
+ // AUTO-GENERATED by tools/build/build-typestubs.mjs — do not edit.
2
+ // Re-exports the real declarations from @cldmv/slothlet-types (install it for TypeScript support).
3
+ export * from "@cldmv/slothlet-types/slothlet";
4
+ export { default } from "@cldmv/slothlet-types/slothlet";