@dpuse/dpuse-shared 0.3.863 → 0.3.865

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 (46) hide show
  1. package/README.md +15 -66
  2. package/dist/dpuse-shared.es.js +1473 -0
  3. package/dist/dpuse-shared.es.js.map +1 -0
  4. package/dist/types/src/index.d.ts +24 -0
  5. package/package.json +3 -103
  6. package/dist/componentConfig.schema-DT3mO5rS.js +0 -416
  7. package/dist/componentConfig.schema-DT3mO5rS.js.map +0 -1
  8. package/dist/dpuse-shared-component.es.js +0 -53
  9. package/dist/dpuse-shared-component.es.js.map +0 -1
  10. package/dist/dpuse-shared-componentConnection.es.js +0 -0
  11. package/dist/dpuse-shared-componentContext.es.js +0 -0
  12. package/dist/dpuse-shared-componentContextModel.es.js +0 -0
  13. package/dist/dpuse-shared-componentContextModelDimension.es.js +0 -0
  14. package/dist/dpuse-shared-componentContextModelDimensionHierarchy.es.js +0 -0
  15. package/dist/dpuse-shared-componentContextModelEntity.es.js +0 -0
  16. package/dist/dpuse-shared-componentContextModelEntityDataItem.es.js +0 -0
  17. package/dist/dpuse-shared-componentContextModelEntityEvent.es.js +0 -0
  18. package/dist/dpuse-shared-componentContextModelEntityPrimaryMeasure.es.js +0 -0
  19. package/dist/dpuse-shared-componentContextModelSecondaryMeasure.es.js +0 -0
  20. package/dist/dpuse-shared-componentDataView.es.js +0 -18
  21. package/dist/dpuse-shared-componentDataView.es.js.map +0 -1
  22. package/dist/dpuse-shared-componentEventQuery.es.js +0 -0
  23. package/dist/dpuse-shared-componentModule.es.js +0 -0
  24. package/dist/dpuse-shared-componentModuleConnector.es.js +0 -182
  25. package/dist/dpuse-shared-componentModuleConnector.es.js.map +0 -1
  26. package/dist/dpuse-shared-componentModuleCookbook.es.js +0 -11
  27. package/dist/dpuse-shared-componentModuleCookbook.es.js.map +0 -1
  28. package/dist/dpuse-shared-componentModuleEngine.es.js +0 -0
  29. package/dist/dpuse-shared-componentModulePresenter.es.js +0 -15
  30. package/dist/dpuse-shared-componentModulePresenter.es.js.map +0 -1
  31. package/dist/dpuse-shared-componentModuleTool.es.js +0 -29
  32. package/dist/dpuse-shared-componentModuleTool.es.js.map +0 -1
  33. package/dist/dpuse-shared-componentPresentation.es.js +0 -0
  34. package/dist/dpuse-shared-componentRecipe.es.js +0 -0
  35. package/dist/dpuse-shared-encoding.es.js +0 -467
  36. package/dist/dpuse-shared-encoding.es.js.map +0 -1
  37. package/dist/dpuse-shared-errors.es.js +0 -150
  38. package/dist/dpuse-shared-errors.es.js.map +0 -1
  39. package/dist/dpuse-shared-locale.es.js +0 -28
  40. package/dist/dpuse-shared-locale.es.js.map +0 -1
  41. package/dist/dpuse-shared-utilities.es.js +0 -109
  42. package/dist/dpuse-shared-utilities.es.js.map +0 -1
  43. package/dist/label-DexpXrnC.js +0 -19
  44. package/dist/label-DexpXrnC.js.map +0 -1
  45. package/dist/moduleConfig.schema-aYmFWSrn.js +0 -22
  46. package/dist/moduleConfig.schema-aYmFWSrn.js.map +0 -1
