Releases: williamtroup/Syntax.js
Releases · williamtroup/Syntax.js
Syntax.js v3.1.0 - Improved options! UI enhancements! Fixes!
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!
- 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!
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!
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:
af
Afrikaansar
Arabichy
Armenianbe
Belarusianbn
Bengalibg
Bulgarianca
Catalanzh
Chinese (simplified)da
Danishnl
Dutchen
English (default)eo
Esperantoet
Estonianfa
Farsifi
Finnishfr
Frenchfy
Frisiangl
Galicianka
Georgiande
Germanel
Greekhe
Hebrewhi
Hindihu
Hungarianis
Icelandicid
Indonesianga
Irishit
Italianja
Japaneseko
Koreanlv
Latvianlt
Lithuanianlb
Luxembourgishms
Malayne
Nepalino
Norwegianpl
Polishpt
Portuguesero
Romaniansi
Sinhalesesk
Slovaksl
Slovenianes
Spanishsv
Swedishtl
Tagalogta
Tamilzh-tw
Taiwanesete
Teluguth
Thaitr
Turkishuk
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!
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!
- Documentation has been removed, as it is available on the main website.
Syntax.js - v2.4.2 - Hover effect / general improvements!
- 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!
- 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!
- 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!
- 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.