Skip to content

Commit

Permalink
Merge pull request #13 from hayd/std-release
Browse files Browse the repository at this point in the history
Support new std release format
  • Loading branch information
hayd authored May 11, 2020
2 parents 94d0cda + b7eb471 commit d1015a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ jobs:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@master
with:
deno-version: 0.42.0
deno-version: 1.0.0-rc2
- run: deno test --allow-write
6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {
parse as parseArgs,
} from "https://deno.land/std@v0.42.0/flags/mod.ts";
export * as colors from "https://deno.land/std@v0.42.0/fmt/colors.ts";
export { decode, encode } from "https://deno.land/std@v0.42.0/encoding/utf8.ts";
} from "https://deno.land/std@v0.50.0/flags/mod.ts";
export * as colors from "https://deno.land/std@v0.50.0/fmt/colors.ts";
export { decode, encode } from "https://deno.land/std@v0.50.0/encoding/utf8.ts";
5 changes: 4 additions & 1 deletion registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export class DenoStd implements RegistryUrl {
}

async all(): Promise<string[]> {
return await githubReleases("denoland", "deno");
const denoReleases = await githubReleases("denoland", "deno");
return denoReleases
.filter((x) => x.startsWith("std/"))
.map((x) => "v" + x.split("/")[1])
}

at(version: string): RegistryUrl {
Expand Down

0 comments on commit d1015a9

Please sign in to comment.