Commit graph

332 commits

Author SHA1 Message Date
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
johnpgr
c6048d50bf
x.json2: add skippable field attr @[json: '-'] (improve backwards compatibility with the json module) (#20892) 2024-02-26 21:05:38 +02:00
Alexander Medvednikov
fa7af809fc veb: a new module veb.auth for authentication logic (tokens, hashed passwords) 2024-02-18 23:23:57 +03:00
Hitalo Souza
f472355ef7
json2: reorganize encode string (#20862) 2024-02-18 15:43:15 +02:00
David Legrand
2568d336f8
x.vweb: fix handling of static URL paths like /sub.folder/a_folder (#20863) 2024-02-18 15:36:22 +02:00
David Legrand
2190b604a1
x.vweb: fix typos in README.md (#20856) 2024-02-17 17:59:58 +02:00
gym603
fb675534b0
tests: fix the length of all_key in poly1305_test.v (#20853) 2024-02-17 10:59:16 +02:00
GGRei
1d3147e139
ci,dtm: fix concurrency and timing issues with tests of cache handler (#20845) 2024-02-16 19:35:27 +02:00
Delyan Angelov
3937eccdc9
ci: improve repo CI robustness, by marking dynamic_template_manager_cache_system_test.v as flaky, and only failing db_store_test.v on !windows 2024-02-16 14:37:32 +02:00
GGRei
a21658b9fb
dtm: separated the template generation from the cache system in the tests to simplify debugging (#20840) 2024-02-16 10:59:56 +02:00
Hitalo Souza
2bf590e90d
x.json2: move json2 tests to subfolders (#20842) 2024-02-16 10:58:51 +02:00
blackshirt
9aeb8229ae
x.crypto.chacha20: remove deprecated math.max_u32 in favour of builtin max_u32, remove unneceseary bits, reorder (#20838) 2024-02-15 06:40:07 +02:00
Hitalo Souza
414566966d
Json2: reorganizing functions in files (#20832) 2024-02-15 00:15:07 +02:00
GGRei
ed5c2f314f
x.templating.dtm: fix dtm clock test for CI (#20824) 2024-02-14 09:53:37 +02:00
blackshirt
9476aede8b
x.crypto: add AEAD ChaCha20Poly1305 algorithm in pure v (#20817) 2024-02-14 08:10:10 +02:00
David Legrand
feb649f79c
doc: x.vweb static website capabilities (#20808) 2024-02-13 12:30:25 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Casper Küthe
8c1ead5f4a
x.sessions: change session Store interface to use results instead of options (#20796) 2024-02-12 03:22:57 +02:00
David Legrand
5da88800ae
x.vweb: add full static host support, for urls ending with /folder/ , where the folder backing it, has index.html inside (#20784) 2024-02-11 11:19:37 +02:00
kbkpbot
3f1b3d2c74
x.crypto.sm4: make sm4 use the encoding.binary _fixed fns (#20773) 2024-02-10 10:19:22 +02:00