Skip to content

Commit afbc0fe

Browse files
committed
chore(release): 6.0.0 [skip ci]
# [6.0.0](v5.0.0...v6.0.0) (2024-07-02) ### Bug Fixes * improve number detection ([02d459a](02d459a)), closes [#149](#149) * improve operator detection ([183a4fb](183a4fb)), closes [#150](#150) * typo in unknown segments ([70af287](70af287)), closes [#148](#148) [#178](#178) [#148](#148) ### Features * add way to style identifiers ([25677d4](25677d4)), closes [#147](#147) * release 5.1.0 ([3a58def](3a58def)) ### 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.
1 parent 3a58def commit afbc0fe

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# [6.0.0](https://github.com/scriptcoded/sql-highlight/compare/v5.0.0...v6.0.0) (2024-07-02)
2+
3+
4+
### Bug Fixes
5+
6+
* improve number detection ([02d459a](https://github.com/scriptcoded/sql-highlight/commit/02d459abe51ec9714fe174a7b5fe07661b6e7dae)), closes [#149](https://github.com/scriptcoded/sql-highlight/issues/149)
7+
* improve operator detection ([183a4fb](https://github.com/scriptcoded/sql-highlight/commit/183a4fb05692a61c6d2251c6c50f076ef58e5ae5)), closes [#150](https://github.com/scriptcoded/sql-highlight/issues/150)
8+
* typo in unknown segments ([70af287](https://github.com/scriptcoded/sql-highlight/commit/70af287d5e6cd1f6880942349498a0a37e0e08a9)), closes [#148](https://github.com/scriptcoded/sql-highlight/issues/148) [#178](https://github.com/scriptcoded/sql-highlight/issues/178) [#148](https://github.com/scriptcoded/sql-highlight/issues/148)
9+
10+
11+
### Features
12+
13+
* add way to style identifiers ([25677d4](https://github.com/scriptcoded/sql-highlight/commit/25677d40097ff9e623fc91e13c033d86d4ba47a2)), closes [#147](https://github.com/scriptcoded/sql-highlight/issues/147)
14+
* release 5.1.0 ([3a58def](https://github.com/scriptcoded/sql-highlight/commit/3a58def5bfd4fc3c909470e61481546b46fdebc1))
15+
16+
17+
### BREAKING CHANGES
18+
19+
* The `default` segment has been split into `identifier` and `whitespace`
20+
segments. There's also a new `unknown` segment that will only show up for malformed
21+
SQL such as an unclosed string.
22+
23+
However, the highlight() function works largely the same as before, both normal mode and HTML mode,
24+
except for the bug fix to stop classifying identifiers as strings. In other words, SQL like
25+
26+
select * from EMP where NAME="John Smith"
27+
28+
will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.
29+
130
# [5.0.0](https://github.com/scriptcoded/sql-highlight/compare/v4.4.2...v5.0.0) (2024-07-02)
231

332

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sql-highlight",
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"description": "A simple and lightweight library for highlighting SQL queries written in pure JavaScript",
55
"main": "lib/index.js",
66
"types": "./lib/index.d.ts",

0 commit comments

Comments
 (0)