@cslug/core 0.2.0 → 0.3.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.
package/docs/api.md CHANGED
@@ -92,7 +92,7 @@ All extend `CslugError` (`code`, `message`): `BindingNotFoundError` (`container.
92
92
  | `app.setConfig(path, value)` | Override before `start()` (the test kit); config is deep-frozen at start |
93
93
  | `Config`, `Typed<T>`, `ConfigPath<T>`, `ConfigValue<T, P>` | `declare module '@cslug/core' { interface Config extends Typed<typeof configs> {} }` |
94
94
 
95
- `v` and `ValidationError` are re-exported from `@cslug/validation`.
95
+ `v`, `ValidationError`, `sniffType` and `parseSize` are re-exported from `@cslug/validation`.
96
96
 
97
97
  ## Errors
98
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cslug/core",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Application, container and @inject, providers, config, events, logger, errors, context, Clock, Money, i18n, contracts.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,6 +28,6 @@
28
28
  "bun": ">=1.3.14"
29
29
  },
30
30
  "peerDependencies": {
31
- "@cslug/validation": "0.2.0"
31
+ "@cslug/validation": "0.3.0"
32
32
  }
33
33
  }
package/src/index.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  * typed errors, Clock, Money, events, logger, i18n, and the Cache/Lock/RateLimiter/SessionStore contracts.
4
4
  */
5
5
 
6
- /** Re-exported so apps can `import { v, ValidationError } from '@cslug/core'` in config/env.ts. */
7
- export { ValidationError, v } from '@cslug/validation'
6
+ /** Re-exported: `v` and `ValidationError` for config/env.ts; `sniffType` and `parseSize` for @cslug/storage. */
7
+ export { parseSize, sniffType, ValidationError, v } from '@cslug/validation'
8
8
  export { Application, type ApplicationOptions, sortProviders } from './application'
9
9
  export { Clock, FakeClock } from './clock'
10
10
  export {