From 5ac1d39bae75b2c6bd8234f7591849d4cca58831 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Thu, 9 May 2024 23:16:07 -0700 Subject: [PATCH] chore: bump version of @std library --- .github/workflows/run-tests.yml | 2 +- client.test.ts | 2 +- deno.jsonc | 4 ++-- helpers.test.ts | 2 +- integration.ts | 6 +++--- signing.test.ts | 2 +- transform-chunk-sizes.test.ts | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 376e1e8..57895e0 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -46,7 +46,7 @@ jobs: run: docker run --name minio --detach -e MINIO_ROOT_USER=AKIA_DEV -e MINIO_ROOT_PASSWORD=secretkey -e MINIO_REGION_NAME=dev-region -p 9000:9000 -p 9001:9001 --entrypoint /bin/sh minio/minio:RELEASE.2021-10-23T03-28-24Z -c 'mkdir -p /data/dev-bucket && minio server --console-address ":9001" /data' # TODO: can we get jsr to load the dependency versions from deno.jsonc? - name: Install dependencies - run: bunx jsr add @std/io @std/assert + run: bunx jsr add @std/io@0.224 @std/assert@0.224 - name: Convert integration test from Deno to Bun test runner run: '(echo -e ''import { test } from "bun:test";\nconst Deno = { test: ({fn}: {fn: () => void, name: string}) => test(fn) };''; cat integration.ts ) > integration-bun.ts' - name: Run integration tests with bun diff --git a/client.test.ts b/client.test.ts index cefbd54..ed0b641 100644 --- a/client.test.ts +++ b/client.test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "@std/assert/assert_equals"; +import { assertEquals } from "@std/assert/assert-equals"; import { Client } from "./client.ts"; Deno.test({ diff --git a/deno.jsonc b/deno.jsonc index 71e68b4..40cf825 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -7,7 +7,7 @@ }, "lock": false, "imports": { - "@std/assert": "jsr:@std/assert@^0.218", - "@std/io": "jsr:@std/io@^0.218" + "@std/assert": "jsr:@std/assert@^0.224", + "@std/io": "jsr:@std/io@^0.224" } } diff --git a/helpers.test.ts b/helpers.test.ts index 771a9be..51f7e2d 100644 --- a/helpers.test.ts +++ b/helpers.test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "@std/assert/assert_equals"; +import { assertEquals } from "@std/assert/assert-equals"; import { bin2hex, isValidPort, makeDateLong, makeDateShort, sha256digestHex } from "./helpers.ts"; Deno.test({ diff --git a/integration.ts b/integration.ts index d4e9ef0..99b4fce 100644 --- a/integration.ts +++ b/integration.ts @@ -4,9 +4,9 @@ * See the README for instructions. */ import { assert } from "@std/assert/assert"; -import { assertEquals } from "@std/assert/assert_equals"; -import { assertInstanceOf } from "@std/assert/assert_instance_of"; -import { assertRejects } from "@std/assert/assert_rejects"; +import { assertEquals } from "@std/assert/assert-equals"; +import { assertInstanceOf } from "@std/assert/assert-instance-of"; +import { assertRejects } from "@std/assert/assert-rejects"; import { S3Client, S3Errors } from "./mod.ts"; const config = { diff --git a/signing.test.ts b/signing.test.ts index ea09903..4c21b3e 100644 --- a/signing.test.ts +++ b/signing.test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "@std/assert/assert_equals"; +import { assertEquals } from "@std/assert/assert-equals"; import { bin2hex } from "./helpers.ts"; import { _internalMethods as methods, presignV4, signV4 } from "./signing.ts"; diff --git a/transform-chunk-sizes.test.ts b/transform-chunk-sizes.test.ts index c38c4c3..4dc26c5 100644 --- a/transform-chunk-sizes.test.ts +++ b/transform-chunk-sizes.test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "@std/assert/assert_equals"; +import { assertEquals } from "@std/assert/assert-equals"; import { TransformChunkSizes } from "./transform-chunk-sizes.ts"; /**