Commit Graph

4469 Commits

Author SHA1 Message Date
Kamil Mysliwiec
3a2b180ddb Merge pull request #16247 from nestjs/renovate/fastify-5.x
fix(deps): update dependency fastify to v5.7.2
2026-01-28 20:48:29 +01:00
Lee Donghyun
db9494a2ad perf(core): use set instead of array for module registry lookup 2026-01-27 12:08:57 +09:00
renovate[bot]
e2ef54b02b fix(deps): update dependency fastify to v5.7.2 2026-01-26 13:39:29 +00:00
Lee Donghyun
d88856c3fa test(common): add unit tests for class serializer interceptor
Add comprehensive unit tests for ClassSerializerInterceptor which
previously had no test coverage despite being a public API.

Test coverage includes:
- constructor with custom transformer package injection
- intercept() with RxJS pipe and context options merging
- serialize() for arrays, objects, and StreamableFile handling
- transformToPlain() with type conversion and instanceOf checks
- getContextOptions() with metadata precedence (handler > class)
- Edge cases: null/undefined, mixed arrays, Date objects, primitives

Total: 25+ test cases covering all public methods and edge cases.
2026-01-26 00:38:25 +09:00
Lee Donghyun
909b504d2d test(core): add unit tests for discovery service
Add comprehensive unit tests for DiscoveryService which previously
had no test coverage despite being a public API.

Test coverage includes:
- createDecorator() static method with unique key generation
- getProviders() with metadataKey and include options filtering
- getControllers() with module-based filtering
- getMetadataByDecorator() with method and class metadata
- getModules() protected method with include filtering
- Edge cases: empty modules, undefined instances, null checks

