@nomicfoundation/edr 0.3.4 → 0.3.5

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.
Files changed (3) hide show
  1. package/Cargo.toml +6 -6
  2. package/index.js +25 -10
  3. package/package.json +10 -14
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "edr_napi"
3
- version = "0.2.0-dev"
3
+ version = "0.3.5"
4
4
  edition = "2021"
5
5
 
6
6
  [lib]
@@ -16,10 +16,10 @@ log = { version = "0.4.20", default-features = false }
16
16
  # The `async` feature ensures that a tokio runtime is available
17
17
  napi = { version = "2.16.0", default-features = false, features = ["async", "error_anyhow", "napi8", "serde-json"] }
18
18
  napi-derive = "2.16.0"
19
- edr_defaults = { version = "0.2.0-dev", path = "../edr_defaults" }
20
- edr_evm = { version = "0.2.0-dev", path = "../edr_evm", features = ["tracing"]}
21
- edr_eth = { version = "0.2.0-dev", path = "../edr_eth" }
22
- edr_provider = { version = "0.2.0-dev", path = "../edr_provider" }
19
+ edr_defaults = { version = "0.3.5", path = "../edr_defaults" }
20
+ edr_evm = { version = "0.3.5", path = "../edr_evm", features = ["tracing"]}
21
+ edr_eth = { version = "0.3.5", path = "../edr_eth" }
22
+ edr_provider = { version = "0.3.5", path = "../edr_provider" }
23
23
  serde_json = { version = "1.0.85", default-features = false, features = ["alloc"] }
24
24
  thiserror = { version = "1.0.37", default-features = false }
25
25
  tracing = { version = "0.1.37", default-features = false, features = ["std"] }
@@ -29,7 +29,7 @@ parking_lot = { version = "0.12.1", default-features = false }
29
29
  lazy_static = { version = "1.4.0", features = [] }
30
30
  rand = { version = "0.8.4", optional = true }
31
31
  serde = { version = "1.0.189", features = ["derive"] }
32
- mimalloc = { version = "0.1.39", default-features = false }
32
+ mimalloc = { version = "0.1.39", default-features = false, features = ["local_dynamic_tls"] }
33
33
 
34
34
  [target.x86_64-unknown-linux-gnu.dependencies]
35
35
  openssl-sys = { version = "0.9.93", features = ["vendored"] }
package/index.js CHANGED
@@ -224,17 +224,32 @@ switch (platform) {
224
224
  }
225
225
  break
226
226
  case 'arm':
227
- localFileExisted = existsSync(
228
- join(__dirname, 'edr.linux-arm-gnueabihf.node')
229
- )
230
- try {
231
- if (localFileExisted) {
232
- nativeBinding = require('./edr.linux-arm-gnueabihf.node')
233
- } else {
234
- nativeBinding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
227
+ if (isMusl()) {
228
+ localFileExisted = existsSync(
229
+ join(__dirname, 'edr.linux-arm-musleabihf.node')
230
+ )
231
+ try {
232
+ if (localFileExisted) {
233
+ nativeBinding = require('./edr.linux-arm-musleabihf.node')
234
+ } else {
235
+ nativeBinding = require('@nomicfoundation/edr-linux-arm-musleabihf')
236
+ }
237
+ } catch (e) {
238
+ loadError = e
239
+ }
240
+ } else {
241
+ localFileExisted = existsSync(
242
+ join(__dirname, 'edr.linux-arm-gnueabihf.node')
243
+ )
244
+ try {
245
+ if (localFileExisted) {
246
+ nativeBinding = require('./edr.linux-arm-gnueabihf.node')
247
+ } else {
248
+ nativeBinding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
249
+ }
250
+ } catch (e) {
251
+ loadError = e
235
252
  }
236
- } catch (e) {
237
- loadError = e
238
253
  }
239
254
  break
240
255
  case 'riscv64':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/edr",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -19,17 +19,15 @@
19
19
  "triples": {
20
20
  "additional": [
21
21
  "aarch64-apple-darwin",
22
- "aarch64-pc-windows-msvc",
23
22
  "aarch64-unknown-linux-gnu",
24
23
  "aarch64-unknown-linux-musl",
25
- "x86_64-unknown-linux-musl",
26
- "i686-pc-windows-msvc"
24
+ "x86_64-unknown-linux-musl"
27
25
  ]
28
26
  }
29
27
  },
30
28
  "license": "MIT",
31
29
  "devDependencies": {
32
- "@napi-rs/cli": "^2.16.3",
30
+ "@napi-rs/cli": "^2.18.1",
33
31
  "@types/chai": "^4.2.0",
34
32
  "@types/chai-as-promised": "^7.1.8",
35
33
  "@types/mocha": ">=9.1.0",
@@ -43,15 +41,13 @@
43
41
  "node": ">= 18"
44
42
  },
45
43
  "optionalDependencies": {
46
- "@nomicfoundation/edr-win32-x64-msvc": "0.3.4",
47
- "@nomicfoundation/edr-darwin-x64": "0.3.4",
48
- "@nomicfoundation/edr-linux-x64-gnu": "0.3.4",
49
- "@nomicfoundation/edr-darwin-arm64": "0.3.4",
50
- "@nomicfoundation/edr-win32-arm64-msvc": "0.3.4",
51
- "@nomicfoundation/edr-linux-arm64-gnu": "0.3.4",
52
- "@nomicfoundation/edr-linux-arm64-musl": "0.3.4",
53
- "@nomicfoundation/edr-linux-x64-musl": "0.3.4",
54
- "@nomicfoundation/edr-win32-ia32-msvc": "0.3.4"
44
+ "@nomicfoundation/edr-win32-x64-msvc": "0.3.5",
45
+ "@nomicfoundation/edr-darwin-x64": "0.3.5",
46
+ "@nomicfoundation/edr-linux-x64-gnu": "0.3.5",
47
+ "@nomicfoundation/edr-darwin-arm64": "0.3.5",
48
+ "@nomicfoundation/edr-linux-arm64-gnu": "0.3.5",
49
+ "@nomicfoundation/edr-linux-arm64-musl": "0.3.5",
50
+ "@nomicfoundation/edr-linux-x64-musl": "0.3.5"
55
51
  },
56
52
  "scripts": {
57
53
  "artifacts": "napi artifacts",