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: CHANGELOG.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,9 @@ Encoding can be done via `JSON.encode!/1` and `JSON.encode_to_iodata!/1` functio
174
174
|`%{atom() => _}`| Object |
175
175
|`%{integer() => _}`| Object |
176
176
177
-
You may also implement the `JSON.Encoder` protocol for custom data structures. If you have a struct, you can derive the implementation of the `JSON.Encoder` by specifying which fields should be encoded to JSON:
177
+
You may also implement the `JSON.Encoder` protocol for custom data structures. Elixir already implements the protocol for all Calendar types.
178
+
179
+
If you have a struct, you can derive the implementation of the `JSON.Encoder` by specifying which fields should be encoded to JSON:
178
180
179
181
```elixir
180
182
@derive {JSON.Encoder, only: [...]}
@@ -223,6 +225,32 @@ You may also prefer to write using guards:
223
225
224
226
def foo(x, y, z) when x == y and y == z
225
227
228
+
## v1.18.0-rc.1
229
+
230
+
### 1. Enhancements
231
+
232
+
#### Elixir
233
+
234
+
*[JSON] Implement `JSON.Encoder` for all Calendar types
235
+
236
+
### 2. Bug fixes
237
+
238
+
#### Elixir
239
+
240
+
*[Kernel] Avoid crashes when emitting diagnostics on code using \t for indentation
241
+
242
+
### 3. Regressions
243
+
244
+
#### Elixir
245
+
246
+
*[Kernel] Fix type warnings in `pop_in/1`
247
+
*[Kernel] Fix false positive warnings when accessing exceptions from `rescue`
248
+
*[Kernel] Emit warnings for duplicate patterns instead of errors
249
+
250
+
#### ExUnit
251
+
252
+
*[ExUnit] Do not warn on user-supplied CaseTemplate options
0 commit comments