Changelogs

Changelogs for all the codebase versions.

1) Decoda v6.0.0

A new version of Decoda has been released, version 6.0.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 6.0.0
Tested On: PHP 5.3.13, Composer
Requires: PHP 5.3, Composer
Commit Hash: 70a679488d2be76c8f997f7bdcc0555871e7bfe2
Changes:

  • Added a Component class which all Filters, Hooks, Engines and Loaders extend
  • Added a Loader class to handle resource file loading for configuration and messages
  • Added Hook::startup() to initialize data before callbacks are called
  • Added Decoda::addMessages() to add messages using a Loader
  • Added Decoda::getBlacklist() and getWhitelist()
  • Added a 2nd argument $key for Decoda::addFilter() and addHook()
  • Added a default attribute to ImageFilter (img="200x200")
  • Added a default attribute to ListFilter (list="upper-roman")
  • Added a new TableFilter
  • Added custom exceptions
  • Renamed all config methods to getConfig() and setConfig()
  • Renamed Filter::tag() to getTag()
  • Renamed Filter::tags() to getTags()
  • Renamed Engine::setPath() to addPath()
  • Renamed Engine::getPath() to getPaths()
  • Updated CensorHook to support blacklisting words using a Loader
  • Updated EmoticonHook to support adding emoticons using a Loader
  • Updated Decoda::setLocale() so that it no longer throws exceptions (can now support setting the default locale)
  • Updated Engines to support multiple template lookup paths
  • Updated with Travis CI and phpunit.xml integration

2) Forum v3.3.0

A new version of Forum has been released, version 3.3.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 3.3.0
Tested On: PHP 5.4.3, CakePHP 2.3.0, Composer
Requires: PHP 5.3, CakePHP 2, Composer
Commit Hash: 3fbe1526b2be48402c15ee67541306252d0fc992
Changes:

  • Requires PHP 5.3 and Composer
  • Upgraded Utility plugin to 1.3.x
  • Upgraded Decoda to 5.x
  • Added FORUM_DATABASE and FORUM_PREFIX constants
  • Added avatar mapping support in Forum.userMap.avatar
  • Added support for layout overrides through Forum.viewLayout
  • Updated shells, models and controllers to use the new FORUM_* constants
  • Updated to HTML5 doctype
  • Fixed localization not changing
  • Fixed search not working for guests
  • Replaced jQuery with Mootools
  • Replaced Markitup with Decoda
  • Replaced database settings with Forum.settings and Configure
  • Renamed CommonHelper to ForumHelper
  • Renamed settings to be camelCase
  • Moved around search and login forms
  • Lots of polish and fixes

3) Decoda v5.1.0

A new version of Decoda has been released, version 5.1.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 5.1.0
Tested On: PHP 5.4, Composer
Requires: PHP 5.3, Composer
Commit Hash: b554ba63750bf2c32b0e22b757fed57d5adb981f
Changes:

  • Updated to use Multibyte extensively
  • Added Decoda::hasFilter() and Decoda::hasHook()
  • Added <code> tags within <pre> for CodeFilter and proper semantics
  • Added source tag that renders <code> tag for CodeFilter
  • Refactored Decoda::_buildTag() to be more efficient
  • Fixed bugs with custom brackets in tag parsing
  • Fixed bugs with auto-linking regex
  • Fixed bug with URLs that end in trailing slash
  • Changed <code> to <var> for var tag

4) Uploader v4.0.0

A new version of Uploader has been released, version 4.0.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 4.0.0
Tested On: PHP 5.4
Requires: PHP 5.3
Commit Hash: f4d115ff504abdb8b1c7e508ae530300ef53409c
Changes:

  • Updated to use Composer extensively
  • Updated to use Transit and AWS SDK internally
  • Uploader and S3 classes have been removed (uploading is done purely in the model layer)
  • Transformations can be applied to the original file or used to create new files
  • Transformations now support the following options: nameCallback, append, prepend, uploadDir, finalPath, overwrite and self
  • Added Model::deleteImages($id) to delete uploaded files and not the record
  • Added automatic file deletion when a record is deleted, or a path is being overwritten with a record update
  • Added built in support for file uploading and importing (local, remote or stream)
  • Added rollback file deletion if the upload process fails
  • Added Model::beforeTransport() callback
  • Added logging for critical errors
  • Added AWS S3 and Glacier transport support
  • Added type and mimeType validation rules
  • Improved the error handling
  • Improved file renaming and moving
  • Removed config and mime type mapping
  • Removed Test and Vendor files
  • Option name was renamed to nameCallback
  • Option importFrom was removed as importing is built in
  • Option s3 was replaced with transport
  • Option metaColumns had keys renamed
  • Options baseDir and uploadDir were replaced with tempDir, uploadDir and finalPath
  • Options maxNameLength and saveAsFilename were removed
  • View the updated documentation for help

