logxpert 1.0.5 → 2.0.3
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 +20 -0
- package/LICENSE +201 -674
- package/README.md +107 -108
- package/index.d.mts +22 -0
- package/index.d.ts +79 -0
- package/main.js +354 -176
- package/main.mjs +14 -0
- package/package.json +55 -6
- package/CODE_OF_CONDUCT.md +0 -128
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
- Fix TS types for dual CJS/ESM: `export =` + namespace in `index.d.ts`, dedicated `index.d.mts` for the ESM entry (`attw` clean)
|
|
5
|
+
- Rename `files` options with backward-compatible aliases: `prefix` (`appName`), `filePattern` (`filename`/`pattern`), `datePattern` (`filesName`/`dateFormat`); `%datePattern%` placeholder; `prefix` + `filePattern` now throws instead of silent precedence
|
|
6
|
+
- Default file `datePattern` is now `YYYY_MM_DD`
|
|
7
|
+
- License changed to `Apache-2.0`
|
|
8
|
+
|
|
9
|
+
## 2.0.0
|
|
10
|
+
- Replace `moment` with `dayjs`
|
|
11
|
+
- Add ESM entry (`main.mjs`) + `index.d.ts` types
|
|
12
|
+
- Add `log.setLevel/getLevel`, `LOG_LEVEL` env support
|
|
13
|
+
- Add `log.createLogger()` isolated instances and `log.child()`
|
|
14
|
+
- Add structured logging: objects, meta, `Error` stacks, `splat`
|
|
15
|
+
- `files.filename` option, input validation in `settings()`
|
|
16
|
+
- Fix license to `GPL-3.0-only`, add `exports`, `files`, `engines`
|
|
17
|
+
- Add tests (`node --test`) and CI
|
|
18
|
+
|
|
19
|
+
## 1.0.5
|
|
20
|
+
- Previous CJS-only release with `moment` + `winston`.
|