Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to Deno 1.4.0 and std 0.69.0 #6

Merged
merged 1 commit into from
Sep 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:

jobs:
test:
name: test-${{ matrix.deno-version }}-${{ matrix.unstable && 'unstable' || 'stable' }}
name: build-${{ matrix.deno-version == 'nightly' && 'nightly' || 'release' }}-${{ matrix.unstable && 'unstable' || 'stable' }}-${{ matrix.no-check && 'nocheck' || 'tsc' }}
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [v1.3.3, nightly]
deno-version: [v1.4.0, nightly]
unstable: [false, true]
no-check: [false, true]
env:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Expand All @@ -37,4 +38,4 @@ jobs:
aws --endpoint-url "http://localhost:9000" s3 mb s3://test

- name: Test
run: deno test --allow-net --allow-env ${{ matrix.unstable && '--unstable' || '' }}
run: deno test --allow-net --allow-env${{ matrix.unstable && ' --unstable' || '' }}${{ matrix.no-check && ' --no-check' || '' }}
4 changes: 2 additions & 2 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { AWSSignerV4 } from "https://deno.land/x/aws_sign_v4@0.1.0/mod.ts";
import { createHash } from "https://deno.land/std@0.68.0/hash/mod.ts";
export { AWSSignerV4 } from "https://deno.land/x/aws_sign_v4@0.1.1/mod.ts";
import { createHash } from "https://deno.land/std@0.69.0/hash/mod.ts";
export function sha256Hex(data: string | Uint8Array): string {
const hasher = createHash("sha256");
hasher.update(data);
Expand Down
2 changes: 1 addition & 1 deletion src/bucket.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AWSSignerV4, sha256Hex } from "../deps.ts";
import { S3Config } from "./client.ts";
import type { S3Config } from "./client.ts";
import type {
GetObjectOptions,
PutObjectOptions,
Expand Down
2 changes: 1 addition & 1 deletion test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export {
assert,
assertEquals,
assertThrowsAsync,
} from "https://deno.land/std@0.68.0/testing/asserts.ts";
} from "https://deno.land/std@0.69.0/testing/asserts.ts";