5) Decoda v5.0.0

A new version of Decoda has been released, version 5.0.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 5.0.0
Tested On: PHP 5.3
Requires: PHP 5.3
Commit Hash: 29dfe2d792d65c0d2b81d470213e54e75a2db722
Changes:

  • Changed folder and namespace structure to make heavier use of Composer
  • Added attribute support for self closing tags
  • Moved interfaces to source root
  • Reversed naming of abstract classes
  • Removed Decoda's autoloader in place of Composer
  • Removed DECODA constant
  • Updated to use SPL exceptions

6) Decoda v4.1.0

A new version of Decoda has been released, version 4.1.0. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 4.1.0
Tested On: PHP 5.4
Requires: PHP 5.3
Commit Hash: 5da68b72a0ec4b774eb9e421fa930b9ff0d316c5
Changes:

7) Decoda v4.0.0-beta

A new version of Decoda has been released, version 4.0.0-beta. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 4.0.0-beta
Tested On: PHP 5.3
Requires: PHP 5.3
Commit Hash: f960a1b4f4064d48894f4f7438cce7eed3a9381c
Changes:

  • Refactored for PHP 5.3 namespaces and moved all classes to namespaced folders
  • Added unit tests for all classes
  • Added configuration paths to define custom lookup locations
  • Added a new option for Filters: childrenBlacklist and renamed children to childrenWhitelist
  • Added a new option for Filters: persistContent
  • Added a new config for QuoteFilters: dateFormat
  • Added a new config for BlockFilters: spoilerToggle
  • Added a new config for UrlFilter: protocols
  • Added a new config for CensorHook: suffix
  • Added a new configs for EmoticonHook: path, extension
  • Added support for self closing tags:
  • Added a global blacklist to Decoda using Decoda::blacklist()
  • Fixed incorrectly nested tags
  • Fixed child and parent hierarchies
  • Fixed CRLF conversion problems
  • Merged Filter options alias and map into mapAttributes
  • Moved all class constants to Decoda base
  • Refactored all Filter regex patterns
  • Refactored all the template HTML classes
  • Removed all global constants except for DECODA
  • Removed Decoda::nl2br()
  • Removed Filter option testNoDefault
  • Renamed Filter option key to tag
  • Renamed Filter option tag to htmlTag
  • Renamed Filter option type to displayType
  • Renamed Filter option allowed to allowedTypes
  • Renamed Decoda::disableFilters() to resetFilters()
  • Renamed Decoda::disableHooks() to resetHooks()
  • Updated doc blocks and examples
  • Updated EmailFilter and UrlFilter to use filter_var()
  • Updated Decoda to throw exceptions when necessary

8) Decoda v3.4

A new version of Decoda has been released, version 3.4. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 3.4
Tested On: PHP 5.3
Requires: PHP 5.2
Commit Hash: 6fb3cdb9a906d720687d87e4b6b3b4533cd5af7f
Changes:

  • Added Composer support
  • Added an alias property to filters allowing attribute alias names for tags

9) Uploader v3.6

A new version of Uploader has been released, version 3.6. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 3.6
Tested On: PHP 5.3, CakePHP 2.0.5
Requires: PHP 5.2, CakePHP 2.0
Commit Hash: d1f2f0c253d4c132836049dee6c84422155fb05e
Changes:

  • Fixed PHP 5.4 strict errors
  • Fixed a bug where empty file uploads will still trigger validation
  • Added an allowEmpty option for Uploader::uploadAll()
  • Added width and height validation rules to FileValidationBehavior
  • Refactored Uploader::uploadAll() to accept an array of options instead of arguments (backwards compatible)
  • Refactored so that on/allowEmpty rules can be passed to FileValidationBehavior like regular validation rules
  • Required validation rule is now by default, allowEmpty true and on create
  • Replaced errors with exceptions
  • Allow empty extension validation to use all mime types [Issue #56]
  • Allow empty file uploads to continue when multiple uploads are used [Issue #62]
  • Use uploadDir in AttachmentBehavior::beforeDelete() if saveAsFilename is true [Issue #63]
  • Use cURL to grab the ext/mimetype for Uploader::importRemote() [Issue #55]
  • Grab image dimensions at the end of Uploader::upload() to work for all upload formats [Issue #60]

10) Forum v3.1

A new version of Forum has been released, version 3.1. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.

Version: 3.1
Tested On: PHP 5.3, CakePHP 2.0.5
Requires: PHP 5.2, CakePHP 2
Commit Hash: 0536b72ed1bca3d6b19f2f886af9e1afe5737de1
Changes:

  • Added Spanish locale (courtesy of jasanchez)
  • Updated Decoda to 3.3.1
  • Updated TypeConverter to 1.3
  • Updated AutoLoginComponent to 3.5.1