mini_racer 0.13.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 205fd88e58bfe01ff418ca0dec8c0ee45d83bd18307c2507222b22d261723daf
4
- data.tar.gz: 46e7ca488776ebb29ade67c803c755687524394e183079645372df6768b11b49
3
+ metadata.gz: '09528c410457756e1826b8e3d383c4f013636f9c0026a7867992c2df35728c02'
4
+ data.tar.gz: cbd674e81b97cc9c57c4c136b5d335f799fa1d65e1905683b333c3c7e17af577
5
5
  SHA512:
6
- metadata.gz: adcdd13c1fafb53f952ebd2857ba06a27378e57df97bbee7f955796949a7883bcc831b1dacba5fe946592f6fd6f3912f41598c6b5741e9f19be08e450864be05
7
- data.tar.gz: 4a6b3ffecbe2065f3c1fc387eb44bf9c4fdd7f8a592bb61ce67c911267ae6110809dfd5d52144ef66fd42bb912fbce7b8d93b85be5fb84fed7a6963a715b4dec
6
+ metadata.gz: dc7747503da187c7a1ceac9ee3f90ebedd5fe0d0fd63784f3ac60b707152edd8523cbdd42a1624b51adad7621923f0624fb9d11f7534a37535ffd5d901c0f8a7
7
+ data.tar.gz: 10f167d0217fa08b86c840afb730cae490debf4315d3902041041eb628cf2b8a9bdbfc8a907d96abaff3a7dda5fabd26a882e237dac1e1ab9b1ddfa2ea8bd196
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ - 0.14.1 - 14-08-2024
2
+
3
+ - No longer use mini_racer_loader if LD_PRELOAD is defined and adds a malloc provider. This resolves segfaults when people LD_PRELOAD jemalloc or tcmalloc.
4
+
5
+ - 0.14.0 - 06-08-2024
6
+
7
+ - Node 22.5.1.0 is not stable in production, reverting to last known good build
8
+
1
9
  - 0.13.0 - 29-07-2024
2
10
 
3
11
  - Target Node to 22.5.1.0 0 - corrects segfault in earlier release
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniRacer
4
- VERSION = "0.13.0"
5
- LIBV8_NODE_VERSION = "~> 22.5.1.0"
4
+ VERSION = "0.14.1"
5
+ LIBV8_NODE_VERSION = "~> 18.19.0.0"
6
6
  end
data/lib/mini_racer.rb CHANGED
@@ -4,14 +4,23 @@ require "pathname"
4
4
  if RUBY_ENGINE == "truffleruby"
5
5
  require "mini_racer/truffleruby"
6
6
  else
7
- require "mini_racer_loader"
8
- ext_filename = "mini_racer_extension.#{RbConfig::CONFIG['DLEXT']}"
9
- ext_path = Gem.loaded_specs['mini_racer'].require_paths
10
- .map { |p| (p = Pathname.new(p)).absolute? ? p : Pathname.new(__dir__).parent + p }
11
- ext_found = ext_path.map { |p| p + ext_filename }.find { |p| p.file? }
12
-
13
- raise LoadError, "Could not find #{ext_filename} in #{ext_path.map(&:to_s)}" unless ext_found
14
- MiniRacer::Loader.load(ext_found.to_s)
7
+ if ENV["LD_PRELOAD"].to_s.include?("malloc")
8
+ require "mini_racer_extension"
9
+ else
10
+ require "mini_racer_loader"
11
+ ext_filename = "mini_racer_extension.#{RbConfig::CONFIG["DLEXT"]}"
12
+ ext_path =
13
+ Gem.loaded_specs["mini_racer"].require_paths.map do |p|
14
+ (p = Pathname.new(p)).absolute? ? p : Pathname.new(__dir__).parent + p
15
+ end
16
+ ext_found = ext_path.map { |p| p + ext_filename }.find { |p| p.file? }
17
+
18
+ unless ext_found
19
+ raise LoadError,
20
+ "Could not find #{ext_filename} in #{ext_path.map(&:to_s)}"
21
+ end
22
+ MiniRacer::Loader.load(ext_found.to_s)
23
+ end
15
24
  end
16
25
 
17
26
  require "thread"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_racer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-28 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 22.5.1.0
89
+ version: 18.19.0.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 22.5.1.0
96
+ version: 18.19.0.0
97
97
  description: Minimal embedded v8 engine for Ruby
98
98
  email:
99
99
  - sam.saffron@gmail.com
@@ -119,9 +119,9 @@ licenses:
119
119
  - MIT
120
120
  metadata:
121
121
  bug_tracker_uri: https://github.com/discourse/mini_racer/issues
122
- changelog_uri: https://github.com/discourse/mini_racer/blob/v0.13.0/CHANGELOG
123
- documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.13.0
124
- source_code_uri: https://github.com/discourse/mini_racer/tree/v0.13.0
122
+ changelog_uri: https://github.com/discourse/mini_racer/blob/v0.14.1/CHANGELOG
123
+ documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.14.1
124
+ source_code_uri: https://github.com/discourse/mini_racer/tree/v0.14.1
125
125
  post_install_message:
126
126
  rdoc_options: []
127
127
  require_paths: