Repository navigation
chore(): v8 major release [WIP] - #6349
Conversation
build: update package dependencies fix: use bindAsync in server-grpc test(): server gprc port already listen error test(): remove surplus commit feat: fix packages # Conflicts: # package-lock.json # package.json # sample/04-grpc/package-lock.json # sample/04-grpc/package.json
New global prefix option to exclude some routes as a string or a RouteInfo
For class providers use a class reference instead of a class name as an injection token to address dependency injection conflicts when two classes share the same name. resolve #5591
Added a method to set name property of exception object equal to class name which currently is always Error Closes #5809
Added a method to set name property of exception object equal to class name which currently is always Error. Updated tests. Closes #5809
Added a method to set name property of exception object equal to class name which currently is always Error. Updated tests. Closes #5809
Add ability to extract a paramater from the MessageBody decorator.
…ooleks-fix/injector
|
|
|
Alpha 4 is working fine for me with Nats 2.x :) @kamilmysliwiec I see there are new logs (Nats Ping, Nats reconnect). Is it possible to configure this logging? E.g. I would like to not see the ping in the logs (over days and weeks it will spam the logs) and I want to see only one time reconnect (currently it spams one per second which would result in massive logs after 1 hour downtime). |
|
@kamilmysliwiec to use v8 is enough to change the version of the packages in package.json or we need to do something else? |
|
@gperdomor there are a few minor breaking changes. You can find the migration guide & instructions on the |
Thanks for the response, one last question, I notice that @nestjs/passport has no v8 version, the actual version is usable with the v8 alpha? |
This page https://github.com/nestjs/docs.nestjs.com/tree/8.0.0 seems to be broken. Is there a reference guide I can refer to for move from v7.5 to v8 |
|
Thank you @wrslatz |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
N/A
What is the new behavior?
Features
Loggerwrapper class andConsoleLoggerclass, add buffering logs feature (buffer init logs and flush them out when a custom logger is assigned), add log level output Add Log Level Output to built in Logger #6172, support log levels feature Log levels for the default logger are very unconventional and need careful clarification in the docs. docs.nestjs.com#1613StreamableFileclass for streaming files from controller routes (cross-platform) feat(core): add file send capability #5278ParseFloatPipeandParseEnumPipeclasses feat(common): add parse float and enum pipes #6232RouterModulefor defining per-module controller prefixes@EventPattern()can be applied to multiple methods) feat(microservices): support multiple event subscribers #6334@Payload()decorator feat(websockets): messagebody param extract #5975@MessageBody()decoratorWsAdapter) support registering gateways on different paths and let them share the same HTTP server fix(websockets/platform-ws): support ws servers running on different paths #6321Improvements
BaseExceptionFiltersupportshttp-errors(and any other error objects that have thestatusCodeproperty specified) out of the box now cdd51b0Error.nameproperty to the name of the class (all exceptions that inherit from the built-inHttpException) Fix set name property of exception object equal to class name #5859Bug fixes
mixin()function fix(types) adds types formixin#6216router.all()method for routes annotated with the@All()decorator (instead ofrouter.use()) fix(core): use "router.all" method when RequestMethod is set to ALL #6237listen()) feat(core): change listen to reject on server bind failures #3360@nestjs/platform-socket.ioas an optional peer dependency to support PnP mode fix(websockets): require @nestjs/platform-socket.io correctly #6217Dependencies
@grpc/grpc-jspackage (instead ofgrpc) feat: move from grpc to @grpc/grpc-js #4806Deprecations
HttpModuleto remove hard dependency on theaxioslibrary.HttpModuleis published as a new@nestjs/axiospackage nowlistenAsync()(uselisten()) andstartAllMicroservicesAsync()(usestartAllMicroservices()) methodslistenAsync()method (uselisten()instead)Does this PR introduce a breaking change?
Other information