Skip to content

Commit cfd1858

Browse files
committed
docs(3.0): add breaking change docs
1 parent 0af815e commit cfd1858

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/BREAKING_CHANGES.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BREAKING CHANGES
2+
3+
## Version 3.0
4+
5+
- **Dual ESM and CommonJS**: Added support for both module formats. No syntax changes needed from 2.x.
6+
- **Functional style**: Refactored to use a fully functional API, removing internal objects. Update code that accessed internals directly.
7+
- **Node.js update**: Dropped support for Node 14 and 16. Now compatible with Node 18, 20, 22, and above.
8+
- **Removed `colors` dependency**: Now uses a lightweight, custom color handler. No changes to color functionality.
9+
- **Enhanced JSON handling**: Replaced `JSON.stringify` with `fast-json-stringify` for improved performance.
10+
- **Updated `prettyoutput`**: Now uses `@ekino/prettyoutput` for enhanced performance, security, and compatibility.
11+
- **Native UUID generation**: Replaced `uuidv4` with `crypto.randomUUID()` for generating contextIds, leveraging native Node.js capabilities for better performance.
12+
- **Enhanced logMethod dual signature**: Improved support for the dual-signature interface, handling variations in parameter usage. (log with contextId or without contextId)

0 commit comments

Comments
 (0)