Skip to content

Latest commit

 

History

History
184 lines (140 loc) · 6.63 KB

CHANGELOG.md

File metadata and controls

184 lines (140 loc) · 6.63 KB

(MODX)EvolutionCMS.snippets.ddStringTools changelog

Version 2.2 (2024-11-05)

  • + Tools → Preg replacer → Parameters → tools->pregReplacer->pattern: By default / + /u is used, but now you can use your own modifiers.

Version 2.1 (2023-08-22)

  • + Parameters → tools->typographer->optAlign_useClasses: The new parameter. Allows to use CSS classes instead of inline styles for optical alignment (<span class="oa_comma_b"> instead of <span style="margin-right:-0.2em;">).
  • * \ddTools::getTpl is used instead of $modx->getTpl (means a bit less bugs).
  • + Composer.json → autoload.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.
  • * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.6 is required (if the tools->typographer parameter is used).

Version 2.0 (2021-04-15)

  • * Attention! Backward compatibility is broken.
  • * Attention! PHP >= 5.6 is required.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.48.2 is required.
  • * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.5 is required.
  • - The following outdated parameters is not supported anymore (use the tools parameter instead):
    • - specialCharsToHTMLEntities.
    • - removePlaceholders.
    • - escapeForJS.
    • - URLEncode.
    • - toUppercase.
    • - toLowercase.
    • - parseMarkdown.
    • - typography.
    • - typography_params.
    • - stripTags.
    • - stripTags_allowed.
  • + Parameters → tools: Can also be set as HJSON.
  • + You can just call \DDTools\Snippet::runSnippet to run the snippet without DB and eval (see README → Examples).
  • + \ddStringTools\Snippet: The new class. All snippet code was moved here.
  • + \ddStringTools\Tool\Tplparser\Tool::modify_exec: Less fragile code, now placeholders can be either an array or an object.
  • * \ddStringTools\Tool\Typographer\Tool::modify_exec:
    • * \DDTools\Snippet::runSnippet is used instead of $modx->runSnippet for running the ddTypograph snippet without DB and eval.
    • * Less fragile code, \DDTools\ObjectTools::extend is used instead of array_merge.
  • * README:
    • + Links → Packagist.
    • * Documentation:
      • + Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
      • * Parameters description: Text improvements.
  • + README_ru.
  • + Composer.json → support.

Version 1.7 (2020-06-22)

  • + Added the ability to perform a regular expression search and replace (see README):
    • + ddStringTools\Tool\Pregreplacer\Tool.
    • + Snippet → Parameters:
      • + tools->pregReplacer: The new parameter.
      • + tools->pregReplacer->pattern: The new parameter.
      • + tools->pregReplacer->replacement: The new parameter.

Version 1.6 (2020-06-03)

  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.38.1 is required.
  • + Parameters → inputString: Can also be set as a PHP object or array (e. g. for calls through $modx->runSnippet). In this case, it will be converted to JSON first.
  • * Small refactoring.
  • + README:
    • + Documentation → Examples → Call through $modx->runSnippet.
    • - Home page.
    • + Links.
  • + CHANGELOG: Style and text improvements.
  • + CHANGELOG_ru.
  • * Composer.json:
    • + homepage.
    • + authors.
    • * require:
      • * dd/evolutioncms-libraries-ddtools: Renamed from dd/modxevo-library-ddtools.
      • * dd/evolutioncms-snippets-ddtypograph: Renamed from dd/modxevo-snippet-ddtypograph.

Version 1.5.2 (2020-05-07)

  • * Parameters → tools->charEscaper->lineBreaks: Line breaks will be replaced to \r\n instead of space.
  • * Small refactoring.

Version 1.5.1 (2020-05-07)

  • * Snippet: A tool will not be applied to an empty string.

Version 1.5 (2020-05-07)

  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.35 is required.
  • * The new snippet structure (see README):
    • + Added the ability to use multiple tools together with the required order.
    • - The following parameters were removed (with backward compatibility):
      • - toLowercase.
      • - toUppercase.
      • - parseMarkdown.
      • - typography.
      • - typography_params.
      • - stripTags.
      • - stripTags_allowed.
      • - specialCharsToHTMLEntities.
      • - removePlaceholders.
      • - escapeForJS.
      • - URLEncode.
    • + The following parameters were added:
      • + tools.
      • + tools->caseConverter.
      • + tools->caseConverter->toLower.
      • + tools->caseConverter->toUpper.
      • + tools->markdownParser.
      • + tools->markdownParser->parseInline.
      • + tools->typographer.
      • + tools->typographer->optAlign.
      • + tools->typographer->text_paragraphs.
      • + tools->typographer->text_autoLinks.
      • + tools->typographer->etc_unicodeConvert.
      • + tools->typographer->noTags.
      • + tools->typographer->excludeTags.
      • + tools->tagRemover.
      • + tools->tagRemover->allowed.
      • + tools->specialCharConverter.
      • + tools->charEscaper.
      • + tools->urlEncoder.
      • + tools->placeholderRemover.
  • + Snippet: The following parameters added (see README):
    • + tools->charEscaper->backslashes.
    • + tools->charEscaper->lineBreaks.
    • + tools->charEscaper->tabs.
    • + tools->charEscaper->modxPlaceholders.
    • + tools->charEscaper->quotes.
    • + tools->tplParser.
    • + tools->tplParser->tpl.
    • + tools->tplParser->placeholders.
  • * Composer.json: Fixed versions format.

Version 1.4 (2020-04-19)

  • + Added the ability to remove placeholders like [+placeholder+].
  • * Refactoring, the $modx->getConfig method is used instead of the $modx->config field.
  • * README:
    • * Style changes.
    • * Documentation → Parameters description: Small order changes.
  • + Composer.json → require.

Version 1.3 (2019-10-20)

  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.27 is required (because not tested in older versions).
  • * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.4 is required if the typography parameter is used.
  • + Added the ability to text typography (see the typography parameter).
  • + README → Documentation:
    • + Installation instructions.
    • + Parameters description.
    • + Examples.
  • + Composer.json.

Version 1.2 (2019-08-09)

  • + Added the ability to parse Markdown (see the parseMarkdown parameter).

Version 1.1.1 (2017-08-30)

  • * Snippet now compatible with UTF-8 character encoding.

Version 1.1 (2017-02-25)

  • + Added the ability to convert characters to lowercase or to uppercase (see the toLowercase and toUppercase parameters).

Version 1.0 (2016-12-30)

  • + The first release.
<style>ul{list-style:none;}</style>