1.11.5+ -> 1.12.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=37
This commit is contained in:
parent
b52aede1a4
commit
72c2bec831
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -21,5 +21,3 @@
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
## Specific LFS patterns
|
||||
icudtl.dat filter=lfs diff=lfs merge=lfs -text
|
||||
|
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.11.5</param>
|
||||
<param name="version">1.11.5</param>
|
||||
<param name="revision">v1.12.0</param>
|
||||
<param name="version">1.12.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.25.1</param>
|
||||
<param name="version">0.25.1</param>
|
||||
<param name="revision">v0.25.3</param>
|
||||
<param name="version">0.25.3</param>
|
||||
<param name="exclude">.github</param>
|
||||
|
||||
<!--
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:90d96d3526f5207838967e929fa86c2231019894a935add918453a2cdc536a1e
|
||||
size 6121768
|
3
deno-1.12.0.tar.xz
Normal file
3
deno-1.12.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af1ccdd41dc7b2ea6078a9c7fef2e9451eacfd184edbff248b8cf3621c6aa29a
|
||||
size 6149504
|
@ -1,53 +0,0 @@
|
||||
diff --git a/core/runtime.rs.1 b/core/runtime.rs
|
||||
index 71aad8e..a806ecd 100644
|
||||
@@ -140,16 +140,15 @@ impl Drop for JsRuntime {
|
||||
}
|
||||
}
|
||||
|
||||
-fn v8_init(v8_platform: Option<v8::UniquePtr<v8::Platform>>) {
|
||||
+fn v8_init(v8_platform: Option<v8::SharedRef<v8::Platform>>) {
|
||||
// Include 10MB ICU data file.
|
||||
#[repr(C, align(16))]
|
||||
- struct IcuData([u8; 10413584]);
|
||||
+ struct IcuData([u8; 10144432]);
|
||||
static ICU_DATA: IcuData = IcuData(*include_bytes!("icudtl.dat"));
|
||||
- v8::icu::set_common_data(&ICU_DATA.0).unwrap();
|
||||
+ v8::icu::set_common_data_69(&ICU_DATA.0).unwrap();
|
||||
|
||||
let v8_platform = v8_platform
|
||||
- .unwrap_or_else(v8::new_default_platform)
|
||||
- .unwrap();
|
||||
+ .unwrap_or_else(|| v8::new_default_platform(0, false).make_shared());
|
||||
v8::V8::initialize_platform(v8_platform);
|
||||
v8::V8::initialize();
|
||||
|
||||
@@ -159,9 +158,10 @@ fn v8_init(v8_platform: Option<v8::UniquePtr<v8::Platform>>) {
|
||||
// PumpMessageLoop and RunMicrotasks setup correctly.
|
||||
// See https://github.com/denoland/deno/issues/2544
|
||||
" --experimental-wasm-threads",
|
||||
- " --no-wasm-async-compilation",
|
||||
+ " --wasm-test-streaming",
|
||||
" --harmony-import-assertions",
|
||||
" --no-validate-asm",
|
||||
+ " --sparkplug",
|
||||
);
|
||||
v8::V8::set_flags_from_string(flags);
|
||||
}
|
||||
@@ -203,7 +203,7 @@ pub struct RuntimeOptions {
|
||||
|
||||
/// V8 platform instance to use. Used when Deno initializes V8
|
||||
/// (which it only does once), otherwise it's silenty dropped.
|
||||
- pub v8_platform: Option<v8::UniquePtr<v8::Platform>>,
|
||||
+ pub v8_platform: Option<v8::SharedRef<v8::Platform>>,
|
||||
|
||||
/// Create a V8 inspector and attach to the runtime.
|
||||
pub attach_inspector: bool,
|
||||
@@ -1966,7 +1966,7 @@ main();
|
||||
#[test]
|
||||
fn test_v8_platform() {
|
||||
let options = RuntimeOptions {
|
||||
- v8_platform: Some(v8::new_default_platform()),
|
||||
+ v8_platform: Some(v8::new_default_platform(0, false).make_shared()),
|
||||
..Default::default()
|
||||
};
|
||||
let mut runtime = JsRuntime::new(options);
|
84
deno.changes
84
deno.changes
@ -1,3 +1,87 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 13 19:12:54 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
|
||||
|
||||
- update to v1.12.0
|
||||
* feat: rusty_v8 v0.23.0 with v8 9.2.230.14
|
||||
* feat: Add MessageChannel and MessagePort APIs (#11051)
|
||||
* feat: Deno namespace configurable and unfrozen (#11062)
|
||||
* feat: Enable WebAssembly.instantiateStreaming and WebAssembly.
|
||||
compileStreaming (#11200)
|
||||
* feat: Support "types" option when type checking (#10999)
|
||||
* feat: Support SharedArrayBuffer sharing between workers (#11040)
|
||||
* feat: Transfer MessagePort between workers (#11076)
|
||||
* feat(extensions/crypto): Implement generateKey() and sign() (#9614)
|
||||
* feat(extensions/crypto): Implement verify() for RSA (#11312)
|
||||
* feat(extensions/fetch): Add programmatic proxy (#10907)
|
||||
* feat(extensions/http): Server side websocket support (#10359)
|
||||
* feat(inspector): Improve inspector prompt in Chrome Devtools (#11187)
|
||||
* feat(inspector): Pipe console messages between terminal and inspector (#11134)
|
||||
* feat(lsp): Dependency hover information (#11090)
|
||||
* feat(repl): Show list completion (#11001)
|
||||
* feat(repl): Support autocomplete on declarations containing a primitive (#11325)
|
||||
* feat(repl): Support import declarations in the REPL (#11086)
|
||||
* feat(repl): Type stripping in the REPL (#10934)
|
||||
* feat(test): Add "--shuffle" flag to randomize test ordering (#11163)
|
||||
* feat(test): Add support for "--fail-fast=N" (#11316)
|
||||
* fix: Align DedicatedWorkerGlobalScope event handlers to spec (#11353)
|
||||
* fix: Move stable/unstable types/APIs to their correct places (#10880)
|
||||
* fix(core): Fix concurrent loading of dynamic imports (#11089)
|
||||
* fix(extensions/console): Eliminate panic inspecting event classes (#10979)
|
||||
* fix(extensions/console): Inspecting prototypes of built-ins with custom
|
||||
inspect implementations should not throw (#11308)
|
||||
* fix(extensions/console): Left align table entries (#11295)
|
||||
* fix(extensions/crypto): Hash input for RSASSA-PKCS1-v1_5 before signing (#11314)
|
||||
* fix(extensions/fetch): Consumed body with a non-stream source should
|
||||
result in a disturbed stream (#11217)
|
||||
* fix(extensions/fetch): Encode and decode headers as byte strings (#11070)
|
||||
* fix(extensions/fetch): Filter out custom HOST headers (#11020)
|
||||
* fix(extensions/fetch): OPTIONS should be allowed a non-null body (#11242)
|
||||
* fix(extensions/fetch): Proxy body for requests created from other requests (#11093)
|
||||
* fix(extensions/http): Encode and decode headers as byte strings in
|
||||
the HTTP server (#11144)
|
||||
* fix(extensions/http): Panic in request body streaming (#11191)
|
||||
* fix(extensions/http): Specify AbortSignal for native http requests (#11126)
|
||||
* fix(extensions/timers): Spec conformance for performance API (#10887)
|
||||
* fix(extensions/url): Use USVStrings in URLSearchParams constructor (#11101)
|
||||
* fix(extensions/web): AddEventListenerOptions.signal shouldn't be nullable (#11348)
|
||||
* fix(extensions/webgpu): Align error scopes to spec (#9797)
|
||||
* fix(lsp): Handle invalid config setting better (#11104)
|
||||
* fix(lsp): Reload import registries should not error when the module
|
||||
registries directory does not exist (#11123)
|
||||
* fix(repl): Panic when Deno.inspect throws (#11292)
|
||||
* fix(runtime): Fix signal promise API (#11069)
|
||||
* fix(runtime): Ignored tests should not cause permission changes (#11278)
|
||||
- update deno_std to 0.101.0:
|
||||
* BREAKING(encoding/hex): remove encodedLen, encodeToString, decodedLen,
|
||||
decodeString, errInvalidByte, errLength (#733)
|
||||
* BREAKING(mime/multipart): return array for multiple values with same
|
||||
form name (#722)
|
||||
* BREAKING(std/uuid): rework v4 and v5 module (#971)
|
||||
* feat(async): add deadline to async module (#1022)
|
||||
* feat(async): add debounce method to async module (#1006)
|
||||
* feat(encoding/toml): fix bad string format. Improve coverage (#991)
|
||||
* feat(hash): add BLAKE3 hash support (#994)
|
||||
* feat(http): Add Cookie domain validation (#1009)
|
||||
* feat(http): Allow passing path and domain attributes while removing
|
||||
cookies (#1005)
|
||||
* feat(io): add copy function (#1016)
|
||||
* feat(io/streams): add autoClose option to writableStreamFromWriter (#964)
|
||||
* feat(std/node): add writeBuffer of internal binding fs module (#888)
|
||||
* fix: improve type safety for browser-compatible modules (#995)
|
||||
* fix(encoding/toml): serializes mixed array (#1001)
|
||||
* fix(encoding/toml): throws parse error when toml uses invalid whitespaces
|
||||
(#1013)
|
||||
* fix(http): setCookie with maxAge of 0 (#992)
|
||||
* fix(http/server): Swallow NotConnected errors from listener.accept() (#761)
|
||||
* fix(io/bufio): fix handling of trailing new line (#990)
|
||||
* fix(node/module): More descriptive error in "createRequire" (#997)
|
||||
* fix(path): Add question mark as a glob indicator (#1024)
|
||||
* fix(testing): use return type of never for fail (#1002)
|
||||
- mark dependency on rust >= 1.53 (due to swc)
|
||||
- remove deno-69.patch (upstreamed)
|
||||
- remove ff-serde.patch (upstreamed)
|
||||
- remove icudtl.dat (upstreamed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 4 05:16:39 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
|
||||
|
||||
|
11
deno.spec
11
deno.spec
@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
Name: deno
|
||||
Version: 1.11.5
|
||||
Version: 1.12.0
|
||||
Release: 0
|
||||
Summary: A secure JavaScript and TypeScript runtime
|
||||
License: MIT
|
||||
@ -27,11 +27,7 @@ Group: Productivity/Other
|
||||
URL: https://github.com/denoland/deno
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: vendor.tar.xz
|
||||
# new icu data file
|
||||
Source2: https://github.com/denoland/deno/raw/main/core/icudtl.dat
|
||||
Source99: revendor_source.sh
|
||||
Patch0: deno-69.patch
|
||||
Patch1: ff-serde.patch
|
||||
BuildRequires: clang
|
||||
# gcc-c++ needed to build SPIRV-Cross
|
||||
BuildRequires: gcc-c++
|
||||
@ -42,8 +38,7 @@ BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python
|
||||
BuildRequires: python2-setuptools
|
||||
# TODO: enable this when it lands in Factory
|
||||
# BuildRequires: rust >= 1.53.0
|
||||
BuildRequires: rust >= 1.53.0
|
||||
BuildRequires: rust-packaging
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gmodule-2.0)
|
||||
@ -66,8 +61,6 @@ updated with the --reload flag.
|
||||
%autosetup -a1 -p1
|
||||
%define cargo_registry $(pwd)/vendor
|
||||
%{cargo_prep}
|
||||
# refresh icu data file
|
||||
cp %{SOURCE2} ./core
|
||||
|
||||
%build
|
||||
export V8_FROM_SOURCE=1
|
||||
|
@ -1,17 +0,0 @@
|
||||
diff --git a/core/Cargo.toml.1 b/core/Cargo.toml
|
||||
index 64ff3f2..281bd2e 100644
|
||||
--- a/core/Cargo.toml.1
|
||||
+++ b/core/Cargo.toml
|
||||
@@ -20,10 +20,10 @@ lazy_static = "1.4.0"
|
||||
libc = "0.2.93"
|
||||
log = "0.4.14"
|
||||
pin-project = "1.0.6"
|
||||
-rusty_v8 = "0.22.3"
|
||||
+rusty_v8 = "0.25.1"
|
||||
serde = { version = "1.0.125", features = ["derive"] }
|
||||
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
||||
-serde_v8 = { version = "0.4.1" }
|
||||
+serde_v8 = { version = "0.8.0" }
|
||||
url = { version = "2.2.1", features = ["serde"] }
|
||||
|
||||
[[example]]
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:61e97c20d3f01ed4e18ad2b38b66c0b8122b31f9fb8cd71bddcdb1d22f164193
|
||||
size 10144432
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:41429d96c1d7866e6b4c92074ee62f935ccbddf2e54220cb8bbb78bba699d81a
|
||||
size 52940704
|
||||
oid sha256:0bc9b3d8e1bfb759e4dd33a756f99ca768bf6de594701de1bb7fc47c7680f340
|
||||
size 53426344
|
||||
|
Loading…
Reference in New Issue
Block a user