Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow using non-lowercased custom levels #342

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

chernodub
Copy link
Contributor

The code failed to use useLevel when the custom level was, for example, camel-cased.

I updated the test to reflect this occasional scenario and removed the unnecessary transformation of the log level.

useLevel: 'custom',
level: 'custom'
useLevel: 'infoCustom',
level: 'infoCustom'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If needed, I could duplicate the test for the lowercase scenario too. I'm assuming here that both cases are covered by this test now.

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what issue this is solving. With the current code, fooBar is equivalent to foobar.

@@ -42,7 +42,7 @@ function pinoLogger (opts, stream) {

function getValidLogLevel (level, defaultValue = 'info') {
if (level && typeof level === 'string') {
const logLevel = level.trim().toLowerCase()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose here is to compare names in a consistent manner.

Copy link
Contributor Author

@chernodub chernodub Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jsumners, thanks for the response!

My reasoning for the change:

  1. Before the change, validLogLevels contained values that are not mapped to lowercased values, so the check would always fail for non-lowercased values. (like infoCustom example above).
  2. We could potentially prepare the validLogLevels by mapping each value to lowercase, so the check will result to true. After that, the getValidLogLevel will return a lowercased value, and the code of pino-http will try calling something like logger.infocustom which will also throw (because the valid call would be logger.infoCustom)

Pls let me know what you think, thanks

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
Copy link
Member

mcollina commented Jul 2, 2024

I think this is ok!

@mcollina mcollina merged commit dfd3e93 into pinojs:master Jul 3, 2024
5 checks passed
abhi-markan referenced this pull request in UK-Export-Finance/mdm-api Jul 11, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@nestjs/cli](https://togithub.com/nestjs/nest-cli) | [`10.3.2` ->
`10.4.2`](https://renovatebot.com/diffs/npm/@nestjs%2fcli/10.3.2/10.4.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fcli/10.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nestjs%2fcli/10.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nestjs%2fcli/10.3.2/10.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fcli/10.3.2/10.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@nestjs/config](https://togithub.com/nestjs/config) | [`3.2.2` ->
`3.2.3`](https://renovatebot.com/diffs/npm/@nestjs%2fconfig/3.2.2/3.2.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fconfig/3.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nestjs%2fconfig/3.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nestjs%2fconfig/3.2.2/3.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fconfig/3.2.2/3.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@nestjs/swagger](https://togithub.com/nestjs/swagger) | [`7.3.1` ->
`7.4.0`](https://renovatebot.com/diffs/npm/@nestjs%2fswagger/7.3.1/7.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nestjs%2fswagger/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nestjs%2fswagger/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nestjs%2fswagger/7.3.1/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nestjs%2fswagger/7.3.1/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/lodash](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash))
| [`4.17.5` ->
`4.17.6`](https://renovatebot.com/diffs/npm/@types%2flodash/4.17.5/4.17.6)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2flodash/4.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2flodash/4.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2flodash/4.17.5/4.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2flodash/4.17.5/4.17.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.14.8` ->
`20.14.10`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.8/20.14.10)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.14.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.14.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.14.8/20.14.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.14.8/20.14.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [chance](http://chancejs.com)
([source](https://togithub.com/chancejs/chancejs)) | [`1.1.11` ->
`1.1.12`](https://renovatebot.com/diffs/npm/chance/1.1.11/1.1.12) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/chance/1.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chance/1.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chance/1.1.11/1.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chance/1.1.11/1.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[eslint-plugin-simple-import-sort](https://togithub.com/lydell/eslint-plugin-simple-import-sort)
| [`12.1.0` ->
`12.1.1`](https://renovatebot.com/diffs/npm/eslint-plugin-simple-import-sort/12.1.0/12.1.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-simple-import-sort/12.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-simple-import-sort/12.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-simple-import-sort/12.1.0/12.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-simple-import-sort/12.1.0/12.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [mssql](https://togithub.com/tediousjs/node-mssql) | [`11.0.0` ->
`11.0.1`](https://renovatebot.com/diffs/npm/mssql/11.0.0/11.0.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/mssql/11.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/mssql/11.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/mssql/11.0.0/11.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mssql/11.0.0/11.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[notifications-node-client](https://docs.notifications.service.gov.uk/node.html)
([source](https://togithub.com/alphagov/notifications-node-client)) |
[`8.1.0` ->
`8.2.0`](https://renovatebot.com/diffs/npm/notifications-node-client/8.1.0/8.2.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/notifications-node-client/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/notifications-node-client/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/notifications-node-client/8.1.0/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/notifications-node-client/8.1.0/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [pino-http](https://togithub.com/pinojs/pino-http) | [`10.1.0` ->
`10.2.0`](https://renovatebot.com/diffs/npm/pino-http/10.1.0/10.2.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/pino-http/10.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pino-http/10.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pino-http/10.1.0/10.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pino-http/10.1.0/10.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [ts-jest](https://kulshekhar.github.io/ts-jest)
([source](https://togithub.com/kulshekhar/ts-jest)) | [`29.1.5` ->
`29.2.2`](https://renovatebot.com/diffs/npm/ts-jest/29.1.5/29.2.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/ts-jest/29.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-jest/29.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-jest/29.1.5/29.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-jest/29.1.5/29.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [typescript](https://www.typescriptlang.org/)
([source](https://togithub.com/Microsoft/TypeScript)) | [`5.5.2` ->
`5.5.3`](https://renovatebot.com/diffs/npm/typescript/5.5.2/5.5.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/typescript/5.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/typescript/5.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/typescript/5.5.2/5.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript/5.5.2/5.5.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>nestjs/nest-cli (@&#8203;nestjs/cli)</summary>

###
[`v10.4.2`](https://togithub.com/nestjs/nest-cli/compare/10.4.1...952da4bb6292ee30adec8bec41f555d6f22bc08a)

[Compare
Source](https://togithub.com/nestjs/nest-cli/compare/10.4.1...10.4.2)

###
[`v10.4.1`](https://togithub.com/nestjs/nest-cli/compare/10.4.0...0abced2f6a238176108119e716b20e69529556b9)

[Compare
Source](https://togithub.com/nestjs/nest-cli/compare/10.4.0...10.4.1)

###
[`v10.4.0`](https://togithub.com/nestjs/nest-cli/compare/10.3.2...d37735f7f5a0ddd01d81b87af4278af8c78bae5b)

[Compare
Source](https://togithub.com/nestjs/nest-cli/compare/10.3.2...10.4.0)

</details>

<details>
<summary>nestjs/config (@&#8203;nestjs/config)</summary>

###
[`v3.2.3`](https://togithub.com/nestjs/config/compare/3.2.2...faa8f59f0098d22a0f4391ba342bc685ca7edd86)

[Compare
Source](https://togithub.com/nestjs/config/compare/3.2.2...3.2.3)

</details>

<details>
<summary>nestjs/swagger (@&#8203;nestjs/swagger)</summary>

### [`v7.4.0`](https://togithub.com/nestjs/swagger/releases/tag/7.4.0)

[Compare
Source](https://togithub.com/nestjs/swagger/compare/7.3.1...7.4.0)

- Merge pull request
[#&#8203;2870](https://togithub.com/nestjs/swagger/issues/2870) from
arkraft/fix/array-enums-queries-or-params
([`d3bad9d`](https://togithub.com/nestjs/swagger/commit/d3bad9d))
- Merge pull request
[#&#8203;2835](https://togithub.com/nestjs/swagger/issues/2835) from
lit26/feature/add-response-decorator-from-comment
([`6c5a7f6`](https://togithub.com/nestjs/swagger/commit/6c5a7f6))
- Merge pull request
[#&#8203;2992](https://togithub.com/nestjs/swagger/issues/2992) from
nestjs/renovate/release-it-17.x
([`29adc2d`](https://togithub.com/nestjs/swagger/commit/29adc2d))
- Merge pull request
[#&#8203;2993](https://togithub.com/nestjs/swagger/issues/2993) from
nestjs/renovate/nest-monorepo
([`5e01879`](https://togithub.com/nestjs/swagger/commit/5e01879))
- chore(deps): update nest monorepo to v10.3.10
([`6fd3c1c`](https://togithub.com/nestjs/swagger/commit/6fd3c1c))
- chore(deps): update dependency release-it to v17.4.1
([`4933f9e`](https://togithub.com/nestjs/swagger/commit/4933f9e))
- Merge pull request
[#&#8203;2827](https://togithub.com/nestjs/swagger/issues/2827) from
nestjs/renovate/swagger-ui-dist-5.x
([`71f7af1`](https://togithub.com/nestjs/swagger/commit/71f7af1))
- Merge pull request
[#&#8203;2994](https://togithub.com/nestjs/swagger/issues/2994) from
nestjs/revert-2909-fix-exclusive-min-max-types
([`6f1ee0c`](https://togithub.com/nestjs/swagger/commit/6f1ee0c))
- Merge pull request
[#&#8203;2840](https://togithub.com/nestjs/swagger/issues/2840) from
lucas-gregoire/feat/allow-to-disable-swagger-ui
([`c541886`](https://togithub.com/nestjs/swagger/commit/c541886))
- Revert "fix: exclusive minimum and exclusive maximum are numbers"
([`9614b1d`](https://togithub.com/nestjs/swagger/commit/9614b1d))
- Merge pull request
[#&#8203;2836](https://togithub.com/nestjs/swagger/issues/2836) from
lit26/feature/add-more-apiresponse
([`91a7c76`](https://togithub.com/nestjs/swagger/commit/91a7c76))
- Merge pull request
[#&#8203;2869](https://togithub.com/nestjs/swagger/issues/2869) from
jinyongp/fix/cannot-find-typename-containing-promise-or-observable
([`91a40a3`](https://togithub.com/nestjs/swagger/commit/91a40a3))
- Merge pull request
[#&#8203;2871](https://togithub.com/nestjs/swagger/issues/2871) from
lit26/feature/add-response-example
([`56622e8`](https://togithub.com/nestjs/swagger/commit/56622e8))
- Merge pull request
[#&#8203;2909](https://togithub.com/nestjs/swagger/issues/2909) from
mastermatt/fix-exclusive-min-max-types
([`d675211`](https://togithub.com/nestjs/swagger/commit/d675211))
- Merge pull request
[#&#8203;2930](https://togithub.com/nestjs/swagger/issues/2930) from
nestjs/renovate/cimg-node-22.x
([`b7eeffd`](https://togithub.com/nestjs/swagger/commit/b7eeffd))
- Merge pull request
[#&#8203;2935](https://togithub.com/nestjs/swagger/issues/2935) from
slukes/add-enum-function
([`adb6561`](https://togithub.com/nestjs/swagger/commit/adb6561))
- Merge pull request
[#&#8203;2952](https://togithub.com/nestjs/swagger/issues/2952) from
voriteam/clintonb/name-bug
([`a57f853`](https://togithub.com/nestjs/swagger/commit/a57f853))
- Merge pull request
[#&#8203;2962](https://togithub.com/nestjs/swagger/issues/2962) from
nestjs/renovate/microsoft-tsdoc-0.x
([`d0a58e0`](https://togithub.com/nestjs/swagger/commit/d0a58e0))
- Merge pull request
[#&#8203;2985](https://togithub.com/nestjs/swagger/issues/2985) from
Azbesciak/patch-2
([`b165909`](https://togithub.com/nestjs/swagger/commit/b165909))
- Merge branch 'nestjs:master' into fix/array-enums-queries-or-params
([`d74136b`](https://togithub.com/nestjs/swagger/commit/d74136b))
- chore(deps): update dependency
[@&#8203;types/lodash](https://togithub.com/types/lodash) to v4.17.6
([`2245084`](https://togithub.com/nestjs/swagger/commit/2245084))
- (fix) invalid return value of refs shim
([`325ba73`](https://togithub.com/nestjs/swagger/commit/325ba73))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.9
([`29331c7`](https://togithub.com/nestjs/swagger/commit/29331c7))
- Merge branch 'nestjs:master' into feature/add-response-example
([`ff2cd2e`](https://togithub.com/nestjs/swagger/commit/ff2cd2e))
- Merge branch 'nestjs:master' into
feature/add-response-decorator-from-comment
([`3baf1de`](https://togithub.com/nestjs/swagger/commit/3baf1de))
- Merge branch 'nestjs:master' into feature/add-more-apiresponse
([`2358cae`](https://togithub.com/nestjs/swagger/commit/2358cae))
- chore(deps): update typescript-eslint monorepo to v7.14.1
([`bdc3fde`](https://togithub.com/nestjs/swagger/commit/bdc3fde))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.8
([`1805b12`](https://togithub.com/nestjs/swagger/commit/1805b12))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.7
([`24ca49c`](https://togithub.com/nestjs/swagger/commit/24ca49c))
- chore(deps): update dependency release-it to v17.4.0
([`1718d8b`](https://togithub.com/nestjs/swagger/commit/1718d8b))
- fix: add missing refs declaration in swagger-shim
([`bc1edc5`](https://togithub.com/nestjs/swagger/commit/bc1edc5))
- chore(deps): update node.js to v22
([`d286317`](https://togithub.com/nestjs/swagger/commit/d286317))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.6
([`0edbbfa`](https://togithub.com/nestjs/swagger/commit/0edbbfa))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.5
([`5b8f7fa`](https://togithub.com/nestjs/swagger/commit/5b8f7fa))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.4
([`53f7023`](https://togithub.com/nestjs/swagger/commit/53f7023))
- chore(deps): update typescript-eslint monorepo to v7.13.1
([`45cfe0d`](https://togithub.com/nestjs/swagger/commit/45cfe0d))
- chore(deps): update dependency ts-jest to v29.1.5
([`9372130`](https://togithub.com/nestjs/swagger/commit/9372130))
- chore(deps): update dependency lint-staged to v15.2.7
([`7e64f94`](https://togithub.com/nestjs/swagger/commit/7e64f94))
- chore(deps): update dependency lint-staged to v15.2.6
([`6f07fa0`](https://togithub.com/nestjs/swagger/commit/6f07fa0))
- chore(deps): update typescript-eslint monorepo to v7.13.0
([`6d25f5a`](https://togithub.com/nestjs/swagger/commit/6d25f5a))
- chore(deps): update dependency
[@&#8203;types/lodash](https://togithub.com/types/lodash) to v4.17.5
([`04f199a`](https://togithub.com/nestjs/swagger/commit/04f199a))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.2
([`61fdb23`](https://togithub.com/nestjs/swagger/commit/61fdb23))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.1
([`d4b66f8`](https://togithub.com/nestjs/swagger/commit/d4b66f8))
- chore(deps): update typescript-eslint monorepo to v7.12.0
([`ffa315a`](https://togithub.com/nestjs/swagger/commit/ffa315a))
- chore(deps): update nest monorepo to v10.3.9
([`3edab81`](https://togithub.com/nestjs/swagger/commit/3edab81))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.14.0
([`96858e9`](https://togithub.com/nestjs/swagger/commit/96858e9))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.13.0
([`b913771`](https://togithub.com/nestjs/swagger/commit/b913771))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.13
([`9c2e270`](https://togithub.com/nestjs/swagger/commit/9c2e270))
- fix(deps): update dependency
[@&#8203;microsoft/tsdoc](https://togithub.com/microsoft/tsdoc) to
^0.15.0
([`910b677`](https://togithub.com/nestjs/swagger/commit/910b677))
- chore(deps): update dependency ts-jest to v29.1.4
([`1cb5be5`](https://togithub.com/nestjs/swagger/commit/1cb5be5))
- fix(deps): update dependency swagger-ui-dist to v5.17.14
([`6a5bcf6`](https://togithub.com/nestjs/swagger/commit/6a5bcf6))
- chore(deps): update typescript-eslint monorepo to v7.11.0
([`a660e18`](https://togithub.com/nestjs/swagger/commit/a660e18))
- chore(deps): update dependency lint-staged to v15.2.5
([`3557547`](https://togithub.com/nestjs/swagger/commit/3557547))
- chore(deps): update dependency lint-staged to v15.2.4
([`4d93b7f`](https://togithub.com/nestjs/swagger/commit/4d93b7f))
- chore(deps): update dependency ts-jest to v29.1.3
([`ce63ee3`](https://togithub.com/nestjs/swagger/commit/ce63ee3))
- chore(deps): update typescript-eslint monorepo to v7.10.0
([`bcda39c`](https://togithub.com/nestjs/swagger/commit/bcda39c))
- chore(deps): update dependency release-it to v17.3.0
([`5324b0a`](https://togithub.com/nestjs/swagger/commit/5324b0a))
- chore(deps): update dependency
[@&#8203;types/lodash](https://togithub.com/types/lodash) to v4.17.4
([`0792ff0`](https://togithub.com/nestjs/swagger/commit/0792ff0))
- fix: Retain $ref when setting name property
([`94f565c`](https://togithub.com/nestjs/swagger/commit/94f565c))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.12
([`e6ea29f`](https://togithub.com/nestjs/swagger/commit/e6ea29f))
- chore(deps): update typescript-eslint monorepo to v7.9.0
([`3cbaee7`](https://togithub.com/nestjs/swagger/commit/3cbaee7))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.11
([`89d2f25`](https://togithub.com/nestjs/swagger/commit/89d2f25))
- chore(deps): update dependency
[@&#8203;fastify/static](https://togithub.com/fastify/static) to v7.0.4
([`9b1ce71`](https://togithub.com/nestjs/swagger/commit/9b1ce71))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.10
([`7de37fb`](https://togithub.com/nestjs/swagger/commit/7de37fb))
- chore(deps): update dependency
[@&#8203;types/lodash](https://togithub.com/types/lodash) to v4.17.1
([`ca821c2`](https://togithub.com/nestjs/swagger/commit/ca821c2))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.8
([`ad89618`](https://togithub.com/nestjs/swagger/commit/ad89618))
- feat: add function for enum types
([`afc47a7`](https://togithub.com/nestjs/swagger/commit/afc47a7))
- chore(deps): update typescript-eslint monorepo to v7.8.0
([`d5591ec`](https://togithub.com/nestjs/swagger/commit/d5591ec))
- chore(deps): update dependency release-it to v17.2.1
([`5748b7a`](https://togithub.com/nestjs/swagger/commit/5748b7a))
- chore(deps): update dependency supertest to v7
([`6242728`](https://togithub.com/nestjs/swagger/commit/6242728))
- chore(deps): update commitlint monorepo to v19.3.0
([`d501bed`](https://togithub.com/nestjs/swagger/commit/d501bed))
- chore(deps): update typescript-eslint monorepo to v7.7.1
([`ecf0c72`](https://togithub.com/nestjs/swagger/commit/ecf0c72))
- chore(deps): update nest monorepo to v10.3.8
([`32cba16`](https://togithub.com/nestjs/swagger/commit/32cba16))
- chore(deps): update typescript-eslint monorepo to v7.7.0
([`f2bc18a`](https://togithub.com/nestjs/swagger/commit/f2bc18a))
- chore(deps): update commitlint monorepo to v19.2.2
([`9fddb4b`](https://togithub.com/nestjs/swagger/commit/9fddb4b))
- chore(deps): update dependency release-it to v17.2.0
([`fd309b8`](https://togithub.com/nestjs/swagger/commit/fd309b8))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.7
([`b29dc1d`](https://togithub.com/nestjs/swagger/commit/b29dc1d))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.6
([`e0c0547`](https://togithub.com/nestjs/swagger/commit/e0c0547))
- chore(deps): update typescript-eslint monorepo to v7.6.0
([`ae7fbe7`](https://togithub.com/nestjs/swagger/commit/ae7fbe7))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.5
([`27d6895`](https://togithub.com/nestjs/swagger/commit/27d6895))
- fix: exclusive minimum and exclusive maximum are numbers
([`ba62457`](https://togithub.com/nestjs/swagger/commit/ba62457))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.4
([`b2a5ae9`](https://togithub.com/nestjs/swagger/commit/b2a5ae9))
- chore(deps): update dependency
[@&#8203;fastify/static](https://togithub.com/fastify/static) to v7.0.3
([`d0184d1`](https://togithub.com/nestjs/swagger/commit/d0184d1))
- Merge branch 'nestjs:master' into feature/add-response-example
([`8e7208f`](https://togithub.com/nestjs/swagger/commit/8e7208f))
- Merge branch 'nestjs:master' into
feature/add-response-decorator-from-comment
([`468ccba`](https://togithub.com/nestjs/swagger/commit/468ccba))
- Merge branch 'nestjs:master' into feature/add-more-apiresponse
([`28fb0ba`](https://togithub.com/nestjs/swagger/commit/28fb0ba))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.3
([`eedd401`](https://togithub.com/nestjs/swagger/commit/eedd401))
- chore(deps): update typescript-eslint monorepo to v7.5.0
([`c23dc05`](https://togithub.com/nestjs/swagger/commit/c23dc05))
- chore(deps): update dependency
[@&#8203;types/node](https://togithub.com/types/node) to v20.12.2
([`607eaa4`](https://togithub.com/nestjs/swagger/commit/607eaa4))
- chore(deps): update dependency
[@&#8203;fastify/static](https://togithub.com/fastify/static) to v7.0.2
([`1791ffc`](https://togithub.com/nestjs/swagger/commit/1791ffc))
- Optimize dict
([`e5adbe9`](https://togithub.com/nestjs/swagger/commit/e5adbe9))
- Add response example
([`713c48c`](https://togithub.com/nestjs/swagger/commit/713c48c))
- prettier
([`5ab17a9`](https://togithub.com/nestjs/swagger/commit/5ab17a9))
- add tests for enum schema types
([`11f6ac5`](https://togithub.com/nestjs/swagger/commit/11f6ac5))
- if enum is of type array, use the item type
([`7230915`](https://togithub.com/nestjs/swagger/commit/7230915))
- add params and queries to routes
([`16d1ea9`](https://togithub.com/nestjs/swagger/commit/16d1ea9))
- fix(plugin): ensure open-api docs generation for types named with
Promise or Observable
([`9465e0e`](https://togithub.com/nestjs/swagger/commit/9465e0e))
- Refactor
([`220ba97`](https://togithub.com/nestjs/swagger/commit/220ba97))
- docs: add docs on SwaggerCustomOptions
([`d56087c`](https://togithub.com/nestjs/swagger/commit/d56087c))
- test: add tests for Swagger UI disabling
([`25942eb`](https://togithub.com/nestjs/swagger/commit/25942eb))
- feat: add swaggerUiEnabled option to control activation of Swagger UI
([`8b2c6a3`](https://togithub.com/nestjs/swagger/commit/8b2c6a3))
- chore: remove unused swaggerDoc property in buildSwaggerHTML and adapt
usages ([`de2d695`](https://togithub.com/nestjs/swagger/commit/de2d695))
- docs: add deprecation warning on useless SwaggerCustomOptions
properties
([`c373d51`](https://togithub.com/nestjs/swagger/commit/c373d51))
- feat: add more api response
([`5a0020e`](https://togithub.com/nestjs/swagger/commit/5a0020e))
- feat: remove removing response decorator
([`445886f`](https://togithub.com/nestjs/swagger/commit/445886f))
- feat: update function name
([`746ee88`](https://togithub.com/nestjs/swagger/commit/746ee88))
- feat: update test
([`e3eed25`](https://togithub.com/nestjs/swagger/commit/e3eed25))
- feat: add error response decorator
([`d9e0454`](https://togithub.com/nestjs/swagger/commit/d9e0454))

</details>

<details>
<summary>chancejs/chancejs (chance)</summary>

###
[`v1.1.12`](https://togithub.com/chancejs/chancejs/compare/1.1.11...1.1.12)

[Compare
Source](https://togithub.com/chancejs/chancejs/compare/1.1.11...1.1.12)

</details>

<details>
<summary>lydell/eslint-plugin-simple-import-sort
(eslint-plugin-simple-import-sort)</summary>

###
[`v12.1.1`](https://togithub.com/lydell/eslint-plugin-simple-import-sort/blob/HEAD/CHANGELOG.md#Version-1211-2024-07-02)

[Compare
Source](https://togithub.com/lydell/eslint-plugin-simple-import-sort/compare/v12.1.0...v12.1.1)

This release adds a short `meta.docs.description` to each rule. Thanks
to fisker Cheung ([@&#8203;fisker](https://togithub.com/fisker))!

</details>

<details>
<summary>tediousjs/node-mssql (mssql)</summary>

###
[`v11.0.1`](https://togithub.com/tediousjs/node-mssql/releases/tag/v11.0.1)

[Compare
Source](https://togithub.com/tediousjs/node-mssql/compare/v11.0.0...v11.0.1)

##### Bug Fixes

- handle bigint types separately to int to avoid TypeError with BigInt
param
([b774084](https://togithub.com/tediousjs/node-mssql/commit/b774084e1500b757cb7fc6abe4bf387e91d78f78))

</details>

<details>
<summary>alphagov/notifications-node-client
(notifications-node-client)</summary>

###
[`v8.2.0`](https://togithub.com/alphagov/notifications-node-client/blob/HEAD/CHANGELOG.md#820---2024-05-17)

[Compare
Source](https://togithub.com/alphagov/notifications-node-client/compare/b4cbf61370173645698f2e0b3246a309ab293dd7...8.2.0)

- Add support for providing a custom underlying Axios client via
`setClient`.

</details>

<details>
<summary>pinojs/pino-http (pino-http)</summary>

###
[`v10.2.0`](https://togithub.com/pinojs/pino-http/releases/tag/v10.2.0)

[Compare
Source](https://togithub.com/pinojs/pino-http/compare/v10.1.0...v10.2.0)

#### What's Changed

- feat: add quietResLogger option by
[@&#8203;wms](https://togithub.com/wms) in
[https://github.com/pinojs/pino-http/pull/339](https://togithub.com/pinojs/pino-http/pull/339)
- fix: allow using non-lowercased custom levels by
[@&#8203;chernodub](https://togithub.com/chernodub) in
[https://github.com/pinojs/pino-http/pull/342](https://togithub.com/pinojs/pino-http/pull/342)

#### New Contributors

- [@&#8203;wms](https://togithub.com/wms) made their first contribution
in
[https://github.com/pinojs/pino-http/pull/339](https://togithub.com/pinojs/pino-http/pull/339)
- [@&#8203;chernodub](https://togithub.com/chernodub) made their first
contribution in
[https://github.com/pinojs/pino-http/pull/342](https://togithub.com/pinojs/pino-http/pull/342)

**Full Changelog**:
pinojs/pino-http@v10.1.0...v10.2.0

</details>

<details>
<summary>kulshekhar/ts-jest (ts-jest)</summary>

###
[`v29.2.2`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2922-2024-07-10)

[Compare
Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.2.1...v29.2.2)

###
[`v29.2.1`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2921-2024-07-10)

[Compare
Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.2.0...v29.2.1)

###
[`v29.2.0`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2920-2024-07-08)

[Compare
Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.1.5...v29.2.0)

##### Bug Fixes

- fix: don't show warning message with Node16/NodeNext
([99c4f49](https://togithub.com/kulshekhar/ts-jest/commit/99c4f49)),
closes
[#&#8203;4266](https://togithub.com/kulshekhar/ts-jest/issues/4266)

##### Features

- feat(cli): allow migrating cjs `presets` to `transform` config
([22fb027](https://togithub.com/kulshekhar/ts-jest/commit/22fb027))
- feat(presets): add util functions to create ESM presets
([06f78ed](https://togithub.com/kulshekhar/ts-jest/commit/06f78ed))
- feat(presets): add util functions to create CJS presets
([f9cc3c0](https://togithub.com/kulshekhar/ts-jest/commit/f9cc3c0))

##### Code refactoring

- refactor: replace lodash deps with native js implementation
([40f1708](https://togithub.com/kulshekhar/ts-jest/commit/40f1708))
- refactor: use `TsJestTransformerOptions` type everywhere possibly
([7d001be](https://togithub.com/kulshekhar/ts-jest/commit/7d001be))
- refactor(cli): use new preset util functions to initialize test config
([c2b56ca](https://togithub.com/kulshekhar/ts-jest/commit/c2b56ca))
- refactor(presets): use create preset util functions for cjs presets
([922d6d0](https://togithub.com/kulshekhar/ts-jest/commit/922d6d0))
- test: switch `react-app` to use Vite
([827c8ad](https://togithub.com/kulshekhar/ts-jest/commit/827c8ad))

</details>

<details>
<summary>Microsoft/TypeScript (typescript)</summary>

###
[`v5.5.3`](https://togithub.com/Microsoft/TypeScript/compare/v5.5.2...f0e992167440686f948965e5441a918b34251886)

[Compare
Source](https://togithub.com/Microsoft/TypeScript/compare/v5.5.2...v5.5.3)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/UK-Export-Finance/mdm-api).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abhi Markan <32125108+abhi-markan@users.noreply.github.com>
Co-authored-by: Abhi Markan <amarkan@ukexportfinance.gov.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants