Avindra Goolcharan 2024-02-09 05:00:19 +00:00 committed by Git OBS Bridge
parent 2a6a9bb1ea
commit 58c5060b1a
8 changed files with 49 additions and 168 deletions

View File

@ -13,8 +13,8 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/denoland/deno</param>
<param name="revision">v1.38.2</param>
<param name="version">1.38.2</param>
<param name="revision">v1.40.4</param>
<param name="version">1.40.4</param>
<!-- remove large docs -->
<param name="exclude">docs</param>
@ -37,8 +37,8 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/denoland/rusty_v8</param>
<param name="revision">v0.81.0</param>
<param name="version">0.81.0</param>
<param name="revision">v0.83.1</param>
<param name="version">0.83.1</param>
<param name="exclude">.github</param>
<!--

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:447690bd19b3a9a804ccc9ebdf31b3e30239092d5fe85a1dd87b08498122045b
size 3808196

3
deno-1.40.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ea6c91c3876e8a4fc0f60aee35e76c318dc3f115dcb7db66d04bdfe488a6beb
size 4098968

View File

@ -2,12 +2,13 @@ diff --git a/cli/tools/run/mod.rs.1 b/cli/tools/run/mod.rs
index 4805ea7..57bb752 100644
--- a/cli/tools/run/mod.rs.1
+++ b/cli/tools/run/mod.rs
@@ -45,13 +45,6 @@ To grant permissions, set them before the script argument. For example:
let http_client = factory.http_client();
let cli_options = factory.cli_options();
@@ -51,14 +51,6 @@ To grant permissions, set them before the script argument. For example:
);
}
- // Run a background task that checks for available upgrades or output
- // if an earlier run of this background task found a new version of Deno.
- #[cfg(feature = "upgrade")]
- super::upgrade::check_for_upgrades(
- http_client.clone(),
- deno_dir.upgrade_check_file_path(),
@ -20,12 +21,13 @@ diff --git a/cli/args/flags.rs.1 b/cli/args/flags.rs
index fa28241..d6e2baa 100644
--- a/cli/args/flags.rs.1
+++ b/cli/args/flags.rs
@@ -580,8 +580,6 @@ static ENV_VARIABLES_HELP: &str = r#"ENVIRONMENT VARIABLES:
DENO_NO_PACKAGE_JSON Disables auto-resolution of package.json
DENO_NO_PROMPT Set to disable permission prompts on access
@@ -835,9 +835,6 @@ static ENV_VARIABLES_HELP: &str = color_print::cstr!(
<g>DENO_NO_PROMPT</> Set to disable permission prompts on access
(alternative to passing --no-prompt on invocation)
- DENO_NO_UPDATE_CHECK Set to disable checking if a newer Deno version is
- <g>DENO_NO_UPDATE_CHECK</> Set to disable checking if a newer Deno version is
- available
DENO_V8_FLAGS Set V8 command line options
DENO_JOBS Number of parallel workers used for the --parallel
flag with the test subcommand. Defaults to number
-
<g>DENO_V8_FLAGS</> Set V8 command line options
<g>DENO_WEBGPU_TRACE</> Directory to use for wgpu traces

View File

@ -2,13 +2,19 @@ diff --git a/cli/main.rs.1 b/cli/main.rs
index 031ab07..4f3b05c 100644
--- a/cli/main.rs.1
+++ b/cli/main.rs
@@ -204,9 +204,6 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> {
let types = tsc::get_types_declaration_file_text(flags.unstable);
@@ -202,15 +202,6 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> {
let types = tsc::get_types_declaration_file_text();
display::write_to_stdout_ignore_sigpipe(types.as_bytes())
}),
- #[cfg(feature = "upgrade")]
- DenoSubcommand::Upgrade(upgrade_flags) => spawn_subcommand(async {
- tools::upgrade::upgrade(flags, upgrade_flags).await
- }),
- #[cfg(not(feature = "upgrade"))]
- DenoSubcommand::Upgrade(_) => exit_with_message(
- "This deno was built without the \"upgrade\" feature. Please upgrade using the installation method originally used to install Deno.",
- 1,
- ),
DenoSubcommand::Vendor(vendor_flags) => spawn_subcommand(async {
tools::vendor::vendor(flags, vendor_flags).await
}),
@ -16,32 +22,32 @@ diff --git a/cli/args/flags.rs.1 b/cli/args/flags.rs
index 72841df..1c93da1 100644
--- a/cli/args/flags.rs.1
+++ b/cli/args/flags.rs
@@ -292,7 +292,6 @@ pub enum DenoSubcommand {
@@ -328,7 +328,6 @@ pub enum DenoSubcommand {
Task(TaskFlags),
Test(TestFlags),
Types,
- Upgrade(UpgradeFlags),
Vendor(VendorFlags),
Publish(PublishFlags),
}
@@ -686,7 +685,7 @@ impl Flags {
@@ -760,7 +759,7 @@ impl Flags {
std::env::current_dir().ok()
}
Bundle(_) | Completions(_) | Doc(_) | Fmt(_) | Init(_) | Install(_)
- | Uninstall(_) | Jupyter(_) | Lsp | Lint(_) | Types | Upgrade(_)
+ | Uninstall(_) | Jupyter(_) | Lsp | Lint(_) | Types
| Vendor(_) => None,
| Vendor(_) | Publish(_) => None,
}
}
@@ -836,7 +835,6 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> {
@@ -944,7 +943,6 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> {
"test" => test_parse(&mut flags, &mut m),
"types" => types_parse(&mut flags, &mut m),
"uninstall" => uninstall_parse(&mut flags, &mut m),
- "upgrade" => upgrade_parse(&mut flags, &mut m),
"vendor" => vendor_parse(&mut flags, &mut m),
"publish" => publish_parse(&mut flags, &mut m),
_ => unreachable!(),
}
@@ -937,7 +935,6 @@ fn clap_root() -> Command {
@@ -1099,7 +1097,6 @@ fn clap_root() -> Command {
.subcommand(task_subcommand())
.subcommand(test_subcommand())
.subcommand(types_subcommand())
@ -49,139 +55,3 @@ index 72841df..1c93da1 100644
.subcommand(vendor_subcommand())
})
.long_about(DENO_HELP)
@@ -2037,59 +2034,6 @@ The declaration file could be saved and used for typing information.",
)
}
-fn upgrade_subcommand() -> Command {
- Command::new("upgrade")
- .about("Upgrade deno executable to given version")
- .long_about(
- "Upgrade deno executable to the given version.
-Defaults to latest.
-
-The version is downloaded from
-https://github.com/denoland/deno/releases
-and is used to replace the current executable.
-
-If you want to not replace the current Deno executable but instead download an
-update to a different location, use the --output flag
-
- deno upgrade --output $HOME/my_deno",
- )
- .defer(|cmd| {
- cmd
- .arg(
- Arg::new("version")
- .long("version")
- .help("The version to upgrade to"),
- )
- .arg(
- Arg::new("output")
- .long("output")
- .help("The path to output the updated version to")
- .value_parser(value_parser!(PathBuf))
- .value_hint(ValueHint::FilePath),
- )
- .arg(
- Arg::new("dry-run")
- .long("dry-run")
- .help("Perform all checks without replacing old exe")
- .action(ArgAction::SetTrue),
- )
- .arg(
- Arg::new("force")
- .long("force")
- .short('f')
- .help("Replace current exe even if not out-of-date")
- .action(ArgAction::SetTrue),
- )
- .arg(
- Arg::new("canary")
- .long("canary")
- .help("Upgrade to canary builds")
- .action(ArgAction::SetTrue),
- )
- .arg(ca_file_arg())
- })
-}
-
fn vendor_subcommand() -> Command {
Command::new("vendor")
.about("Vendor remote modules into a local directory")
@@ -3453,23 +3397,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
flags.subcommand = DenoSubcommand::Types;
}
-fn upgrade_parse(flags: &mut Flags, matches: &mut ArgMatches) {
- ca_file_arg_parse(flags, matches);
-
- let dry_run = matches.get_flag("dry-run");
- let force = matches.get_flag("force");
- let canary = matches.get_flag("canary");
- let version = matches.remove_one::<String>("version");
- let output = matches.remove_one::<PathBuf>("output");
- flags.subcommand = DenoSubcommand::Upgrade(UpgradeFlags {
- dry_run,
- force,
- canary,
- version,
- output,
- });
-}
-
fn vendor_parse(flags: &mut Flags, matches: &mut ArgMatches) {
ca_file_arg_parse(flags, matches);
config_args_parse(flags, matches);
@@ -3886,25 +3813,6 @@ mod tests {
assert_eq!(flags2, flags);
}
- #[test]
- fn upgrade() {
- let r = flags_from_vec(svec!["deno", "upgrade", "--dry-run", "--force"]);
- let flags = r.unwrap();
- assert_eq!(
- flags,
- Flags {
- subcommand: DenoSubcommand::Upgrade(UpgradeFlags {
- force: true,
- dry_run: true,
- canary: false,
- version: None,
- output: None,
- }),
- ..Flags::default()
- }
- );
- }
-
#[test]
fn version() {
let r = flags_from_vec(svec!["deno", "--version"]);
@@ -7086,25 +6994,6 @@ mod tests {
);
}
- #[test]
- fn upgrade_with_ca_file() {
- let r = flags_from_vec(svec!["deno", "upgrade", "--cert", "example.crt"]);
- assert_eq!(
- r.unwrap(),
- Flags {
- subcommand: DenoSubcommand::Upgrade(UpgradeFlags {
- force: false,
- dry_run: false,
- canary: false,
- version: None,
- output: None,
- }),
- ca_data: Some(CaData::File("example.crt".to_owned())),
- ..Flags::default()
- }
- );
- }
-
#[test]
fn cache_with_cafile() {
let r = flags_from_vec(svec![

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Feb 9 04:26:49 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org>
- update to 1.40.4:
* see https://deno.com/blog/v1.39
* see https://deno.com/blog/v1.40
- rebase deno-disable-update-check.patch
- rebase deno-rm-upgrade-cmd.patch
-------------------------------------------------------------------
Fri Nov 17 20:58:39 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>

View File

@ -1,9 +1,9 @@
#
# spec file for package deno
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-2023 Avindra Goolcharan <avindra@opensuse.org>
# Copyright (c) 2018-2023 the Deno authors
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2020-2024 Avindra Goolcharan <avindra@opensuse.org>
# Copyright (c) 2018-2024 the Deno authors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
Name: deno
Version: 1.38.2
Version: 1.40.4
Release: 0
Summary: A secure JavaScript and TypeScript runtime
License: MIT

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2ba87e096d1dc67119d3c6004d535ad1bfba9294c627e7ef07696cdac4f0188
size 76636764
oid sha256:c2b88153d4878538e14b6f564b9fa44c5b52f7a7cf5574c556a85d52f27b93dd
size 94892156