diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index db9f3a4..4c1c86c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@v2 - run: deno fmt --check - run: deno lint - + tests: name: ${{ matrix.kind }} ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -20,5 +20,5 @@ jobs: os: [macOS-latest, windows-latest, ubuntu-latest] steps: - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1 - - run: deno test --import-map test_import_map.json -A --doc + - uses: denoland/setup-deno@v2 + - run: deno test --import-map test_import_map.json -A diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ebf40ee..8f77ca5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,5 +13,5 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@v2 - run: deno publish diff --git a/LICENSE b/LICENSE index 3e5e81a..f8af3d6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2024 the denosaurs team +Copyright (c) 2020-2025 the denosaurs team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 6c64c94..a25e0f7 100644 --- a/README.md +++ b/README.md @@ -142,4 +142,4 @@ Pull request, issues and feedback are very welcome. Code style is formatted with ### Licence -Copyright 2020-2024, the denosaurs team. All rights reserved. MIT license. +Copyright 2020-2025, the denosaurs team. All rights reserved. MIT license. diff --git a/deno.json b/deno.json index b1b75ba..59dc0ba 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@denosaurs/plug", - "version": "1.0.6", + "version": "1.1.0", "exports": { ".": "./mod.ts", "./types": "./types.ts", @@ -8,10 +8,10 @@ "./util": "./util.ts" }, "imports": { - "@std/encoding/hex": "jsr:@std/encoding@^0.221.0/hex", - "@std/fmt/colors": "jsr:@std/fmt@^0.221.0/colors", - "@std/fs": "jsr:@std/fs@^0.221.0", - "@std/path": "jsr:@std/path@^0.221.0" + "@std/encoding/hex": "jsr:@std/encoding@^1/hex", + "@std/fmt/colors": "jsr:@std/fmt@^1/colors", + "@std/fs": "jsr:@std/fs@^1", + "@std/path": "jsr:@std/path@^1" }, "lock": false } diff --git a/download.ts b/download.ts index b1cfa9f..37abe8b 100644 --- a/download.ts +++ b/download.ts @@ -34,10 +34,7 @@ import { * * This should match the {@link Deno.build.arch} type. */ -export const ALL_ARCHS: (typeof Deno.build.arch)[] = [ - "x86_64", - "aarch64", -]; +export const ALL_ARCHS: (typeof Deno.build.arch)[] = ["x86_64", "aarch64"]; /** * A list of all possible system operating systems. diff --git a/test_import_map.json b/test_import_map.json index 7a09b5e..c19fca8 100644 --- a/test_import_map.json +++ b/test_import_map.json @@ -5,10 +5,10 @@ "@denosaurs/plug/types": "./types.ts", "@denosaurs/plug/download": "./download.ts", "@denosaurs/plug/util": "./util.ts", - "@std/assert": "jsr:@std/assert@^0.221.0", - "@std/encoding/hex": "jsr:@std/encoding@^0.221.0/hex", - "@std/fmt/colors": "jsr:@std/fmt@^0.221.0/colors", - "@std/fs": "jsr:@std/fs@^0.221.0", - "@std/path": "jsr:@std/path@^0.221.0" + "@std/assert": "jsr:@std/assert@^1", + "@std/encoding/hex": "jsr:@std/encoding@^1/hex", + "@std/fmt/colors": "jsr:@std/fmt@^1/colors", + "@std/fs": "jsr:@std/fs@^1", + "@std/path": "jsr:@std/path@^1" } } diff --git a/util.ts b/util.ts index 74f88a0..0c0a917 100644 --- a/util.ts +++ b/util.ts @@ -42,9 +42,9 @@ function baseUrlToFilename(url: URL): string { */ export function stringToURL(url: string): URL { // deno-fmt-ignore - return url.startsWith("file://") - || url.startsWith("http://") - || url.startsWith("https://") + return url.startsWith("file://") || + url.startsWith("http://") || + url.startsWith("https://") ? new URL(url) : toFileUrl(resolve(url)); } @@ -107,6 +107,7 @@ export function homeDir(): string | undefined { case "aix": case "solaris": case "illumos": + case "android": return Deno.env.get("HOME"); default: throw Error("unreachable");