Skip to content

v6.0.0

Compare
Choose a tag to compare
@scriptsbot scriptsbot released this 02 Jul 21:58
· 17 commits to main since this release
afbc0fe

6.0.0 (2024-07-02)

Note

These features were supposed to be included in the 5.0.0 release, but due to some issues with the release flow they got released separately. NPM didn't allow publishing in this case, causing two major bumps.

Bug Fixes

Features

BREAKING CHANGES

  • The default segment has been split into identifier and whitespace
    segments. There's also a new unknown segment that will only show up for malformed
    SQL such as an unclosed string.

However, the highlight() function works largely the same as before, both normal mode and HTML mode,
except for the bug fix to stop classifying identifiers as strings. In other words, SQL like

select * from EMP where NAME="John Smith"

will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.