From 2d3152049eeb8e44edaae8f46a4d841b6970b664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malcolm=20Nihl=C3=A9n?= Date: Fri, 6 Jun 2025 13:02:36 +0200 Subject: [PATCH 1/2] chore: use git ignore file when linting --- biome.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/biome.json b/biome.json index ee18b97..398025a 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,10 @@ { "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, "organizeImports": { "enabled": true }, From 231376933ee877562bc056875e22f4d042ebf6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malcolm=20Nihl=C3=A9n?= Date: Fri, 6 Jun 2025 13:04:58 +0200 Subject: [PATCH 2/2] ci: run test suite for Node 24 as well --- .github/workflows/test.yml | 4 ++-- .nvmrc | 2 +- README.md | 2 +- package.json | 16 +++------------- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebdfcd8..927bde4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: matrix: # If you change these, don't forget to update carryforward in the finish # step as well. - node-version: [16, 18, 20, 22] + node-version: [16, 18, 20, 22, 24] steps: - uses: actions/checkout@v4 @@ -43,4 +43,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true - carryforward: "16,18,20,22" + carryforward: "16,18,20,22,24" diff --git a/.nvmrc b/.nvmrc index e9c9b2a..54c6511 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v22.3 +v24 diff --git a/README.md b/README.md index 4d3b4ee..2d8b9e1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ and there are no external dependencies 😉 ## Installation -sql-highlight is tested to work with Node.js 16, 18, 20 and 22. +sql-highlight is tested to work with Node.js 16, 18, 20, 22 and 24. Install with Yarn: ```bash diff --git a/package.json b/package.json index be39067..d06f9c7 100644 --- a/package.json +++ b/package.json @@ -8,29 +8,19 @@ "type": "git", "url": "git@github.com:scriptcoded/sql-highlight.git" }, - "files": [ - "/lib" - ], + "files": ["/lib"], "engines": { "node": ">=14" }, "scripts": { - "pretest": "npm run lint", "test": "jest", "test:coverage": "jest --coverage", "lint": "biome check", "lint:fix": "biome check --write" }, - "keywords": [ - "sql", - "syntax", - "highlight", - "highlighter" - ], + "keywords": ["sql", "syntax", "highlight", "highlighter"], "author": "Malcolm Nihlén ", - "contributors": [ - "pomahtuk" - ], + "contributors": ["pomahtuk"], "funding": [ "https://github.com/scriptcoded/sql-highlight?sponsor=1", {