Repository navigation
v1.30.0
-
Transaction.execute/executeOrError: a commit that fails synchronously
(e.g. a synchronous closer, as with the memory/SQLite adapters) now reaches
the caller. It was passed to theonErrorof the internalasyncTryand
swallowed: the block's result was returned as if the commit succeeded
(async_extension1.2.24 fix: anonFinallyerror replaces the result, as
in a Darttry/finally). A commit error is never passed toonError. -
DBMySQLAdapter:- Adapted to
mysql10.22:Result(wasResults, deprecated),
ResultRow.toColumnMap()/row[name](was the deprecatedfields), a
non-nullaffectedRows.DBMySqlConnectionWrapper.query/queryMulti
returnFuture<Result>(the same type:Resultsis atypedefof it). - A connection whose query fails with anything but a
MySqlException(a
timeout, a socket error) is marked closed, so the pool discards it:
mysql1(since 0.21) closes it in that case, without exposing it. - Note: since
mysql10.21 query parameters are written into the SQL as
literals (no prepared statements), and aDateTimeis sent with its
fractional seconds, which the server rounds to the column precision
(TIMESTAMP: whole seconds). It used to be truncated.
- Adapted to
-
Time: the comparison operators are typedbool, and+/-Time
(they weredynamic). -
lints6: explicit types (strict_top_level_inference) and null-aware
elements (use_null_aware_elements). -
decodeQueryStringParameters: split each pair on the first=only
(a=b=cdecoded to{'a': 'b'}; now{'a': 'b=c'}), asswiss_knife
3.4.1 fixed in itsdecodeQueryString. -
APIModuleProxyHttpCaller(responses): withswiss_knife3.4.1 an
application/xhtml+xmlresponse is aMimeTypewithisXHTML(it parsed as
application/xhtml): it's read as text, never decoded as JSON. -
New tests for a failing commit in
Transaction.execute(sync and async),
and for a MySQL connection closed bymysql1. -
GitHub Actions:
dart-lang/setup-dart@v1.8.1.- Fixed the intermittent hang of the
test_vm (unit)job:
bones_api_utils_weaklist_testopened a VM service connection per GC
and never disposed them. Thetest_vmjobs' timeout is now 12 min.
- Fixed the intermittent hang of the
-
Dependencies:
- Updated
async_extensionto ^1.2.24. - Updated
swiss_knifeto ^3.4.1 (of its behaviour fixes only the
MimeTypeone above affectsbones_api). - Updated
mysql1to ^0.22.0. - Updated
gcloudto ^0.9.0. - Updated
archiveto ^4.6.0 (only its encoder is used: its decoders'
new error contract doesn't apply). - Updated
args_simpleto ^1.2.1. - Updated
ascii_art_treeto ^1.1.1. - Updated
dart_spawnerto ^1.2.1. - Updated
graph_explorerto ^1.1.2. - Updated
lintsto ^6.1.0. build_runnerkept at ^2.16.2: 2.17 requiresbuild5, and
reflection_factory2.13 requiresbuild^4.
- Updated