From d0e95390b7db5e7bd8fc7c0635484507ad084d2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 06:19:35 +0000 Subject: [PATCH 1/7] Bump denoland/setup-deno from 1 to 2 Bumps [denoland/setup-deno](https://github.com/denoland/setup-deno) from 1 to 2. - [Release notes](https://github.com/denoland/setup-deno/releases) - [Commits](https://github.com/denoland/setup-deno/compare/v1...v2) --- updated-dependencies: - dependency-name: denoland/setup-deno dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2a40164..15091df3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4.1.7 - name: Setup Deno ${{ matrix.bun-version }} - uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@v2 with: deno-version: ${{ matrix.deno-version }} From 451c031283613c0bbd27b432242700d3099be65e Mon Sep 17 00:00:00 2001 From: Ayase Minori Date: Thu, 3 Oct 2024 06:41:25 +0000 Subject: [PATCH 2/7] ensure deno installs packages Signed-off-by: GitHub --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15091df3..db475090 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,7 @@ jobs: - name: Test run: | echo 'SAUCENAO_TOKEN=${{ secrets.SAUCENAO_TOKEN }}' > ./.env + deno install deno task coverage:deno test: runs-on: ubuntu-latest From 073dc43a5f7155c3c789cb427f238eebda6e19dd Mon Sep 17 00:00:00 2001 From: Ayase Minori Date: Thu, 3 Oct 2024 06:43:48 +0000 Subject: [PATCH 3/7] revert to 1.5.1 Looks like this was triggered from a faulty release, but I will merge it regardless Signed-off-by: GitHub --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db475090..a7994443 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4.1.7 - name: Setup Deno ${{ matrix.bun-version }} - uses: denoland/setup-deno@v2 + uses: denoland/setup-deno@v1.5.1 with: deno-version: ${{ matrix.deno-version }} From a65d603c5a54b75e843cf79e9e6da997b6cd3cab Mon Sep 17 00:00:00 2001 From: Ayase Minori Date: Thu, 3 Oct 2024 06:46:30 +0000 Subject: [PATCH 4/7] revert to using rc we'll be using v2 soon anyways so fuck it Signed-off-by: GitHub --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7994443..80370dde 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - deno-version: [canary, v1.46.1] + deno-version: [canary, rc] steps: - uses: actions/checkout@v4.1.7 From 4554a9a66fd20eafa417c487d79fb8cecd0b2b56 Mon Sep 17 00:00:00 2001 From: Ayase Minori Date: Thu, 3 Oct 2024 06:47:43 +0000 Subject: [PATCH 5/7] distinguish test-bun uniquely Signed-off-by: GitHub --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80370dde..92800767 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: echo 'SAUCENAO_TOKEN=${{ secrets.SAUCENAO_TOKEN }}' > ./.env deno install deno task coverage:deno - test: + test-bun: runs-on: ubuntu-latest strategy: From 83b97dbddae873d6cec7903bdd4708b98c43ae11 Mon Sep 17 00:00:00 2001 From: Ayase Minori Date: Thu, 3 Oct 2024 06:50:35 +0000 Subject: [PATCH 6/7] Ensure this shit passes Signed-off-by: GitHub --- .github/workflows/test.yml | 1 + package.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92800767..6398576a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: run: | echo 'SAUCENAO_TOKEN=${{ secrets.SAUCENAO_TOKEN }}' > ./.env deno install + deno task build deno task coverage:deno test-bun: runs-on: ubuntu-latest diff --git a/package.json b/package.json index 3a37d397..b9d249fe 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "4.1.0", "description": "A simple, lightweight and actually good JS wrapper for the SauceNAO API.", "license": "MIT", - "main": "./dist/sagiri.cjs", + "main": "dist/sagiri.cjs", "type": "module", "homepage": "https://github.com/ClarityCafe/Sagiri#readme", "repository": { @@ -49,8 +49,8 @@ }, "scripts": { "test": "bun --env-file='./.env.test.local' test bun", - "test:deno": "deno test --unstable-sloppy-imports --allow-net", - "coverage:deno": "deno test --unstable-sloppy-imports --allow-net --coverage", + "test:deno": "deno test --unstable-sloppy-imports --allow-net --allow-read", + "coverage:deno": "deno test --unstable-sloppy-imports --allow-net --allow-read --coverage", "test:nodejs": "jest node", "coverage:nodejs": "jest node --coverage", "coverage": "bun --env-file='./.env.test.local' test bun --coverage", From 46f62947a412a1170d76abdf9f0dc4a0448b203e Mon Sep 17 00:00:00 2001 From: Ayase Minori Date: Thu, 3 Oct 2024 07:00:51 +0000 Subject: [PATCH 7/7] what the fuck deno Signed-off-by: GitHub --- .github/workflows/test.yml | 2 +- package.json | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6398576a..67064be7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - name: Test run: | echo 'SAUCENAO_TOKEN=${{ secrets.SAUCENAO_TOKEN }}' > ./.env - deno install + deno install -D deno task build deno task coverage:deno test-bun: diff --git a/package.json b/package.json index b9d249fe..d1ab0351 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ }, "scripts": { "test": "bun --env-file='./.env.test.local' test bun", - "test:deno": "deno test --unstable-sloppy-imports --allow-net --allow-read", - "coverage:deno": "deno test --unstable-sloppy-imports --allow-net --allow-read --coverage", + "test:deno": "deno test --unstable-sloppy-imports --allow-net --allow-read test/deno/sagiri.test.ts", + "coverage:deno": "deno test --unstable-sloppy-imports --allow-net --allow-read --coverage test/deno/sagiri.test.ts", "test:nodejs": "jest node", "coverage:nodejs": "jest node --coverage", "coverage": "bun --env-file='./.env.test.local' test bun --coverage", @@ -64,13 +64,11 @@ "eslint": "^9.9.1", "jest": "^29.7.0", "tsup": "^8.2.4", + "typescript": "^5.6.2", "typescript-eslint": "^8.3.0" }, "peerDependencies": { "typescript": "^5.0.0" }, - "dependencies": { - "form-data": "^4.0.0", - "node-fetch": "^3.3.2" - } + "dependencies": { "form-data": "^4.0.0", "node-fetch": "^3.3.2" } }