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 +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/better_auth/mongo_adapter/version.rb +1 -1
- data/lib/better_auth/mongo_adapter.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f11b99a7ba633e8d9ecfa3a9988e46a11e63ed0a5ddb50d310a19a69f66ddcd
|
|
4
|
+
data.tar.gz: e4c4ceeb142907c2afd64a7584186253a598c9ee2a9e0daefa684ca0ed1f0570
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
|
|
@@ -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)
|