- Added types (#24)
- Added
document:beforeClose
callback to make final changes to a document before it closes (#25)- This callback works even when the document is closed by
game:BindToClose
.
- This callback works even when the document is closed by
- Added APIs to set a document's
DataStoreKeyInfo:GetUserIds()
(#26)- Changed
Collection:load(key: string)
toCollection:load(key: string, defaultUserIds: {number}?)
defaultUserIds
only applies if it's the first time the document has ever been loaded.
- Added
Document:addUserId(userId: number)
- Added
Document:removeUserId(userId: number)
- Changed
- Fix existing data not being frozen on load (#20)
- Fix
game:BindToClose
not waiting for documents to close
- Fix silly mistake where I don't return the collection from
createCollection
- Remove write cooldown throttling since write cooldowns were removed (#11)
- Fix save merging algorithm (#13)
- Added new throttle queue which allows load/save/close requests from different keys to be processed at the same time (#15)
- Move TestEZ and DataStoreServiceMock to dev dependencies
- Remove unused files from published package
- Renamed
Collection:openDocument
toCollection:load
- Renamed
retryAttempts
config setting tosaveAttempts
- Renamed
acquireLockAttempts
config setting toloadAttempts
- Renamed
acquireLockDelay
config setting toloadRetryDelay
- Fixed edge case that allowed documents to load even when their migration version exceeded the server's latest migration