Commit graph

401 commits

Author SHA1 Message Date
Hitalo Souza
81b9fd8b14
x.json2.decoder2: clean up (#22373) 2024-10-01 10:15:51 +03:00
skeris
c72dde20d0
vlib: add a go like x.benchmark module, that estimates automatically how many iterations are needed, to get a statistically significant result (#22215) 2024-09-23 13:56:00 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Delyan Angelov
b49e79680b
crypto, x.crypto: trim long inputs, move more extensive cases to https://github.com/vlang/slower_tests 2024-09-13 10:28:11 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Carlos Esquerdo Bernat
4188deb96d
x.json2: support @[skip] as well (#22077) 2024-08-19 15:49:31 +03:00
Alexander Medvednikov
ae1b9ed571 veb: deprecate x.vweb in favor of veb; checker: show missing variants in the sumtype error 2024-08-18 17:27:08 +03:00
Felipe Pena
4940f2d41c
v: define a default sumtype value (based on the first variant type) (#22039) 2024-08-16 21:07:57 +03:00
yuyi
cb58db56ef
all: change empty comment to newline (#22053) 2024-08-16 12:09:30 +03:00
Hitalo Souza
384b5c466f
x.json2.decode2: add another internal test (#22050) 2024-08-16 02:25:02 +03:00
Hitalo Souza
e16d727da1
x.json2.decoder2: rename fields, add more comments (#22037) 2024-08-12 16:08:24 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Coachonko
a4b8768146
crypto.cipher: make Stream.xor_key_stream implementers require a mutable receiver (#21974) 2024-08-01 16:04:09 +03:00
tcn
2d43f38bf3
x.json2, toml: add support for Any in decode_struct, encode_struct and to_any (#21972) 2024-08-01 15:26:09 +03:00
Coachonko
55f4412e5a
x.crypto.chacha20: make Cipher struct public (fix #21967) (#21968) 2024-07-31 10:20:31 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
Delyan Angelov
fbdc992b30
net.http, veb, vweb, x.vweb: add mime type text/x-vlang, for .v and .vsh file extensions (#21851) 2024-07-12 14:23:50 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Felipe Pena
70b33fc303
cgen,x.json2: fix generic map decoding (#21704) 2024-06-22 13:17:14 +03:00
poggingfish
1a685c30aa
vweb, veb, x.vweb: add m3u8 MIME type application/vnd.apple.mpegurl for multimedia playlists (#21688) 2024-06-16 22:21:43 +03:00
Turiiya
dfc0c91295
checker: turn warnings for private fields into errors (#21296) 2024-06-09 10:19:52 +03:00
Alexander Medvednikov
2d5c457901 checker: -warn-about-allocs; nil interface allocation fix; parser: tmpl @else [cond] 2024-05-29 11:48:30 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Bakul Shah
9997ac4367
veb: support sendfile() syscall on FreeBSD (#21541) 2024-05-21 08:47:24 +03:00
Turiiya
f7e820cdeb
v: vet for empty string conditions (#21529) 2024-05-19 17:57:52 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
Hitalo Souza
107c43a34d
json2: decode (#21039) 2024-04-15 16:47:59 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Casper Küthe
d0cbfc1461
x.vweb: accept query params as method arguments (#21201) 2024-04-07 09:20:55 +03:00
Felipe Pena
9d889842aa
x.json2: add a way to decode an array (#21186) 2024-04-06 12:33:50 +03:00
Delyan Angelov
cd0e0b18ea
ci: mark both vweb and x.vweb versions of vweb_should_listen_on_both_ipv4_and_ipv6_by_default_test.v as flaky
Both started failing randomly near a1d4712b from 2024-04-02 (mainly on the macos runner).
2024-04-04 16:15:47 +03:00
Felipe Pena
625048c5b4
x.json2,checker,toml: allow field.typ compile-time checking with MatchExpr and add array of option checking (#21171) 2024-04-04 12:43:59 +03:00
Delyan Angelov
4d24f8c3fc
ci: change listen ports in vweb_should_listen_on_both_ipv4_and_ipv6_by_default_test.v for both vweb and x.vweb, to reduce probability of network errors 2024-04-03 17:51:02 +03:00
Turiiya
a1b6360da5
x.json2: add ability to decode arrays (#21163) 2024-04-02 05:32:11 +03:00
Kim Shrier
ecbd214ee1
vweb, x.vweb: improve descriptions (#21155) 2024-04-01 19:48:46 +03:00
Turiiya
9704a01406
parser: fix case of falsely registering imports as used, remove unused imports (#21156) 2024-04-01 19:46:50 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Turiiya
418462208a
vlib.x: fix typos, uniformize readme formatting (#21085) 2024-03-24 19:54:39 +02:00
Hitalo Souza
49b7f9a94a
x.json2: predefine buffer capacity for encoding to avoid reallocations (#20920) 2024-03-14 21:23:07 +02:00
Pierre Curto
aeadc0a12a
x.json2: improve error message upon missing comma (#20602) 2024-03-12 19:16:08 +02:00
Alexander Medvednikov
b2df3264a7 gg: fix empty circle in native; http: post_form_with_cookies; veb: print veb action in html errors 2024-03-11 18:21:06 +03:00
Delyan Angelov
60b4fb31a1
ci: mark db_store_test.v as flaky 2024-03-04 22:34:09 +02:00
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Hitalo Souza
6f4d9aecf3
x.json2: minor performance improvement, update benchmark recommendations (#20954) 2024-03-04 12:39:07 +02:00
Hitalo Souza
ac9b724b3b
x.json2: improve performance of string encoding for unicode special characters and emojis (#20867) 2024-03-03 12:02:44 +02:00
johnpgr
87320f8f93
x.json2: fix encoder commas (#20916) 2024-02-27 19:55:02 +02:00