Releases: locomotivemtl/charcoal-property
Releases · locomotivemtl/charcoal-property
charcoal-property 0.11.1.1
charcoal-property 0.11.1
Complete commits list: 0.11.0.1...0.11.1
Added:
- Basic Video property
Fixed:
- Edge case where empty values in a language-map (
Translation
) were ignored during storage and retrieval on multilingual/nullable properties. This would have the unintended consequence of assigning the localized value of the default language, if present, to the undefined localizations.
charcoal-property 0.11.0
Complete commits list: 0.10.5...0.11.0
Breaking Changes:
- Removed deprecated accessor methods in favour of get-prefix variants
- Refactored validation methods to focus on values (i.e., files) directly (see new
parseValAsFileList()
) - Changed how default MIME types are defined to allow overriding in media-specific properties (see new
getDefaultAcceptedMimetypes()
)
Fixed:
- Edge case where MIME type resolution returns "inode/x-empty" or empty string
- Edge cases where a string is expected but a Translation object or an array is passed
- Support for validating/handling multilingual/multiple values
Added:
- Option fallbackFilename to customize generated filename (defaults to property label)
charcoal-property 0.10.5
Complete commits list: 0.10.4.2...0.10.5
Summary:
- Change inheritance of
HtmlProperty
fromStringProperty
toTextProperty
to set SQL type toLONGTEXT
by default.
charcoal-property 0.10.4
Complete commits list: 0.10.3...0.10.4
Summary:
- Ignore missing image when processing effects in
ImageProperty
- Ensure file exists before looking size or type in
FileProperty
charcoal-property 0.10.3
charcoal-property 0.10.2
Complete commits list: 0.10.1...0.10.2
Summary:
- Added support for
validatable
flag on property to skip validation if value isfalse
- Added support for using
structure_model_class
(if customized) instead ofstructure_interfaces
onModelStructureProperty
- Added support for normalizing paths on
FileProperty
via newnormalizePath()
method - Improved
min
/max
options onDateTimeProperty
- Improved required/null/empty validation; allows "0" as an acceptable non-empty value
- Fixed serialization of
ModelStructureProperty
- Fixed undefined index
extension
inFileProperty
charcoal-property 0.10.1
Complete commits list: 0.10.0...0.10.1
Summary:
- Replaced missing
get
method prefixes - Fixed metadata definition for
ModelStructureProperty
- Fixed camelization for
StructureMetadata
charcoal-property 0.10.0
Complete commits list: 0.9.0...0.10.0
Requires:
Summary:
- Added basic support for custom storable property fields
- Decoupled L10N field generation to allow existing properties support for improving storage
- Added method
StorablePropertyTrait::parseFromFlatData()
to decouple flat-data assignment fromAbstractModel::setFlatData()
- Changed methods
generateFields()
andupdateFields()
,StorablePropertyTrait
, to decouple from$fields
property and L10N support - Improved type-hinting of
StorablePropertyInterface
and SQL generation fromPropertyField
by acepting, supporting, and returning NULL instead of empty strings - Changed method
StorablePropertyTrait::setSqlEncoding()
to support custom encoding and collation - Added method
StorablePropertyTrait::sqlDefaultVal()
charcoal-property 0.9.0
Complete commits list: 0.8.4...0.9.0
Requires:
Added:
- Method
IdProperty::validateRequired()
to only validate non-incrementing values - Method
AbstractProperty::clearVal()
to purge any value from deprecated$value
class property
Fixed:
- Property validation method names
- Camelizing of property validation methods