See also general changes.

2.2.0

The following methods are silently deprecated and will be removed in the next major release:

  • s9e\TextFormatter\Configurator\TemplateChecker::disable()
  • s9e\TextFormatter\Configurator\TemplateChecker::enable()

2.1.0

s9e\TextFormatter\Configurator\RendererGenerators\PHP\XPathConvertor\Runner has been removed.

2.0.0

The following elements have been removed:

  • s9e\TextFormatter\Configurator\RendererGenerators\XSLT::$optimizer
  • s9e\TextFormatter\Configurator\RendererGenerators\XSLT\Optimizer
  • s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractNormalization::$onlyOnce

Elements that were deprecated in 1.x have been removed. See previous entries for current usage. This includes:

  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getAttributesByRegexp()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getCSSNodes()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getElementsByRegexp()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getJSNodes()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getObjectParamsByRegexp()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getURLNodes()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::loadTemplate()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::replaceTokens()
  • s9e\TextFormatter\Configurator\Helpers\TemplateHelper::saveTemplate()
  • s9e\TextFormatter\Configurator\Helpers\TemplateParser::parseEqualityExpr()
  • s9e\TextFormatter\Configurator\JavaScript::$exportMethods
  • s9e\TextFormatter\Configurator\JavaScript\Minifiers\ClosureCompilerApplication::$closureCompilerBin
  • s9e\TextFormatter\Configurator\JavaScript\Minifiers\ClosureCompilerApplication::$javaBin
  • s9e\TextFormatter\Plugins\Emoji\Configurator::$attrName
  • s9e\TextFormatter\Plugins\Emoji\Configurator::addAlias()
  • s9e\TextFormatter\Plugins\Emoji\Configurator::getAliases()
  • s9e\TextFormatter\Plugins\Emoji\Configurator::removeAlias()

The second argument for the s9e\TextFormatter\Utils\Http\Client methods get() and post() has changed. See API.

1.3.0

s9e\TextFormatter\Configurator\JavaScript::$exportMethods has been renamed to $exports. The $exportMethods property is silently deprecated but remains as an alias.

s9e\TextFormatter\Plugins\Emoji\Configurator::$attrName is deprecated but remains functional. The names of the attributes used by this plugin will be hardcoded in a future version.

s9e\TextFormatter\Plugins\Emoji\Configurator::$aliases has been made accessible (see API and docs for usage) and the following methods are now deprecated:

  • addAlias
  • getAliases
  • removeAlias

The following properties are now deprecated in s9e\TextFormatter\Configurator\JavaScript\Minifiers\ClosureCompilerApplication. Check out the documentation for the recommended usage.

  • closureCompilerBin
  • javaBin

1.2.0

The s9e\TextFormatter\Configurator\Helpers\TemplateHelper class have been split into subcomponents. The current API is deprecated but remains fully functional. The new API is as follows:

  • s9e\TextFormatter\Configurator\Helpers\NodeLocator

    • getAttributesByRegexp
    • getCSSNodes
    • getElementsByRegexp
    • getJSNodes
    • getObjectParamsByRegexp
    • getURLNodes

  • s9e\TextFormatter\Configurator\Helpers\TemplateLoader

    • load (previously: loadTemplate)
    • save (previously: saveTemplate)

  • s9e\TextFormatter\Configurator\Helpers\TemplateModifier

    • replaceTokens

  • s9e\TextFormatter\Configurator\Helpers\XPathHelper

    • parseEqualityExpr

1.0.0

The following method and properties have been removed from s9e\TextFormatter\Plugins\MediaEmbed\Configurator:

  • appendTemplate() — The same functionality can be implemented as a template normalizer.
  • $captureURLs — Disabling the plugin at runtime produces the same effect.
  • $createIndividualBBCodes — Individual BBCodes can be created manually.

In addition, support for custom schemes has been removed from the MediaEmbed plugin. The same functionality can be produced using the Preg plugin.

The predefinedAttributes property of s9e\TextFormatter\Plugins\BBCodes\Configurator\BBCode has been removed, as well as the s9e\TextFormatter\Plugins\BBCodes\Configurator\AttributeValueCollection class.

