dev-util/fnm: drop 1.32.0, 1.33.1

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-02-11 19:04:23 +09:00
parent 5841edf525
commit 2e19aff62f
5 changed files with 0 additions and 1125 deletions

View File

@@ -1,223 +0,0 @@
From 17f12d8602667067eb1c26656aaa0cc74a1a0548 Mon Sep 17 00:00:00 2001
From: Alexey Zapparov <alexey@zapparov.com>
Date: Tue, 22 Nov 2022 19:11:39 +0100
Subject: [PATCH] Skip Windows-related tests
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
---
e2e/aliases.test.ts | 4 ++--
e2e/basic.test.ts | 4 ++--
e2e/current.test.ts | 4 ++--
e2e/env.test.ts | 4 ++--
e2e/exec.test.ts | 4 ++--
e2e/existing-installation.test.ts | 4 ++--
e2e/latest-lts.test.ts | 4 ++--
e2e/log-level.test.ts | 4 ++--
e2e/multishell.test.ts | 4 ++--
e2e/nvmrc-lts.test.ts | 4 ++--
e2e/system-node.test.ts | 2 +-
e2e/uninstall.test.ts | 4 ++--
12 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/e2e/aliases.test.ts b/e2e/aliases.test.ts
index e7dce18..6c437c2 100644
--- a/e2e/aliases.test.ts
+++ b/e2e/aliases.test.ts
@@ -1,5 +1,5 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import describe from "./describe.js"
import { writeFile } from "node:fs/promises"
import path from "node:path"
@@ -7,7 +7,7 @@ import testCwd from "./shellcode/test-cwd.js"
import getStderr from "./shellcode/get-stderr.js"
import testNodeVersion from "./shellcode/test-node-version.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`allows to install an lts if version missing`, async () => {
await writeFile(path.join(testCwd(), ".node-version"), "lts/*")
diff --git a/e2e/basic.test.ts b/e2e/basic.test.ts
index d269c5f..2302065 100644
--- a/e2e/basic.test.ts
+++ b/e2e/basic.test.ts
@@ -1,12 +1,12 @@
import { writeFile, mkdir } from "node:fs/promises"
import { join } from "node:path"
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, WinCmd, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import testCwd from "./shellcode/test-cwd.js"
import testNodeVersion from "./shellcode/test-node-version.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell, WinCmd]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`basic usage`, async () => {
await script(shell)
diff --git a/e2e/current.test.ts b/e2e/current.test.ts
index 29710c0..430de0f 100644
--- a/e2e/current.test.ts
+++ b/e2e/current.test.ts
@@ -1,8 +1,8 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, WinCmd, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell, WinCmd]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`current returns the current Node.js version set in fnm`, async () => {
await script(shell)
diff --git a/e2e/env.test.ts b/e2e/env.test.ts
index d07ad6a..7a01fb4 100644
--- a/e2e/env.test.ts
+++ b/e2e/env.test.ts
@@ -1,11 +1,11 @@
import { readFile } from "node:fs/promises"
import { join } from "node:path"
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, WinCmd, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import testCwd from "./shellcode/test-cwd.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell, WinCmd]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`outputs json`, async () => {
const filename = `file.json`
diff --git a/e2e/exec.test.ts b/e2e/exec.test.ts
index 4babaad..6d93b59 100644
--- a/e2e/exec.test.ts
+++ b/e2e/exec.test.ts
@@ -1,11 +1,11 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, WinCmd, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import testCwd from "./shellcode/test-cwd.js"
import fs from "node:fs/promises"
import path from "node:path"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell, WinCmd]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test("`exec` usage", async () => {
await fs.writeFile(path.join(testCwd(), ".nvmrc"), "v8.10.0")
diff --git a/e2e/existing-installation.test.ts b/e2e/existing-installation.test.ts
index 2fb0f90..17140da 100644
--- a/e2e/existing-installation.test.ts
+++ b/e2e/existing-installation.test.ts
@@ -1,9 +1,9 @@
import getStderr from "./shellcode/get-stderr.js"
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`warns about an existing installation`, async () => {
await script(shell)
diff --git a/e2e/latest-lts.test.ts b/e2e/latest-lts.test.ts
index 83bebb0..1632b0a 100644
--- a/e2e/latest-lts.test.ts
+++ b/e2e/latest-lts.test.ts
@@ -1,8 +1,8 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`installs latest lts`, async () => {
await script(shell)
diff --git a/e2e/log-level.test.ts b/e2e/log-level.test.ts
index f7329c8..2b9f9f7 100644
--- a/e2e/log-level.test.ts
+++ b/e2e/log-level.test.ts
@@ -1,9 +1,9 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import describe from "./describe.js"
import getStderr from "./shellcode/get-stderr.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`"quiet" log level`, async () => {
await script(shell)
diff --git a/e2e/multishell.test.ts b/e2e/multishell.test.ts
index 60f9007..b1b54de 100644
--- a/e2e/multishell.test.ts
+++ b/e2e/multishell.test.ts
@@ -1,9 +1,9 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import testNodeVersion from "./shellcode/test-node-version.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`multishell changes don't affect parent`, async () => {
await script(shell)
diff --git a/e2e/nvmrc-lts.test.ts b/e2e/nvmrc-lts.test.ts
index be5a18d..43c82e1 100644
--- a/e2e/nvmrc-lts.test.ts
+++ b/e2e/nvmrc-lts.test.ts
@@ -1,11 +1,11 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import fs from "node:fs/promises"
import path from "node:path"
import describe from "./describe.js"
import testCwd from "./shellcode/test-cwd.js"
-for (const shell of [Bash, Fish, PowerShell, Zsh]) {
+for (const shell of [Bash, Fish, Zsh]) {
describe(shell, () => {
test(`uses .nvmrc with lts definition`, async () => {
await fs.writeFile(path.join(testCwd(), ".nvmrc"), `lts/dubnium`)
diff --git a/e2e/system-node.test.ts b/e2e/system-node.test.ts
index 67fd535..e569fc0 100644
--- a/e2e/system-node.test.ts
+++ b/e2e/system-node.test.ts
@@ -6,7 +6,7 @@ import describe from "./describe.js"
import testNodeVersion from "./shellcode/test-node-version.js"
import testBinDir from "./shellcode/test-bin-dir.js"
-for (const shell of [Bash, Fish, PowerShell, WinCmd, Zsh]) {
+for (const shell of [Bash, Fish, Zsh]) {
describe(shell, () => {
// latest bash breaks this as it seems. gotta find a solution.
const t = process.platform === "darwin" && shell === Bash ? test.skip : test
diff --git a/e2e/uninstall.test.ts b/e2e/uninstall.test.ts
index 6726c3e..5d55ae2 100644
--- a/e2e/uninstall.test.ts
+++ b/e2e/uninstall.test.ts
@@ -1,8 +1,8 @@
import { script } from "./shellcode/script.js"
-import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
+import { Bash, Fish, Zsh } from "./shellcode/shells.js"
import describe from "./describe.js"
-for (const shell of [Bash, Zsh, Fish, PowerShell]) {
+for (const shell of [Bash, Zsh, Fish]) {
describe(shell, () => {
test(`uninstalls a version`, async () => {
await script(shell)
--
2.37.4

View File

@@ -1,99 +0,0 @@
From aed6de9bdaa7f0599256025f3488a0bf5ea24842 Mon Sep 17 00:00:00 2001
From: Alexey Zapparov <alexey@zapparov.com>
Date: Fri, 16 Dec 2022 06:17:49 +0100
Subject: [PATCH] Remove time 0.1.x dependency
See: https://rustsec.org/advisories/RUSTSEC-2020-0071
See: https://github.com/Schniz/fnm/pull/884
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
---
Cargo.lock | 24 +++---------------------
Cargo.toml | 2 +-
2 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index a09159e..da1325d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -220,7 +220,6 @@ dependencies = [
"num-integer",
"num-traits",
"serde",
- "time 0.1.44",
"wasm-bindgen",
"winapi",
]
@@ -717,7 +716,7 @@ checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
dependencies = [
"cfg-if",
"libc",
- "wasi 0.11.0+wasi-snapshot-preview1",
+ "wasi",
]
[[package]]
@@ -1059,7 +1058,7 @@ checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de"
dependencies = [
"libc",
"log",
- "wasi 0.11.0+wasi-snapshot-preview1",
+ "wasi",
"windows-sys 0.42.0",
]
@@ -1724,17 +1723,6 @@ dependencies = [
"syn",
]
-[[package]]
-name = "time"
-version = "0.1.44"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
-dependencies = [
- "libc",
- "wasi 0.10.0+wasi-snapshot-preview1",
- "winapi",
-]
-
[[package]]
name = "time"
version = "0.3.17"
@@ -1946,12 +1934,6 @@ dependencies = [
"try-lock",
]
-[[package]]
-name = "wasi"
-version = "0.10.0+wasi-snapshot-preview1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
-
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
@@ -2233,7 +2215,7 @@ dependencies = [
"hmac",
"pbkdf2",
"sha1",
- "time 0.3.17",
+ "time",
"zstd",
]
diff --git a/Cargo.toml b/Cargo.toml
index 6c02ae4..11f72c9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ description = "Fast and simple Node.js version manager"
serde = { version = "1.0.147", features = ["derive"] }
clap = { version = "3.2.23", features = ["derive", "env"] }
serde_json = "1.0.88"
-chrono = { version = "0.4.23", features = ["serde"] }
+chrono = { version = "0.4.23", default-features = false, features = ["clock", "serde", "std", "wasmbind"] }
tar = "0.4.38"
xz2 = "0.1.7"
node-semver = "2.1.0"
--
2.37.4