syntropylog 0.9.20 โ 0.10.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.
- package/CHANGELOG.md +14 -0
- package/README.md +4 -17
- package/dist/index.cjs +3283 -1
- package/dist/index.d.ts +55 -128
- package/dist/index.mjs +3249 -1
- package/dist/types/config/Result.d.ts +38 -0
- package/dist/types/config/config.validator.d.ts +17 -0
- package/dist/types/config/validators.d.ts +23 -0
- package/dist/types/config.d.ts +3 -10
- package/dist/types/config.schema.d.ts +53 -112
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- security: remove code minification from the production bundle.
|
|
8
|
+
This ensures that the library follows npm best practices, providing transparent and auditable code as flagged by socket.dev security alerts. Both CommonJS (`require`) and ES Modules (`import`) artifacts are now distributed in readable format.
|
|
9
|
+
|
|
10
|
+
## 0.10.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- refactor: replace valibot with zero-dependency ROP config validator.
|
|
15
|
+
This change significantly reduces the bundle size by eliminating the valibot dependency (~30kB raw reduction) and introduces a robust, functional configuration validation system with 100% test coverage.
|
|
16
|
+
|
|
3
17
|
## 0.9.20
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<a href="https://www.npmjs.com/package/syntropylog"><img src="https://img.shields.io/npm/v/syntropylog.svg" alt="NPM Version"></a>
|
|
17
17
|
<a href="https://github.com/Syntropysoft/SyntropyLog/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/syntropylog.svg" alt="License"></a>
|
|
18
18
|
<a href="https://github.com/Syntropysoft/SyntropyLog/actions/workflows/ci.yaml"><img src="https://github.com/Syntropysoft/SyntropyLog/actions/workflows/ci.yaml/badge.svg" alt="CI Status"></a>
|
|
19
|
-
<a href="#"><img src="https://img.shields.io/badge/coverage-
|
|
20
|
-
<a href="#"><img src="https://img.shields.io/badge/status-v0.
|
|
19
|
+
<a href="#"><img src="https://img.shields.io/badge/coverage-95.13%25-brightgreen" alt="Test Coverage"></a>
|
|
20
|
+
<a href="#"><img src="https://img.shields.io/badge/status-v0.10.0-brightgreen.svg" alt="Version 0.10.0"></a>
|
|
21
21
|
<a href="https://socket.dev/npm/package/syntropylog"><img src="https://socket.dev/api/badge/npm/package/syntropylog" alt="Socket Badge"></a>
|
|
22
22
|
</p>
|
|
23
23
|
|
|
@@ -57,7 +57,7 @@ We ship with `sideEffects: false` and ESM so bundlers (Vite, Rollup, webpack, es
|
|
|
57
57
|
|
|
58
58
|
Traditional loggers (and even modern ones) share a common weakness: **serialization is a blocking operation**. If you log a massive, deeply nested, or circular object, the Node.js Event Loop stops. Your API stops responding. Your service might even crash with a `TypeError`.
|
|
59
59
|
|
|
60
|
-
SyntropyLog v0.
|
|
60
|
+
SyntropyLog v0.10.0 introduces the **Log Resilience Engine**, making your application immune to "Death by Log":
|
|
61
61
|
|
|
62
62
|
1. **Event Loop Protection**: Every serialization step is wrapped in a mandatory timeout (default: **50ms**). If serialization takes too long, it is aborted via `Promise.race`, and a safe subset of the data is logged instead. Your app keeps running.
|
|
63
63
|
2. **Circular Reference Immunity**: Built-in hygiene automatically detects and neutralizes circular references. No more `TypeError: Converting circular structure to JSON`.
|
|
@@ -604,20 +604,7 @@ const dbTransport = new UniversalAdapter({
|
|
|
604
604
|
|
|
605
605
|
---
|
|
606
606
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
SyntropyLog goes deep. Explore our specialized guides:
|
|
610
|
-
|
|
611
|
-
| | Guide | Description |
|
|
612
|
-
| :--- | :--- | :--- |
|
|
613
|
-
| ๐ง | [Master Configuration](./docs/configuration.md) | Every option explained: `loggingMatrix`, `serializers`, masking, context. |
|
|
614
|
-
| ๐พ | [Universal Persistence](./docs/persistence.md) | Map logs to any DB (SQL/NoSQL) with pure JSON, zero dependencies. |
|
|
615
|
-
| ๐งฌ | [Serialization & Resiliency](./docs/serialization.md) | Circular reference protection, automated timeouts, and the Safe Pipeline. |
|
|
616
|
-
| โ๏ธ | [Middleware & Frameworks](./docs/middleware.md) | Integration patterns for Express, NestJS, and more via Universal Contracts. |
|
|
617
|
-
| ๐ข | [Enterprise Patterns](./docs/enterprise.md) | Scalable architectures, ELK, Kubernetes, and compliance. |
|
|
618
|
-
| ๐งช | [Testing Strategy](./docs/testing.md) | Zero-boilerplate mocking with `SyntropyLogMock`. |
|
|
619
|
-
| ๐ญ | [Core Philosophy](./docs/philosophy.md) | The "Silent Observer" principle and error handling strategy. |
|
|
620
|
-
| ๐ฆ | [Examples](https://github.com/Syntropysoft/syntropylog-examples) | Real integrations with Express, Redis, Kafka, and more. |
|
|
607
|
+
---
|
|
621
608
|
|
|
622
609
|
---
|
|
623
610
|
|