Skip to content

Commit

Permalink
chore(release): 5.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# [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.
  • Loading branch information
scriptsbot committed Jul 2, 2024
1 parent d350978 commit 9e7a8ba
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
# [5.0.0](https://github.com/scriptcoded/sql-highlight/compare/v4.4.2...v5.0.0) (2024-07-02)


* chore!: add support for Node 22 ([9478bf1](https://github.com/scriptcoded/sql-highlight/commit/9478bf1485442c382b6f71719866c3cad4aa2f6b))


### Bug Fixes

* improve number detection ([02d459a](https://github.com/scriptcoded/sql-highlight/commit/02d459abe51ec9714fe174a7b5fe07661b6e7dae)), closes [#149](https://github.com/scriptcoded/sql-highlight/issues/149)
* improve operator detection ([183a4fb](https://github.com/scriptcoded/sql-highlight/commit/183a4fb05692a61c6d2251c6c50f076ef58e5ae5)), closes [#150](https://github.com/scriptcoded/sql-highlight/issues/150)
* 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)


### Features

* add way to style identifiers ([25677d4](https://github.com/scriptcoded/sql-highlight/commit/25677d40097ff9e623fc91e13c033d86d4ba47a2)), closes [#147](https://github.com/scriptcoded/sql-highlight/issues/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.

# [5.0.0](https://github.com/scriptcoded/sql-highlight/compare/v4.4.2...v5.0.0) (2024-06-23)


Expand Down
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"type": "git",
"url": "[email protected]:scriptcoded/sql-highlight.git"
},
"files": ["/lib"],
"files": [
"/lib"
],
"engines": {
"node": ">=14"
},
Expand All @@ -19,9 +21,16 @@
"lint": "biome check",
"lint-fix": "biome check --write"
},
"keywords": ["sql", "syntax", "highlight", "highlighter"],
"keywords": [
"sql",
"syntax",
"highlight",
"highlighter"
],
"author": "Malcolm Nihlén <[email protected]>",
"contributors": ["pomahtuk"],
"contributors": [
"pomahtuk"
],
"funding": [
"https://github.com/scriptcoded/sql-highlight?sponsor=1",
{
Expand Down

0 comments on commit 9e7a8ba

Please sign in to comment.