Version 0.4

This commit is contained in:
Yorhel 2025-03-19 10:54:23 +01:00
parent 6159b33950
commit 7c765f33bb
11 changed files with 25 additions and 10 deletions

View file

@ -1,3 +1,18 @@
0.4 - 2025-03-19
- FU::Validate: Support arrayref schemas
- FU::Validate: Rename 'values' option to 'elems'
- FU::Validate: Repurpose 'values' option to validate hash values
- FU::Validate: Merge nested 'elems', 'keys' and 'values' schemas during compile()
- FU::Validate: Rename 'scalar' to 'accept_scalar'
- FU::Validate: Add 'accept_array' option
- FU::Util: Add 'html_safe' option to json_format()
- FU::Util: Add gzip_compress() wrapper for libdeflate.so, zlib-ng.so or zlib.so
- FU::Util: Add brotli_compress() wrapper for libbrotlienc.so
- FU: Consistency fixes for fu->json() and fu->formdata()
- FU: Add fu->cookie() and fu->set_cookie()
- FU: Add support for brotli output compression
- FU: Use gzip_compress() for faster gzip output compression
0.3 - 2025-03-10 0.3 - 2025-03-10
- FU::Validate: Change API, ->validate() now returns data or throws error on failure - FU::Validate: Change API, ->validate() now returns data or throws error on failure
- FU::Validate: Rename 'rmwhitespace' to 'trim' - FU::Validate: Rename 'rmwhitespace' to 'trim'

2
FU.pm
View file

@ -1,4 +1,4 @@
package FU 0.3; package FU 0.4;
use v5.36; use v5.36;
use Carp 'confess', 'croak'; use Carp 'confess', 'croak';
use IO::Socket; use IO::Socket;

View file

@ -1,5 +1,5 @@
# Internal module used by FU.pm # Internal module used by FU.pm
package FU::DebugImpl 0.3; package FU::DebugImpl 0.4;
use v5.36; use v5.36;
use experimental 'for_list'; use experimental 'for_list';
use FU; use FU;

View file

@ -1,4 +1,4 @@
package FU::Log 0.3; package FU::Log 0.4;
use v5.36; use v5.36;
use Exporter 'import'; use Exporter 'import';
use POSIX 'strftime'; use POSIX 'strftime';

View file

@ -1,4 +1,4 @@
package FU::MultipartFormData 0.3; package FU::MultipartFormData 0.4;
use v5.36; use v5.36;
use Carp 'confess'; use Carp 'confess';
use FU::Util 'utf8_decode'; use FU::Util 'utf8_decode';

View file

@ -1,4 +1,4 @@
package FU::Pg 0.3; package FU::Pg 0.4;
use v5.36; use v5.36;
use FU::XS; use FU::XS;

View file

@ -1,4 +1,4 @@
package FU::SQL 0.3; package FU::SQL 0.4;
use v5.36; use v5.36;
use Exporter 'import'; use Exporter 'import';
use Carp 'confess'; use Carp 'confess';

View file

@ -1,4 +1,4 @@
package FU::Util 0.3; package FU::Util 0.4;
use v5.36; use v5.36;
use FU::XS; use FU::XS;

View file

@ -1,4 +1,4 @@
package FU::Validate 0.3; package FU::Validate 0.4;
use v5.36; use v5.36;
use experimental 'builtin', 'for_list'; use experimental 'builtin', 'for_list';

View file

@ -1,4 +1,4 @@
package FU::XMLWriter 0.3; package FU::XMLWriter 0.4;
use v5.36; use v5.36;
use Carp 'confess'; use Carp 'confess';
use Exporter 'import'; use Exporter 'import';

View file

@ -1,5 +1,5 @@
# This module is for internal use by other FU modules. # This module is for internal use by other FU modules.
package FU::XS 0.3; package FU::XS 0.4;
use Carp; # may be called by XS. use Carp; # may be called by XS.
use XSLoader; use XSLoader;
XSLoader::load('FU'); XSLoader::load('FU');