Releases: cxmeel/sift
0.0.9
What's Changed
- Fix Dictionary.update type by @brinkokevin in #22
New Contributors
- @brinkokevin made their first contribution in #22
Full Changelog: 0.0.8...0.0.9
0.0.8
0.0.7
What's Changed
- fix-falsy-reduce-problem: Allow reduce and reduceRight to work on falsy values by @davidnurkkala in #15
- PepeElToro41-patch-1: fix: allow Dictionary.map to return undefined by @PepeElToro41 in #14
New Contributors
- @davidnurkkala made their first contribution in #15
- @PepeElToro41 made their first contribution in #14
Full Changelog: 0.0.6...0.0.7
0.0.6
What's Changed
- feat(dictionary): add withKeys by @sasial-dev in #13
New Contributors
- @sasial-dev made their first contribution in #13
Full Changelog: 0.0.5...0.0.6
0.0.5
What's Changed
Fixed a bug relating to TypeScript types (#11), and added set and array difference functions (#12).
Added
Array.difference
andArray.differenceSymmetric
to find the difference between two or more arrays.Set.difference
andSet.differenceSymmetric
to find the difference between two or more sets.
Fixed
- Typings for
Array.concat
, which previously returnedT[][]
instead ofT[]
(typings changed fromT[]
→T
).
Full Changelog: 0.0.4...0.0.5
0.0.4
0.0.3
What's Changed
- Update update.lua documentation by @Zenthial in #6
- Fix critical bug in Sift.Dictionary.update by @Reselim in #7
- Added an
aftman.toml
and switched GitHub actions over to use aftman
New Contributors
Full Changelog: 0.0.2...0.0.3
0.0.2
What's Changed
Handle Holes in Arguments
Patched an issue in Array.concat(Deep)
, Dictionary.merge(Deep)
and Set.merge
where they would stop at a nil
value in the arguments. This closes #3.
This is because, when using ipairs
, it automatically assumes the end of the array has been reached when it hits a nil
value.
The new implementation uses select
to process the vararg (...
) in order to continue processing even if a nil
value is present.
Out of Bound Indices
Array.insert
will now properly handle out of bound indices.
An index of 0
will cause items to be inserted at the end of the array (since arrays are 1-indexed in Luau).
An index of length+1
will also allow values to be inserted at the end of the array. Indices of length+2
or greater will be ignored and return the original array (I'm open to changing this behaviour to throw if requested!).
Miscellaneous
- Updated docs for above methods
- Bumped
package.json
to v0.0.2 - Bumped
wally.toml
to v0.0.2 - Bumped rojo to v7.1.1
- Bumped stylua to v0.13.1
- Bumped selene to v0.17.0
Full Changelog: 0.0.1...0.0.2
0.0.1
What's Changed
Added
- Basic TypeScript (roblox-ts) support (no tsdoc yet)! 🎉
- Implemented
isEmpty
- Added typings to
equalObjects
- Added aliases for
Array.concat
,Array.concatDeep
,Array.push
,Array.unshift
,Array.find
,Array.includes
,Dictionary.join
,Dictionary.joinDeep
,Set.fromArray
,Set.merge
,Set.delete
- Added doc pages for installation and usage samples
Changed
- Exposed
isEmpty
andequalObjects
from the root module - Improved typings for methods accepting predictes
- Updated documentation for some methods
- Fixed
Dictionary.flatten
being shown in theArray
docs (wrong@within
tag)
Full Changelog: 0.0.0...0.0.1
0.0.0
This is the initial release of Sift.
Sift aims to replace @freddylist's Llama library, which is no longer maintained.
- Includes all Array, Set and Dictionary methods from @freddylist/llama
- Adds new methods to Array:
at
,freeze
,freezeDeep
andshuffle
- Adds new methods to Dictionary:
entries
,freeze
,freezeDeep
,fromEntries
- Adds new methods to Set:
count
What's Changed
New Contributors
Full Changelog: 0.0.0