Resource icon

XF2 Addons Standard Library by Xon 1.18.0
A number of helper utilities designed to ease add-on development.

Add support for addon.json 'require'/'require-soft' to support addon version strings instead of the addon version_id.
Uses version_compare under the hood after some very basic standardization.

php version strings support dotted versions, '1.2.3' and also each part may also support special character strings:
any string not found in this list < dev < alpha = a < beta = b < RC | Release Candidate = rc < # < patch level | pl = p.
  • Add controller plugin 'SV\StandardLib\ControllerPlugin\Delete' a plugin helper for implementing soft/hard/undeleting of content
  • Update bundled moment.js library
  • php 8.2 compatibility update
  • If using the Svg Template addon, update to SVG Template 2.4.5 or rendering SVGs to PNGs will stop working
  • Avoid duplicate some join expressions multiple times when using optimized list query add-on
  • XF2.2.10 compat fix for "view template modifications" link not rendering
  • Move quick_filter template/js which dynamically updates body/pagenav in an overlay from SV/WhoReplied into SV/StandardLib
    • See Who Replied v2.2.0+ or User Mention Improvements v2.8.0+ for examples of usage
  • Fix type-error when a collection is passed to the removeValue templater filter function
  • Remove outdated comment in EarlyJoinFinderTrait
  • Add isPermissionInUse install helper
  • Add SV\StandardLib\Behavior\Cacheable behavior, to help automate calling rebuildCache (or a defined function) on a repository which matches the entity's name
  • Use templater_setup code event to inject various filters/functions into multiple templater types.
    • Adds the extendable class SV\StandardLib\TemplaterHelper to help add filters/functions to templates without manualy extending every templater type
  • Add new template filters/functions
    • parse_less_func
    • abs
    • array_diff
    • sv_array_reverse => array_reverse
    • Backport phrase_dynamic function to XF2.1
  • Fix for using SqlJoinTrait and EarlyJoinFinderTrait together
    • Resolves compatibility issue when using Bump Thread and Optimized List Queries add-ons together
  • Update EarlyJoinFinderTrait to add support tables with compound primary keys
  • Document using InstallerHelper
  • Add InstallerHelper::getReversedAlterTables (with example usage in README.md), to hopefully simplify uninstaller code.
    • Takes the result of getAlterTables (array of table alters) and reverses simple column adds, renames and index adds.
    • Thanks TickTackk
Top Bottom