Accepting request 1097026 from devel:languages:javascript
- 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 OBS-URL: https://build.opensuse.org/request/show/1097026 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/deno?expand=0&rev=25
This commit is contained in:
commit
cd57e8ac7f
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,10 +13,10 @@ 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 {
|
||||
@@ -262,7 +253,6 @@ pub enum DenoSubcommand {
|
||||
Task(TaskFlags),
|
||||
Test(TestFlags),
|
||||
Types,
|
||||
@ -24,7 +24,7 @@ index fa28241..5ef386a 100644
|
||||
Vendor(VendorFlags),
|
||||
}
|
||||
|
||||
@@ -579,7 +578,7 @@ impl Flags {
|
||||
@@ -579,7 +569,7 @@ impl Flags {
|
||||
std::env::current_dir().ok()
|
||||
}
|
||||
Bundle(_) | Completions(_) | Doc(_) | Fmt(_) | Init(_) | Install(_)
|
||||
@ -33,7 +33,7 @@ index fa28241..5ef386a 100644
|
||||
}
|
||||
}
|
||||
|
||||
@@ -710,7 +709,6 @@ pub fn flags_from_vec(args: Vec<String>) -> clap::error::Result<Flags> {
|
||||
@@ -710,7 +700,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),
|
||||
@ -41,7 +41,7 @@ index fa28241..5ef386a 100644
|
||||
"vendor" => vendor_parse(&mut flags, &mut m),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
@@ -810,7 +808,6 @@ fn clap_root() -> Command {
|
||||
@@ -810,7 +799,6 @@ fn clap_root() -> Command {
|
||||
.subcommand(task_subcommand())
|
||||
.subcommand(test_subcommand())
|
||||
.subcommand(types_subcommand())
|
||||
@ -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,59 +1852,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,48 @@ index fa28241..5ef386a 100644
|
||||
-update to a different location, use the --output flag
|
||||
-
|
||||
- deno upgrade --output $HOME/my_deno",
|
||||
- )
|
||||
- .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())
|
||||
- })
|
||||
- )
|
||||
- .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")
|
||||
.defer(|cmd| cmd.about("Vendor remote modules into a local directory")
|
||||
@@ -3035,23 +2980,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
|
||||
.about("Vendor remote modules into a local directory")
|
||||
@@ -3054,23 +2989,6 @@ fn types_parse(flags: &mut Flags, _matches: &mut ArgMatches) {
|
||||
flags.subcommand = DenoSubcommand::Types;
|
||||
}
|
||||
|
||||
@ -132,7 +133,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 +3362,6 @@ mod tests {
|
||||
assert_eq!(flags2, flags);
|
||||
}
|
||||
|
||||
@ -158,7 +159,7 @@ index fa28241..5ef386a 100644
|
||||
#[test]
|
||||
fn version() {
|
||||
let r = flags_from_vec(svec!["deno", "--version"]);
|
||||
@@ -6167,25 +6076,6 @@ mod tests {
|
||||
@@ -6186,25 +6085,6 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
|
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