Skip to content

Commit

Permalink
v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrostfall committed Jun 8, 2023
1 parent def7a80 commit 7a36e1e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
build
sourcemap.json
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# Changelog

This project follows semver.

## v0.2.2

- Added tabs to .ToString()

## v0.2.1

- Updated all string manipulation to use new Luau string interpolation
- .ToString() improvements
- General improvements (thanks @Someone-dQw4w9WgXcQ)
- Typo fix (@Carrotoplia)

## v0.1.1

- Optimizations to .Filter(), .HasKey() (fixing my 4am code)
- Type improvements
- Added LICENSE

## v0.1.0
- Release

- Release
6 changes: 2 additions & 4 deletions src/init.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
type unknown = any -- rlsp moment

local TableKit = {}

--[=[
Expand Down Expand Up @@ -119,7 +117,7 @@ end
@param dictionary table
@return table
]=]
function TableKit.Values<T>(dictionary: { [unknown]: T }): T
function TableKit.Values<T>(dictionary: { [unknown]: T }): { T }
local valueArray = {}

for _, value in dictionary do
Expand Down Expand Up @@ -281,7 +279,7 @@ function TableKit.ToString(obj: { [unknown]: unknown }): string
stringifiedValue = valueToString
end

local newline = `[{stringifiedKey}] = {stringifiedValue}`
local newline = `\t[{stringifiedKey}] = {stringifiedValue}`
table.insert(result, newline)
end
return "{\n" .. table.concat(result, "\n") .. "\n}"
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 = "ffrostflame/tablekit"
version = "0.2.1"
version = "0.2.2"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"

Expand Down

0 comments on commit 7a36e1e

Please sign in to comment.