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

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

#36 in #rc

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–14MB
~98K SLoC