Skip to content

Commit 87e8019

Browse files
authored
feat: Deno 1.15 upgrade
2 parents b5019b8 + 9103c2b commit 87e8019

File tree

9 files changed

+78
-75
lines changed

9 files changed

+78
-75
lines changed

.github/workflows/package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
- name: Upload Linux binaries to release
2626
uses: JasonEtco/upload-to-release@master
2727
with:
28-
args: 'cwc-linux application/x-executable'
28+
args: 'dist/cwc-linux application/x-executable'
2929
- name: Upload macOS Intel binaries to release
3030
uses: JasonEtco/upload-to-release@master
3131
with:
32-
args: 'cwc-apple-intel application/x-mach-binary'
32+
args: 'dist/cwc-apple-intel application/x-mach-binary'
3333
- name: Upload macOS ARM binaries to release
3434
uses: JasonEtco/upload-to-release@master
3535
with:
3636
args: 'cwc-apple-arm application/x-mach-binary'
3737
- name: Upload Windows binaries to release
3838
uses: JasonEtco/upload-to-release@master
3939
with:
40-
args: 'cwc-windows.exe application/vnd.microsoft.portable-executable'
40+
args: 'dist/cwc-windows.exe application/vnd.microsoft.portable-executable'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22
cov_profile/
33
*.lcov
4+
dist/**/*
5+
!dist/.gitkeep

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- deno-fmt-ignore-file -->
22
# Chrome Web Store CLI
33

4-
[![deno version](https://img.shields.io/badge/deno-^1.14.0-lightgrey?logo=deno)](https://github.com/denoland/deno)
4+
[![deno version](https://img.shields.io/badge/deno-^1.15.2-lightgrey?logo=deno)](https://github.com/denoland/deno)
55
[![GitHub Release](https://img.shields.io/github/release/getoslash/chrome-webstore-cli.svg)](https://github.com/getoslash/chrome-webstore-cli/releases)
66
[![Release](https://github.com/getoslash/chrome-webstore-cli/actions/workflows/release.yml/badge.svg)](https://github.com/getoslash/chrome-webstore-cli/actions/workflows/release.yml)
77
[![codecov](https://codecov.io/gh/getoslash/chrome-webstore-cli/branch/main/graph/badge.svg?token=???)](https://codecov.io/gh/getoslash/chrome-webstore-cli)

deps.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * as path from "https://deno.land/std@0.107.0/path/mod.ts";
2-
export { readableStreamFromReader } from "https://deno.land/std@0.107.0/io/mod.ts";
3-
export { cac } from "https://unpkg.com/[email protected].3/mod.ts";
1+
export * as path from "https://deno.land/std@0.112.0/path/mod.ts";
2+
export { readableStreamFromReader } from "https://deno.land/std@0.112.0/io/mod.ts";
3+
export { cac } from "https://unpkg.com/[email protected].11/mod.ts";
44
export { JSZip } from "https://deno.land/x/[email protected]/mod.ts";
55
export { default as debugLog } from "https://deno.land/x/[email protected]/debug.ts";
66
export { default as apiClient } from "https://deno.land/x/[email protected]/mod.ts";

dev_deps.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export * as path from "https://deno.land/std@0.107.0/path/mod.ts";
1+
export * as path from "https://deno.land/std@0.112.0/path/mod.ts";
22
export {
33
assertEquals,
44
assertThrowsAsync,
5-
} from "https://deno.land/std@0.107.0/testing/asserts.ts";
6-
export { createHash } from "https://deno.land/std@0.107.0/hash/mod.ts";
7-
export { iter } from "https://deno.land/std@0.107.0/io/mod.ts";
8-
export { stub } from "https://deno.land/x/mock@v0.10.0/mod.ts";
9-
export type { Stub } from "https://deno.land/x/mock@v0.10.0/mod.ts";
10-
export type { SupportedAlgorithm } from "https://deno.land/std@0.107.0/hash/mod.ts";
5+
} from "https://deno.land/std@0.112.0/testing/asserts.ts";
6+
export { createHash } from "https://deno.land/std@0.112.0/hash/mod.ts";
7+
export { iterateReader } from "https://deno.land/std@0.112.0/streams/conversion.ts";
8+
export { stub } from "https://deno.land/x/mock@0.10.1/mod.ts";
9+
export type { Stub } from "https://deno.land/x/mock@0.10.1/mod.ts";
10+
export type { SupportedAlgorithm } from "https://deno.land/std@0.112.0/hash/mod.ts";

dist/.gitkeep

Whitespace-only changes.

lock.json

Lines changed: 55 additions & 54 deletions
Large diffs are not rendered by default.

scripts.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ scripts:
3535
- read
3636
- write
3737
- desc: Generate lcov data for coverage
38-
cmd: deno coverage cov_profile --exclude="test/**" --lcov > cov_profile.lcov
38+
cmd: deno coverage cov_profile --exclude="deps.ts" --exclude="dev_deps.ts" --exclude="test/**" --lcov > cov_profile.lcov
3939
compile:
4040
desc: Compile binary for all platforms
4141
pll:
42-
- deno compile --output cwc-linux --target x86_64-unknown-linux-gnu cli.ts
43-
- deno compile --output cwc-apple-intel --target x86_64-apple-darwin cli.ts
44-
- deno compile --output cwc-apple-arm --target aarch64-apple-darwin cli.ts
45-
- deno compile --output cwc-windows --target x86_64-pc-windows-msvc cli.ts
42+
- deno compile --output dist/cwc-linux --target x86_64-unknown-linux-gnu cli.ts
43+
- deno compile --output dist/cwc-apple-intel --target x86_64-apple-darwin cli.ts
44+
- deno compile --output dist/cwc-apple-arm --target aarch64-apple-darwin cli.ts
45+
- deno compile --output dist/cwc-windows --target x86_64-pc-windows-msvc cli.ts
4646
reload: false
4747
cachedOnly: true
4848
lock: lock.json

tests/helpers/io.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createHash, iter } from "../../dev_deps.ts";
1+
import { createHash, iterateReader } from "../../dev_deps.ts";
22
import type { SupportedAlgorithm } from "../../dev_deps.ts";
33

44
export const calculateFileHash = async (
@@ -7,7 +7,7 @@ export const calculateFileHash = async (
77
): Promise<string> => {
88
const hash = createHash(hashMethod);
99
const file = await Deno.open(filePath);
10-
for await (const chunk of iter(file)) {
10+
for await (const chunk of iterateReader(file)) {
1111
hash.update(chunk);
1212
}
1313
Deno.close(file.rid);

0 commit comments

Comments
 (0)