Asher Gomez
8532be73b9
chore(collections): complete documentation ( #3896 )
2023-12-05 19:53:55 +11:00
Asher Gomez
f685e27364
BREAKING(collections): remove deprecated APIs ( #3853 )
2023-11-24 19:16:52 +11:00
Tiger Oakes
7f5229e4da
BREAKING(collections): deprecate groupBy()
( #3663 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-22 17:33:26 +09:00
Yoshiya Hinosawa
8e52ea89c9
docs(collection): document overloads (revert #3818 ) ( #3823 )
2023-11-21 21:37:43 +09:00
Asher Gomez
835f4f6fe5
refactor(collections): unify function overloads ( #3818 )
...
* refactor(collections): unify function overloads
* partition
2023-11-20 11:04:19 +11:00
Asher Gomez
1f31bc765b
chore(collections): improve deprecation notices ( #3812 )
...
chore(collections): update deprecations
2023-11-16 19:45:47 +09:00
Asher Gomez
255a3765d3
feat: std/data_structures
( #3734 )
2023-11-15 21:17:44 +11:00
Asher Gomez
b9b18b92c2
chore: cleanup collections/CONTRIBUTING.md
( #3741 )
2023-10-31 14:38:29 +11:00
Asher Gomez
c4236a34c7
refactor: move unstable std/collections
files ( #3700 )
2023-10-18 10:24:46 +09:00
Tiger Oakes
a461ce1d84
fix(collections): accept readonly arrays in aggregateGroups, reduceGroups, zip ( #3662 )
2023-09-21 19:18:57 +09:00
Yoshiya Hinosawa
8229b6f248
BREAKING(collections): move RedBlackTree, BinarySearchTree, and BinaryHeap to 'unstable' subdir ( #3628 )
2023-09-12 16:26:57 +09:00
Lino Le Van
fff7f1a364
chore(collections): remove warning from mod.ts ( #3576 )
2023-08-26 20:55:09 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals ( #3566 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Lino Le Van
b97ba4c5ac
fix(collections): redblack tree and bst not being exported from mod ( #3528 )
2023-08-11 15:34:55 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts
to std/assert
( #3445 )
2023-07-13 16:04:30 +09:00
Tim Reichen
54a23fb219
feat(collections): allow PropertyKey for groupBy key ( #3461 )
2023-07-05 16:26:54 +09:00
Yoshiya Hinosawa
3e2bdffbbf
chore: fix lint errors ( #3470 )
2023-06-28 17:06:55 +09:00
Santiago Aguilar Hernández
0783b5a322
feat(collections/sort_by): descending order can be specified in options ( #3419 )
2023-06-07 14:09:28 +09:00
Un Known
5199824fca
feat(collections): switch functions to take iterables when possible ( #3401 )
2023-05-31 08:48:21 +09:00
Jesse Jackson
9e21d9d047
feat(collections/group_by): accept iterable input, add index param to callback ( #3390 )
2023-05-19 12:59:12 +09:00
scarf
a951ed6c02
feat(collections): add partitionEntries
( #3365 )
2023-05-07 15:53:59 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks ( #3263 )
2023-03-18 21:36:00 +09:00
Asher Gomez
ff2f51398b
test(collections): full test coverage ( #3193 )
2023-02-14 18:30:41 +09:00
Phil Ting
d6d3aac45e
refactor(collections): binary search tree and red black tree to remove by node ( #3072 )
2023-01-17 20:15:00 +09:00
masx200
1999443805
feat(collection): add toArray method to BinaryHeap ( #3079 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-01-13 16:34:07 +09:00
ayame113
b4239898d6
chore: update copyright header ( #3082 )
2023-01-03 19:47:44 +09:00
Asher Gomez
c78061eef3
refactor: replace String.prototype.substr()
with String.prototype.slice()
( #2993 )
2022-12-12 15:21:59 +09:00
Leo Kettmeir
aba5017d43
docs: reorganize docs ( #2658 )
2022-11-25 12:40:23 +01:00
Satoshi
7f7583139e
feat(collections): improve types of partition
module ( #2744 )
...
add type guard overload
2022-10-04 11:18:53 -04:00
Asher Gomez
bddda3c473
chore: remove deprecated APIs across collections
, streams
, textproto
and uuid
( #2720 )
2022-09-30 16:27:11 +09:00
Asher Gomez
b9f9caa7be
chore(collections): remove deprecated APIs ( #2711 )
2022-09-29 11:24:28 -04:00
Simon Lecoq
fe233914a5
fix(collections): deepMerge ignoring 'replace' options for nested properties ( #2681 )
2022-09-22 16:20:40 +09:00
Tim Reichen
2f7713a164
chore(tools): add deprecation check ( #2613 )
2022-09-15 16:06:04 +09:00
Yoshiya Hinosawa
3fd41dd2af
chore: update format ( #2641 )
2022-09-12 09:16:37 -04:00
Asher Gomez
3d802b2b3c
chore(textproto): minor cleanups ( #2608 )
2022-09-07 19:45:21 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void
and Promise<void>
return types ( #2550 )
2022-08-24 10:21:57 +09:00
Kyle June
954c8685d5
fix(collections): edge cases for BinaryHeap ( #2525 )
...
Fixes #2522
2022-08-15 09:19:29 +10:00
Kitson Kelly
e83306672e
docs: improve module documentation ( #2511 )
2022-08-11 21:51:20 +10:00
nokazn
0b2a99fe8f
docs(collections): fix code example in include_value
function ( #2484 )
2022-08-01 12:59:07 +09:00
Tim Reichen
81da62d1ae
BREAKING(collections): rename RBTree/BSTree to RedBlackTree/BinarySearchTree ( #2400 )
2022-06-30 14:58:42 +09:00
Berrones Edwin
6e26b89f1b
docs: improve module JSDoc for collections, fs ( #2381 )
2022-06-26 18:13:48 +09:00
denobot
55addb3ad1
0.144.0 ( #2351 )
...
* 0.144.0
* fix(Releases.md): update note about collections/mod.ts
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
* chore: fix formatting
* fix(tests): use `Deno.currentExe()` instead of `"deno"`
Co-authored-by: aslilac <aslilac@users.noreply.github.com>
Co-authored-by: Kayla Washburn <mckayla@hey.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-15 16:05:49 -06:00
David Sherret
23c46fdc27
refactor: add back collections/mod.ts with a warning ( #2346 )
2022-06-14 21:28:14 -04:00
Ryan Dahl
ae2354df44
Remove collections/mod.ts ( #2321 )
...
Using collections/mod.ts will pull in a whole bunch of unrelated code.
We should not have anti-patterns like this in std.
2022-06-09 15:28:39 -04:00
Skye
4d43706106
CI: Add License header check ( #2292 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-06-01 13:49:12 +02:00
Mark Ladyshau
1bba810b48
refactor: replace TS private
with private identifiers ( #2272 )
2022-05-27 21:27:13 +09:00
Mark Ladyshau
662f27ce84
feat(testing/asserts): return error from assertRejects
and assertThrows
( #2226 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-05-25 17:51:42 +09:00
Jesper van den Ende
11b2b7f7f7
BREAKING(testing/asserts): remove implicit any types from assert signatures. ( #2203 )
2022-05-20 14:08:49 +02:00
Colin Ihrig
19fc7236f9
fix(collections): prevent cycles in deepMerge() ( #2228 )
...
This commit adds logic to deepMerge() to prevent infinite
looping over cyclic data structures. The algorithm will now
bail out before calling mergeObjects() if either object has
already been processed.
Fixes: https://github.com/denoland/deno_std/issues/2134
2022-05-14 11:39:19 -04:00
like-nanhai
c75454c44b
docs: add module level docs ( #2190 )
2022-05-04 19:34:37 +09:00
Kyle June
0d731bc7ae
feat(collections): Add BSTree and RBTree ( #2023 )
2022-03-24 16:21:12 +01:00
Kyle June
392adfaacf
feat(collections): add BinaryHeap ( #2022 )
2022-03-21 14:57:16 +09:00
Jesse Jackson
58204e6f56
refactor: mark modules as browser compatible ( #1972 )
2022-03-01 13:25:50 +09:00
Jesse Jackson
8789df9ea2
fix(collections/group_by): improve type safety ( #1880 )
2022-02-06 17:32:56 +09:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header ( #1871 )
2022-02-02 23:21:39 +09:00
Yasser A.Idrissi
68f093fb71
revert(collection): Remove findLastIndex from std/collections ( #1528 )
2021-12-13 16:51:32 +01:00
Yasser A.Idrissi
4f69ef90a2
revert(collection): Remove findLast from std/collections
( #1527 )
2021-12-13 13:36:13 +01:00
Takashi Idobe
7b4db01b3c
feat(collections): allow zip to be variadic and typed ( #1204 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Leon Strauss <me@lionc.de>
2021-11-12 11:51:25 +09:00
Leon Strauss
2d37df7876
feat(collections): add aggregateGroups
( #1553 )
...
Co-authored-by: Majid Sajadi <majidsajadi93@gmail.com>
2021-11-12 00:00:45 +01:00
Jonah Snider
1d9cd65f95
perf: use Array.from
instead of new Array
( #1551 )
...
Co-authored-by: Leon Strauss <me@lionc.de>
2021-11-11 10:21:06 +01:00
Luca Casonato
9d6d654a6c
0.114.0
2021-11-09 14:53:18 +01:00
Luca Casonato
792e9a037e
BREAKING chore(std/collections): deprecate findLast ( #1532 )
2021-11-09 11:07:54 +01:00
Kenta Moriuchi
dcce663388
fix(collections): prevent calling Object.prototype.__proto__
in collections/deep_merge.ts ( #1504 )
2021-11-03 01:41:30 +09:00
Yasser A.Idrissi
5a14cafb5b
fix(collections): remove default selector for findSingle
( #1232 )
2021-10-27 12:18:15 +09:00
Hirotaka Tagawa / wafuwafu13
d6ce4a5f8a
docs(collections/README): Add sumOf ( #1461 )
2021-10-25 18:52:48 +02:00
Hirotaka Tagawa / wafuwafu13
04b6fe8668
feat(collections/running_reduce): support currentIndex
( #1431 )
2021-10-20 13:35:27 +09:00
defectivepixel
2ce4b7e6ff
feat(collections): add joinToString ( #1223 )
2021-10-17 20:09:49 +09:00
Hirotaka Tagawa / wafuwafu13
63dedc1ecb
docs(collections): refactor usage ( #1369 )
2021-10-11 13:59:58 +09:00
Hirotaka Tagawa / wafuwafu13
2e79e067ba
test(collections/running_reduce): add test case ( #1320 )
2021-09-28 19:34:49 +09:00
defectivepixel
b8e946ee76
feat(collections): use function overloading ( #1286 )
2021-09-21 15:05:51 +09:00
カワリミ人形
9a9ff4d1d6
docs(collections): replace console.assert with assertEquals ( #1293 )
2021-09-20 16:47:55 +09:00
defectivepixel
3aec24e4fa
docs(collections): add browser-compatibility comment ( #1285 )
2021-09-19 03:29:29 +09:00
ayame113
3d42fe1f22
fix(collections/maxWith,minWith): improve handling of arrays containing undefined ( #1282 )
2021-09-19 03:25:41 +09:00
Bartek Iwańczuk
44c326dc5b
fix: update to latest signal API changes ( #1211 )
2021-09-15 01:32:26 +02:00
ayame113
a911e5d23f
docs(collections): avoid using relative paths in import statements in code examples ( #1227 )
2021-09-13 14:46:42 +09:00
ayame113
d561b7d5c3
feat(collections): add runningReduce
( #1226 )
2021-09-13 14:12:11 +09:00
ayame113
c319a6de5c
fix(collections/includesValue): prevent enumerable prototype check ( #1225 )
2021-09-13 13:59:55 +09:00
ayame113
7f1d6780d4
chore(collections): rename _tests.ts
to _test.ts
( #1228 )
2021-09-12 17:19:29 -04:00
Iori IKEDA
361c3e4a6a
feat(collection): add findSingle ( #1166 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-13 00:04:15 +09:00
Yasser A.Idrissi
3ffd9fc5f8
feat(collections): Add associatewith
( #1213 )
2021-09-12 22:49:15 +09:00
defectivepixel
0fef6e3de2
feat(collections): add sample
API ( #1212 )
2021-09-12 16:20:11 +09:00
Craig Morten
c4600fbd75
docs: correct typos ( #1207 )
2021-09-07 16:40:05 +09:00
defectivepixel
38faa30e9c
docs(collections): replace console.assert with assertEquals ( #1206 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-06 22:43:46 +09:00
ayame113
3efa1783be
feat(collections): add slidingWindows ( #1191 )
2021-09-06 19:31:32 +09:00
defectivepixel
1d56e28ee6
feat(collections): add reduceGroups ( #1187 )
2021-09-06 19:26:26 +09:00
defectivepixel
e872b75c57
feat(collections): add maxWith ( #1170 )
...
Co-authored-by: Leon Strauss <me@lionc.de>
2021-09-04 17:39:46 +09:00
defectivepixel
ca23a1e603
feat(collections): add minWith ( #1169 )
2021-09-02 19:03:09 +09:00
Yasser A.Idrissi
f519c159f2
feat(collections): add dropWhile ( #1185 )
2021-09-02 13:25:48 +09:00
grian
a4a5a8b652
feat(collections): add includesValue
( #1184 )
2021-09-01 17:12:44 +09:00
Kenta Moriuchi
d3637f2e09
fix(collections): prevent prototype merge in collections/deep_merge.ts ( #1197 )
2021-09-01 17:08:03 +09:00
Tim Reichen
04cbe9c89b
BREAKING(collections): rename chunked
-> chunk
( #1098 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-01 17:05:50 +09:00
grian
2369fd682c
feat(collections): add dropLastWhile ( #1193 )
2021-09-01 16:01:36 +09:00
grian
7691861fa5
feat(collections): adds takeLastWhile ( #1179 )
...
Co-authored-by: evan <github@evan.lol>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-09-01 15:51:02 +09:00
grian
305b3647cd
feat(collections): add takeWhile ( #1175 )
...
Co-authored-by: Leon Strauss <me@lionc.de>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 17:28:08 +09:00
defectivepixel
cbfb04e05e
feat(collections): add firstNotNullishOf ( #1167 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 16:30:57 +09:00
Timo
b094ea20a1
chore: fix typo in collections readme ( #1190 )
2021-08-31 12:57:48 +05:30
defectivepixel
ce916bddcc
feat(collections): add maxBy ( #1156 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 15:29:18 +09:00
defectivepixel
5bdd9f9171
feat(collections): add minBy ( #1157 )
2021-08-31 15:06:12 +09:00
Hakizu
47b915dc1d
feat(collections): add minOf ( #1164 )
2021-08-28 03:21:35 +09:00
ayame113
0bbe95bafe
feat(collentions/sortBy): change the selector function to be called only once at the beginning ( #1143 )
...
Co-authored-by: evanwashere <evan@tsu.sh>
2021-08-28 03:19:57 +09:00