Repository navigation
5.4.0 - #387
Merged
Merged
5.4.0#387
Conversation
Dependabot updates
Callbacks may return numbers as well as strings. IPrettyLogStyles now accepts any key so custom tokens can be styled, so a misspelled built-in key is reported at runtime instead (UNKNOWN_PRETTY_STYLE, with a did-you-mean; throws under strictConfig). KNOWN_PRETTY_PLACEHOLDERS moves to internal/ so metaFormatting no longer imports core/settings. Docs land in the README pretty section, RECIPES 16 and the llms.txt pretty bullet; the browser bundle budget grows to 23_000 for the feature.
…holders Support custom pretty placeholders
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #387 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 53 54 +1
Lines 4632 4660 +28
Branches 1417 1433 +16
=========================================
+ Hits 4632 4660 +28 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 5.4.0.
Added
pretty.placeholdersregisters custom{{token}}s forpretty.template, styled throughpretty.styleslike the built-in ones. Only referenced tokens run, a throwing callback renders empty, built-in names are reserved, sub-loggers inherit the parent's map; meta template only. (Support custom pretty placeholders #386, thanks @clayzx)pretty.styleskey validation — a misspelled style key warns in development with a did-you-mean, or throwsTslogConfigError(UNKNOWN_PRETTY_STYLE) understrictConfig.Changelog
Also records 5.3.0 as a dependency-only release (functionally identical to 5.2.0) and dates the 5.4.0 entry.
Fixes #381