Skip to content

Commit 9e7a8ba

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) ### 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 d350978 commit 9e7a8ba

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
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+
18+
19+
### BREAKING CHANGES
20+
21+
* The `default` segment has been split into `identifier` and `whitespace`
22+
segments. There's also a new `unknown` segment that will only show up for malformed
23+
SQL such as an unclosed string.
24+
25+
However, the highlight() function works largely the same as before, both normal mode and HTML mode,
26+
except for the bug fix to stop classifying identifiers as strings. In other words, SQL like
27+
28+
select * from EMP where NAME="John Smith"
29+
30+
will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.
31+
* drop support for Node 14.
32+
133
# [5.0.0](https://github.com/scriptcoded/sql-highlight/compare/v4.4.2...v5.0.0) (2024-06-23)
234

335

package.json

+12-3
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)