4492 Commits

Author SHA1 Message Date
renovate[bot]
356457e2c0 fix(deps): update dependency find-my-way to v9.5.0 2026-02-21 12:49:34 +00:00
Kamil Myśliwiec
53e1cc6360 test: fix broken unit transform pattern test 2026-02-20 11:51:45 +01:00
Kamil Myśliwiec
ca7d95a219 fix: transform pattern regression 2026-02-20 11:25:23 +01:00
Kamil Mysliwiec
cd7501b5c8 Merge pull request #16402 from nestjs/fix/pattern-max-depth-keys
fix(microservices): introuduce max pattern depth and object complexity
2026-02-20 10:49:32 +01:00
Kamil Myśliwiec
e099625a33 fix(microservices): introuduce max pattern depth and object complexity 2026-02-20 10:48:05 +01:00
Weixie Cui
3a74946f63 fix: if indexOf return 0 will if will be falsy 2026-02-20 14:00:08 +08:00
Kamil Myśliwiec
5d31df7eb6 chore(release): publish v11.1.14 release 2026-02-17 17:24:39 +01:00
Kamil Myśliwiec
d74e9a8c5f fix(fastify): fastify middleware bypass cve 2026-02-17 17:22:01 +01:00
Kamil Mysliwiec
9f55de66ed Merge pull request #16326 from suuuuuuminnnnnn/test/kafka-run-options-forwarding
test(microservices): verify kafka run options forwarding
2026-02-09 13:57:15 +01:00
suuuuuuminnnnnn
e0c40e4a1b test(microservices): verify kafka run options forwarding 2026-02-09 00:35:06 +09:00
Kamil Mysliwiec
829d326727 Merge pull request #16314 from SpencerKaiser/bugfix/cors-types
fix(common): change requestOrigin type
2026-02-06 12:06:34 +01:00
Spencer Kaiser
5058600ae3 fix(common): change requestOrigin type
fix(common): change requestOrigin type
2026-02-04 20:48:36 -06:00
JulienDuf
91212b20d3 fix: return type error 2026-02-04 16:01:55 -05:00
JulienDuf
804d27bbe4 fix: invalid context when no stack trace is provided 2026-02-04 14:20:21 -05:00
Kamil Myśliwiec
8d1c16c1ca chore: update readme 2026-02-03 14:07:38 +01:00
Kamil Myśliwiec
e3a958ac3e chore(release): publish v11.1.13 release 2026-02-03 13:47:36 +01:00
Kamil Mysliwiec
db90c3fb67 Merge pull request #16286 from suuuuuuminnnnnn/feat/microservices-mqtt-per-handler-qos
feat(microservices): support per-handler qos in mqtt
2026-02-03 13:42:33 +01:00
suuuuuuminnnnnn
f5148709ff feat(microservices): support per-handler qos in mqtt 2026-02-03 10:41:51 +09:00
renovate[bot]
fba0de79f2 fix(deps): update dependency fastify to v5.7.4 2026-02-02 19:31:05 +00:00
Kamil Mysliwiec
346c954312 Merge pull request #16262 from jobnow/feat/microservices-configurable-max-buffer-size
Feat/microservices configurable max buffer size
2026-02-02 14:20:43 +01:00
Ricardo
a5be2710ee refactor(microservices): Use options object for JsonSocket constructor
- Replace maxBufferSize parameter with JsonSocketOptions object
- Add JsonSocketOptions interface for better extensibility
- Update ClientTCP and ServerTCP to pass options object
- Update all tests to use new options format

Addresses review feedback from @kamilmysliwiec
2026-01-28 17:12:46 -03:00
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
Ricardo
5dd0a9ab8c test(microservices): Fix maxBufferSize tests
- Use valid JSON strings in test data
- Account for packet header length in buffer size calculations
- Fix chunked data test to properly accumulate buffer
2026-01-28 15:22:39 -03:00
Ricardo
2c62817436 feat(microservices): Add configurable maxBufferSize option
- Add maxBufferSize option to TcpOptions and TcpClientOptions interfaces
- Modify JsonSocket to accept maxBufferSize as constructor parameter
- Update ClientTCP and ServerTCP to pass maxBufferSize to JsonSocket
- Add comprehensive tests for maxBufferSize functionality
- Maintain backward compatibility with default value (128MB in characters)

Closes #16256
2026-01-28 15:21:04 -03: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