|
13 | 13 | Starting with version <code>0.5.0</code>, the library introduces major changes to the service APIs. |
14 | 14 | The following declarations will be gradually restricted: |
15 | 15 | </p> |
| 16 | + <warning> |
| 17 | + String mode will be enforced in the <code>0.8.0</code> release. |
| 18 | + </warning> |
16 | 19 | <chapter title="StateFlow and SharedFlow" id="stateflow-and-sharedflow"> |
17 | | - <p>Deprecation level: <code>WARNING</code></p> |
| 20 | + <p>Deprecation level: <code>ERROR</code></p> |
18 | 21 | <code-block lang="kotlin"> |
19 | 22 | @Rpc |
20 | 23 | interface Service : RemoteService { |
|
26 | 29 | </chapter> |
27 | 30 |
|
28 | 31 | <chapter title="Fields" id="fields"> |
29 | | - <p>Deprecation level: <code>WARNING</code></p> |
| 32 | + <p>Deprecation level: <code>ERROR</code></p> |
30 | 33 | <code-block lang="kotlin"> |
31 | 34 | @Rpc |
32 | 35 | interface Service : RemoteService { |
|
37 | 40 | </code-block> |
38 | 41 | </chapter> |
39 | 42 | <chapter title="Nested Flows" id="nested-flows"> |
40 | | - <p>Deprecation level: <code>WARNING</code></p> |
| 43 | + <p>Deprecation level: <code>ERROR</code></p> |
41 | 44 | <code-block lang="kotlin"> |
42 | 45 | @Rpc |
43 | 46 | interface Service : RemoteService { |
|
48 | 51 | </code-block> |
49 | 52 | </chapter> |
50 | 53 | <chapter title="Not top-level server flows" id="not-top-level-server-flows"> |
51 | | - <p>Deprecation level: <code>WARNING</code></p> |
| 54 | + <p>Deprecation level: <code>ERROR</code></p> |
52 | 55 |
|
53 | 56 | <code-block lang="kotlin"> |
54 | 57 | data class SpotifyWrapped(val myMusicFlow: Flow<Rap>, val extra: Data) |
|
64 | 67 | </code-block> |
65 | 68 | </chapter> |
66 | 69 | <chapter title="Non-suspending server flows" id="non-suspending-server-flows"> |
67 | | - <p>Deprecation level: <code>WARNING</code></p> |
| 70 | + <p>Deprecation level: <code>ERROR</code></p> |
68 | 71 |
|
69 | 72 | <code-block lang="kotlin"> |
70 | 73 | data class SpotifyWrapped(val extra: Data) |
|
78 | 81 | </code-block> |
79 | 82 | </chapter> |
80 | 83 | <chapter title="Stream scopes management" id="stream-scopes-management"> |
81 | | - <p>Deprecation level: <code>WARNING</code></p> |
| 84 | + <p>Deprecation level: <code>ERROR</code></p> |
82 | 85 |
|
83 | 86 | <p> |
84 | 87 | The next stream scope management structures are deprecated due to the introduction of |
|
158 | 161 |
|
159 | 162 | rpc { |
160 | 163 | strict { |
161 | | - stateFlow = RpcStrictMode.WARNING |
162 | | - sharedFlow = RpcStrictMode.WARNING |
163 | | - nestedFlow = RpcStrictMode.WARNING |
164 | | - notTopLevelServerFlow = RpcStrictMode.WARNING |
165 | | - fields = RpcStrictMode.WARNING |
166 | | - suspendingServerStreaming = RpcStrictMode.WARNING |
167 | | - streamScopedFunctions = RpcStrictMode.WARNING |
| 164 | + stateFlow = RpcStrictMode.ERROR |
| 165 | + sharedFlow = RpcStrictMode.ERROR |
| 166 | + nestedFlow = RpcStrictMode.ERROR |
| 167 | + notTopLevelServerFlow = RpcStrictMode.ERROR |
| 168 | + fields = RpcStrictMode.ERROR |
| 169 | + suspendingServerStreaming = RpcStrictMode.ERROR |
| 170 | + streamScopedFunctions = RpcStrictMode.ERROR |
168 | 171 | } |
169 | 172 | } |
170 | 173 | </code-block> |
171 | 174 | <p> |
172 | | - Modes <code>RpcStrictMode.NONE</code> and <code>RpcStrictMode.ERROR</code> are available. |
| 175 | + Modes <code>RpcStrictMode.NONE</code> and <code>RpcStrictMode.WARNING</code> are available. |
173 | 176 | </p> |
174 | 177 |
|
175 | 178 | <warning> |
|
0 commit comments