Total: 30+ test cases covering all public methods and edge cases.
2026-01-26 00:38:14 +09:00
Kamil Mysliwiec
a1f6162971 Merge pull request #16202 from som14062005/fix/issue-16195
fix(common): exclude built-in primitives from strip proto keys
2026-01-23 09:44:35 +01:00
renovate[bot]
58c761a10c fix(deps): update dependency cors to v2.8.6 2026-01-22 17:56:13 +00:00
Kamil Myśliwiec
ed8370697d chore: add type cast in nats emitter 2026-01-22 09:34:45 +01:00
som14062005
82226347fd refactor: move built-in types to module-level constant 2026-01-21 19:42:22 +05:30
neo
979a8e2f04 fix(common): Fix skipping maxArrayLength and maxStringLength option
Fixes #16229
2026-01-21 16:00:28 +09:00
renovate[bot]
4fa9409366 fix(deps): update dependency fastify to v5.7.1 2026-01-16 09:17:26 +00:00
dependabot[bot]
ffddbfe71e chore(deps): bump fastify from 5.6.2 to 5.7.0
Bumps [fastify](https://github.com/fastify/fastify) from 5.6.2 to 5.7.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v5.6.2...v5.7.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-version: 5.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-16 00:53:51 +00:00
som14062005
8fb17f517c fix(common): exclude built-in primitives from strip proto keys
Skip constructor deletion for Date, RegExp, Error, Map, Set, WeakMap, and WeakSet to fix Jest useFakeTimers compatibility. Maintains prototype pollution protection for regular objects.

Fixes #16195
2026-01-16 02:00:15 +05:30
som14062005
16296b9ce8 fix(common): exclude built-in primitives from strip proto keys
Skip constructor deletion for Date, RegExp, Error, Map, Set, WeakMap, and WeakSet to fix Jest useFakeTimers compatibility. Maintains prototype pollution protection for regular objects.

Fixes #16195
2026-01-15 21:30:09 +05:30
Kamil Myśliwiec
96932ad073 chore(release): publish v11.1.12 release 2026-01-15 09:29:44 +01:00
Kamil Mysliwiec
09e96bdee7 Merge pull request #16187 from iamkanguk97/fix/file-type-under-window-os
fix(common): regression in loading file-type under Windows OS
2026-01-15 09:27:08 +01:00
Kamil Myśliwiec
4fdeb0b504 style: address lint issues 2026-01-15 09:25:17 +01:00
Kamil Myśliwiec
e5616c2b92 feat: apply instance decorator to all enhancers 2026-01-14 19:58:10 +01:00
iamkanguk97
a52e60820e fix(common): convert absolute paths to urls for esm loading
Uses pathToFileURL to convert file system paths to proper URLs
before passing to the ESM loader, ensuring cross-platform compatibility.

Fixes #16179
2026-01-12 00:05:45 +09:00
dependabot[bot]
eac120336f chore(deps): bump ws from 8.18.3 to 8.19.0
Bumps [ws](https://github.com/websockets/ws) from 8.18.3 to 8.19.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.18.3...8.19.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 8.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 00:01:48 +00:00
renovate[bot]
8a5be22e94 fix(deps): update dependency file-type to v21.3.0 2026-01-04 01:44:43 +00:00
renovate[bot]
73f71c45e8 fix(deps): update dependency find-my-way to v9.4.0 2026-01-03 13:53:40 +00:00
Kamil Myśliwiec
585f55f0e4 chore: revert lerna version 2025-12-29 14:30:25 +01:00
Kamil Myśliwiec
fef323b2c9 chore(release): publish v11.1.11 release 2025-12-29 14:26:08 +01:00
Kamil Myśliwiec
d1e55d082f style: disable linter for fastify middie external 2025-12-29 14:19:57 +01:00
Kamil Myśliwiec
c4cedda15a fix(platform-fastify): middie bypassing through decoded chars 2025-12-29 13:44:26 +01:00
coti-z
15198c650d fix(core): add missing catch handler for forward-ref provider resolution
When forwardRef provider fails to load in a non-static context
(REQUEST/TRANSIENT scope, the error was silently swallowed because the
promise was fire-and-forget without catch handler

This fix add catch handler that propagate the error through
ettlementSignal, ensuring proper error handling and preventing unhandled
promise rejection
2025-12-28 18:47:47 +09:00
Kamil Mysliwiec
beb852aba6 Merge pull request #16125 from nestjs/renovate/socket.io-packages
fix(deps): update socket.io packages to v4.8.3
2025-12-26 13:38:42 +01:00
Kamil Mysliwiec
990b1d4b92 Merge pull request #16130 from nestjs/renovate/fastify-static-9.x
fix(deps): update dependency @fastify/static to v9
2025-12-26 13:38:14 +01:00
renovate[bot]
9b09e38e7d fix(deps): update dependency @fastify/static to v9 2025-12-26 00:03:19 +00:00
dependabot[bot]
a4a50d4fc4 chore(deps): bump file-type from 21.1.1 to 21.2.0
Bumps [file-type](https://github.com/sindresorhus/file-type) from 21.1.1 to 21.2.0.
- [Release notes](https://github.com/sindresorhus/file-type/releases)
- [Commits](https://github.com/sindresorhus/file-type/compare/v21.1.1...v21.2.0)

---
updated-dependencies:
- dependency-name: file-type
  dependency-version: 21.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-26 00:01:55 +00:00
renovate[bot]
462d02d803 fix(deps): update socket.io packages to v4.8.3 2025-12-24 00:03:15 +00:00
dependabot[bot]
d6da0401e7 chore(deps): bump socket.io from 4.8.1 to 4.8.2
Bumps [socket.io](https://github.com/socketio/socket.io) from 4.8.1 to 4.8.2.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/socket.io@4.8.1...socket.io@4.8.2)

---
updated-dependencies:
- dependency-name: socket.io
  dependency-version: 4.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-23 00:03:08 +00:00
Kamil Myśliwiec
de5e0262d2 chore(@nestjs) publish v11.1.10 release 2025-12-22 09:31:35 +01:00
Kamil Mysliwiec
fd46a65dc8 Merge branch 'master' into fix/file-type-validator-esm-error 2025-12-21 18:24:01 +01:00
Kamil Mysliwiec
4da3e2ce0f Update packages/common/pipes/file/file-type.validator.ts 2025-12-21 18:23:23 +01:00
Kamil Mysliwiec
cc2659aba1 Merge pull request #16060 from Jo-Minseok/feat/filevalidator-custom-message
feat(common): add message property to file type validator
2025-12-21 18:21:45 +01:00
mag123c
2c5221dac0 refactor(core): improve is-static method readability 2025-12-21 11:08:34 +09:00
mag123c
351f977b3d fix(core): instantiate nested transient providers in static context 2025-12-19 17:14:00 +09:00
evgeniy.chernomortsev
c97b2ce4fe fix(common): improve error handling in FileTypeValidator
Add warning logs when file-type package fails to load due to ESM
import issues. This helps users debug issues when running tests
with Jest without --experimental-vm-modules flag.

When loading fails and fallbackToMimetype is enabled, the validator
now correctly falls back to mimetype comparison instead of silently
returning false.

Closes #15055
2025-12-17 13:40:37 +04:00
J_Coder
b6aa4a2311 test(common): add tests for dynamic custom error message 2025-12-16 02:56:38 +09:00
J_Coder
6c2f2bf254 feat(common): add error message factory function and shared context type 2025-12-16 02:53:59 +09:00
Kamil Mysliwiec
f3fb0c2c44 Merge pull request #16079 from liu-jin-yi/fix/issue-16050
fix: enhance ValidationPipe to prevent prototype pollution
2025-12-15 11:40:26 +01:00
Kamil Myśliwiec
61d728bfd6 style: address linter errors 2025-12-15 10:37:27 +01:00
Kamil Mysliwiec
a0d79d8528 Merge pull request #15721 from pythonjsgo/feat/sse-promise-support
feat(core): add Promise<Observable> support for SSE handlers
2025-12-15 10:12:00 +01:00
Kamil Mysliwiec
adff255d89 Merge pull request #16005 from malkovitc/fix/resolve-each-multiple-providers
fix(core): resolve all providers when using resolve() with each option
2025-12-15 10:11:24 +01:00
Kamil Mysliwiec
4d57c214d5 Merge pull request #16072 from shash-hq/fix/grpc-observable-return
fix(microservices): fix grpc stream method return type
2025-12-15 10:06:51 +01:00
liujinyi
c995f70f02 fix: enhance ValidationPipe to prevent prototype pollution by stripping 'constructor' and 'prototype' properties 2025-12-15 16:48:53 +08:00
shash-hq
def58e0581 fix(common): handle legacy node version in file validator 2025-12-15 11:11:04 +05:30
shash-hq
bd36c2832d fix(common): resolve file-type path explicitly #15270 2025-12-15 09:08:27 +05:30