Skip to content

1.7.5 - True Parity With Backend Templates

Choose a tag to compare

@Nerwyn Nerwyn released this 16 Mar 03:10
· 4 commits to main since this release

Changes in 1.7.5

  • Use user configured settings for number, date, time, and datetime translated functions #9.

⚠️ Warning ⚠️

This version introduces new dependencies on polyfills for several node functions. Your bundler must be updated to ensure the node process polyfill is included in your bundle. See the README for more information.

True Parity With Backend Templates

Every single Home Assistant template extension has now been implemented into this package. Other than some minor differences in behavior, this templating system can now entirely replace the Home Assistant backend templating system for custom frontend add-ons with virtually no loss in functionality.

New Extensions

  • config_entry_id
  • config_entry_attr
  • issues
  • issue
  • version
  • clamp
  • mod
  • wrap
  • remap
  • pack
  • unpack
  • from_hex
  • md5
  • sha1
  • sha256
  • sha512
  • shuffle
  • flatten
  • intersect
  • difference
  • symmetric_difference
  • union
  • combine
  • map
  • apply
  • as_function
  • merge_response
  • typeof

Updates to Existing Extensions

  • integration_entities now also supports config entry title as the input argument.
  • to_json now automatically applies the safe filter to the output, preventing autoescaping of it's characters.

Other Changes

  • The renderTemplate function is now available on the window.haNunjucks for easier debugging.

Patch Version Fixes

  • Optimize how data is retrieved from registries to use precalculated objects instead of find().
  • Subscribe to registry updates and update registries on a debounced timeout.
  • Fix issues registry subscription event name.
  • Refactor/fix config entries to use subscription with incremental updates #8.
  • Use user configured settings for number, date, time, and datetime translated functions #9.

Full Changelog: 1.6.2...1.7.5