1.35.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=139
This commit is contained in:
parent
43d90e3542
commit
dace3fbdfd
8
_service
8
_service
@ -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.34.3</param>
|
||||
<param name="version">1.34.3</param>
|
||||
<param name="revision">v1.35.0</param>
|
||||
<param name="version">1.35.0</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.73.0</param>
|
||||
<param name="version">0.73.0</param>
|
||||
<param name="revision">v0.74.1</param>
|
||||
<param name="version">0.74.1</param>
|
||||
<param name="exclude">.github</param>
|
||||
|
||||
<!--
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:15056df531381af170f84023dbaf381a8686a12bd73872b00bc8ffb537e328a9
|
||||
size 7206304
|
3
deno-1.35.0.tar.xz
Normal file
3
deno-1.35.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b2c404b9085dd5ff5d9029db9a086793947e6f6c1d197bd69eab46800e5e9b5d
|
||||
size 3764708
|
@ -1,40 +0,0 @@
|
||||
From 85825efdaf2ed1f0dbc937994967d428651d8c61 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= <biwanczuk@gmail.com>
|
||||
Date: Fri, 16 Jun 2023 17:02:32 +0200
|
||||
Subject: [PATCH] chore: add conditional compilation for tokio_unstable feature
|
||||
|
||||
---
|
||||
runtime/tokio_util.rs | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/runtime/tokio_util.rs b/runtime/tokio_util.rs
|
||||
index 204b928f43dee..4dbaabf442a81 100644
|
||||
--- a/runtime/tokio_util.rs
|
||||
+++ b/runtime/tokio_util.rs
|
||||
@@ -3,6 +3,7 @@ use std::fmt::Debug;
|
||||
use std::str::FromStr;
|
||||
|
||||
use deno_core::task::MaskFutureAsSend;
|
||||
+#[cfg(tokio_unstable)]
|
||||
use tokio_metrics::RuntimeMonitor;
|
||||
|
||||
/// Default configuration for tokio. In the future, this method may have different defaults
|
||||
@@ -70,6 +71,7 @@ where
|
||||
// SAFETY: this this is guaranteed to be running on a current-thread executor
|
||||
let future = unsafe { MaskFutureAsSend::new(future) };
|
||||
|
||||
+ #[cfg(tokio_unstable)]
|
||||
let join_handle = if metrics_enabled {
|
||||
rt.spawn(async move {
|
||||
let metrics_interval: u64 = std::env::var("DENO_TOKIO_METRICS_INTERVAL")
|
||||
@@ -93,6 +95,10 @@ where
|
||||
} else {
|
||||
rt.spawn(future)
|
||||
};
|
||||
+
|
||||
+ #[cfg(not(tokio_unstable))]
|
||||
+ let join_handle = rt.spawn(future);
|
||||
+
|
||||
rt.block_on(join_handle).unwrap().into_inner()
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ index 031ab07..4f3b05c 100644
|
||||
tools::vendor::vendor(flags, vendor_flags).await
|
||||
}),
|
||||
diff --git a/cli/args/flags.rs.1 b/cli/args/flags.rs
|
||||
index fa28241..5ef386a 100644
|
||||
index 72841df..1c93da1 100644
|
||||
--- a/cli/args/flags.rs.1
|
||||
+++ b/cli/args/flags.rs
|
||||
@@ -262,7 +262,6 @@ pub enum DenoSubcommand {
|
||||
@ -49,16 +49,15 @@ index fa28241..5ef386a 100644
|
||||
.subcommand(vendor_subcommand())
|
||||
})
|
||||
.long_about(DENO_HELP)
|
||||
@@ -1847,58 +1844,6 @@ The declaration file could be saved and used for typing information.",
|
||||
})
|
||||
@@ -1864,112 +1861,6 @@ The declaration file could be saved and used for typing information.",
|
||||
)
|
||||
}
|
||||
|
||||
-fn upgrade_subcommand() -> Command {
|
||||
- Command::new("upgrade").defer(|cmd| {
|
||||
- cmd
|
||||
- .about("Upgrade deno executable to given version")
|
||||
- .long_about(
|
||||
- "Upgrade deno executable to the given version.
|
||||
- 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
|
||||
@ -69,46 +68,101 @@ index fa28241..5ef386a 100644
|
||||
-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")
|
||||
- .long_about(
|
||||
- "Vendor remote modules into a local directory.
|
||||
-
|
||||
-Analyzes the provided modules along with their dependencies, downloads
|
||||
-remote modules to the output directory, and produces an import map that
|
||||
-maps remote specifiers to the downloaded files.
|
||||
-
|
||||
- deno vendor main.ts
|
||||
- deno run --import-map vendor/import_map.json main.ts
|
||||
-
|
||||
-Remote modules and multiple modules may also be specified:
|
||||
-
|
||||
- deno vendor main.ts test.deps.ts https://deno.land/std/path/mod.ts",
|
||||
- )
|
||||
- .defer(|cmd| cmd
|
||||
- .arg(
|
||||
- Arg::new("version")
|
||||
- .long("version")
|
||||
- .help("The version to upgrade to"),
|
||||
- Arg::new("specifiers")
|
||||
- .num_args(1..)
|
||||
- .action(ArgAction::Append)
|
||||
- .required(true),
|
||||
- )
|
||||
- .arg(
|
||||
- Arg::new("output")
|
||||
- .long("output")
|
||||
- .help("The path to output the updated version to")
|
||||
- .help("The directory to output the vendored modules 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),
|
||||
- .value_hint(ValueHint::DirPath),
|
||||
- )
|
||||
- .arg(
|
||||
- Arg::new("force")
|
||||
- .long("force")
|
||||
- .short('f')
|
||||
- .help("Replace current exe even if not out-of-date")
|
||||
- .help(
|
||||
- "Forcefully overwrite conflicting files in existing output directory",
|
||||
- )
|
||||
- .action(ArgAction::SetTrue),
|
||||
- )
|
||||
- .arg(
|
||||
- Arg::new("canary")
|
||||
- .long("canary")
|
||||
- .help("Upgrade to canary builds")
|
||||
- .action(ArgAction::SetTrue),
|
||||
- )
|
||||
- .arg(ca_file_arg())
|
||||
- })
|
||||
- .arg(no_config_arg())
|
||||
- .arg(config_arg())
|
||||
- .arg(import_map_arg())
|
||||
- .arg(lock_arg())
|
||||
- .arg(node_modules_dir_arg())
|
||||
- .arg(reload_arg())
|
||||
- .arg(ca_file_arg()))
|
||||
-}
|
||||
-
|
||||
fn vendor_subcommand() -> Command {
|
||||
Command::new("vendor")
|
||||
.defer(|cmd| cmd.about("Vendor remote modules into a local directory")
|
||||
@@ -3035,23 +2980,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
|
||||
-fn compile_args(app: Command) -> Command {
|
||||
- compile_args_without_check_args(app.arg(no_check_arg()))
|
||||
-}
|
||||
-
|
||||
fn compile_args_without_check_args(app: Command) -> Command {
|
||||
app
|
||||
.arg(import_map_arg())
|
||||
@@ -3054,23 +2945,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
|
||||
flags.subcommand = DenoSubcommand::Types;
|
||||
}
|
||||
|
||||
@ -132,7 +186,7 @@ index fa28241..5ef386a 100644
|
||||
fn vendor_parse(flags: &mut Flags, matches: &mut ArgMatches) {
|
||||
ca_file_arg_parse(flags, matches);
|
||||
config_args_parse(flags, matches);
|
||||
@@ -3425,25 +3353,6 @@ mod tests {
|
||||
@@ -3444,25 +3318,6 @@ mod tests {
|
||||
assert_eq!(flags2, flags);
|
||||
}
|
||||
|
||||
@ -158,22 +212,25 @@ index fa28241..5ef386a 100644
|
||||
#[test]
|
||||
fn version() {
|
||||
let r = flags_from_vec(svec!["deno", "--version"]);
|
||||
@@ -6167,25 +6076,6 @@ mod tests {
|
||||
@@ -5899,28 +5754,6 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
- #[test]
|
||||
- fn upgrade_with_ca_file() {
|
||||
- let r = flags_from_vec(svec!["deno", "upgrade", "--cert", "example.crt"]);
|
||||
- fn run_with_cafile() {
|
||||
- let r = flags_from_vec(svec![
|
||||
- "deno",
|
||||
- "run",
|
||||
- "--cert",
|
||||
- "example.crt",
|
||||
- "script.ts"
|
||||
- ]);
|
||||
- assert_eq!(
|
||||
- r.unwrap(),
|
||||
- Flags {
|
||||
- subcommand: DenoSubcommand::Upgrade(UpgradeFlags {
|
||||
- force: false,
|
||||
- dry_run: false,
|
||||
- canary: false,
|
||||
- version: None,
|
||||
- output: None,
|
||||
- subcommand: DenoSubcommand::Run(RunFlags {
|
||||
- script: "script.ts".to_string(),
|
||||
- watch: Default::default(),
|
||||
- }),
|
||||
- ca_data: Some(CaData::File("example.crt".to_owned())),
|
||||
- ..Flags::default()
|
||||
@ -182,5 +239,5 @@ index fa28241..5ef386a 100644
|
||||
- }
|
||||
-
|
||||
#[test]
|
||||
fn cache_with_cafile() {
|
||||
fn run_with_enable_testing_features() {
|
||||
let r = flags_from_vec(svec![
|
||||
|
43
deno.changes
43
deno.changes
@ -1,3 +1,46 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 5 04:58:10 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
|
||||
|
||||
- update to 1.35.0:
|
||||
* feat: add more Deno.errors classes (#19514)
|
||||
* feat: ReadableStream.from (#19446)
|
||||
* feat: stabilize 'alpnProtocols' setting (#19704)
|
||||
* feat: Stabilize Deno.serve() API (#19141)
|
||||
* feat: upgrade to TypeScript 5.1.6 (#19695)
|
||||
* feat(ext/fetch): add Headers#getSetCookie (#13542)
|
||||
* feat(ext/url): URLSearchParams two-argument delete() and has() (#19654)
|
||||
* feat(lock): skip saving declaration files in the lockfile (#19447)
|
||||
* feat(lsp): basic support of auto-imports for npm specifiers (#19675)
|
||||
* feat(lsp): support import maps in quick fix and auto-imports (#19692)
|
||||
* fix(cli): Fix the bug where the command description is not
|
||||
displayed. (#19604)
|
||||
* fix: add exactOptionalPropertyTypes for configuration file
|
||||
JSON schema (#19647)
|
||||
* fix: bump default @types/node version range to 18.16.19 (#19706)
|
||||
* fix(cli): don't store blob and data urls in the module cache (#18581)
|
||||
* fix(cli/napi): napi_get_buffer_info accepts ArrayBufferView
|
||||
not just Uint8Array.(#19551)
|
||||
* fix(cli/napi): property with getter/setter always failed (#19562)
|
||||
* fix(console): correct the parseCssColor algorithm (#19645)
|
||||
* fix(dts): make globals available on globalThis (#19438)
|
||||
* fix(ext/crypto): Fix WebCrypto API's deriveKey (#19545)
|
||||
* fix(ext/fs): fix boolean checks in JS parser (#19586)
|
||||
* fix(ext/http): Catch errors in eager stream timeout to avoid
|
||||
uncaught promise rejections (#19691)
|
||||
* fix(ext/kv): expose Deno.AtomicOperation (#19674)
|
||||
* fix(ext/node): Define performance.timeOrigin as getter property (#19714)
|
||||
* fix(ext/node): ignore cancelled timer when node timer refresh (#19637)
|
||||
* fix(ext/node): support brotli APIs (#19223)
|
||||
* fix(ext/websocket): Ensure that errors are available after
|
||||
async response returns (#19642)
|
||||
* fix(node/http): add setKeepAlive to FakeSocket (#19659)
|
||||
* fix(npm): escape export identifier in double quoted string (#19694)
|
||||
* fix(npm): handle more reserved words as cjs exports (#19672)
|
||||
* fix(npm): support siblings that are peer dependencies of each
|
||||
other (#19657)
|
||||
- remove upstreamed deno-pull-19537.patch
|
||||
- rebase deno-rm-upgrade-cmd.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 22 09:47:00 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
Name: deno
|
||||
Version: 1.34.3
|
||||
Version: 1.35.0
|
||||
Release: 0
|
||||
Summary: A secure JavaScript and TypeScript runtime
|
||||
License: MIT
|
||||
@ -31,7 +31,6 @@ Source2: cargo_config
|
||||
Source99: revendor_source.sh
|
||||
Patch0: deno-disable-update-check.patch
|
||||
Patch1: deno-rm-upgrade-cmd.patch
|
||||
Patch2: https://github.com/denoland/deno/pull/19537.patch#/deno-pull-19537.patch
|
||||
BuildRequires: cargo-packaging
|
||||
# gcc-c++ needed to build SPIRV-Cross
|
||||
BuildRequires: clang
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:63a07ed6c616f8df5db9f95a3a632cde16c4583c9684955e107ac00598a1c85a
|
||||
size 72251760
|
||||
oid sha256:a75621ca9c6cf8f26b83f2b82bcf404d6e27bc248550d310d30f8110a8e08640
|
||||
size 73736580
|
||||
|
Loading…
Reference in New Issue
Block a user