6.0.0 (2024-07-02)
- improve number detection (02d459a), closes #149
- improve operator detection (183a4fb), closes #150
- typo in unknown segments (70af287), closes #148 #178 #148
- The
default
segment has been split intoidentifier
andwhitespace
segments. There's also a newunknown
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.
5.0.0 (2024-07-02)
- chore!: add support for Node 22 (9478bf1)
- improve number detection (02d459a), closes #149
- improve operator detection (183a4fb), closes #150
- typo in unknown segments (70af287), closes #148 #178 #148
- The
default
segment has been split intoidentifier
andwhitespace
segments. There's also a newunknown
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.
- drop support for Node 14.
5.0.0 (2024-06-23)
- chore!: add support for Node 22 (628360f)
- drop support for Node 14.
4.4.2 (2024-03-10)
- add COMMIT keyword (b9ccf62)
4.4.1 (2024-03-10)
- add RETURNING keyword (e36fb72)
4.3.2 (2023-03-16)
4.4.0 (2023-10-04)
4.3.3 (2023-04-14)
4.3.1 (2023-02-16)
- release 4.3.1 (a66db9e)
4.3.0 (2023-01-13)
4.2.2 (2022-12-22)
- update dependencies (50faad3)
4.2.1 (2022-08-16)
4.2.0 (2022-08-08)
4.1.1 (2022-07-26)
4.1.0 (2022-07-23)
4.0.5 (2022-07-23)
4.0.4 (2022-07-23)
4.0.3 (2022-07-23)
4.0.2 (2022-07-23)
- add missing keywords (cfaca34)
4.0.1 (2021-08-21)
- add overlaps keyword (29321dd)
4.0.0 (2021-07-16)
- update main file (d19ee2e)
- move sources to lib (c4499a3)
- moved sources
Sources have been moved to the lib
folder. If you're referencing files
directly (require(sql-highlight/index.js)
) you should instead
reference the new lib directory (require(sql-highlight/lib/index.js)
)