|
| 1 | +## V 0.4.1 |
| 2 | +*3 September 2023* |
| 3 | + |
| 4 | +#### Improvements in the language |
| 5 | +- Pure `array.sorted()` and `array.sorted_with_compare()` methods, that do not modify their receivers (#19251) |
| 6 | +- UB overflow has been removed |
| 7 | +- Disallow casting string to enum, suggest using Enum.from_string() instead (#19260) |
| 8 | +- Fix anonymous struct with default expr (#19257) |
| 9 | +- log: improve the most common use case, it's no longer necessary to create a `Log` instance (#19242) |
| 10 | +- Allow using consts as enum values (#19193) |
| 11 | +- `@[attr]` syntax to replace `[attr]` (`[]` is used for too many things). Most likely to be replaced with `@attr()` in the futre. |
| 12 | + |
| 13 | +#### Breaking Changes |
| 14 | +- `arr[1..4]` now requires `unsafe` if the slice can modify the original immutable array. |
| 15 | + |
| 16 | +#### Checker improvements/fixes |
| 17 | +- Check struct embed with wrong position (#19245) |
| 18 | +- Optimize out needless string interpolations from the most common case in `Checker.expr_or_block_err` |
| 19 | +- Check error for or_expr inside infix expression (#19213) |
| 20 | +- Disallow `thread` as var name (#19174) |
| 21 | +- Check error for sumtype in array (#19183) |
| 22 | + |
| 23 | +#### Parser improvements |
| 24 | +- v.token: add inline next_to() and cleanup related calls (#19226) |
| 25 | + |
| 26 | +#### Standard library |
| 27 | +- Add new generic `arrays.uniq, arrays.uniq_only, arrays.uniq_only_repeated, arrays.uniq_all_repeated, arrays.distinct` |
| 28 | +- builtin: add support for `-d bultin_writeln_should_write_at_once` and `-d bultin_write_buf_to_fd_should_use_c_write` (#19243) |
| 29 | +- builtin: always show the assert message, if it was defined in the source, in non test programs too (fix #19240) |
| 30 | +- time: check if a day is a valid day of its month (#19232) |
| 31 | + |
| 32 | +#### Web |
| 33 | +- net.mbedtls: have shutdown close accepted connections too (#19164) |
| 34 | +- http: add support for stream connections, and custom .on_redirect, .on_progress, .on_finish callbacks to http.fetch() (#19184) |
| 35 | +- vweb: add a user_agent utility method to the vweb context (#19204) |
| 36 | +- vweb: avoid the controllers having to be defined in specific order (#19182) |
| 37 | + |
| 38 | + |
| 39 | +#### ORM |
| 40 | +- Add OR in where on update and delete (#19172) |
| 41 | + |
| 42 | +#### Database drivers |
| 43 | + |
| 44 | +#### Native backend |
| 45 | + |
| 46 | +#### C backend |
| 47 | +- Simplifications and clean up. |
| 48 | +- Fix mixed fixed array and array initializing (#19246) |
| 49 | +- Fix array sort with fn call parameter (fix #19220) (#19221) |
| 50 | +- Fix generic struct with option fn field (#19218) |
| 51 | +- Fix comptime assign with generic result return type (#19192) |
| 52 | +- Fix match with comptime if expr in branch (#19189) |
| 53 | + |
| 54 | +#### Comptime |
| 55 | + |
| 56 | +#### Tools |
| 57 | +- Add support for `v should-compile-all -c examples/`, which will delete all the produced executables at the end |
| 58 | +- vgret: add install commands for ubuntu and arch to doc string (#19247) |
| 59 | +- fast.v: add favicon to the html produced by fast.v |
| 60 | +- vpm: implement multithreading (#19208) |
| 61 | +- Make performance_compare.v more robust and easier to use, by allowing `v run cmd/tools/performance_compare.v` too |
| 62 | +- Improve oldv windows support, make it use -municode for windows builds, make it support cmd.exe |
| 63 | +- Make repeated runs of `oldv SAME_COMMIT -c "./v file.v"`, not use the network at all |
| 64 | +- Help: add link to the TESTS.md at the bottom of `v help test`, run CI checks on help markdown files as well |
| 65 | +- v.builder: show the number of files, types, modules, when a program is compiled with -stats |
| 66 | +- Improve the output of parser_speed.v and scanner_speed.v |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
1 | 89 | ## V 0.4
|
2 | 90 | *1 July 2023*
|
3 | 91 |
|
|
0 commit comments