Skip to content

Commit a0ec816

Browse files
committed
changelog: clean up
1 parent e407579 commit a0ec816

File tree

2 files changed

+72
-74
lines changed

2 files changed

+72
-74
lines changed

CHANGELOG.md

Lines changed: 57 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can read it here:
88
## V 0.3.5
99
*29 June 2023*
1010

11-
### Improvements in the language
11+
#### Improvements in the language
1212
- **Coroutines with a scheduler**. Only Linux/macOS for now, requires `-use-coroutines` and
1313
`coroutines.sleep()` instead of `time.sleep()`. They work with IO and net, but not with GC
1414
for now.
@@ -19,12 +19,11 @@ You can read it here:
1919
- Enum values now can have attributes.
2020
- Generic functions as function parameters are now supported: `fn f[T](x T, i int, f_ Fn[T]) T { `.
2121
- Anonymous structs can no longer have attributes.
22-
- Allow fixed array returns.
2322

24-
### Breaking changes
23+
#### Breaking changes
2524
- `byte` deprecated in favor of `u8` (`byte` is automatically converted to `u8` by vfmt).
2625

27-
### Checker improvements/fixes
26+
#### Checker improvements/fixes
2827
- Disallow `Result` type aliases (`type Foo = !Bar`) and `Result` in maps (`map[key]!Type`).
2928
- Add a missing check for taking address of literal value member.
3029
- Fixed map initialization for maps with option values.
@@ -53,7 +52,7 @@ You can read it here:
5352
- Fix contains() with array of interfaces.
5453
- Disallow mut for blank idents.
5554

56-
### Standard library
55+
#### Standard library
5756
- json: Enum value string serialization supports `[json:'alias']` to change its string values.
5857
- Struct fields can now be skipped during JSON/ORM serialization via `[json:'-']` and `[sql:'-']`,
5958
in addition to `[skip]`. This allows having custom behavior for different serialization methods.
@@ -73,7 +72,7 @@ You can read it here:
7372
- rand: add missing rand.u16(), update doc comments, add test.
7473
- builtin: speed up string methods with vmemcpy instead of `for` loop for copying data.
7574

76-
### Web
75+
#### Web
7776
- The builtin websocket library is now thread safe.
7877
- Enhanced builtin csrf protection in vweb.
7978
- vweb: ability to set and get values on vweb.Context.
@@ -88,37 +87,37 @@ You can read it here:
8887
- net.html: fix parsing of nested quoted strings in code tags.
8988
- picoev: FreeBSD support.
9089

91-
### ORM
90+
#### ORM
9291
- Fixed a foreign key bug that could result in an extra insert.
9392
- Comptime bug with `[skip]` and `[sql:'-']` fixed.
9493
- Checker error for unsupported field types.
9594
- Allow structs without the id field, more flexible primary keys.
9695
- Improved docs and examples.
9796
- Uninitialized structs are no longer inserted into related tables.
9897

99-
### Database drivers
98+
#### Database drivers
10099
- mysql: TIMESTAMP support.
101100
- mysql: allocate memory for each string and blob dynamically depending on its value length.
102101
- mysql: add the ability to commit transactions.
103102

104-
### Native backend
103+
#### Native backend
105104
- Refactoring, splitting large files into multiple.
106105

107-
### C backend
106+
#### C backend
108107
- Fix code generation for generic unions.
109108
- Fix `[N]chan` (fixed arrays of channels).
110109
- Fix nested fixed array instantiation.
111110
- Fix fixed array of map.
112111
- Fix stringification of usize struct fields (before, they were treated as 32 bit *signed* numbers).
113112

