functype-log 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -204,13 +204,15 @@ import { createDirectConsoleLogger } from "functype-log/direct" // sync/imperati
204
204
 
205
205
  ## Interop with `functype`'s core `Logger` (1.3.0+)
206
206
 
207
- The core `functype` package ships a minimal `Logger` interface at `functype` (and `functype/logger`) — 4 mandatory methods (`debug`/`info`/`warn`/`error`) returning `void`, designed as the shared shape for boot-diagnostic / observability hooks across the ecosystem (see `bootDiagnostics` in `functype-os/config`).
207
+ The core `functype` package ships a minimal `Logger` interface at the `functype/logger` subpath — 4 mandatory methods (`debug`/`info`/`warn`/`error`) returning `void`, designed as the shared shape for boot-diagnostic / observability hooks across the ecosystem (see `bootDiagnostics` in `functype-os/config`).
208
+
209
+ > **Note (1.3.x):** `Logger` is reachable only from the `functype/logger` subpath, not the top-level `functype` barrel. Temporary workaround for a non-deterministic chunk-splitter bug in rolldown 1.1.0. Will be restored to barrel-parity in a future minor once rolldown stabilizes. See the TEMPORARY comment in `packages/functype/src/index.ts` upstream.
208
210
 
209
211
  `DirectLogger` from `functype-log/direct` **structurally satisfies** that core `Logger` interface — its `debug`/`info`/`warn`/`error` methods are a superset of the core shape. You can pass a `DirectLogger` directly anywhere a core `Logger` is expected, with no adapter:
210
212
 
211
213
  ```typescript
212
214
  import { createDirectConsoleLogger } from "functype-log/direct"
213
- import type { Logger } from "functype"
215
+ import type { Logger } from "functype/logger"
214
216
 
215
217
  const logger: Logger = createDirectConsoleLogger() // structural compat — no cast required
216
218
  ```
@@ -228,6 +230,8 @@ bootDiagnostics({
228
230
  })
229
231
  ```
230
232
 
233
+ `bootDiagnostics`' `logger` parameter is typed as core `Logger` from `functype/logger` — `DirectLogger` satisfies it structurally.
234
+
231
235
  The IO-shaped `Logger` (this package's primary API) does NOT structurally satisfy the core `Logger` — its methods return `IO<never, never, void>` instead of `void`. For IO-aware code that needs to also drive boot diagnostics, derive a `DirectLogger` via `toDirectLogger(ioLogger)` and pass that.
232
236
 
233
237
  ## Requirements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype-log",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "IO-native logging for functype — wraps LogLayer with Tag/Layer DI, structured logging, and test utilities",
5
5
  "keywords": [
6
6
  "functype",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^24.12.4",
33
- "ts-builds": "^2.8.2",
33
+ "ts-builds": "^3.0.0",
34
34
  "tsdown": "^0.22.1",
35
- "functype": "^1.3.0"
35
+ "functype": "^1.3.1"
36
36
  },
37
37
  "type": "module",
38
38
  "main": "./dist/index.js",