functype-log 1.4.1 → 1.4.2

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 +3 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -204,15 +204,13 @@ 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 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.
207
+ The core `functype` package ships a minimal `Logger` interface — 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`). Reachable from both `functype` (top barrel) and the `functype/logger` subpath.
210
208
 
211
209
  `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:
212
210
 
213
211
  ```typescript
212
+ import type { Logger } from "functype"
214
213
  import { createDirectConsoleLogger } from "functype-log/direct"
215
- import type { Logger } from "functype/logger"
216
214
 
217
215
  const logger: Logger = createDirectConsoleLogger() // structural compat — no cast required
218
216
  ```
@@ -230,7 +228,7 @@ bootDiagnostics({
230
228
  })
231
229
  ```
232
230
 
233
- `bootDiagnostics`' `logger` parameter is typed as core `Logger` from `functype/logger` — `DirectLogger` satisfies it structurally.
231
+ `bootDiagnostics`' `logger` parameter is typed as core `Logger` from `functype` — `DirectLogger` satisfies it structurally.
234
232
 
235
233
  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.
236
234
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype-log",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
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.13.2",
33
- "ts-builds": "^3.1.0",
33
+ "ts-builds": "^3.2.0",
34
34
  "tsdown": "^0.22.2",
35
- "functype": "^1.4.1"
35
+ "functype": "^1.4.2"
36
36
  },
37
37
  "type": "module",
38
38
  "main": "./dist/index.js",