114-
### Comptime
113+
#### Comptime
115114
- A new `$res` comptime function to get returned value in defer block (#18382).
116115
- Fix comptimeselector option propagation.
117116
- A mutability check for comptime assignments.
118117
- Fix comptime assigning to sumtype or indexexpr.
119118
- Make comptime calls work with or-block.
120119

121-
### Tools
120+
#### Tools
122121
- A new VPM site: vpm.vlang.io. A better design, discoverability of packages, descriptions, most downloaded packages etc.
123122
- vpm: installation of mixed modules.
124123
- `v ls --install -p D:\path\vls.exe` to install a local vls executable.
@@ -132,7 +131,7 @@ You can read it here:
132131

133132
*30 Apr 2023*
134133

135-
### Breaking Changes
134+
#### Breaking Changes
136135

137136
The following changes may break compilation of existing code or change behavior at runtime:
138137

@@ -145,7 +144,7 @@ The following changes may break compilation of existing code or change behavior
145144
- Variable shadowing has been completely banned (previously variable names could conflict with
146145
module names).
147146

148-
### Web
147+
#### Web
149148

150149
- vweb now supports live page reloading.
151150
The web app is instantly updated in the browser (no need to refresh the page)
@@ -159,14 +158,14 @@ The following changes may break compilation of existing code or change behavior
159158
- vweb now uses database pool.
160159
- Fixed multipart form parsing in vweb.
161160

162-
### Backends
161+
#### Backends
163162

164163
- A new pure WASM backend, based on binaryen, a WASM `builtin` module, and a pure V WASM serialization library.
165164
- Lots of fixes and new features in the native backend, including making codegen logic platform independent.
166165
- Now code generated by the С backend, can be compiled by a C++20 compiler.
167166
- C backend does not generate unused interface functions now.
168167

169-
### Compiler CLI
168+
#### Compiler CLI
170169

171170
- `v share file.v` for sharing code via the playground.
172171
- `v up` speed up for when it hasn't been run for a long time (**vc/** bootstrapping has been
@@ -177,7 +176,7 @@ The following changes may break compilation of existing code or change behavior
177176
works just like in Perl).
178177
- A new `-ldflags` option, in addition to `-cflags`. Works just like LDFLAGS in C.
179178

180-
### ORM
179+
#### ORM
181180

182181
- All ORM queries now return `![]` (`Result` of an array).
183182
This allows handling/propagating DB errors and simplifies working with ORM (one way).
@@ -192,7 +191,7 @@ The following changes may break compilation of existing code or change behavior
192191
- A new `-d trace_orm` option to see all SQL queries generated and used by V ORM and
193192
`-d trace_pg_error` to trace PG errors.
194193

195-
### Standard Library
194+
#### Standard Library
196195

197196
- Added new `termios` module.
198197
- `net.ssl`: types using ssl contexts can now be converted to strings via `.str()`/printed
@@ -219,7 +218,7 @@ The following changes may break compilation of existing code or change behavior
219218
- `os.Process` now has a `set_work_folder()` method to set the initial working folder of the new
220219
child process.
221220

222-
### Option as a first class type
221+
#### Option as a first class type
223222

224223
Final steps in making the Option type a first class type:
225224

@@ -232,7 +231,7 @@ Final steps in making the Option type a first class type:
232231
- Allow `foo := Foo{}`, when `Foo` has an Option field, that is a struct, that has a `[required]`
233232
tag on its fields.
234233

235-
### Compile-time Reflection
234+
#### Compile-time Reflection
236235

237236
- Compile-time interface fields evaluation.
238237
- Compile-time enum evaluation:
@@ -245,7 +244,7 @@ Final steps in making the Option type a first class type:
245244
- Added `$option` as a compile-time reflection type representing an any Option type.
246245
- All special compile-time reflection types are now lowercase (`$int`, `$enum`, `$option`, etc).
247246

248-
### Checker Improvements/Fixes
247+
#### Checker Improvements/Fixes
249248

