From 2d49eef20f8b31329b5b03ef19f1bece2d2764b4 Mon Sep 17 00:00:00 2001 From: nezuo Date: Tue, 24 Oct 2023 15:55:04 -0700 Subject: [PATCH 1/3] Update changelog --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c179b..e564f27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ ## Unreleased Changes +## 0.2.6 - October 24, 2023 +* Added types ([#24]) +* Added `document:beforeClose` callback to make final changes to a document before it closes ([#25]) +* Added APIs to set a document's `DataStoreKeyInfo:GetUserIds()` ([#26]) + * Changed `Collection:load(key: string)` to `Collection: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)` + +[#24]: https://github.com/nezuo/lapis/pull/24 +[#25]: https://github.com/nezuo/lapis/pull/25 +[#26]: https://github.com/nezuo/lapis/pull/26 + ## 0.2.5 - September 8, 2023 * Fix existing data not being frozen on load ([#20]) From 50beea0779573c7304ce3c9c01398732ce1083dc Mon Sep 17 00:00:00 2001 From: nezuo Date: Tue, 24 Oct 2023 15:56:31 -0700 Subject: [PATCH 2/3] Add note to document:beforeClose change --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e564f27..f7b30c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ## 0.2.6 - October 24, 2023 * 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`. * Added APIs to set a document's `DataStoreKeyInfo:GetUserIds()` ([#26]) * Changed `Collection:load(key: string)` to `Collection:load(key: string, defaultUserIds: {number}?)` * `defaultUserIds` only applies if it's the first time the document has ever been loaded. From e842d60678b4c1404a30458bd6b81dee3cd7b7dc Mon Sep 17 00:00:00 2001 From: nezuo Date: Tue, 24 Oct 2023 15:57:03 -0700 Subject: [PATCH 3/3] Update version --- wally.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wally.toml b/wally.toml index 2fd4900..7e0c3c5 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "nezuo/lapis" -version = "0.2.5" +version = "0.2.6" registry = "https://github.com/UpliftGames/wally-index" exclude = ["**"] include = ["src", "src/*", "default.project.json", "wally.toml", "LICENSE"]