Skip to content

Commit

Permalink
Fix module require links, add todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tpc9000 committed Sep 15, 2022
1 parent 69f061c commit 3891eb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Map/CreateNonOverwritingPatchDeep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--- This allows us to apply an additional merge to add new fields to values which were not originally nil.
--- Good use case: want to merge in new default fields to a player's data structure without overwriting existing fields.
--- @todo Return nil if result is empty & wrap top level with another function? That way we trim recursive merge work for the resulting empty tables, which will be the common use case.
--- @todo Deep copy for intuitiveness.
local TYPE_TABLE = "table"

local function CreateNonOverwritingPatchDeep(Previous, Template)
Expand Down
5 changes: 5 additions & 0 deletions src/Map/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
return {
CreateNonOverwritingPatchDeep = require(script:WaitForChild("CreateNonOverwritingPatchDeep"));
ToKeyValueArray1D = require(script:WaitForChild("ToKeyValueArray1D"));
CloneDeep = require(script:WaitForChild("CloneDeep"));
MergeDeep = require(script:WaitForChild("MergeDeep"));
Equals1D = require(script:WaitForChild("Equals1D"));
Filter1D = require(script:WaitForChild("Filter1D"));
Values1D = require(script:WaitForChild("Values1D"));
Clone1D = require(script:WaitForChild("Clone1D"));
Merge1D = require(script:WaitForChild("Merge1D"));
Keys1D = require(script:WaitForChild("Keys1D"));
Map1D = require(script:WaitForChild("Map1D"));
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tpc9000/tableutil"
version = "0.2.1"
version = "0.2.2"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
license = "MIT"
Expand Down

0 comments on commit 3891eb2

Please sign in to comment.