Skip to content

Commit 44cf145

Browse files
committed
V 0.4.3
1 parent e92d210 commit 44cf145

4 files changed

Lines changed: 34 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,51 @@
11
## V 0.4.3
2-
*10 November 2023*
2+
*11 November 2023*
3+
*not complete yet*
34

45
#### Improvements in the language
6+
- Align ternary expressions in const blocks (#19721)
7+
- Respect raw strings in `$embed_file(r'/some/path')` expressions (#19753)
58
- Remove additional line breaks after call_expr before params struct args (#19795)
69

710
#### Breaking changes
811

912
#### Checker improvements/fixes
13+
- Check error of implementing other module private interface (fix #19620) (#19688)
14+
- Extend byte deprecation warning to array init types (#19671)
15+
- Extend byte deprecation warnings to return types (#19668)
16+
- Fix negative cap, len checks in array init (#19694)
17+
- Turn warning for var and param module name duplicates into error (#19645)
18+
- Fix closure in if guard (#19750)
19+
- Fix closure in if guard, with multi_return (#19765)
1020
- Fix comptime enumdata value property access (#19768)
1121
- Fix `field ?&Type` without default value (#19786)
1222
- Avoid nil assign to option var (#19746)
23+
- Allow for a shared variable to be whole reassigned (keeping the same mutex state) (fix #15649) (#19751)
1324

1425
#### Parser improvements
26+
- parser: add `set_all` + `clear_all` methods to `[flag]` enum bitfields (#19717)
27+
- ast: reduce cost of frequently called functions by using constants (#19733)
28+
- parser: warn on unused imports, even when they are declared via `import math { sin, cos }` (#19738)
1529
- ast: add missing docstrings for the public fns in vlib/v/ast/types.v (#19752)
1630
- parser: give a friendly error when misusing if over $if (#19810)
1731
- Add multiple struct attributes error for new attribute syntax
1832

1933
#### Compiler internals
34+
- pref: fix unintended file extensions in default output names, allow for `v run file.c.v` (#19745)
2035
- transformer: fix using a constant, instead of a fn parameter with the same name (fix #19766) (#19773)
2136

2237
#### Standard library
38+
- crypto.sha: fix calculating the same hash values when .sum() is called several times for sha1/256/512 (fix #19696) (#19697)
39+
- crypto.md5: fix calculating the same hash values, when .sum() is called several times (#19703)
40+
- os: add a new function `execute_opt` (#19723)
41+
- os: add os.page_size() (#19770)
2342
- vlib: add an `encoding.xml` module with parser, validation, entity encoding, unit tests (#19708)
2443
- os: implement os.fd_is_pending/1, os.Process.pipe_read/1, os.Process.is_pending/1 (#19787)
2544
- builtin: copy min/max integer values consts from `math` to builtin so that the entire math module doesn't have to be imported(#19809)
2645

2746
#### Web
47+
- net.http: increase max_redirects to 16 (#19743)
48+
- picoev: implement raw mode (#19771)
2849
- flag,json,net: handle C calls in .v files (part of enabling `-W impure-v` as default) (#19779)
2950
- net.http: add socks5|http(s) proxy support [Linux] (#19676)
3051

@@ -35,11 +56,20 @@
3556
#### Native backend
3657

3758
#### C backend
59+
- Fix infix op when handling comptime selector (#19691)
60+
- Fix array contains method with interface(fix #19670) (#19675)
61+
- Reduce expense in repetitively called functions by using consts (#19732)
62+
- Fix closure parameter judgment when var cross assign inside anon fn(fix #19734) (#19736)
3863
- Only generate free in wrapper for spawn and not go (#19780)
3964
- Fix g.obf_table data missing(fix #19695) (#19778)
4065
- Fix closure variable in smartcast (#19796)
4166

4267
#### Tools
68+
- testing: add temporary file hash to prevent accidental collisions with test file binaries (#19710)
69+
- ci: compile VTL and VSL in their own CI job, with `VFLAGS=-no-parallel`
70+
- tools: fix windows install of an already existing module with vpm (#19761)
71+
- tools: use `VPM_NO_INCREMENT` env var to skip dl count increment when testing vpm (#19756)
72+
- tools.vpm: improve handling of urls that end with .git (#19758)
4373
- tools: fix resolving external dependencies in vpm, add test (#19772)
4474
- tools: cleanup and simplify vcreate, for upcoming fixes and features (#19794)
4575
- tools: improve error messages, add color coding and debug logging (#19781)

v.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Module {
22
name: 'V'
33
description: 'The V programming language.'
4-
version: '0.4.2'
4+
version: '0.4.3'
55
license: 'MIT'
66
repo_url: 'https://github.com/vlang/v'
77
dependencies: []

vlib/semver/v.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Module {
22
name: 'semver'
3-
version: '0.4.2'
3+
version: '0.4.3'
44
deps: []
55
}

vlib/v/util/version/version.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module version
22

33
import os
44

5-
pub const v_version = '0.4.2'
5+
pub const v_version = '0.4.3'
66

77
// vhash() returns the build string C.V_COMMIT_HASH . See cmd/tools/gen_vc.v .
88
pub fn vhash() string {

0 commit comments

Comments
 (0)