package/README.md CHANGED
@@ -56,13 +56,10 @@ This repository is managed using the common set of actions provided by [@dpuse/d
56
56
 
57
57
  ### Example
58
58
 
59
- This package uses [sub-path exports](https://nodejs.org/api/packages.html#subpath-exports). Import only the entry points you need:
59
+ Everything is imported from the package itself. Bundlers keep only what you use:
60
60
 
61
61
  ```ts
62
- import { getComponentStatus } from '@dpuse/dpuse-shared/component';
63
- import type { ConnectorConfig } from '@dpuse/dpuse-shared/component/module/connector';
64
- import { ConnectorError, serialiseError } from '@dpuse/dpuse-shared/errors';
65
- import { formatNumberAsDuration } from '@dpuse/dpuse-shared/utilities';
62
+ import { ConnectorError, type ConnectorConfig, formatNumberAsDuration, getComponentStatus, serialiseError } from '@dpuse/dpuse-shared';
66
63
 
67
64
  try {
68
65
  // The locator argument follows the convention 'project.file.function'
@@ -98,7 +95,7 @@ OData-to-internal type conversion, file path name and extension extraction, numb
98
95
 
99
96
  ## API Reference
100
97
 
101
- See [API_REFERENCE.md](./API_REFERENCE.md) for the complete API reference, including all exported schemas, types, classes, constants, and actions for each sub-path entry point.
98
+ See [API_REFERENCE.md](./API_REFERENCE.md) for the complete API reference, including all exported schemas, types, classes, constants, and actions, grouped by topic.
102
99
 
103
100
  <!-- DEPENDENCY_LICENSES_START -->
104
101
 
@@ -150,68 +147,20 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
150
147
 
151
148
  | Chunk/Module/File | Composition |
152
149
  | :------------------------------------------------------------------------ | :--------------------------- |
153
- | dist/componentConfig.schema-DT3mO5rS.js | 10.2 kB · gzip 2.6 kB |
154
- | &nbsp;&nbsp;&nbsp;&nbsp;valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 20.7% |
155
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 5.3% |
156
- | &nbsp;&nbsp;&nbsp;&nbsp;src | `█░░░░░░░░░░░░░░░░░░░` 4.2% |
157
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;componentConfig.schema.ts | `█░░░░░░░░░░░░░░░░░░░` 2.7% |
150
+ | dist/dpuse-shared.es.js | 33.1 kB · gzip 8.6 kB |
151
+ | &nbsp;&nbsp;&nbsp;&nbsp;src | `█████████████░░░░░░░` 64.3% |
152
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index.ts | `███████████░░░░░░░░░` 53.7% |
153
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectorConfig.schema.ts | `█░░░░░░░░░░░░░░░░░░░` 3.6% |
154
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;componentConfig.schema.ts | `█░░░░░░░░░░░░░░░░░░░` 2.8% |
155
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;moduleConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
156
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
158
157
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;locale.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
159
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;baseConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
158
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;presenterConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
159
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;baseConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
160
+ | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cookbookConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
160
161
  | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
161
- | dist/dpuse-shared-encoding.es.js | 7.4 kB · gzip 1.5 kB |
162
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `████░░░░░░░░░░░░░░░░` 18.9% |
163
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 2.9% |
164
- | dist/dpuse-shared-errors.es.js | 4.6 kB · gzip 1.7 kB |
165
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `██░░░░░░░░░░░░░░░░░░` 12.3% |
166
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 1.3% |
167
- | dist/dpuse-shared-componentModuleConnector.es.js | 3.6 kB · gzip 1.3 kB |
168
- | &nbsp;&nbsp;&nbsp;&nbsp;src | `██░░░░░░░░░░░░░░░░░░` 8.4% |
169
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index.ts | `█░░░░░░░░░░░░░░░░░░░` 6.1% |
170
- | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.3% |
171
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 2.1% |
172
- | dist/dpuse-shared-utilities.es.js | 3.5 kB · gzip 1.3 kB |
173
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `██░░░░░░░░░░░░░░░░░░` 8.9% |
174
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 1.4% |
175
- | dist/dpuse-shared-locale.es.js | 856 B · gzip 386 B |
176
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.6% |
177
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
178
- | dist/dpuse-shared-component.es.js | 834 B · gzip 415 B |
179
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.6% |
180
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
181
- | dist/dpuse-shared-componentModuleTool.es.js | 784 B · gzip 450 B |
182
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.7% |
183
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
184
- | dist/dpuse-shared-componentDataView.es.js | 701 B · gzip 355 B |
185
- | &nbsp;&nbsp;&nbsp;&nbsp;src → index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.6% |
186
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
187
- | dist/dpuse-shared-componentModulePresenter.es.js | 411 B · gzip 269 B |
188
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
189
- | &nbsp;&nbsp;&nbsp;&nbsp;src → presenterConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
190
- | dist/moduleConfig.schema-aYmFWSrn.js | 405 B · gzip 274 B |
191
- | &nbsp;&nbsp;&nbsp;&nbsp;src → moduleConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
192
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
193
- | dist/dpuse-shared-componentModuleCookbook.es.js | 370 B · gzip 248 B |
194
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
195
- | &nbsp;&nbsp;&nbsp;&nbsp;src → cookbookConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 0.3% |
196
- | dist/label-DexpXrnC.js | 361 B · gzip 251 B |
197
- | &nbsp;&nbsp;&nbsp;&nbsp;src → label.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
198
- | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 0.3% |
199
- | dist/dpuse-shared-componentConnection.es.js | 0 B · gzip 20 B |
200
- | dist/dpuse-shared-componentContext.es.js | 0 B · gzip 20 B |
201
- | dist/dpuse-shared-componentContextModel.es.js | 0 B · gzip 20 B |
202
- | dist/dpuse-shared-componentContextModelDimension.es.js | 0 B · gzip 20 B |
203
- | dist/dpuse-shared-componentContextModelDimensionHierarchy.es.js | 0 B · gzip 20 B |
204
- | dist/dpuse-shared-componentContextModelEntity.es.js | 0 B · gzip 20 B |
205
- | dist/dpuse-shared-componentContextModelEntityDataItem.es.js | 0 B · gzip 20 B |
206
- | dist/dpuse-shared-componentContextModelEntityEvent.es.js | 0 B · gzip 20 B |
207
- | dist/dpuse-shared-componentContextModelEntityPrimaryMeasure.es.js | 0 B · gzip 20 B |
208
- | dist/dpuse-shared-componentContextModelSecondaryMeasure.es.js | 0 B · gzip 20 B |
209
- | dist/dpuse-shared-componentEventQuery.es.js | 0 B · gzip 20 B |
210
- | dist/dpuse-shared-componentModule.es.js | 0 B · gzip 20 B |
211
- | dist/dpuse-shared-componentModuleEngine.es.js | 0 B · gzip 20 B |
212
- | dist/dpuse-shared-componentPresentation.es.js | 0 B · gzip 20 B |
213
- | dist/dpuse-shared-componentRecipe.es.js | 0 B · gzip 20 B |
214
- | dist/dpuse-shared.es.js | 0 B · gzip 20 B |
162
+ | &nbsp;&nbsp;&nbsp;&nbsp;valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 21.2% |
163
+ | &nbsp;&nbsp;&nbsp;&nbsp;(bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.5% |
215
164
 
216
165
  (bundler output, whitespace & JSON) = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as `config.json`, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.
217
166