diff --git a/.changeset/neat-radios-ring.md b/.changeset/neat-radios-ring.md deleted file mode 100644 index a0d5fe8..0000000 --- a/.changeset/neat-radios-ring.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@seek/logger': patch ---- - -createDestination: Use `Record` type for `stdoutMock.calls` and `stdoutMock.onlyCall()` - -This allows you to destructure a call in your test code without the TypeScript compiler complaining: - -```typescript -const { level, ...rest } = stdoutMock.onlyCall(); -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 3735fa9..ab9e504 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # @seek/logger +## 8.1.1 + +### Patch Changes + +- **createDestination:** Use `Record` type for `stdoutMock.calls` and `stdoutMock.onlyCall()` ([#137](https://github.com/seek-oss/logger/pull/137)) + + This allows you to destructure a call in your test code without the TypeScript compiler complaining: + + ```typescript + const { level, ...rest } = stdoutMock.onlyCall(); + ``` + ## 8.1.0 ### Minor Changes diff --git a/package.json b/package.json index aa9dbfa..3a3587a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@seek/logger", - "version": "8.1.0", + "version": "8.1.1", "private": false, "description": "Standardized logging", "homepage": "https://github.com/seek-oss/logger#readme",