Skip to content

Latest commit

 

History

History
215 lines (101 loc) · 9.52 KB

CHANGELOG.md

File metadata and controls

215 lines (101 loc) · 9.52 KB

6.0.0 (2024-07-02)

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.

5.0.0 (2024-07-02)

  • chore!: add support for Node 22 (9478bf1)

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.

  • drop support for Node 14.

5.0.0 (2024-06-23)

  • chore!: add support for Node 22 (628360f)

BREAKING CHANGES

  • drop support for Node 14.

4.4.2 (2024-03-10)

Bug Fixes

4.4.1 (2024-03-10)

Bug Fixes

4.3.2 (2023-03-16)

Bug Fixes

  • change number regex to not use lookbehind (#106) (8e52120)

4.4.0 (2023-10-04)

Features

Performance Improvements

4.3.3 (2023-04-14)

Bug Fixes

4.3.1 (2023-02-16)

Miscellaneous Chores

4.3.0 (2023-01-13)

Features

4.2.2 (2022-12-22)

Bug Fixes

4.2.1 (2022-08-16)

Bug Fixes

4.2.0 (2022-08-08)

Features

4.1.1 (2022-07-26)

Bug Fixes

4.1.0 (2022-07-23)

Features

4.0.5 (2022-07-23)

Bug Fixes

4.0.4 (2022-07-23)

Bug Fixes

4.0.3 (2022-07-23)

Bug Fixes

4.0.2 (2022-07-23)

Bug Fixes

4.0.1 (2021-08-21)

Bug Fixes

4.0.0 (2021-07-16)

Bug Fixes

Code Refactoring

BREAKING CHANGES

  • 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))