You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/migration.md
+20-22Lines changed: 20 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,6 @@ To learn more about the new features we've added in the v8, check out this [link
8
8
The `HttpModule` exported from the `@nestjs/common` package has been deprecated and will be removed in the next major release.
9
9
Instead, please use the `@nestjs/axios` package (otherwise, there are no API differences).
10
10
11
-
#### Terminus
12
-
13
-
##### HttpHealthIndicator
14
-
15
-
`HttpHealthIndicator` requires `@nestjs/axios` to be installed as well as `HttpModule` to be imported. Otherwise, there are no API differences.
16
-
17
-
##### TerminusModule.forRoot{Async}
18
-
19
-
The deprecated `TerminusModule.forRootAsync` has been removed. To migrate, check out the `@nestjs/terminus` v7.x.x [upgrade guide](https://docs.nestjs.com/v7/migration-guide#terminus)
20
-
21
11
#### gRPC strategy
22
12
23
13
The original Node gRPC library (`grpc`) has been deprecated and will no longer receive feature updates.
@@ -32,20 +22,26 @@ To upgrade, make sure to install the latest version of the `nats` package (`npm
@@ -62,7 +58,6 @@ Instead, simply use the `listen()` and `startAllMicroservices()` methods (they a
62
58
The `@nestjs/platform-socket.io` package was upgraded to use the `[email protected]` version (Nest v7 was based on the `socket.io` v2).
63
59
To learn more, check out these articles: [Socket.io 3 Release](https://socket.io/blog/socket-io-3-release/) and [Socket.io 4 Release](https://socket.io/blog/socket-io-4-release/).
64
60
65
-
66
61
#### Logger breaking changes
67
62
68
63
For better extensibility, we separated out the `Logger` and `ConsoleLogger` classes ([PR](https://github.com/nestjs/nest/pull/6221), learn more in the [Logging](/techniques/logger) chapter). If your application uses a custom logger class that extends the built-in `Logger`, you should update it to extend the `ConsoleLogger` now.
@@ -79,7 +74,6 @@ Now:
79
74
exportclassMyLoggerextendsConsoleLogger {}
80
75
```
81
76
82
-
83
77
#### `@nestjs/config` package
84
78
85
79
There was a minor breaking change in the `registerAs` function (typings), you can see what has changed in [this PR](https://github.com/nestjs/config/pull/173).
@@ -90,6 +84,10 @@ There might be some small differences in how your auto-generated schema file loo
90
84
91
85
Also, all `HttpException` errors thrown from your resolvers will be now automatically mapped to the corresponding `ApolloError` instances, unless you set the `autoTransformHttpErrors` configuration property (in the options object you pass into the `GraphQLModule#forRoot()` method) to `false`.
92
86
87
+
#### `@nestjs/terminus` package
88
+
89
+
`HttpHealthIndicator` requires `@nestjs/axios` to be installed as well as `HttpModule` to be imported. Also, the deprecated `TerminusModule.forRootAsync` has been removed. To migrate, check out the `@nestjs/terminus` v7.x.x [upgrade guide](https://docs.nestjs.com/v7/migration-guide#terminus).
90
+
93
91
#### RxJS
94
92
95
93
Make sure to upgrade to the latest version of the `rxjs` package (v7).
<p>If you need to add some custom logic around the serialization of responses on the client side, you can use a custom class that extends the <code>ClientProxy</code> class or one of its child classes. For modifying successful requests you can override the <code>serializeResponse</code> method, and for modifying any errors that go through this client you can override the <code>serializeError</code> method. To make use of this custom class, you can pass the class itself to the <code>ClientsModule.register()</code> method using the <code>customClass</code> property. Below is an example of a custom <code>ClientProxy</code> that serializes each error into an <code>RpcException</code>.</p>
0 commit comments