Skip to content

Commit 5900186

Browse files
committed
chore(release): 5.0.0-beta.2 [skip ci]
# [5.0.0-beta.2](v5.0.0-beta.1...v5.0.0-beta.2) (2023-10-24) ### Features * add way to style identifiers ([01df1cd](01df1cd)), 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.
1 parent 01df1cd commit 5900186

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# [5.0.0-beta.2](https://github.com/scriptcoded/sql-highlight/compare/v5.0.0-beta.1...v5.0.0-beta.2) (2023-10-24)
2+
3+
4+
### Features
5+
6+
* add way to style identifiers ([01df1cd](https://github.com/scriptcoded/sql-highlight/commit/01df1cdf531a7e3631186390204bd0c6ee2bdf81)), closes [#147](https://github.com/scriptcoded/sql-highlight/issues/147)
7+
8+
9+
### BREAKING CHANGES
10+
11+
* The `default` segment has been split into `identifier` and `whitespace`
12+
segments. There's also a new `unknown` segment that will only show up for malformed
13+
SQL such as an unclosed string.
14+
15+
However, the highlight() function works largely the same as before, both normal mode and HTML mode,
16+
except for the bug fix to stop classifying identifiers as strings. In other words, SQL like
17+
18+
select * from EMP where NAME="John Smith"
19+
20+
will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.
21+
122
# [5.0.0-beta.1](https://github.com/scriptcoded/sql-highlight/compare/v4.4.0...v5.0.0-beta.1) (2023-10-24)
223

324

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sql-highlight",
3-
"version": "5.0.0-beta.1",
3+
"version": "5.0.0-beta.2",
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)