Skip to content

Releases: locomotivemtl/charcoal-property

charcoal-property 0.11.1.1

15 Jan 21:03
f4220cc
Compare
Choose a tag to compare

Complete commits list: 0.11.1...0.11.1.1

Added:

  • Validation message when email is invalid

charcoal-property 0.11.1

18 Nov 16:01
Compare
Choose a tag to compare

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

15 Apr 18:07
436d742
Compare
Choose a tag to compare

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

15 Apr 18:07
Compare
Choose a tag to compare

Complete commits list: 0.10.4.2...0.10.5

Summary:

  • Change inheritance of HtmlProperty from StringProperty to TextProperty to set SQL type to LONGTEXT by default.

charcoal-property 0.10.4

02 Mar 23:47
Compare
Choose a tag to compare

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

22 Jan 14:24
Compare
Choose a tag to compare

Complete commits list: 0.10.2...0.10.3

Summary:

  • Fixed new hashing algorithm identifiers in PHP 7.4

charcoal-property 0.10.2

02 Mar 23:47
Compare
Choose a tag to compare

Complete commits list: 0.10.1...0.10.2

Summary:

  • Added support for validatable flag on property to skip validation if value is false
  • Added support for using structure_model_class (if customized) instead of structure_interfaces on ModelStructureProperty
  • Added support for normalizing paths on FileProperty via new normalizePath() method
  • Improved min/max options on DateTimeProperty
  • Improved required/null/empty validation; allows "0" as an acceptable non-empty value
  • Fixed serialization of ModelStructureProperty
  • Fixed undefined index extension in FileProperty

charcoal-property 0.10.1

02 Mar 23:47
Compare
Choose a tag to compare

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

04 Nov 22:11
6592af1
Compare
Choose a tag to compare

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 from AbstractModel::setFlatData()
  • Changed methods generateFields() and updateFields(), StorablePropertyTrait, to decouple from $fields property and L10N support
  • Improved type-hinting of StorablePropertyInterface and SQL generation from PropertyField 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

04 Nov 21:19
8b4510e
Compare
Choose a tag to compare

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