Skip to content

v4.2.0.0 - Few fixes and improvements!

Latest

Choose a tag to compare

@n00bcodr n00bcodr released this 06 Dec 05:51
· 1 commit to main since this release

⚙️ Improvements

  • Clearer syntax error reporting: an inline script with a syntax error is now skipped and named in the browser console along with the reason. Each script also gets its own source name in devtools, which makes debugging easier.
  • Syntax error notice on save: the config page now names any enabled inline (non-module) scripts that were saved but won't run because they have syntax errors. This also works without the code editor.
  • More useful warning icon: for classic scripts, the icon next to a script name now appears only for syntax errors, not warnings, and its tooltip shows the error message.

🐞 Bug Fixes

  • One broken script no longer stops the others: each inline script now runs as its own <script> element, so a syntax error only affects the script that contains it. Run order is unchanged.
  • Special characters in script names: names containing quotes, */ or line breaks can no longer break the generated JavaScript.
  • Emoji are no longer deleted on save: emoji and other characters outside the Basic Multilingual Plane are now kept in script names and code.
  • False errors in the code editor: valid modern JavaScript in classic scripts (class fields, #private members, ??=, static blocks) is no longer flagged as an error.
  • Semicolon warnings removed: the editor no longer warns about missing semicolons.

P.S. Enjoying the plugin?
Fuel development (and my storage addiction) with a coffee!

Buy Me a Coffee at ko-fi.com