eppo-server-sdk 3.1.1 → 3.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6fb69972c523dd9d2c7c683c751c012608c63bb36fd3a6fe9463fb27d77d3d6
4
- data.tar.gz: dfb6b27af63f652094f2141791aaf31be01ce8277801ce6537b30f0cbfa64820
3
+ metadata.gz: e157a64d8d72757a3bd049d7e40db5589fb7b16d6ff466ea4a1015dbb54fa066
4
+ data.tar.gz: 9a4d5cd6edec77d1b8bf8103debe2b096816b6e9957a1c2308747a5182b5a703
5
5
  SHA512:
6
- metadata.gz: 1d191dfefc76fb61a1b873c61da265066e1d674e628864d326d3d51bb3a5c14933fb69aa48e72a1325bd2753a4acc2083bde48d1daf1a408c29b90cea4f858b5
7
- data.tar.gz: b79006cc38615b15e44d12362fcc61520ae34f852272fe5a42d4761d7e36e5c407aa1a63df0226109c2198a4798fbb0ded3ce3c0b22fa27e004a69165a2a1696
6
+ metadata.gz: 1b98a6ee8aefd1b833f83ddae8141f42798f825a30f0a54d257f390aa24efc9d8e8a2f1c5b9ff1542db9c11700b7d5fac513c0fa1632aca2f5d22b1eb1a4a9b2
7
+ data.tar.gz: abc686a5a7e46bf85ba655157de3b7ae9b9367e53603d962741d52edac3f42da1e24301a67145b6719663583a89083dbe0e5df757ebf0a6decc8a570f8f64edf
data/Cargo.lock CHANGED
@@ -304,7 +304,7 @@ dependencies = [
304
304
 
305
305
  [[package]]
306
306
  name = "eppo_client"
307
- version = "3.1.1"
307
+ version = "3.1.2"
308
308
  dependencies = [
309
309
  "env_logger",
310
310
  "eppo_core",
@@ -317,12 +317,13 @@ dependencies = [
317
317
 
318
318
  [[package]]
319
319
  name = "eppo_core"
320
- version = "3.0.0"
320
+ version = "4.0.0"
321
321
  source = "registry+https://github.com/rust-lang/crates.io-index"
322
- checksum = "34f3fc5a7f54cc47a5ebf063025176726db7eb5e51661185b5f4d20aaacea611"
322
+ checksum = "b071fed21065318dcd6a91a443bd9f6b39796d727297b03d092e2e8dc9e02414"
323
323
  dependencies = [
324
324
  "chrono",
325
325
  "derive_more",
326
+ "faststr",
326
327
  "log",
327
328
  "md5",
328
329
  "rand",
@@ -367,6 +368,17 @@ version = "2.1.0"
367
368
  source = "registry+https://github.com/rust-lang/crates.io-index"
368
369
  checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a"
369
370
 
371
+ [[package]]
372
+ name = "faststr"
373
+ version = "0.2.23"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "4dc21a7d5a45182c2bb5ae9471b93f10919c0744b54403e54a9e2329c26ed5a3"
376
+ dependencies = [
377
+ "bytes",
378
+ "serde",
379
+ "simdutf8",
380
+ ]
381
+
370
382
  [[package]]
371
383
  name = "fnv"
372
384
  version = "1.0.7"
@@ -1328,6 +1340,12 @@ version = "1.3.0"
1328
1340
  source = "registry+https://github.com/rust-lang/crates.io-index"
1329
1341
  checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1330
1342
 
1343
+ [[package]]
1344
+ name = "simdutf8"
1345
+ version = "0.1.5"
1346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1347
+ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
1348
+
1331
1349
  [[package]]
1332
1350
  name = "slab"
1333
1351
  version = "0.4.9"
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "eppo_client"
3
3
  # TODO: this version and lib/eppo_client/version.rb should be in sync
4
- version = "3.1.1"
4
+ version = "3.1.2"
5
5
  edition = "2021"
6
6
  license = "MIT"
7
7
  publish = false
@@ -12,7 +12,7 @@ crate-type = ["cdylib"]
12
12
 
13
13
  [dependencies]
14
14
  env_logger = { version = "0.11.3", features = ["unstable-kv"] }
15
- eppo_core = { version = "3.0.0" }
15
+ eppo_core = { version = "4.0.0" }
16
16
  log = { version = "0.4.21", features = ["kv_serde"] }
17
17
  magnus = { version = "0.6.2" }
18
18
  serde = { version = "1.0.203", features = ["derive"] }
@@ -81,8 +81,8 @@ impl Client {
81
81
  .evaluator
82
82
  .get_assignment(
83
83
  &flag_key,
84
- &subject_key,
85
- &subject_attributes,
84
+ &subject_key.into(),
85
+ &Arc::new(subject_attributes),
86
86
  Some(expected_type),
87
87
  )
88
88
  // TODO: maybe expose possible errors individually.
@@ -103,8 +103,8 @@ impl Client {
103
103
 
104
104
  let result = self.evaluator.get_assignment_details(
105
105
  &flag_key,
106
- &subject_key,
107
- &subject_attributes,
106
+ &subject_key.into(),
107
+ &Arc::new(subject_attributes),
108
108
  Some(expected_type),
109
109
  );
110
110
 
@@ -132,10 +132,10 @@ impl Client {
132
132
 
133
133
  let result = self.evaluator.get_bandit_action(
134
134
  &flag_key,
135
- &subject_key,
135
+ &subject_key.into(),
136
136
  &subject_attributes,
137
137
  &actions,
138
- &default_variation,
138
+ &default_variation.into(),
139
139
  );
140
140
 
141
141
  serde_magnus::serialize(&result)
@@ -162,10 +162,10 @@ impl Client {
162
162
 
163
163
  let result = self.evaluator.get_bandit_action_details(
164
164
  &flag_key,
165
- &subject_key,
165
+ &subject_key.into(),
166
166
  &subject_attributes,
167
167
  &actions,
168
- &default_variation,
168
+ &default_variation.into(),
169
169
  );
170
170
 
171
171
  serde_magnus::serialize(&result)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # TODO: this version and ext/eppo_rb/Cargo.toml should be in sync
3
+ # TODO: this version and ext/eppo_client/Cargo.toml should be in sync
4
4
  module EppoClient
5
- VERSION = "3.1.1"
5
+ VERSION = "3.1.2"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eppo-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eppo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-19 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: