better_auth-mongo-adapter 0.1.0 → 0.1.1

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: a5e6e92f497b8a5d09f35a12eb9d8bebdb0ceefdc3dcf3f61cec424d8a90646f
4
+ data.tar.gz: 989ff4f8714d747aacde126da92cb3000ff6dd143b1f195158f00356efc08721
5
5
  SHA512:
6
- metadata.gz: 519e64619b3c068816d2d3a6243368fee1abfb373cdb313af22524254f8c3c8ece2945afca37c893a6487e80d61c5a25153e03737019fde0375a5d80c26ae505
7
- data.tar.gz: d7ecfde5895aec65f6164309b5e9739befa2f5ed7b1cd1709c9669f43af603ac785793113bdff0eda14fb7b52d37eabaac8adefb78fdbbed958c34006cf96723
6
+ metadata.gz: fc5c93cad963bb4eec72777efa27447ec2363ea97973f6bcae8722953e986b0b0461bd52bd60653d2826be767b3cafc774ca28fc45e2800850fb86b4b79b6d3e
7
+ data.tar.gz: de8977f7d89aeef36cf27896166b1a9dec4d6bfee756fc92523a654c0cbf3c7ffc737a784dbd95e98b7e11a22758edc3710dce50d80685a38b282b84b62ec8dc
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.1.1"
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.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Sala