Skip to content

Commit

Permalink
Pin minimum version to Node.js v20 (#619)
Browse files Browse the repository at this point in the history
* Pin minimum version to Node.js v20

Signed-off-by: GitHub <[email protected]>

* use scope specifier in deno assert

Signed-off-by: GitHub <[email protected]>

---------

Signed-off-by: GitHub <[email protected]>
  • Loading branch information
sr229 authored Oct 9, 2024
1 parent 27b7bce commit c4c3294
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"userGid": 1000
},
"ghcr.io/michidk/devcontainers-features/bun:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "latest"
},
"ghcr.io/devcontainers-community/features/deno": {
"version": "latest"
}
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
deno-version: [canary, rc]
deno-version: [latest, rc]

steps:
- uses: actions/[email protected]
Expand All @@ -28,8 +28,7 @@ jobs:
- name: Test
run: |
echo 'SAUCENAO_TOKEN=${{ secrets.SAUCENAO_TOKEN }}' > ./.env
deno install -D
deno task build
deno install
deno task coverage:deno
test-bun:
Expand Down Expand Up @@ -59,7 +58,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 22.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/[email protected]
Expand Down
Binary file modified bun.lockb
Binary file not shown.
5 changes: 0 additions & 5 deletions deno.json

This file was deleted.

5 changes: 3 additions & 2 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@clarity/sagiri",
"version": "4.2.0",
"version": "4.2.1",
"exports": "./src/sagiri.ts",
"publish": {
"include": [
"LICENSE",
"README.md",
"src/**/*.ts"
"src/**/*.ts",
"jsr.json"
]
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sagiri",
"version": "4.2.0",
"version": "4.2.1",
"description": "A simple, lightweight and actually good JS wrapper for the SauceNAO API.",
"license": "MIT",
"main": "./dist/sagiri.cjs",
Expand Down Expand Up @@ -43,7 +43,7 @@
"source"
],
"engines": {
"node": "20.x"
"node": ">=20"
},
"files": [
"dist",
Expand Down Expand Up @@ -79,6 +79,6 @@
},
"dependencies": {
"form-data": "^4.0.0",
"node-fetch": "2.6.7"
"node-fetch": "^2.6.7"
}
}
2 changes: 1 addition & 1 deletion test/deno/sagiri.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertThrows, assertExists } from "@std/assert";
import { assertThrows, assertExists } from "jsr:@std/assert";
import sagiri from "../../src/sagiri.ts";

Deno.test("should fail on invalid characters", () => {
Expand Down

0 comments on commit c4c3294

Please sign in to comment.