From 0020f3d5b748748177cab3341fc1dda13b4ccefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Thu, 28 Nov 2024 11:00:39 +0100 Subject: [PATCH 1/3] feat: Bump dependencies to `std@^1` --- .github/workflows/checks.yml | 6 +++--- .github/workflows/publish.yml | 2 +- deno.json | 10 +++++----- test_import_map.json | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index db9f3a4..a672253 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 + - uses: denoland/setup-deno@v2 - run: deno test --import-map test_import_map.json -A --doc 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/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/test_import_map.json b/test_import_map.json index 7a09b5e..96d45a4 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/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@^0.221.0", - "@std/path": "jsr:@std/path@^0.221.0" + "@std/path": "jsr:@std/path@^1" } } From 959d64151d74a6c055cd5b6a0522f14d1219a333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Wed, 7 May 2025 21:05:31 +0200 Subject: [PATCH 2/3] chore: Trigger CI From 7b74e3cf159caef96ff9f7a2699954cc40d0959c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Wed, 7 May 2025 21:14:27 +0200 Subject: [PATCH 3/3] fix: Misc --- .github/workflows/checks.yml | 2 +- LICENSE | 2 +- README.md | 2 +- download.ts | 5 +---- test_import_map.json | 2 +- util.ts | 7 ++++--- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a672253..4c1c86c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,4 +21,4 @@ jobs: steps: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v2 - - run: deno test --import-map test_import_map.json -A --doc + - run: deno test --import-map test_import_map.json -A 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/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 96d45a4..c19fca8 100644 --- a/test_import_map.json +++ b/test_import_map.json @@ -8,7 +8,7 @@ "@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@^0.221.0", + "@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");