Skip to content

Releases: williamtroup/Syntax.js

Syntax.js v3.1.0 - Improved options! UI enhancements! Fixes!

06 Sep 12:33
60ad74c
Compare
Choose a tag to compare

Building Options:

  • BREAKING: All "highlight" binding options have now been moved into a new object called "highlight" (for example, "highlight.keywords").
  • BREAKING: All "button" binding options have now been moved into a new object called "buttons" (for example, "buttons.showCopy" and "buttons.maximum").
  • The binding option "maximumButtons" (now "buttons.maximum") is now checked as larger or equal to so that the buttons can be hidden for the Copy/Print buttons by default.

UI Improvements:

  • When tabbing is enabled, switching tabs now shows a nice fade-in transition.

General Improvements:

  • Added new rules to enforce stricter types across the code base.
  • Added missing types in the "constant.ts" file.
  • Added an ignore path for ".DS_Store" files when packing the NuGet package.
  • Moved from ES2016 to ES2020.
  • Updated all the NPM packages to the latest versions.
  • Improved the way that custom button classes are assigned to the custom buttons.
  • Improved the way that events are assigned.

Fixes:

  • Fixed an issue that caused the buttons in the display to use the wrong font.

Syntax.js v3.0.1 - Product code improvements!

18 Jul 22:11
a13db37
Compare
Choose a tag to compare
  • Moved from function() setups to lambdas.
  • Fixed an issue with the filenames used in the headers for each TS file.
  • Renamed "Constants" to "Constant".
  • Fixed missing type reference for imports.
  • Added a missing types reference for the packages.json file.
  • Updated keywords for the project.
  • Fixed missing return types.
  • Massive code reorganization.

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

15 Jul 09:47
1eec5fc
Compare
Choose a tag to compare

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.

Syntax.js v2.6.0 - Translations support! Export to third-party library support!

18 Jun 14:48
937560c
Compare
Choose a tag to compare

New Features:

  • Added export support for the global "$syntax" object, which can now be imported as "syntax.js".
  • Added a new folder to "dist" called translations, and added translation files for the following languages:
    1. af Afrikaans
    2. ar Arabic
    3. hy Armenian
    4. be Belarusian
    5. bn Bengali
    6. bg Bulgarian
    7. ca Catalan
    8. zh Chinese (simplified)
    9. da Danish
    10. nl Dutch
    11. en English (default)
    12. eo Esperanto
    13. et Estonian
    14. fa Farsi
    15. fi Finnish
    16. fr French
    17. fy Frisian
    18. gl Galician
    19. ka Georgian
    20. de German
    21. el Greek
    22. he Hebrew
    23. hi Hindi
    24. hu Hungarian
    25. is Icelandic
    26. id Indonesian
    27. ga Irish
    28. it Italian
    29. ja Japanese
    30. ko Korean
    31. lv Latvian
    32. lt Lithuanian
    33. lb Luxembourgish
    34. ms Malay
    35. ne Nepali
    36. no Norwegian
    37. pl Polish
    38. pt Portuguese
    39. ro Romanian
    40. si Sinhalese
    41. sk Slovak
    42. sl Slovenian
    43. es Spanish
    44. sv Swedish
    45. tl Tagalog
    46. ta Tamil
    47. zh-tw Taiwanese
    48. te Telugu
    49. th Thai
    50. tr Turkish
    51. uk Ukrainian

Configuration Options:

  • The binding options "copyButtonText" and "printButtonText" are now part of the main configuration.

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

29 Mar 12:16
a42285a
Compare
Choose a tag to compare

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.

Syntax v2.4.3 - Documentation updates!

26 Feb 22:04
63f9ad4
Compare
Choose a tag to compare
  • Documentation has been removed, as it is available on the main website.

Syntax.js - v2.4.2 - Hover effect / general improvements!

06 Feb 17:46
79a103a
Compare
Choose a tag to compare
  • All hover transition effects now work for hovering, and not hovering, which results in a smoother display.
  • Minor updates to the documentation.
  • Added a new ":root" variable called "--syntax-js-default-font" (specifies the default font).
  • Fixed the "journey.js.nuspec" file including the ".github" folder when NuGet PACK is called.
  • Added install instructions into the main README files.
  • Added Math injection directly into the main instance.
  • Added JSON injection directly into the main instance.

Syntax v2.4.1 - Documentation improvements!

18 Jan 18:36
7621a05
Compare
Choose a tag to compare
  • Added correct year to all files, and added missing year to all minimized/dist files.
  • Fixed HTML files using the wrong formatting for meta, and imports being missing.
  • Improved the documentation in the main README files.

Syntax.js v2.4.0 - CSS improvements and new website!

15 Jan 17:11
630b8b0
Compare
Choose a tag to compare
  • BREAKING: All ":root" variables now start with "--syntax-js-", which will prevent collisions with other libraries.
  • Updated project homepage URL.

Syntax.js v2.3.1 - Style improvements and new Custom Triggers!

04 Jan 12:18
e02701d
Compare
Choose a tag to compare
  • Comments are now italic by default.
  • Added a new binding custom trigger called "onButtonsClosed", which states an event that should be triggered when the buttons are closed.
  • Added a new binding custom trigger called "onButtonsOpened", which states an event that should be triggered when the buttons are closed.
  • Minor documentation improvements.