@geekmidas/logger 10.0.0-alpha.155 → 10.0.0-alpha.157

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 +16 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -417,6 +417,22 @@ const customLog: LogFn = (obj, msg) => {
417
417
  }
418
418
  ```
419
419
 
420
+ ## Optional peers
421
+
422
+ <!-- optional-peers:start -->
423
+
424
+ <!-- Generated by `node scripts/check-optional-peers.mjs --write-docs`; CI fails when it drifts. -->
425
+
426
+ Each of these entries imports an optional peer when it loads, so using it means installing that peer:
427
+
428
+ | Entry | Install |
429
+ | --- | --- |
430
+ | `@geekmidas/logger/pino` | `pino` |
431
+
432
+ No other entry imports an optional peer when it loads. `pino-pretty` is loaded only when a feature that uses it runs (an `import()` inside a `try`, whose error names the package to install), or named only in types.
433
+
434
+ <!-- optional-peers:end -->
435
+
420
436
  ## License
421
437
 
422
438
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/logger",
3
- "version": "10.0.0-alpha.155",
3
+ "version": "10.0.0-alpha.157",
4
4
  "description": "A simple and flexible logging library for Node.js and the browser",
5
5
  "private": false,
6
6
  "type": "module",