Releases: congomongo/congomongo
Authentication sources
Default query options
Sometimes it's very helpful to be able to provide default options for all queries (for example, specify default
max-time-ms
timeout) instead of specifying it for each call. You can do this by wrapping your code in the
with-default-query-options
macro. Options specified in a particular call will have a priority and overwrite
default-query-options
.
; This call will only return one item, since it is using the default options
(with-default-query-options {:limit 1}
(fetch :thingies :where {:foo 1}))
; You can also override the defaults by specifying a new value
(with-default-query-options {:limit 1}
(fetch :thingies :where {:foo 1} :limit 2)) ; returns 2 items
Remove deprecated commands
BREAKING CHANGES IN THIS RELEASE!
The group
, eval
and geoNear
commands have been deprecated for a long while now and were finally removed
in MongoDB 4.2. They have now been removed from this library as well. You are recommended to use the aggregate
command to replace the functionality of group
and geoNear
.
1.0.1
1.0.0
Updated to support mongo-java-driver 3.0+ which enables use of TLS connections and DNS SRV connection strings.
Authentication has changed significantly in the 3.0 driver which necessitated some breaking API changes around connecting and authenticating.
BREAKING CHANGES IN THIS RELEASE!
- Usernames and passwords for authenticated connections must be supplied to
make-connection
rather than authenticating after the connection has been created. Themake-connection
API has been changed to accomodate this. Optional parameters (instances, Mongo options, username and password) are now passed via keyword args. - The
authenticate
function has been removed. - The deprecated
mongo!
function has been removed. Use(set-connection (make-connection ...))
Release 0.5.1
- Allow
_id
to be provided when inserting via GridFS. - Update Java driver to 2.14.2
Release 0.5.0
- DROP SUPPORT FOR CLOJURE 1.3.0!
- Add Clojure 1.9.0 compatibility (handling of seqable? in coerce namespace) - issue #147
- Clojure is now a "provided" dependency and should no longer appear as a transitive dependency in projects that use CongoMongo, making it easier to get rid of conflicts! Potentially a breaking change if a project depended on CongoMongo but did not have an explicit dependency on Clojure itself.
Release 0.4.8
- Update clojure.data.json to 0.2.6
- Update default Clojure version to 1.8.0 and update test-all alias
- Rename
update
test toupdate-one
to avoid Clojureupdate
name conflict
Release 0.4.7
Updates Java driver to 2.14.0. Has been tested against MongoDB 3.0.
Release 0.4.6
Version 0.4.6 - Jul 29th, 2015
- Add support for hints on fetches
- Error on unsupported arguments (eg read-preferences on fetch-one)
Version 0.4.5 - Jul 18th, 2015
- update Java driver to 2.13.2
- change default Clojure version from 1.6.0 to 1.7.0 (we still support back to 1.3.0)