#deno #version #channel #binaries #different #run-time #sui

bin+lib patchver

Tool to promote exisiting Deno binaries to a different version

2 unstable releases

0.2.0 Oct 1, 2024
0.1.0 Aug 16, 2024

#3 in #sui

MIT license

6KB
58 lines

Tool to promote exisiting Deno binaries to a different version.

Install

cargo install patchver

Usage

Modify your code to use sui to get current version at run-time.

use once_cell::sync::Lazy;

static CHANNEL: Lazy<&str> = Lazy::new(|| {
    libsui::find_section("denover")
        .unwrap_or("stable")
});

Promote to new channel:

patchver deno deno_new --channel rc

Dependencies

~3–15MB
~109K SLoC