diff --git a/.changeset/smooth-ties-look.md b/.changeset/smooth-ties-look.md deleted file mode 100644 index 3063c81..0000000 --- a/.changeset/smooth-ties-look.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@seek/logger': major ---- - -Apply trimming to serializers - -Previously, [built-in serializers](https://github.com/seek-oss/logger/tree/54f16e17a9bb94261b9d2e4b77f04f55d5a3ab4c?tab=readme-ov-file#standardised-fields) and custom ones supplied via the [`serializers` option](https://github.com/pinojs/pino/blob/8aafa88139890b97aca0d32601cb5ffdd9bda1eb/docs/api.md#serializers-object) were not subject to [trimming](https://github.com/seek-oss/logger/tree/54f16e17a9bb94261b9d2e4b77f04f55d5a3ab4c?tab=readme-ov-file#trimming). This caused some emitted error logs to be extremely large. - -Now, trimming is applied across all serializers by default. If you rely on deeply nested `err` properties to troubleshoot your application, tune the `maxObjectDepth` configured on your logger. diff --git a/CHANGELOG.md b/CHANGELOG.md index ab9e504..97e5489 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # @seek/logger +## 9.0.0 + +### Major Changes + +- Apply trimming to serializers ([#143](https://github.com/seek-oss/logger/pull/143)) + + Previously, [built-in serializers](https://github.com/seek-oss/logger/tree/54f16e17a9bb94261b9d2e4b77f04f55d5a3ab4c?tab=readme-ov-file#standardised-fields) and custom ones supplied via the [`serializers` option](https://github.com/pinojs/pino/blob/8aafa88139890b97aca0d32601cb5ffdd9bda1eb/docs/api.md#serializers-object) were not subject to [trimming](https://github.com/seek-oss/logger/tree/54f16e17a9bb94261b9d2e4b77f04f55d5a3ab4c?tab=readme-ov-file#trimming). This caused some emitted error logs to be extremely large. + + Now, trimming is applied across all serializers by default. If you rely on deeply nested `err` properties to troubleshoot your application, tune the `maxObjectDepth` configured on your logger. + ## 8.1.1 ### Patch Changes diff --git a/package.json b/package.json index 3a3587a..cf048de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@seek/logger", - "version": "8.1.1", + "version": "9.0.0", "private": false, "description": "Standardized logging", "homepage": "https://github.com/seek-oss/logger#readme",