The return value of tag filters is not used to invalidate tags anymore. Tags must be explicitly invalidated in tag filters.

Support for attribute generators and the {RANDOM} token in BBCode definitions has been removed. The same behaviour can be defined in PHP by prepending a custom tag filter to a tag's filterChain.

The s9e\TextFormatter\Configurator\Exceptions\InvalidTemplateException and s9e\TextFormatter\Configurator\Exceptions\InvalidXslException classes have been removed.

0.13.0

s9e\TextFormatter\Parser\BuiltInFilters has been removed and split into multiple classes.

s9e\TextFormatter\Parser\Logger::get() has been renamed s9e\TextFormatter\Parser\Logger::getLogs().

0.12.0

Support for PHP 5.3 has been abandoned. Releases are now based on the release/php5.4 branch, which requires PHP 5.4.7 or greater. The release/php5.3 branch will remain active for some time but is unsupported.

The PHP renderer's source has been removed from the renderer instance.

The HostedMinifier and RemoteCache minifiers have been removed.

s9e\TextFormatter\Configurator\Helpers\TemplateHelper::getMetaElementsRegexp() has been removed.

s9e\TextFormatter\Configurator\Helpers\TemplateInspector::getDOM() has been removed.

The metaElementsRegexp property of s9e\TextFormatter\Renderer has been removed. Meta elements e, i and s are now always removed from the source XML before rendering.

The quickRenderingTest property of the PHP renderer is now protected.

s9e\TextFormatter\Configurator\Helpers\XPathHelper::export() has been moved to s9e\TextFormatter\Utils\XPath::export().

s9e\TextFormatter\Configurator\TemplateNormalization has been replaced by s9e\TextFormatter\Configurator\TemplateNormalizations\AbstractNormalization.

The branchTableThreshold property of s9e\TextFormatter\Configurator\RendererGenerators\PHP\Serializer has been removed.

The generateConditionals() and generateBranchTable() methods of s9e\TextFormatter\Configurator\RendererGenerators\PHP\Quick have been removed.

The template used by the Emoji plugin is now hardcoded and defaults to using EmojiOne 3.1's PNG assets. The following methods have been removed from the Emoji configurator:

  • forceImageSize()
  • omitImageSize()
  • setImageSize()
  • useEmojiOne()
  • usePNG()
  • useSVG()
  • useTwemoji()

0.11.0

The optional argument of s9e\TextFormatter\Configurator\RulesGenerator::getRules() has been removed.

The optional argument of s9e\TextFormatter\Configurator::finalize() has been removed.

The following methods have been removed:

  • s9e\TextFormatter\Configurator::addHTML5Rules()
    Tag rules are systematically added during finalize(). See Automatic rules generation.

  • s9e\TextFormatter\Configurator\Collections\Ruleset::defaultChildRule()
    The default is now deny.

  • s9e\TextFormatter\Configurator\Collections\Ruleset::defaultDescendantRule()
    The default is now deny.

  • s9e\TextFormatter\Configurator\Helpers\TemplateInspector::isIframe()

In addition, the meaning of the allowDescendant and denyDescendant rules have been changed to exclude the tag's child. See Tag rules.

0.10.0

s9e\TextFormatter\Plugins\Censor\Helper::reparse() has been removed.

s9e\TextFormatter\Parser\Tag::setSortPriority() has been removed. See the 0.7.0 notes for more info.

0.9.0

s9e\TextFormatter\Configurator\TemplateForensics has been renamed to s9e\TextFormatter\Configurator\TemplateInspector.

s9e\TextFormatter\Configurator\Items\Template::getForensics() has been renamed to s9e\TextFormatter\Configurator\Items\Template::getInspector().

0.8.0

The s9e\TextFormatter\Plugins\MediaEmbed\Configurator\SiteDefinitionProvider interface has been removed.

$configurator->MediaEmbed->defaultSites is now an iterable collection that implements the ArrayAccess interface. See its API.

0.7.0

s9e\TextFormatter\Parser\Tag::setSortPriority() has been deprecated. It will emit a warning upon use and will be removed in a future version.

The following methods now accept an additional argument to set a tag's priority at the time of its creation: