mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
changelog: mark encoding enums with their names in json
as breaking and that [json_as_number]
can be used to get the old behaviour (#18108)
This commit is contained in:
parent
5008515b03
commit
d27b48b7fe
11
CHANGELOG.md
11
CHANGELOG.md
@ -1,5 +1,15 @@
|
||||
## V 0.3.4
|
||||
*30 Apr 2023*
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- `json`: enums are serialized as strings by default, `[json_as_number]` attribute can be used for the old behavior.
|
||||
|
||||
If you are serializing enums to JSON in your application, then you will need to add the
|
||||
`[json_as_number]` attribute to keep the old behavior!
|
||||
|
||||
### Other Changes
|
||||
|
||||
- **vweb now supports live page reloading**. The web app is instantly updated in the browser (no need to refresh the page) everytime a .v or a .html file is changed.
|
||||
- vweb is now significantly faster and more stable under load, due to a new multithreaded worker pool, which is much more efficient at spreading the workload among all threads equally.
|
||||
- Middleware support in vweb.
|
||||
@ -55,7 +65,6 @@
|
||||
- Generic struct inits no longer need explicit types provided: `struct Foo[T, U] { a T; b U } foo := Foo{a:2, b:'x'}`
|
||||
- `os.Process` now has a `create_no_window` option (Windows only).
|
||||
- `os.Process` now has a `set_work_folder()` method to set the initial working folder of the new child process.
|
||||
- `json`: enums are serialized as strings by default, `[json_as_number]` attribute can be used for the old behavior.
|
||||
- `net.http`: mime types have been updated to include all official types.
|
||||
- `gg`: `create_image()` now returns `!Image` instead of `Image`, allowing to handle errors.
|
||||
- sokol: errors during image creation no longer result in a panic, but can be handled by the programmer.
|
||||
|
Loading…
Reference in New Issue
Block a user