Skip to content

Releases: locomotivemtl/charcoal-property

charcoal-property 0.8.4

04 Nov 14:15
Compare
Choose a tag to compare

Complete commits list: 0.8.3...0.8.4

Summary:

  • Add method AbstractProperty::parseValAsMultiple() to decouple transformation into array
  • Add method AbstractProperty::parseValAsL10n() to decouple use of the Translator
  • Add missing validation methods ("min", "max", "required") on NumberProperty
  • Fixed method PasswordProperty::save(); the password_hash() function can not rehash a password that is already hashed

charcoal-property 0.8.3

24 Sep 18:32
4ba8362
Compare
Choose a tag to compare
Merge pull request #9 from locomotivemtl/timestamp-datetime

Improve DateTimeProperty::dateTimeVal to support timestamp

charcoal-property 0.8.1

02 Aug 19:31
Compare
Choose a tag to compare
  • File property and Audio property improvements
  • More camelcase fixes.

charcoal-property 0.8.0

24 Jul 16:51
Compare
Choose a tag to compare

BREAKING

  • Following the changes in charcoal-config (0.10.0), use getFoo() for getters instead of foo().
  • Access properties with ArrayAccess.

charcoal-property 0.7.4.2

26 Mar 20:16
Compare
Choose a tag to compare

Default to json editor input (in admin) for structure properties.

charcoal-property 0.7.1.1

18 Dec 22:20
Compare
Choose a tag to compare

Revert. Re-enable filterPropertyMetadata().

charcoal-property 0.7.1

18 Dec 16:33
Compare
Choose a tag to compare

General

  • Explicitly require ext-pdo, ext-fileinfo and ext-SimpleXML in composer
  • Code and comments fixes
  • Unit tests++

Core

  • Added parseVal() and parseOne() to PropertyInterface
  • Remove unused "filterPropertyMetadata" method in DescribablePropertyTrait
  • Move the "sqlEncoding" property and getter/setter to StorablePropertyTrait
  • Provide the (empty) "sqlExtra()" method by default in StorablePropertyTrait
    • Remove all unnecessary call to sqlExtra in Property classes

Custom properties

  • Remove unsupported (non-working) color modes in ColorProperty
  • Fix DateTime logic (value could never be a string)
  • Sanitize email in EmailProperty
  • Fix typo / validation of allowed objects in MultiObjectProperty
  • Fix NumberProperty validation (add min / max)
  • Fix sprite validation and improve display options of SpriteProperty
  • Add "allowHtml" flag to StringProperty
    • BREAKING: false by default
    • HtmlProperty's allowHtml is always true
  • Allow "long" text (LONGTEXT sql type) for TextPropery
  • Sanitize url in UrlProperty

charcoal-property 0.7.0

05 Jun 15:25
Compare
Choose a tag to compare

Key Features

Upgraded to locomotivemtl/charcoal-core v0.4.x:

New Metadata Loader and Metadata Config classes

What's new in 0.7.0?

Dependencies

Added

  • Dependency to psr/cache (used by ObjectProperty)
  • AbstractProperty::metadataClass() method as per changes to DescribableTrait [charcoal‑[email protected]]
  • ModelStructureProperty::structureMetadataClass() method
  • StructureModel class as preferred alternative to Model

Changed

  • AbstractProperty::createMetadata() method to use new ::metadataClass() method [charcoal‑[email protected]]
  • ModelStructureProperty::createStructureMetadata() method to use new ::structureMetadataClass() method
  • ModelStructureProperty::loadStructureMetadata() method to improve operations
  • ModelStructureProperty class to use new StructureModel class

charcoal-property 0.6.4

15 Feb 16:29
edb16d0
Compare
Choose a tag to compare
  • Fix PDO param type on multiple objects

charcoal-property 0.6.3

14 Feb 17:51
ba4892a
Compare
Choose a tag to compare

Typo in 0.6.2