Skip to content

v3.0.0-rc2

Choose a tag to compare

@github-actions github-actions released this 19 May 04:45
· 1 commit to refs/heads/master since this release
e070e1a

What's new since v3.0.0-rc1

All changes

  • Added 'SmartdateHandler' for the smart_date contrib module. @AlexSkrypnyk (#371)
    Closes a v3.0 regression: writing to a smartdate field (six storage columns from the smart_date contrib module) threw RuntimeException because v3.0 hardened DefaultHandler to reject unknown multi-column fields. The new handler accepts a positional [start, end] pair, a keyed record, or a list of either form for multi-delta fields; parses numeric Unix timestamps and strtotime()-compatible strings; and auto-derives duration as (end - start) / 60 clamped to zero when both endpoints are supplied without an explicit duration.
  • Fixed 'ImageHandler' and 'DatetimeHandler' compound parser shape. @AlexSkrypnyk (#370)
    Fixes a TypeError in ImageHandler::expand() when callers handed it a list-of-records shape like [['target_id' => 'foo.jpg', ...]] (which the v6 DrupalExtension field parser naturally produces) instead of a bare path. Adds a shared normalise() helper on AbstractHandler that folds any loose caller shape - bare scalar, list of scalars, single record, list of records, or mixed list - into a canonical list of records, and migrates ImageHandler, DatetimeHandler, and the three text handlers onto it. The ambiguous "positional value + named extras" shape (e.g. ['/path', 'alt' => 'A']) is now rejected with InvalidArgumentException instead of being silently disambiguated.

Full Changelog: v3.0.0-rc1...v3.0.0-rc2