Skip to content

Commit

Permalink
Require node 17+
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Mar 13, 2024
1 parent 0c4b2d3 commit c2e51e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## 4.3.0
## 5.0.0

- Enable the include processor to target a sub document of the log record
- Updated engine to Node 17+ due to structuredClone

## 4.2.1

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ logger.info("How blissful it is, for one who has nothing", {

### include

Shallow copies the specified paths into a new log record. This is useful to avoid logging every property from a noisy object, including potentially senstive ones (I'm looking at you AxiosError!).
Copies the specified paths into a new log record. This is useful to avoid logging every property from a noisy object, including potentially senstive ones (I'm looking at you AxiosError!).
Please note, this processor uses Node's [structuredClone](https://nodejs.org/api/globals.html#structuredclonevalue-options) function and may therefore be [slow](https://github.com/nodejs/node/issues/50320).

It has the following options:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test": "test"
},
"engines": {
"node": ">=12.0.0"
"node": ">=17.0.0"
},
"keywords": [
"log",
Expand Down

0 comments on commit c2e51e2

Please sign in to comment.