Skip to content

Syntax.js v2.5.0 - Use Strict! New configuration options! Fixes!

Choose a tag to compare

@williamtroup williamtroup released this 29 Mar 12:16
· 82 commits to main since this release
a42285a

Configuration Options:

  • Added a new configuration option called "objectErrorText", which states the error text that should be shown when an object error is detected (defaults to "Errors in object: {{error_1}}, {{error_2}}").
  • Added a new configuration option called "attributeNotSetErrorText", which states the error text that should be shown when a binding attribute isn't set (defaults to "The attribute '{{attribute_name}}' has not been set correctly.").
  • Added a new configuration option called "languageNotSupportedErrorText", which states the error text that should be shown when a language detected is not supported (defaults to "Language '{{language}}' is not supported.").
  • Added a new configuration option called "noCodeAvailableToRenderErrorText", which states the error text that should be shown when there is no code to render (defaults to "No code is available to render.").

Improvements:

  • Added "use strict" support internally and updated all public functions to use the new scope.
  • Minor improvements to the README and README_NUGET files.
  • All default parameters are now read more accurately and apply the correct defaults.

Fixes:

  • Fixed a minor formatting issue in the "package.json" file.
  • Fixed a bad error message when no code is available to render.