|
| 1 | +## 3.0.3 |
| 2 | + |
| 3 | +* Require Dart 3.4 |
| 4 | +* Move to `dart-lang/tools` monorepo. |
| 5 | + |
| 6 | +## 3.0.2 |
| 7 | + |
| 8 | +* Switch to using `package:lints`. |
| 9 | +* Address a few analysis hint violations. |
| 10 | +* Populate the pubspec `repository` field. |
| 11 | + |
| 12 | +## 3.0.1 |
| 13 | + |
| 14 | +* Fix a bug where a `null` result to a request caused an exception. |
| 15 | + |
| 16 | +## 3.0.0 |
| 17 | + |
| 18 | +* Migrate to null safety. |
| 19 | +* Accept responses even if the server converts the ID to a String. |
| 20 | + |
| 21 | +## 2.2.2 |
| 22 | + |
| 23 | +* Fix `Peer.close()` throwing `Bad state: Future already completed`. |
| 24 | + |
| 25 | +## 2.2.1 |
| 26 | + |
| 27 | +* Fix `Peer` requests not terminating when the underlying channel is closed. |
| 28 | + |
| 29 | +## 2.2.0 |
| 30 | + |
| 31 | +* Added `strictProtocolChecks` named parameter to `Server` and `Peer` |
| 32 | + constructors. Setting this parameter to false will result in the server not |
| 33 | + rejecting requests missing the `jsonrpc` parameter. |
| 34 | + |
| 35 | +## 2.1.1 |
| 36 | + |
| 37 | +* Fixed issue where throwing `RpcException.methodNotFound` in an asynchronous |
| 38 | + fallback handler would not result in the next fallback being executed. |
| 39 | +* Updated minimum SDK to Dart `2.2.0`. |
| 40 | + |
| 41 | +## 2.1.0 |
| 42 | + |
| 43 | +* `Server` and related classes can now take an `onUnhandledError` callback to |
| 44 | + notify callers of unhandled exceptions. |
| 45 | + |
| 46 | +## 2.0.10 |
| 47 | + |
| 48 | +* Allow `stream_channel` version 2.x |
| 49 | + |
| 50 | +## 2.0.8 |
| 51 | + |
| 52 | +* Updated SDK version to 2.0.0-dev.17.0 |
| 53 | + |
| 54 | +## 2.0.7 |
| 55 | + |
| 56 | +* When a `Client` is closed before a request completes, the error sent to that |
| 57 | + request's `Future` now includes the request method to aid in debugging. |
| 58 | + |
| 59 | +## 2.0.6 |
| 60 | + |
| 61 | +* Internal changes only. |
| 62 | + |
| 63 | +## 2.0.5 |
| 64 | + |
| 65 | +* Internal changes only. |
| 66 | + |
| 67 | +## 2.0.4 |
| 68 | + |
| 69 | +* `Client.sendRequest()` now throws a `StateError` if the client is closed while |
| 70 | + the request is in-flight. This avoids dangling `Future`s that will never be |
| 71 | + completed. |
| 72 | + |
| 73 | +* Both `Client.sendRequest()` and `Client.sendNotification()` now throw |
| 74 | + `StateError`s if they're called after the client is closed. |
| 75 | + |
| 76 | +## 2.0.3 |
| 77 | + |
| 78 | +* Fix new strong-mode warnings. |
| 79 | + |
| 80 | +## 2.0.2 |
| 81 | + |
| 82 | +* Fix all strong-mode warnings. |
| 83 | + |
| 84 | +## 2.0.1 |
| 85 | + |
| 86 | +* Fix a race condition in which a `StateError` could be top-leveled if |
| 87 | + `Peer.close()` was called before the underlying channel closed. |
| 88 | + |
| 89 | +## 2.0.0 |
| 90 | + |
| 91 | +* **Breaking change:** all constructors now take a `StreamChannel` rather than a |
| 92 | + `Stream`/`StreamSink` pair. |
| 93 | + |
| 94 | +* `Client.sendRequest()` and `Client.sendNotification()` no longer throw |
| 95 | + `StateError`s after the connection has been closed but before `Client.close()` |
| 96 | + has been called. |
| 97 | + |
| 98 | +* The various `close()` methods may now be called before their corresponding |
| 99 | + `listen()` methods. |
| 100 | + |
| 101 | +* The various `close()` methods now wait on the result of closing the underlying |
| 102 | + `StreamSink`. Be aware that [in some circumstances][issue 19095] |
| 103 | + `StreamController`s' `Sink.close()` futures may never complete. |
| 104 | + |
| 105 | +[issue 19095]: https://github.com/dart-lang/sdk/issues/19095 |
| 106 | + |
| 107 | +## 1.2.0 |
| 108 | + |
| 109 | +* Add `Client.isClosed` and `Server.isClosed`, which make it possible to |
| 110 | + synchronously determine whether the connection is open. In particular, this |
| 111 | + makes it possible to reliably tell whether it's safe to call |
| 112 | + `Client.sendRequest`. |
| 113 | + |
| 114 | +* Fix a race condition in `Server` where a `StateError` could be thrown if the |
| 115 | + connection was closed in the middle of handling a request. |
| 116 | + |
| 117 | +* Improve stack traces for error responses. |
| 118 | + |
| 119 | +## 1.1.1 |
| 120 | + |
| 121 | +* Update the README to match the current API. |
| 122 | + |
| 123 | +## 1.1.0 |
| 124 | + |
| 125 | +* Add a `done` getter to `Client`, `Server`, and `Peer`. |
| 126 | + |
| 127 | +## 1.0.0 |
| 128 | + |
| 129 | +* Add a `Client` class for communicating with external JSON-RPC 2.0 servers. |
| 130 | + |
| 131 | +* Add a `Peer` class that's both a `Client` and a `Server`. |
| 132 | + |
| 133 | +## 0.1.0 |
| 134 | + |
| 135 | +* Remove `Server.handleRequest()` and `Server.parseRequest()`. Instead, `new |
| 136 | + Server()` takes a `Stream` and a `StreamSink` and uses those behind-the-scenes |
| 137 | + for its communication. |
| 138 | + |
| 139 | +* Add `Server.listen()`, which causes the server to begin listening to the |
| 140 | + underlying request stream. |
| 141 | + |
| 142 | +* Add `Server.close()`, which closes the underlying request stream and response |
| 143 | + sink. |
| 144 | + |
| 145 | +## 0.0.2+3 |
| 146 | + |
| 147 | +* Widen the version constraint for `stack_trace`. |
| 148 | + |
| 149 | +## 0.0.2+2 |
| 150 | + |
| 151 | +* Fix error response to include data from `RpcException` when not a map. |
0 commit comments