Skip to content

Commit 21cb28a

Browse files
committed
chore(release): 5.0.0 [skip ci]
# [5.0.0](v4.4.2...v5.0.0) (2024-07-02) * chore!: add support for Node 22 ([9478bf1](9478bf1)) ### 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 ([cb0c0f1](cb0c0f1)) ### 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.
1 parent cb0c0f1 commit 21cb28a

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# [5.0.0](https://github.com/scriptcoded/sql-highlight/compare/v4.4.2...v5.0.0) (2024-07-02)
2+
3+
4+
* chore!: add support for Node 22 ([9478bf1](https://github.com/scriptcoded/sql-highlight/commit/9478bf1485442c382b6f71719866c3cad4aa2f6b))
5+
6+
7+
### Bug Fixes
8+
9+
* improve number detection ([02d459a](https://github.com/scriptcoded/sql-highlight/commit/02d459abe51ec9714fe174a7b5fe07661b6e7dae)), closes [#149](https://github.com/scriptcoded/sql-highlight/issues/149)
10+
* improve operator detection ([183a4fb](https://github.com/scriptcoded/sql-highlight/commit/183a4fb05692a61c6d2251c6c50f076ef58e5ae5)), closes [#150](https://github.com/scriptcoded/sql-highlight/issues/150)
11+
* 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)
12+
13+
14+
### Features
15+
16+
* add way to style identifiers ([25677d4](https://github.com/scriptcoded/sql-highlight/commit/25677d40097ff9e623fc91e13c033d86d4ba47a2)), closes [#147](https://github.com/scriptcoded/sql-highlight/issues/147)
17+
* release 5.1.0 ([cb0c0f1](https://github.com/scriptcoded/sql-highlight/commit/cb0c0f10cf3382404ee3199e2a4250ce12ca9468))
18+
19+
20+
### BREAKING CHANGES
21+
22+
* The `default` segment has been split into `identifier` and `whitespace`
23+
segments. There's also a new `unknown` segment that will only show up for malformed
24+
SQL such as an unclosed string.
25+
26+
However, the highlight() function works largely the same as before, both normal mode and HTML mode,
27+
except for the bug fix to stop classifying identifiers as strings. In other words, SQL like
28+
29+
select * from EMP where NAME="John Smith"
30+
31+
will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.
32+
* drop support for Node 14.
33+
134
# [5.0.0](https://github.com/scriptcoded/sql-highlight/compare/v4.4.2...v5.0.0) (2024-06-23)
235

336

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"type": "git",
99
"url": "[email protected]:scriptcoded/sql-highlight.git"
1010
},
11-
"files": ["/lib"],
11+
"files": [
12+
"/lib"
13+
],
1214
"engines": {
1315
"node": ">=14"
1416
},
@@ -19,9 +21,16 @@
1921
"lint": "biome check",
2022
"lint-fix": "biome check --write"
2123
},
22-
"keywords": ["sql", "syntax", "highlight", "highlighter"],
24+
"keywords": [
25+
"sql",
26+
"syntax",
27+
"highlight",
28+
"highlighter"
29+
],
2330
"author": "Malcolm Nihlén <[email protected]>",
24-
"contributors": ["pomahtuk"],
31+
"contributors": [
32+
"pomahtuk"
33+
],
2534
"funding": [
2635
"https://github.com/scriptcoded/sql-highlight?sponsor=1",
2736
{

0 commit comments

Comments
 (0)