From 029de60b1dc069957e61ae023db7469976e44532 Mon Sep 17 00:00:00 2001 From: Hexagon Date: Wed, 1 May 2024 21:12:58 +0200 Subject: [PATCH] Remove unused dependency. Add flag -g when installing/upgrading. --- README.md | 2 +- application.meta.ts | 4 ++-- deno.json | 15 +++++++-------- docs/src/_data.json | 2 +- docs/src/changelog.md | 2 ++ docs/src/index.md | 2 +- docs/src/installation.md | 2 +- lib/cli/upgrade.ts | 6 +++--- versions.json | 14 ++++++++++++++ 9 files changed, 32 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3181516..1ac8646 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ _For detailed documentation, visit [pup.56k.guru](https://pup.56k.guru)._ ### Installation -To install Pup, open your terminal and execute the following command: +To install Pup, make sure you run the latest version of Deno (`deno upgrade`), then open your terminal and execute the following command: ```bash deno run -Ar jsr:@pup/pup@1.0.0-rc.37 setup --channel prerelease diff --git a/application.meta.ts b/application.meta.ts index d609c22..0490d7f 100644 --- a/application.meta.ts +++ b/application.meta.ts @@ -21,11 +21,11 @@ const Application = { name: "pup", - version: "1.0.0-rc.37", + version: "1.0.0-rc.38", url: "jsr:@pup/pup@$VERSION", canary_url: "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts", deno: null, /* Minimum stable version of Deno required to run Pup (without --unstable-* flags) */ - deno_unstable: "1.42.0", /* Minimum version of Deno required to run Pup (with --unstable-* flags) */ + deno_unstable: "1.43.0", /* Minimum version of Deno required to run Pup (with --unstable-* flags) */ repository: "https://github.com/hexagon/pup", changelog: "https://hexagon.github.io/pup/changelog.html", permissions: [ diff --git a/deno.json b/deno.json index 37cdef2..313a8cb 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@pup/pup", - "version": "1.0.0-rc.37", + "version": "1.0.0-rc.38", "exports": { ".": "./pup.ts", @@ -52,13 +52,12 @@ "@pup/api-definitions": "jsr:@pup/api-definitions@^1.0.2", "@pup/common": "jsr:@pup/common@^1.0.3", "@pup/plugin": "jsr:@pup/plugin@^1.0.1", - "@std/assert": "jsr:@std/assert@^0.223.0", - "@std/async": "jsr:@std/async@^0.223.0", - "@std/encoding": "jsr:@std/encoding@^0.223.0", - "@std/io": "jsr:@std/io@^0.223.0", - "@std/path": "jsr:@std/path@^0.223.0", - "@std/semver": "jsr:@std/semver@^0.223.0", - "@std/uuid": "jsr:@std/uuid@^0.223.0", + "@std/assert": "jsr:@std/assert@^0.224.0", + "@std/async": "jsr:@std/async@^0.224.0", + "@std/encoding": "jsr:@std/encoding@^0.224.0", + "@std/io": "jsr:@std/io@^0.224.0", + "@std/path": "jsr:@std/path@^0.224.0", + "@std/semver": "jsr:@std/semver@^0.224.0", "dax-sh": "npm:dax-sh@^0.40.0", "filesize": "npm:filesize@^10.1.1", "json5": "npm:json5@^2.2.3", diff --git a/docs/src/_data.json b/docs/src/_data.json index 9f46ac9..c07d6f5 100644 --- a/docs/src/_data.json +++ b/docs/src/_data.json @@ -6,7 +6,7 @@ "description": "Universal Process Manager" }, "substitute": { - "$PUP_VERSION": "1.0.0-rc.37" + "$PUP_VERSION": "1.0.0-rc.38" }, "top_links": [ { diff --git a/docs/src/changelog.md b/docs/src/changelog.md index f1bf600..02aa895 100644 --- a/docs/src/changelog.md +++ b/docs/src/changelog.md @@ -14,6 +14,8 @@ All notable changes to this project will be documented in this section. - chore(core): Dependency update - fix(core): Drop dependency on --unstable-net by replacing websocketstream with regular websockets - fix(core): Add `/ipc` endpoint to the Rest API +- fix(deps): Remove unused dependency `@std/uuid` +- fix(cli): Add flag `-g` for global install when installing/upgrading ## [1.0.0-rc.37] - 2024-04-28 diff --git a/docs/src/index.md b/docs/src/index.md index 67468b4..476fde7 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -28,7 +28,7 @@ Pup is centered on a single configuration file, `pup.json`, which manages all as ### Installation -To install Pup, open your terminal and execute the following command: +To install Pup, make sure you run the latest version of Deno (`deno upgrade`), then open your terminal and execute the following command: ```bash deno run -Ar jsr:@pup/pup@$PUP_VERSION setup --channel prerelease diff --git a/docs/src/installation.md b/docs/src/installation.md index e2a4d11..3a8d219 100644 --- a/docs/src/installation.md +++ b/docs/src/installation.md @@ -13,7 +13,7 @@ This section will guide you through the installation process of Pup. Before proceeding with the installation, ensure that you have the following installed on your system: -- Deno (version `1.42.x` or higher): You can install Deno by following the official Deno [instructions](https://deno.com/manual/getting_started/installation). +- Deno (version `1.43.x` or higher): You can install Deno by following the official Deno [instructions](https://deno.com/manual/getting_started/installation). ## Installing or upgrading Pup diff --git a/lib/cli/upgrade.ts b/lib/cli/upgrade.ts index 1b0d0b5..14f8f31 100644 --- a/lib/cli/upgrade.ts +++ b/lib/cli/upgrade.ts @@ -167,9 +167,9 @@ export async function upgrade( const installCmd = [] installCmd.push("install") - installCmd.push("-qfr") // Quite, Reload + installCmd.push("-qfrg") // Quite, Reload, Force reinstall, Global if (allPermissions || !requestedVersion?.default_permissions) { - installCmd.push("-A") + installCmd.push("-A") // All permissions } else { installCmd.push(...requestedVersion!.default_permissions) } @@ -179,7 +179,7 @@ export async function upgrade( if (unstableInstall) { installCmd.push("--unstable-kv") } - installCmd.push("-n", "pup") + installCmd.push("-n", "pup") // Installed command name = pup installCmd.push(canaryInstall ? versions.canary_url : (requestedVersion as Version).url) console.info(`\nRunning: deno ${installCmd.join(" ")}`) diff --git a/versions.json b/versions.json index d6bd860..39a5d0c 100644 --- a/versions.json +++ b/versions.json @@ -2,6 +2,20 @@ "canary_url": "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts", "stable": [], "prerelease": [ + { + "version": "1.0.0-rc.38", + "url": "jsr:@pup/pup@1.0.0-rc.38", + "deno": null, + "deno_unstable": "1.43.0", + "default_permissions": [ + "--allow-env", + "--allow-read", + "--allow-write", + "--allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid", + "--allow-net", + "--allow-run" + ] + }, { "version": "1.0.0-rc.37", "url": "jsr:@pup/pup@1.0.0-rc.37",