250249
- Enums can no longer be initialized like structs.
251250
- Capture variables can no longer shadow anonymous function params.
@@ -275,11 +274,11 @@ Final steps in making the Option type a first class type:
275274
println(*a)
276275
```
277276

278-
### OSes
277+
#### OSes
279278

280279
- Added basic QNX support.
281280

282-
### Other changes
281+
#### Other changes
283282

284283
- Lots of documentation/readme improvements.
285284
- Lots of playground improvements: [play.vlang.io](https://play.vlang.io), including a really cool
@@ -290,13 +289,13 @@ Final steps in making the Option type a first class type:
290289
- `it` has been renamed to `index` in array inits.
291290
- "Is V still fast?" web-page has been sped up by splitting the result table into multiple years.
292291

293-
### Development
292+
#### Development
294293

295294
- GitHub Copilot summaries in PRs.
296295

297296
## V 0.3.3
298297
*30 Jan 2023*
299-
### Improvements in the language
298+
#### Improvements in the language
300299
- String interpolation simplified to just '${name}', enforced by vfmt, and updated in the entire code base.
301300
- `go foo()` has been replaced with `spawn foo()` (launches an OS thread, `go` will be used for
302301
upcoming coroutines instead).
@@ -318,15 +317,15 @@ Final steps in making the Option type a first class type:
318317
- Optimized one byte `[]u8` arrays creation.
319318
- Recursive aliasing is no longer allowed (e.g. `type Alias = map[string]Alias`).
320319

321-
### Breaking changes
320+
#### Breaking changes
322321
- `[]` is now used for generics instead of `<>`.
323322
- Accessing a pointer map value requires an `or {}` block outside `unsafe`.
324323

325-
### Checker improvements/fixes
324+
#### Checker improvements/fixes
326325
- Lots of fixes in the type checker.
327326
- Int signedness mismatch is now checked: `cannot use literal signed integer as u8`.
328327

329-
### Standard library
328+
#### Standard library
330329
- `math.vec` module for generic vector math including 2D, 3D, and 4D vector operations.
331330
- Builtin stb_image.h used by gg has been updated to the latest v2.28.
332331
- All of vlib has been updated to use separate Option/Result types.
@@ -346,32 +345,32 @@ Final steps in making the Option type a first class type:
346345
- New `crypto.pem` module.
347346
- New `map.reserve()` method.
348347

349-
### Web
348+
#### Web
350349
- Improved vweb stability under load.
351350

352-
### ORM
351+
#### ORM
353352
- Various ORM fixes and improvements, including string interpolation support, type checks, fn calls in `where`.
354353

355-
### Database drivers
354+
#### Database drivers
356355
- VFS support in the builtin `sqlite` module; `sqlite.get_affected_rows_count()`.
357356
- Improved `pg` compatibility with older PostgreSQL versions before 2014.
358357
- `sqlite`, `pg`, `mysql` have been moved to `db.sqlite`, `db.pg`, `db.mysql`.
359358

360-
### Native backend
359+
#### Native backend
361360
- Operator support for floats, multi return.
362361

363-
### Comptime
362+
#### Comptime
364363
- Improved compile time checks, like `$if x is Type {`; `$if T in [$Array, $Struct, $Alias, $Function] {`.
365364
- `$for in` works with alias types.
366365
- New comptime features for fields: `field.is_<field>`, `field.is_alias`, `field.is_enum`.
367366

368-
### OS support
367+
#### OS support
369368
- Installation instructions for using V on NixOS.
370369
- Better `make` support for OpenBSD.
371370
- Much improved experience for `v install pcre` on Windows (it now bundles its own .c files, so it compiles cleanly, even if the platform does not have another pcre package installed).
372371
- V can now be compiled with tcc on latest macOS and Apple Silicon.
373372

374-
### Tools
373+
#### Tools
375374
- fast.vlang.io fixes & improvements, new server.
376375
- New official IntelliJ plugin: https://intellij-v.github.io.
377376
- Lots of new language documentation, a nicer table of contents.
@@ -387,7 +386,7 @@ Final steps in making the Option type a first class type:
387386
## V 0.3.2
388387
*31 Oct 2022*
389388

390-
### Improvements in the language
389+
#### Improvements in the language
391390
- New simplified string interpolation: `println("Hello, {name}!")`. It will be the only way, old syntax (`${name}` and `$name`)
392391
will be deprecated.
393392
- Easier custom error creation: `return MyCustomErr{}` instead of `return IError(MyCustomErr)`.
@@ -400,15 +399,15 @@ Final steps in making the Option type a first class type:
400399
- Parallel compilation now uses `sync.Pool`.
401400
- `-skip-unused` fixes, soon to be made the default.
402401

403-
### Breaking changes
402+
#### Breaking changes
404403
*No breaking changes*
405404

406-
### Checker improvements/fixes
405+
#### Checker improvements/fixes
407406
- Improved type checker: lots of new type checks and fixed checker bugs.
408407
- Unused last expression in `if` is now checked.
409408
- Anonymous structs visibility issues fixed.
410409

411-
### Standard library
410+
#### Standard library
412411
- `net.ssl` has been migrated from a dynamically linked OpenSSL to a statically linked Mbed TLS. This means that V binaries will no
413412
longer have an OpenSSL dependency. OpenSSL can still be enabled via `-d use_openssl`.
414413
- msgpack module for decoding/encoding msgpack. (`v install msgpack`)
@@ -423,27 +422,27 @@ Final steps in making the Option type a first class type:
423422
- `gg.TouchPoint` to differentiate between different types of touch input.
424423
- `str.int()` conversion speedup (without -prod).
425424

426-
### Web
425+
#### Web
427426
- `vweb.csrf` module.
428427

429-
### ORM
428+
#### ORM
430429
- Support parenthesized expressions like `select from User where (name == 'Sam' && is_customer == true) || id == 1`.
431430

432-
### Native backend
431+
#### Native backend
433432
- Lots of native backend improvements, including library calls, comptime conditionals, enums, method definitions/calls, structs.
434433

435-
### V interpreter
434+
#### V interpreter
436435
- Some further interpreter work.
437436

438-
### C backend
437+
#### C backend
439438
- cgen cleanups.
440439

441-
### OS support
440+
#### OS support
442441
- Removed the need for the `[console]` attribute in Windows GUI apps.
443442
- More precise WINAPI declarations for easier integration on Windows.
444443
- More CI tests on FreeBSD.
445444

446-
### Tools
445+
#### Tools
447446
- New stunning playground with an improved look and feel, a much better and more responsive editor,
448447
code sharing by link, more convenient keyboard control, reusability for potential embedding:
449448
https://play.vlang.io.
@@ -457,7 +456,7 @@ Final steps in making the Option type a first class type:
457456
## V 0.3.1
458457
*31 Aug 2022*
459458

460-
### Improvements in the language
459+
#### Improvements in the language
461460
- Anonymous structs.
462461
- Lots of bug fixes: 90% of all bugs ever submitted are closed.
463462
- New keyword/type: `nil`. Only to be used inside `unsafe`. Replaces `voidptr(0)`.
@@ -467,14 +466,14 @@ Final steps in making the Option type a first class type:
467466
- Scanner optimizations.
468467
- Using C's #define is no longer allowed in normal V code, only in `.c.v` files.
469468

470-
### Breaking changes
469+
#### Breaking changes
471470
- Anonymous sumtypes have been removed (deprecated for now) due to complicating the language and the compiler too much.
472471

473-
### Checker improvements/fixes
472+
#### Checker improvements/fixes
474473
- More type checks.
475474
- Lots of fixes in `shared` types.
476475

477-
### Standard library
476+
#### Standard library
478477
- `os.mkdir()` now has an optional `mode` parameter.
479478
- `encoding.csv` is now generic, supports bools, accepts a custom delimiter, and is compatible with io.Reader/io.Writer.
480479
- `datatypes` module now uses operator overloading.
@@ -489,35 +488,35 @@ Final steps in making the Option type a first class type:
489488
- `string.replace_char()`, `math.round_sig()`.
490489
- Improved multiplication performance in `math.big`.
491490

492-
### Web
491+
#### Web
493492
- `net.urllib` ipv6 support.
494493
- `net.Http.Response.text` renamed to `body`.
495494
- `net.websocket` timeout is now configurable.
496495

497-
### ORM
496+
#### ORM
498497
- ORM functions now return `Result`, so the errors can be handled.
499498

500-
### Database drivers
499+
#### Database drivers
501500

502-
### Native backend
501+
#### Native backend
503502
- Major improvements to the fast native backend including linking support on Linux. The goal is to be able to self host V soon.
504503

505-
### V interpreter
504+
#### V interpreter
506505
- V interpreter improvements.
507506

508-
### C backend
507+
#### C backend
509508
- Parallelized cc step. Speeds up -prod and clang/gcc compilation by 300-500% (depending on
510509
the number of cores). Experimental and hidden behind a -parallel-cc flag, soon to be the default.
511510
- Intel C compiler support.
512511
- Go backend fixes.
513512
- `#preinclude` for low level C interop.
514513

515-
### OS support
514+
#### OS support
516515
- Full termux support via `$if termux {`, more predictable logging on Android.
517516
- Older macOS support (<10.12).
518517
- Windows code has been removed from `v.c` distributed on non-Windows systems. (`v_windows.c` is used on Windows.)
519518

520-
### Tools
519+
#### Tools
521520
- DOOM is now translated/compiled and launched on CI servers. A screenshot of the running game
522521
is made via `vgret` and is compared to the expected result.
523522
- VLS performance improvements, especially on Windows.

0 commit comments

Comments
 (0)