mini_racer_rs 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/COMPATIBILITY.md +2 -2
- data/Cargo.lock +5 -5
- data/Cargo.toml +1 -1
- data/README.md +1 -1
- data/THIRD_PARTY_NOTICES.md +9 -9
- data/crates/mini_racer_wire/src/decode.rs +0 -25
- data/crates/mini_racer_wire/src/lib.rs +1 -3
- data/ext/mini_racer_rs/extconf.rb +24 -2
- data/ext/mini_racer_rs/src/decode.rs +1 -1
- data/ext/mini_racer_rs/v8-archives.sha256 +14 -12
- data/lib/mini_racer_rs/version.rb +1 -1
- data/licenses/v8/SOURCES.tsv +9 -9
- data/sig/mini_racer.rbs +122 -0
- data/sig/mini_racer_rs.rbs +70 -0
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab0153188082850990c2ef6d20a275032cf5b19da166512be0787af699b0083e
|
|
4
|
+
data.tar.gz: 6279096bd8642888590728814fb6d596361a29f52229171a7ff1958b9ed8246c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be5860945645226bac6950f03c4aed512bc0802bc6792d4baea288efaa9328e1ae1e853c5f57e76a905286fc4bc6facca1c19f1244501ebf28d38fcdb9b611a4
|
|
7
|
+
data.tar.gz: e1aff78d856e1b90a68925b04f5bea214788c0d88f915350e29811fe2df049b8fc18707e175a19c65d7677af196eae6ab5f97b43142245d2cbb061c8c3abd43e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.8.0](https://github.com/andymai/mini_racer_rs/compare/v1.7.0...v1.8.0) (2026-10-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* link V8 15.2.124.45, fixing CVE-2026-85046 and the other V8 15.2 fixes merged after 15.2.124.1 ([#175](https://github.com/andymai/mini_racer_rs/issues/175)) ([5b08b60](https://github.com/andymai/mini_racer_rs/commit/5b08b60dd7dea72db4d95acd3d4f4f9089ca0890))
|
|
9
|
+
|
|
10
|
+
## [1.7.0](https://github.com/andymai/mini_racer_rs/compare/v1.6.0...v1.7.0) (2026-10-24)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* ship RBS signatures for MiniRacer and MiniRacerRs ([#173](https://github.com/andymai/mini_racer_rs/issues/173)) ([d790edb](https://github.com/andymai/mini_racer_rs/commit/d790edbb41863e94641ec7b62ef6f74973e79970))
|
|
16
|
+
|
|
3
17
|
## [1.6.0](https://github.com/andymai/mini_racer_rs/compare/v1.5.3...v1.6.0) (2026-10-24)
|
|
4
18
|
|
|
5
19
|
|
data/COMPATIBILITY.md
CHANGED
|
@@ -252,9 +252,9 @@ Approved 2026-10-16.
|
|
|
252
252
|
|
|
253
253
|
### `behavior:v8-version@ruby`
|
|
254
254
|
|
|
255
|
-
On CRuby, mini_racer_rs embeds V8 15.2.124.
|
|
255
|
+
On CRuby, mini_racer_rs embeds V8 15.2.124.45 through the `v8` crate 152.2.0, while mini_racer 0.22.2 uses V8 13.6.233.17 through `libv8-node` 24.12.0.1. V8-generated text, including parse and runtime error messages and locale formatting, can therefore differ. In single-threaded mode, after `low_memory_notification` on a new context, `pump_message_loop` returns `true` in mini_racer_rs because V8 15.2 posts a zero-delay foreground task during collection, while it returns `false` in mini_racer 0.22.2. Later pumps return `false` in both, as they do in the default multi-threaded mode. This difference does not apply on TruffleRuby, where both gems use upstream's GraalJS backend.
|
|
256
256
|
|
|
257
|
-
Approved 2026-10-
|
|
257
|
+
Approved 2026-10-24.
|
|
258
258
|
|
|
259
259
|
### `module:MiniRacer::Loader@ruby`
|
|
260
260
|
|
data/Cargo.lock
CHANGED
|
@@ -593,7 +593,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
|
593
593
|
|
|
594
594
|
[[package]]
|
|
595
595
|
name = "mini_racer_engine"
|
|
596
|
-
version = "1.
|
|
596
|
+
version = "1.8.0"
|
|
597
597
|
dependencies = [
|
|
598
598
|
"deno_core_icudata",
|
|
599
599
|
"libc",
|
|
@@ -606,7 +606,7 @@ dependencies = [
|
|
|
606
606
|
|
|
607
607
|
[[package]]
|
|
608
608
|
name = "mini_racer_rs"
|
|
609
|
-
version = "1.
|
|
609
|
+
version = "1.8.0"
|
|
610
610
|
dependencies = [
|
|
611
611
|
"magnus",
|
|
612
612
|
"mini_racer_engine",
|
|
@@ -617,7 +617,7 @@ dependencies = [
|
|
|
617
617
|
|
|
618
618
|
[[package]]
|
|
619
619
|
name = "mini_racer_sourcemap"
|
|
620
|
-
version = "1.
|
|
620
|
+
version = "1.8.0"
|
|
621
621
|
dependencies = [
|
|
622
622
|
"memchr",
|
|
623
623
|
"serde",
|
|
@@ -627,7 +627,7 @@ dependencies = [
|
|
|
627
627
|
|
|
628
628
|
[[package]]
|
|
629
629
|
name = "mini_racer_sync"
|
|
630
|
-
version = "1.
|
|
630
|
+
version = "1.8.0"
|
|
631
631
|
dependencies = [
|
|
632
632
|
"loom",
|
|
633
633
|
"thiserror",
|
|
@@ -635,7 +635,7 @@ dependencies = [
|
|
|
635
635
|
|
|
636
636
|
[[package]]
|
|
637
637
|
name = "mini_racer_wire"
|
|
638
|
-
version = "1.
|
|
638
|
+
version = "1.8.0"
|
|
639
639
|
dependencies = [
|
|
640
640
|
"criterion",
|
|
641
641
|
"proptest",
|
data/Cargo.toml
CHANGED
|
@@ -15,7 +15,7 @@ license = "MIT"
|
|
|
15
15
|
publish = false
|
|
16
16
|
repository = "https://github.com/andymai/mini_racer_rs"
|
|
17
17
|
rust-version = "1.91"
|
|
18
|
-
version = "1.
|
|
18
|
+
version = "1.8.0"
|
|
19
19
|
|
|
20
20
|
[workspace.dependencies]
|
|
21
21
|
criterion = {version = "0.8", default-features = false, features = ["cargo_bench_support"]}
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ mini_racer_rs implements the `MiniRacer` API from mini_racer 0.22.2. It defines
|
|
|
26
26
|
- **Bundle load:** 9.2x faster for a 44 MB production server rendering bundle (105 ms vs 965 ms).
|
|
27
27
|
- **Memory:** A context holding the MUI bundle uses 43 MB vs 110 MB.
|
|
28
28
|
- **Forks:** After loading and rendering React: 20 of 20 clean mini_racer_rs exits vs 20 of 20 mini_racer aborts.
|
|
29
|
-
- **V8:** V8 15.2.124.
|
|
29
|
+
- **V8:** V8 15.2.124.45 vs V8 13.6.233.17 in mini_racer 0.22.2.
|
|
30
30
|
- **No compiler:** Native gems cover glibc and musl Linux, including Alpine, and macOS, on both architectures, with Ruby 3.3, 3.4 and 4.0 extensions.
|
|
31
31
|
- **Fiber scheduler:** Three 100 ms loops in separate contexts and fibers finish in 100 ms vs 300 ms.
|
|
32
32
|
- **Upstream suites:** mini_racer passes 187 of 190 with 3 skipped by itself; ExecJS passes 197 of 198 with 1 skipped.
|
data/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1976,11 +1976,11 @@ rustc 1.99.1: share/doc/rust/COPYRIGHT-library.html
|
|
|
1976
1976
|
|
|
1977
1977
|
`licenses/rust/std/COPYRIGHT-library.html`
|
|
1978
1978
|
|
|
1979
|
-
## V8 prebuilt archive (rusty_v8 v152.2.0)
|
|
1979
|
+
## V8 prebuilt archive (andymai/rusty_v8 v152.2.0-v8.15.2.124.45)
|
|
1980
1980
|
|
|
1981
1981
|
### v8
|
|
1982
1982
|
|
|
1983
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
1983
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE
|
|
1984
1984
|
|
|
1985
1985
|
```text
|
|
1986
1986
|
This license applies to all parts of V8 that are not externally
|
|
@@ -2048,7 +2048,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
2048
2048
|
|
|
2049
2049
|
### v8
|
|
2050
2050
|
|
|
2051
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2051
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE.fdlibm
|
|
2052
2052
|
|
|
2053
2053
|
```text
|
|
2054
2054
|
Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved.
|
|
@@ -2061,7 +2061,7 @@ is preserved.
|
|
|
2061
2061
|
|
|
2062
2062
|
### v8
|
|
2063
2063
|
|
|
2064
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2064
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE.strongtalk
|
|
2065
2065
|
|
|
2066
2066
|
```text
|
|
2067
2067
|
Copyright (c) 1994-2006 Sun Microsystems Inc.
|
|
@@ -2097,7 +2097,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
2097
2097
|
|
|
2098
2098
|
### v8
|
|
2099
2099
|
|
|
2100
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2100
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE.v8
|
|
2101
2101
|
|
|
2102
2102
|
```text
|
|
2103
2103
|
Copyright 2006-2011, the V8 project authors. All rights reserved.
|
|
@@ -2130,7 +2130,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
2130
2130
|
|
|
2131
2131
|
### inspector_protocol
|
|
2132
2132
|
|
|
2133
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2133
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/inspector_protocol/LICENSE
|
|
2134
2134
|
|
|
2135
2135
|
```text
|
|
2136
2136
|
// Copyright 2016 The Chromium Authors
|
|
@@ -2164,7 +2164,7 @@ https://raw.githubusercontent.com/denoland/v8/c4ca1eccb90c5464d826b7713dc27178a5
|
|
|
2164
2164
|
|
|
2165
2165
|
### siphash
|
|
2166
2166
|
|
|
2167
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2167
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/siphash/LICENSE
|
|
2168
2168
|
|
|
2169
2169
|
```text
|
|
2170
2170
|
CC0 1.0 Universal
|
|
@@ -2287,7 +2287,7 @@ For more information, please see
|
|
|
2287
2287
|
|
|
2288
2288
|
### rapidhash
|
|
2289
2289
|
|
|
2290
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2290
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/rapidhash-v8/LICENSE
|
|
2291
2291
|
|
|
2292
2292
|
```text
|
|
2293
2293
|
/*
|
|
@@ -2328,7 +2328,7 @@ https://raw.githubusercontent.com/denoland/v8/c4ca1eccb90c5464d826b7713dc27178a5
|
|
|
2328
2328
|
|
|
2329
2329
|
### utf8-decoder
|
|
2330
2330
|
|
|
2331
|
-
https://raw.githubusercontent.com/denoland/v8/
|
|
2331
|
+
https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/utf8-decoder/LICENSE
|
|
2332
2332
|
|
|
2333
2333
|
```text
|
|
2334
2334
|
Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
|
|
@@ -37,8 +37,6 @@ pub enum Scalar<'a> {
|
|
|
37
37
|
|
|
38
38
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
39
39
|
pub enum Container {
|
|
40
|
-
/// Every value of a multi-value frame, in order.
|
|
41
|
-
Values,
|
|
42
40
|
/// `length` is at most the bytes left in the input.
|
|
43
41
|
DenseArray {
|
|
44
42
|
length: u32,
|
|
@@ -301,13 +299,6 @@ impl<'a> Reader<'a> {
|
|
|
301
299
|
Ok(if value.is_nan() { f64::NAN } else { value })
|
|
302
300
|
}
|
|
303
301
|
|
|
304
|
-
// V8 pads before a two-byte string to align its characters.
|
|
305
|
-
const fn skip_padding(&mut self) {
|
|
306
|
-
while let Some((&tag::PADDING, rest)) = self.rest.split_first() {
|
|
307
|
-
self.rest = rest;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
302
|
// The readers a run takes elements with. Each consumes nothing unless
|
|
312
303
|
// the whole element reads cleanly, so whatever stops a run is read again,
|
|
313
304
|
// and reported, by the general path. They are marked inline because the
|
|
@@ -930,19 +921,3 @@ impl<'a, 'v, V: Visitor> Decoder<'a, 'v, V> {
|
|
|
930
921
|
pub fn decode_value<V: Visitor>(bytes: &[u8], limits: Limits, visitor: &mut V) -> Decoded<V> {
|
|
931
922
|
Decoder::new(bytes, limits, visitor)?.value(limits.max_depth)
|
|
932
923
|
}
|
|
933
|
-
|
|
934
|
-
/// Decodes every value of a buffer written as several values after one
|
|
935
|
-
/// header, which share object ids. They arrive as a `Container::Values`.
|
|
936
|
-
pub fn decode_values<V: Visitor>(bytes: &[u8], limits: Limits, visitor: &mut V) -> Decoded<V> {
|
|
937
|
-
let mut decoder = Decoder::new(bytes, limits, visitor)?;
|
|
938
|
-
let mut frame = Decoder::<V>::visit(decoder.visitor.begin(Container::Values))?.frame;
|
|
939
|
-
loop {
|
|
940
|
-
decoder.reader.skip_padding();
|
|
941
|
-
if decoder.reader.rest.is_empty() {
|
|
942
|
-
break;
|
|
943
|
-
}
|
|
944
|
-
let value = decoder.value(limits.max_depth)?;
|
|
945
|
-
Decoder::<V>::visit(decoder.visitor.push(&mut frame, value))?;
|
|
946
|
-
}
|
|
947
|
-
Decoder::<V>::visit(decoder.visitor.end(frame))
|
|
948
|
-
}
|
|
@@ -12,9 +12,7 @@ mod write;
|
|
|
12
12
|
|
|
13
13
|
use std::ops::RangeInclusive;
|
|
14
14
|
|
|
15
|
-
pub use decode::{
|
|
16
|
-
Begun, Container, DecodeError, Limits, Scalar, Text, Visitor, decode_value, decode_values,
|
|
17
|
-
};
|
|
15
|
+
pub use decode::{Begun, Container, DecodeError, Limits, Scalar, Text, Visitor, decode_value};
|
|
18
16
|
pub use write::{WriteError, Writer};
|
|
19
17
|
|
|
20
18
|
pub const READ_VERSIONS: RangeInclusive<u32> = 13..=16;
|
|
@@ -64,12 +64,34 @@ unless ENV.key?("LIBCLANG_PATH")
|
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
pins = File.readlines(File.join(__dir__, "v8-archives.sha256"), chomp: true)
|
|
68
|
+
source = pins.grep(/\A# (repository|tag) /).to_h { _1.split[1, 2] }
|
|
69
|
+
pinned = pins.grep_v(/\A#/).to_h do |line|
|
|
68
70
|
sha, file = line.split(/\s+/, 2)
|
|
69
71
|
[file, sha]
|
|
70
72
|
end
|
|
71
|
-
unless %w[RUSTY_V8_ARCHIVE RUSTY_V8_MIRROR RUSTY_V8_ARCHIVE_SHA256].any? { ENV.key?(_1) }
|
|
73
|
+
unless %w[RUSTY_V8_ARCHIVE RUSTY_V8_MIRROR RUSTY_V8_MIRROR_TAG RUSTY_V8_ARCHIVE_SHA256].any? { ENV.key?(_1) }
|
|
74
|
+
build_env["RUSTY_V8_MIRROR"] = "https://github.com/#{source.fetch("repository")}/releases/download"
|
|
75
|
+
build_env["RUSTY_V8_MIRROR_TAG"] = source.fetch("tag")
|
|
72
76
|
build_env["RUSTY_V8_ARCHIVE_SHA256"] = pinned.fetch("librusty_v8_release_#{target}.a.gz")
|
|
77
|
+
# From a mirror, v8's build script downloads the source binding unchecked, into
|
|
78
|
+
# the crate's own directory in the cargo registry.
|
|
79
|
+
unless %w[RUSTY_V8_SRC_BINDING_PATH RUSTY_V8_SRC_BINDING_URL].any? { ENV.key?(_1) }
|
|
80
|
+
require "digest"
|
|
81
|
+
require "open-uri"
|
|
82
|
+
binding_file = "src_binding_release_#{target}.rs"
|
|
83
|
+
url = "#{build_env["RUSTY_V8_MIRROR"]}/#{build_env["RUSTY_V8_MIRROR_TAG"]}/#{binding_file}"
|
|
84
|
+
body = begin
|
|
85
|
+
URI(url).read
|
|
86
|
+
rescue StandardError => e
|
|
87
|
+
abort "mini_racer_rs could not download #{url}: #{e.message}"
|
|
88
|
+
end
|
|
89
|
+
unless Digest::SHA256.hexdigest(body) == pinned.fetch(binding_file)
|
|
90
|
+
abort "mini_racer_rs: #{url} does not match its pinned SHA-256"
|
|
91
|
+
end
|
|
92
|
+
File.binwrite(binding_file, body)
|
|
93
|
+
build_env["RUSTY_V8_SRC_BINDING_PATH"] = File.expand_path(binding_file)
|
|
94
|
+
end
|
|
73
95
|
end
|
|
74
96
|
|
|
75
97
|
require "rb_sys/mkmf"
|
|
@@ -590,7 +590,7 @@ impl Visitor for RubyVisitor<'_> {
|
|
|
590
590
|
self.flush()?;
|
|
591
591
|
let ruby = self.ruby;
|
|
592
592
|
let frame = match container {
|
|
593
|
-
Container::
|
|
593
|
+
Container::Set => Frame::Array(ruby.ary_new()),
|
|
594
594
|
Container::DenseArray { length } => {
|
|
595
595
|
Frame::Array(ruby.ary_new_capa(usize::try_from(length).unwrap_or(0)))
|
|
596
596
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
# repository andymai/rusty_v8
|
|
2
|
+
# tag v152.2.0-v8.15.2.124.45
|
|
3
|
+
774292a611f06237764ae26734d4f3fa74339647ab9199520951798d5cc4f160 librusty_v8_release_aarch64-apple-darwin.a.gz
|
|
4
|
+
3513a69226fc05ded8966c717e154b609743a1448c3a442599706ee5826005c2 librusty_v8_release_aarch64-unknown-linux-gnu.a.gz
|
|
5
|
+
0f488e7ff64ad50cf082ab6e971395d3a8f89196454ce01a92163841c0cd3a36 librusty_v8_release_aarch64-unknown-linux-musl.a.gz
|
|
6
|
+
c79e14400fe6184892946912ba3f5829b18438d09919d7f619d81c050f1cae84 librusty_v8_release_x86_64-apple-darwin.a.gz
|
|
7
|
+
367384acfee945f0994a253b5df0b4befdca4f33562d2616c0ede19ea87dc68c librusty_v8_release_x86_64-unknown-linux-gnu.a.gz
|
|
8
|
+
bc4ced07fcf9f06f92cb079ac4fd44ce97ecd72709461e2170bf18d0abbdf6d0 librusty_v8_release_x86_64-unknown-linux-musl.a.gz
|
|
9
|
+
0e79ecd65650cd01a6b6c2fd2c3836e446faa4f8943d962ad11ae287edb2e745 src_binding_release_aarch64-apple-darwin.rs
|
|
10
|
+
60ab61fcbb92983670f6d7187b284a8480a8a69f0f4229eb4236fb6f1191d2e0 src_binding_release_aarch64-unknown-linux-gnu.rs
|
|
11
|
+
60ab61fcbb92983670f6d7187b284a8480a8a69f0f4229eb4236fb6f1191d2e0 src_binding_release_aarch64-unknown-linux-musl.rs
|
|
12
|
+
0e79ecd65650cd01a6b6c2fd2c3836e446faa4f8943d962ad11ae287edb2e745 src_binding_release_x86_64-apple-darwin.rs
|
|
13
|
+
60ab61fcbb92983670f6d7187b284a8480a8a69f0f4229eb4236fb6f1191d2e0 src_binding_release_x86_64-unknown-linux-gnu.rs
|
|
14
|
+
60ab61fcbb92983670f6d7187b284a8480a8a69f0f4229eb4236fb6f1191d2e0 src_binding_release_x86_64-unknown-linux-musl.rs
|
data/licenses/v8/SOURCES.tsv
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# rusty_v8 v152.2.0
|
|
1
|
+
# andymai/rusty_v8 v152.2.0-v8.15.2.124.45
|
|
2
2
|
# component file source sha256
|
|
3
|
-
v8 LICENSE https://raw.githubusercontent.com/denoland/v8/
|
|
4
|
-
v8 LICENSE.fdlibm https://raw.githubusercontent.com/denoland/v8/
|
|
5
|
-
v8 LICENSE.strongtalk https://raw.githubusercontent.com/denoland/v8/
|
|
6
|
-
v8 LICENSE.v8 https://raw.githubusercontent.com/denoland/v8/
|
|
7
|
-
inspector_protocol third_party/inspector_protocol/LICENSE https://raw.githubusercontent.com/denoland/v8/
|
|
8
|
-
siphash third_party/siphash/LICENSE https://raw.githubusercontent.com/denoland/v8/
|
|
9
|
-
rapidhash third_party/rapidhash-v8/LICENSE https://raw.githubusercontent.com/denoland/v8/
|
|
10
|
-
utf8-decoder third_party/utf8-decoder/LICENSE https://raw.githubusercontent.com/denoland/v8/
|
|
3
|
+
v8 LICENSE https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE 6ab33af8774a0f396ee3aeeb761e3229057682d6f9fa7f572e390c2cb3a6e509
|
|
4
|
+
v8 LICENSE.fdlibm https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE.fdlibm e7115e18444dae09d17f361ddc365fb1d342640fe500796209c63f7c80dfae10
|
|
5
|
+
v8 LICENSE.strongtalk https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE.strongtalk 6a585a9f466654abc8fc0829d56b1bc987e3a073d31faa03bba37d33640a23cd
|
|
6
|
+
v8 LICENSE.v8 https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/LICENSE.v8 4af93c12062c58058378de2397dc1c92bbff9ddfb1d583a01c84127557ce97ca
|
|
7
|
+
inspector_protocol third_party/inspector_protocol/LICENSE https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/inspector_protocol/LICENSE 450ebb9e9e50c2809d9ca581931fc8946d8d5aa0c8c35aae9ac471342fe4a88e
|
|
8
|
+
siphash third_party/siphash/LICENSE https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/siphash/LICENSE 36ffd9dc085d529a7e60e1276d73ae5a030b020313e6c5408593a6ae2af39673
|
|
9
|
+
rapidhash third_party/rapidhash-v8/LICENSE https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/rapidhash-v8/LICENSE db672df7faf793fbe28b8074fdd10822363e1525816b45c9627754885de842b0
|
|
10
|
+
utf8-decoder third_party/utf8-decoder/LICENSE https://raw.githubusercontent.com/denoland/v8/e465ab9bcb8bf0ae3d45c92a83d221fcda424436/third_party/utf8-decoder/LICENSE 3f712e5fbdfdbd5ee7d9b8c8152580220df55de47f4eba2f26c95c4de19ad096
|
|
11
11
|
icu LICENSE https://chromium.googlesource.com/chromium/deps/icu/+/d578f2e8b7bd5938e21cfb6bf15c079e0aa5b738/LICENSE e55522d81edc687a341a4411e0776e54ca654e90147f354a90458aaced4116af
|
|
12
12
|
abseil-cpp LICENSE https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp/+/d16e32215c3ab90ba57c2e904a5344d85c7353e4/LICENSE c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747
|
|
13
13
|
libc++ LICENSE.TXT https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx/+/b16984ce99c702355a5b2b4c52574e82cec41fb9/LICENSE.TXT 539dd7aed86e8a4f12cbdd0e6c50c189c7d74847e4fecc64ce2c6ee3a01da38b
|
data/sig/mini_racer.rbs
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
module MiniRacer
|
|
2
|
+
VERSION: String
|
|
3
|
+
LIBV8_NODE_VERSION: String
|
|
4
|
+
|
|
5
|
+
class Binary
|
|
6
|
+
attr_reader data: String
|
|
7
|
+
|
|
8
|
+
def initialize: (String data) -> void
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
class Error < StandardError
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class ContextDisposedError < Error
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class PlatformAlreadyInitialized < Error
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class EvalError < Error
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
class ParseError < EvalError
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
class ScriptTerminatedError < EvalError
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class V8OutOfMemoryError < EvalError
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
class InternalError < EvalError
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class RuntimeError < EvalError
|
|
36
|
+
@frames: Array[String]
|
|
37
|
+
|
|
38
|
+
def initialize: (String message) -> void
|
|
39
|
+
|
|
40
|
+
def backtrace: () -> Array[String]?
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# A JavaScript Error converted to Ruby is one of these; its cause is the
|
|
44
|
+
# JavaScript value it was given, which is untyped as every converted value is.
|
|
45
|
+
class ScriptError < EvalError
|
|
46
|
+
@frames: Array[String]
|
|
47
|
+
|
|
48
|
+
def initialize: (String message) -> void
|
|
49
|
+
|
|
50
|
+
def backtrace: () -> Array[String]
|
|
51
|
+
|
|
52
|
+
def cause: () -> untyped
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class SnapshotError < Error
|
|
56
|
+
@frames: Array[String]
|
|
57
|
+
|
|
58
|
+
def initialize: (String message) -> void
|
|
59
|
+
|
|
60
|
+
def backtrace: () -> Array[String]?
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
class JavaScriptFunction
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# What JavaScript returns, and what Ruby sends it, is known only when the
|
|
67
|
+
# script runs, so those values are untyped.
|
|
68
|
+
class Context
|
|
69
|
+
def initialize: (
|
|
70
|
+
?timeout: Integer,
|
|
71
|
+
?max_memory: Integer,
|
|
72
|
+
?ensure_gc_after_idle: Integer,
|
|
73
|
+
?marshal_stack_depth: Integer,
|
|
74
|
+
?snapshot: Snapshot?,
|
|
75
|
+
?verbose_exceptions: boolish
|
|
76
|
+
) -> void
|
|
77
|
+
|
|
78
|
+
def eval: (String source, ?filename: String?) -> untyped
|
|
79
|
+
|
|
80
|
+
def eval_await: (String source, ?filename: String?) -> untyped
|
|
81
|
+
|
|
82
|
+
def call: (String name, *untyped args) -> untyped
|
|
83
|
+
|
|
84
|
+
def call_await: (String name, *untyped args) -> untyped
|
|
85
|
+
|
|
86
|
+
def attach: (String name, ::Proc::_Callable callable) -> nil
|
|
87
|
+
|
|
88
|
+
def load: (path filename) -> untyped
|
|
89
|
+
|
|
90
|
+
def stop: () -> nil
|
|
91
|
+
|
|
92
|
+
def dispose: () -> nil
|
|
93
|
+
|
|
94
|
+
def heap_stats: () -> Hash[Symbol, Integer]
|
|
95
|
+
|
|
96
|
+
def heap_snapshot: () -> String
|
|
97
|
+
|
|
98
|
+
def write_heap_snapshot: (String | File file_or_io) -> Integer
|
|
99
|
+
|
|
100
|
+
def low_memory_notification: () -> nil
|
|
101
|
+
|
|
102
|
+
def perform_microtask_checkpoint: () -> nil
|
|
103
|
+
|
|
104
|
+
def pump_message_loop: () -> bool
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
class Snapshot
|
|
108
|
+
def self.load: (String blob) -> instance
|
|
109
|
+
|
|
110
|
+
def initialize: (?String? code) -> void
|
|
111
|
+
|
|
112
|
+
def warmup!: (String code) -> self
|
|
113
|
+
|
|
114
|
+
def dump: () -> String
|
|
115
|
+
|
|
116
|
+
def size: () -> Integer
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
class Platform
|
|
120
|
+
def self.set_flags!: (*_ToS flags, **_ToS? valued_flags) -> nil
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module MiniRacerRs
|
|
2
|
+
VERSION: String
|
|
3
|
+
NATIVE_VERSION: String
|
|
4
|
+
V8_VERSION: String
|
|
5
|
+
|
|
6
|
+
type terminations = {
|
|
7
|
+
stop: Integer,
|
|
8
|
+
timeout: Integer,
|
|
9
|
+
interrupt: Integer,
|
|
10
|
+
max_memory: Integer,
|
|
11
|
+
heap_exhausted: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type counts = {
|
|
15
|
+
dispatches: Integer,
|
|
16
|
+
callbacks: Integer,
|
|
17
|
+
bytes_to_js: Integer,
|
|
18
|
+
bytes_from_js: Integer,
|
|
19
|
+
js_ns: Integer,
|
|
20
|
+
gc_count: Integer,
|
|
21
|
+
gc_ns: Integer,
|
|
22
|
+
terminated: terminations
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type code_cache_counts = {
|
|
26
|
+
entries: Integer,
|
|
27
|
+
bytes: Integer,
|
|
28
|
+
hits: Integer,
|
|
29
|
+
builds: Integer,
|
|
30
|
+
rebuilds: Integer,
|
|
31
|
+
refused: Integer,
|
|
32
|
+
shared_sources: Integer,
|
|
33
|
+
shared_bytes: Integer
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def self.register_source_map: (String bundle, String map) -> nil
|
|
37
|
+
|
|
38
|
+
def self.counters: (MiniRacer::Context context) -> counts
|
|
39
|
+
|
|
40
|
+
def self.code_cache: () -> code_cache_counts
|
|
41
|
+
|
|
42
|
+
def self.timeout: [T] (Integer milliseconds) { () -> T } -> T
|
|
43
|
+
|
|
44
|
+
def self.heap_limit: () -> Integer?
|
|
45
|
+
|
|
46
|
+
def self.heap_limit=: (Integer? bytes) -> Integer?
|
|
47
|
+
|
|
48
|
+
class HeapLimitError < MiniRacer::V8OutOfMemoryError
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
class Pool
|
|
52
|
+
class ShutdownError < MiniRacer::Error
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
size: Integer,
|
|
57
|
+
?max_uses: Integer?,
|
|
58
|
+
?timeout: Integer,
|
|
59
|
+
?max_memory: Integer,
|
|
60
|
+
?ensure_gc_after_idle: Integer,
|
|
61
|
+
?marshal_stack_depth: Integer,
|
|
62
|
+
?snapshot: MiniRacer::Snapshot?,
|
|
63
|
+
?verbose_exceptions: boolish
|
|
64
|
+
) ?{ (MiniRacer::Context context) -> void } -> void
|
|
65
|
+
|
|
66
|
+
def with: [T] () { (MiniRacer::Context context) -> T } -> T
|
|
67
|
+
|
|
68
|
+
def shutdown: () -> nil
|
|
69
|
+
end
|
|
70
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mini_racer_rs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Aragon
|
|
@@ -149,14 +149,16 @@ files:
|
|
|
149
149
|
- licenses/v8/v8/LICENSE.fdlibm
|
|
150
150
|
- licenses/v8/v8/LICENSE.strongtalk
|
|
151
151
|
- licenses/v8/v8/LICENSE.v8
|
|
152
|
+
- sig/mini_racer.rbs
|
|
153
|
+
- sig/mini_racer_rs.rbs
|
|
152
154
|
homepage: https://github.com/andymai/mini_racer_rs
|
|
153
155
|
licenses:
|
|
154
156
|
- MIT
|
|
155
157
|
metadata:
|
|
156
158
|
homepage_uri: https://github.com/andymai/mini_racer_rs
|
|
157
|
-
source_code_uri: https://github.com/andymai/mini_racer_rs/tree/v1.
|
|
158
|
-
changelog_uri: https://github.com/andymai/mini_racer_rs/blob/v1.
|
|
159
|
-
documentation_uri: https://github.com/andymai/mini_racer_rs/blob/v1.
|
|
159
|
+
source_code_uri: https://github.com/andymai/mini_racer_rs/tree/v1.8.0
|
|
160
|
+
changelog_uri: https://github.com/andymai/mini_racer_rs/blob/v1.8.0/CHANGELOG.md
|
|
161
|
+
documentation_uri: https://github.com/andymai/mini_racer_rs/blob/v1.8.0/README.md#api-at-a-glance
|
|
160
162
|
bug_tracker_uri: https://github.com/andymai/mini_racer_rs/issues
|
|
161
163
|
funding_uri: https://github.com/sponsors/andymai
|
|
162
164
|
rubygems_mfa_required: 'true'
|