|
19 | 19 | - Global variable `lc` has been removed from sugar.nim.
|
20 | 20 | - `distinctBase` has been moved from sugar.nim to typetraits and now implemented as
|
21 | 21 | compiler type trait instead of macro. `distinctBase` in sugar module is now deprecated.
|
| 22 | +- `CountTable.mget` has been removed from `tables.nim`. It didn't work, and it |
| 23 | + was an oversight to be included in v1.0. |
| 24 | + |
22 | 25 |
|
23 | 26 | ### Breaking changes in the compiler
|
24 | 27 |
|
|
50 | 53 | - Added `times.fromUnixFloat,toUnixFloat`, subsecond resolution versions of `fromUnix`,`toUnixFloat`.
|
51 | 54 | - Added `wrapnils` module for chains of field-access and indexing where the LHS can be nil.
|
52 | 55 | This simplifies code by reducing need for if-else branches around intermediate maybe nil values.
|
53 |
| - Eg: `echo ?.n.typ.kind` |
| 56 | + E.g. `echo ?.n.typ.kind` |
54 | 57 | - Added `minIndex` and `maxIndex` to the `sequtils` module
|
55 | 58 | - Added `os.isRelativeTo` to tell whether a path is relative to another
|
56 | 59 | - Added `resetOutputFormatters` to `unittest`
|
57 | 60 |
|
| 61 | + |
58 | 62 | ## Library changes
|
59 | 63 |
|
60 | 64 | - `asynchttpserver` now the request body is a FutureStream.
|
|
71 | 75 | - `htmlgen.html` allows `lang` on the `<html>` tag and common valid attributes.
|
72 | 76 | - `macros.basename` and `basename=` got support for `PragmaExpr`,
|
73 | 77 | so that an expression like `MyEnum {.pure.}` is handled correctly.
|
74 |
| -- `httpclient.maxredirects` changed from `int` to `Natural`, because negative values serve no purpose whatsoever. |
75 |
| -- `httpclient.newHttpClient` and `httpclient.newAsyncHttpClient` added `headers` argument to set initial HTTP Headers, |
76 |
| - instead of a hardcoded empty `newHttpHeader()`. |
| 78 | +- `httpclient.maxredirects` changed from `int` to `Natural`, because negative values |
| 79 | + serve no purpose whatsoever. |
| 80 | +- `httpclient.newHttpClient` and `httpclient.newAsyncHttpClient` added `headers` |
| 81 | + argument to set initial HTTP Headers, instead of a hardcoded empty `newHttpHeader()`. |
77 | 82 |
|
78 | 83 |
|
79 | 84 | ## Language additions
|
|
0 commit comments