better_auth-mongo-adapter 0.1.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f83712d43953a0cbf57ae29664ab1f4592f81ad4134347a9f8096aaac635902
4
- data.tar.gz: eb3d6f9d93723b80abe9b8488956d75112578f8b2f6fe5e2f95a887f12b36ddf
3
+ metadata.gz: 0f11b99a7ba633e8d9ecfa3a9988e46a11e63ed0a5ddb50d310a19a69f66ddcd
4
+ data.tar.gz: e4c4ceeb142907c2afd64a7584186253a598c9ee2a9e0daefa684ca0ed1f0570
5
5
  SHA512:
6
- metadata.gz: 519e64619b3c068816d2d3a6243368fee1abfb373cdb313af22524254f8c3c8ece2945afca37c893a6487e80d61c5a25153e03737019fde0375a5d80c26ae505
7
- data.tar.gz: d7ecfde5895aec65f6164309b5e9739befa2f5ed7b1cd1709c9669f43af603ac785793113bdff0eda14fb7b52d37eabaac8adefb78fdbbed958c34006cf96723
6
+ metadata.gz: e010ded2d63ea1a52e41e08016e5f3a9cf901f1e29b51ff85835da9cde5b305a95f145cd69a56386e727665225e324f6472d8c2d73e5997bc787318920615860
7
+ data.tar.gz: 03777e55d4c48e50dd931895209d62da2182d5624af67197a6068ca9f48776b91667eb89f116ec9d55d9b53c61b58152ef0de2c9bac233f9d49bfb38953c5d29
data/CHANGELOG.md CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- - Kept at `0.1.0` for now so this first-publish package can be released separately when ready.
5
+ ## 0.1.1 - 2026-04-30
6
+
7
+ - Fixed inferred limited joins so explicit relation and limit configuration is preserved.
8
+ - Added MongoDB upstream parity coverage using a fake Mongo adapter harness.
6
9
 
7
10
  ## 0.1.0
8
11
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BetterAuth
4
4
  module MongoAdapter
5
- VERSION = "0.1.0"
5
+ VERSION = "0.5.0"
6
6
  end
7
7
  end
@@ -290,7 +290,14 @@ module BetterAuth
290
290
  return {from: Schema.storage_key(from), to: Schema.storage_key(to), relation: relation, limit: limit, unique: unique_join_field?(join_model, to)}
291
291
  end
292
292
 
293
- inferred_join_config(model, join_model)
293
+ inferred = inferred_join_config(model, join_model)
294
+ if config.is_a?(Hash)
295
+ limit = config[:limit] || config["limit"]
296
+ relation = config[:relation] || config["relation"]
297
+ inferred = inferred.merge(limit: limit) if limit
298
+ inferred = inferred.merge(relation: relation) if relation
299
+ end
300
+ inferred
294
301
  end
295
302
 
296
303
  def inferred_join_config(model, join_model)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_auth-mongo-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Sala