- Automatic resume for empty queries using
FETCH_ALL- #31
- Patch nested $set restore - #29
- Support for
arrayFilters - Improve automatic rollback for nested paths - Thanks @hugop95 #19
- Upgrade dev packages
- Patch 1.4.4 regression for auto rollback on nested properties
- Fix bug: rollback in nested properties didn't work for array values (
$set:{"a.b":[...]})
- Fix issues when the option
rollbackableisfalse- Correctly compute bulk size, to decide when executing it
- Do not warn because the number of rollback documents is 0
- Add the option
rollbackablethat is faster for update-only scripts- Its default value is
true - When set to
false, callingupdatewill not inserted any document in the rollback collection - When set to
false, callingrollbackwill not do anything
- Its default value is
- Make
projectionnot mandatory in typing when usingDELETE_OPERATION
- Don't use upsert() for rollback, instead call insert() for deleted documents to ease shard compliancy #5
- Fix issue where unset arrays were not properly restored #3
- Support collection deletion
operation:DELETE_COLLECTION(and rollback) - Spot and show warnings if a non idempotent and deterministic update is spotted (likely 2 scripts share the same id)
doRollbackAndAssertForInitialStatetest util won't reject unsorted documents for both Jest & Chai
- Improve
doRollbackAndAssertForInitialStatefor chai recognition
- Update Readme
Initial revision (360L internal script we use). We are happy to share this program that make us earn time!
- Built over mongo bulk native client
- Find & Aggregate support
- Automatic rollback for basic $set
- Or alternative custom update query
- Option to throttle
- Async update support with Promise concurrency (pLimit lib)
- Show warning if aggregate count is too slow
- Mocha / Jest support