v3.0.0-rc2
·
1 commit
to refs/heads/master
since this release
What's new since v3.0.0-rc1
All changes
- Added 'SmartdateHandler' for the
smart_datecontrib module. @AlexSkrypnyk (#371)
Closes a v3.0 regression: writing to asmartdatefield (six storage columns from thesmart_datecontrib module) threwRuntimeExceptionbecause v3.0 hardenedDefaultHandlerto 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 andstrtotime()-compatible strings; and auto-derivesdurationas(end - start) / 60clamped to zero when both endpoints are supplied without an explicit duration. - Fixed 'ImageHandler' and 'DatetimeHandler' compound parser shape. @AlexSkrypnyk (#370)
Fixes aTypeErrorinImageHandler::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 sharednormalise()helper onAbstractHandlerthat 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 migratesImageHandler,DatetimeHandler, and the three text handlers onto it. The ambiguous "positional value + named extras" shape (e.g.['/path', 'alt' => 'A']) is now rejected withInvalidArgumentExceptioninstead of being silently disambiguated.
Full Changelog: v3.0.0-rc1...v3.0.0-rc2