Compat fixes + 0.2 release

This commit is contained in:
Yorhel 2025-02-28 14:05:48 +01:00
parent 15954f4ad5
commit 3fd424c6e3
12 changed files with 24 additions and 12 deletions

View file

@ -1,2 +1,14 @@
0.2 - 2025-02-28
- FU: Add debug_info web interface
- FU: Add fu->denied and fu->notfound methods
- FU: Support randomized --max-reqs
- FU: Drop Zstd output compression support
- FU::PG: Support custom type overrides with $conn->set_type()
- FU::PG: Change default format for the 'date' type
- FU::PG: Add support for 'time', '$date_str' and '$hex' types
- FU::PG: Skip query prepare step when possible
- Fix portability for older compilers & longdouble Perls
- Fix some memory leaks
0.1 - 2025-02-25
- Initial release

2
FU.pm
View file

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

2
FU.xs
View file

@ -235,7 +235,7 @@ void q(fupg_conn *c, SV *sv, ...)
void _set_type(fupg_conn *c, SV *name, SV *sendsv, SV *recvsv)
CODE:
fupg_set_type(c, name, sendsv, recvsv);
fupg_set_type(aTHX_ c, name, sendsv, recvsv);
XSRETURN(1);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -405,8 +405,8 @@ static const fupg_type *fupg_resolve_builtin(pTHX_ SV *name, SV **cb) {
static void fupg_set_type(pTHX_ fupg_conn *c, SV *name, SV *sendsv, SV *recvsv) {
fupg_override o;
o.send = fupg_resolve_builtin(sendsv, &o.sendcb);
o.recv = fupg_resolve_builtin(recvsv, &o.recvcb);
o.send = fupg_resolve_builtin(aTHX_ sendsv, &o.sendcb);
o.recv = fupg_resolve_builtin(aTHX_ recvsv, &o.recvcb);
if ((o.send && o.send->send == fupg_send_array) || (o.recv && o.recv->recv == fupg_recv_array))
fu_confess("Cannot set a type to array, override the underlying element type instead");
/* Can't currently happen since we have no records in the builtin type