Skip to content

Syntax.js v3.0.0 - Rewritten in TypeScript, allowing greater React, Angular, and other library support!

Choose a tag to compare

@williamtroup williamtroup released this 15 Jul 09:47
· 27 commits to main since this release
1eec5fc

Language Shift:

  • The entire project has been rewritten in TypeScript, allowing all components to be exported, which allows better support for libraries such as React, Angular, etc.
  • Added CDN links for the minimized version of the files.
  • The TypeScript code is compiled to ES2016 instead of ES5 (older browsers, such as IE, are no longer supported).

Building:

  • You can now run separate builds to produce CJS, ESM, and Minimized project versions.
  • All files not required for the NPM packages have now been excluded.

Binding Options:

  • BREAKING: All the event custom triggers are now under a new section called "events".

Configuration Options:

  • BREAKING: All the text options are now under a new section called "text".
  • BREAKING: All the event custom triggers are now under a new section called "events".
  • The configuration setting "text.buttonsOpenerText" now defaults to the "←" character.
  • The configuration setting "text.buttonsCloserText" now defaults to the "→" character.

Tabs Binding Options:

  • BREAKING: All the event custom triggers are now under a new section called "events".

Testing:

  • Removed the "src" and "dist" folders under "test". Only the dist versions remain, removing duplication.
  • Added "BUILD_INSTRUCTIONS.md" to help first-time users set up their dev environments.

Fixes:

  • Fixed the custom triggers "onKeywordClicked", "onValueClicked", and "onAttributeClicked" not firing in Tabs mode.
  • Fixed the custom triggers "onKeywordClicked", "onValueClicked", and "onAttributeClicked" not firing when colors are disabled.