Commit Graph

746 Commits

Author SHA1 Message Date
Dongho Kim
22b136f8f2
docs(isEqual): Correct result of special case (#650) 2024-10-03 16:05:05 +09:00
Dongho Kim
c6c76dbad9
docs(flowRight): Update docs (#651)
* docs(flowRight): Update docs

* Update docs/ko/reference/function/flowRight.md

* Update docs/ko/reference/function/flowRight.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-03 16:04:30 +09:00
Sojin Park
783d6f1694 test(debounce): Fix flaky debounce test 2024-10-03 15:55:48 +09:00
D-Sketon
35aa0bfe32
fix(compat): add missing export (#652) 2024-10-03 15:54:12 +09:00
D-Sketon
8a34bc474e
bench: add bench for large array case (#637)
* bench: add bench for large array case

* make lint happty
2024-10-03 15:53:37 +09:00
Seongjee Kim
1ff80546dd
feat(invertBy): add invertBy to compat (#574)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
* add invertBy to compat

* add invertBy bench

* add invertBy .md

* Update benchmarks/performance/invertBy.bench.ts

* Update docs/reference/object/invertBy.md

* Update invertBy.ts

* Update src/compat/object/invertBy.ts

* Update invertBy.ts

* update invertBy

* update invertBy

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-01 23:14:18 +09:00
Sojin Park
83465dbe91 v1.23.0 2024-10-01 23:13:15 +09:00
Sojin Park
3462a8425c feat(isEqualWith): Implement isEqualWith 2024-10-01 22:33:44 +09:00
Wojciech Maj
1bda274c7a
chore(deps): bump vitest from 1.5.2/2.0.5 to 2.1.1, fix unit test failing in Vitest 2 (#608)
* chore(deps): bump vitest from 1.5.2/2.0.5 to 2.1.1

* chore: fix unit test failing in Vitest 2

* Add timeout

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-01 22:31:26 +09:00
D-Sketon
bc490b6e65
bench: update bundle-size test (#634) 2024-10-01 20:22:23 +09:00
Dongho Kim
30518a8fe6
docs(curryRight): Rename parameters for clarity and update docs (#631) 2024-10-01 20:21:51 +09:00
Dongho Kim
832ecc53da
docs(flow): Update docs (#630)
* docs(flow): Update docs

* Update docs/ko/reference/function/flow.md

* Update docs/ko/reference/function/flow.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-01 20:21:21 +09:00
D-Sketon
665f4409a4
bench: remove import overhead (#629)
* bench: ignore import overhead

* bench: ignore import overhead

* bench: ignore import overhead

* make lint happy

* make lint happy
2024-10-01 20:20:00 +09:00
Dongho Kim
8a518af485
docs(isJSONValue): Update docs (#632) 2024-10-01 20:19:01 +09:00
Sojin Park
feb5c35606 fix(merge): merge should not copy references of object or arrays
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-10-01 15:02:42 +09:00
Dongho Kim
63302ce0ac
fix(merge): Handle edge-case for merge (#556)
* fix(merge): Handle edge-case for `merge`

* fix(merge): Ensure new array is created when merging

* fix(merge): Ensure new plain object is created when merging

* fix(merge): Ensure that non-array or non-plain objects are merged.

* Update merge.ts

* Update merge.spec.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-01 14:55:20 +09:00
Dongho Kim
7e4dd66c26
fix(includes): Ignore inherited value when searching object (#627)
* fix(includes): Ignore inherited value when searching object

* refactor(includes): Replace manual key collection with `Object.keys`
2024-10-01 14:54:39 +09:00
Sojin Park
10a83ddaf3 style: Fix prettier 2024-10-01 14:52:25 +09:00
Sojin Park
a5e3b49d8a fix(string): Fix RegExp to split words 2024-10-01 14:52:14 +09:00
Sojin Park
674d0868aa docs: Add docs 2024-10-01 14:08:25 +09:00
D-Sketon
7695034979
feat(compat): implement flow/flowRight (#621) 2024-10-01 14:01:32 +09:00
Dayong Lee
23aa7db57d
style(format): add sorting imports plugin and fix eslint config (#625)
* Add prettier sort

* Fix prettier setting in eslint

* Apply prettier

* Fix depdencies

* Add .yarn folder in excludes of vitest

* Revert pick I don't know why this is changed
2024-10-01 14:00:45 +09:00
HyunWoo Choi
8f7e0960cb
feat(isArrayBuffer) : add isArrayBuffer function (#624)
* feat : add isArrayBuffer function

* feat : isArrayBuffer bench

* docs : isArrayBuffer
2024-10-01 13:59:23 +09:00
D-Sketon
20426dfdcc
feat(curryRight): implement curryRight (#628) 2024-10-01 13:58:04 +09:00
knott
ded56755f3
feat(isJSONObject, isJSONValue, isJSONArray): Implement isJSONObject, isJSONValue, isJSONArray (#563)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
* feat:init

* feat

* fix:use prettier

* feat(isPlainObject): Update signature of isPlainObject

* feat: Add isJSONValue, isJSONArray, and refactor isJSONObject

* remove from functions

* docs: Update docs

* docs: Update docs

* docs: Update docs

* docs: Update docs

* docs: Update docs

* docs: Update docs

* docs: Update docs

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-09-29 20:42:50 +09:00
Dayong Lee
0c7d88973f
refactor: Add prefer hasOwn and fix lint error (#620) 2024-09-29 19:53:03 +09:00
Dongho Kim
a093c732a4
fix(filter): Ensure filter provide correct arguments to the predicate function (#619)
* fix(filter): Ensure `filter` provide correct arguments to the predicate function

* docs(filter): Update docs for `filter`

* Update src/compat/array/filter.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-09-29 17:59:44 +09:00
Dongho Kim
e9123bea9d
docs(dropWhile): Update docs for dropWhile (#615)
* docs(dropWhile): Update docs for `dropWhile`

* docs(dropWhile): Add examples to JSDoc
2024-09-29 17:57:41 +09:00
Sojin Park
ac1e79e0c4 fix(isMatch): isMatch should strictly compare values if possible 2024-09-29 17:56:01 +09:00
Dayong Lee
05daba2470
chore: delete unused babel config file (#616)
* Delete babel

* Delete sortByText

* revert deleting sortByText
2024-09-29 17:38:16 +09:00
Dongho Kim
6fa1f00e07
docs(every): Update docs for every (#617) 2024-09-29 17:37:30 +09:00
Dongho Kim
93d256d21d
docs(flip): Update docs for flip (#618) 2024-09-29 17:36:37 +09:00
Sojin Park
66baac2afc v1.22.0
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-09-29 00:37:47 +09:00
Sojin Park
5c39817c0a chore: Move includes to array 2024-09-29 00:35:45 +09:00
Sojin Park
dd30980a68 docs(includes): Add docs for includes 2024-09-29 00:29:53 +09:00
Dayong Lee
4068e43b5e
feat(includes): add includes in es-toolkit/compat (#606)
* Add includes

* makes safe

* Fix get keys

* inhence bench

* enhance performance

* Fix lint
2024-09-28 23:59:30 +09:00
kimjeonghee
6e3226e2f0
feat(filter): add filter function (#610)
* feat: create filter function

* test: filter

* docs: filter

* fix: test case description

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-09-28 23:44:52 +09:00
Sojin Park
5553908173 docs(flowRight): Add docs for flowRight
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-09-28 23:04:52 +09:00
D-Sketon
75ed97afa0
feat(flowRight): implement flowRight (#603) 2024-09-28 22:56:26 +09:00
Sojin Park
7eed956ee0 docs(flip): Update docs for flip 2024-09-28 22:54:54 +09:00
D-Sketon
4e92675248
feat(flip): implement flip (#582) 2024-09-28 22:50:31 +09:00
Sojin Park
efe7932200 feat(every): Ensure compatibility with lodash 2024-09-28 22:48:32 +09:00
Gonhong Cheon
b0daa7377d
feat(every): Add every function (#475)
* feat(every): Add every function

* feat(every): Add every function test code

* feat(every): Add every function docs

* feat(every): Add every function bench
2024-09-28 22:23:30 +09:00
Sojin Park
819d64ecfa docs: Add missing docs and style docs 2024-09-28 22:22:34 +09:00
Sojin Park
c0efc65360 feat(dropWhile): Add full compatibility with lodash 2024-09-28 22:15:16 +09:00
Dongho Kim
bdc3d976b3
feat(dropWhile): Add dropWhile in compat (#465)
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-09-28 21:43:20 +09:00
Wojciech Maj
dacc52363b
chore: dedupe dependencies (#607)
This is just the output of running `yarn dedupe`. Improves CI time, project's install time and disk space usage. My suggestion would be to make it a habit to dedupe after updating dependencies of any kind to avoid this problem in the future.
2024-09-28 21:40:52 +09:00
Wojciech Maj
2673425aeb
chore: fix test command (#609)
`vitest run` implied non-development environment, disabling features like watching. So, now you can e.g.:

```
yarn test cloneDeep --watch
```

and work on your utility in peace.

At the same time, added `watch: false` to `vitest.config.mts` ensures the expected behavior of all test related commands won't change.
2024-09-28 21:40:09 +09:00
Jon Ganebski
1d5fa878e9
fix(throttle): not throttling after initial throttleMs (#611)
* test: extend test case

* fix: pendingAt is not being updated

* test: update delay ms
2024-09-28 21:39:35 +09:00
Dongho Kim
e88e3e2d76
fix(cloneDeep): Ensure DataView's offset and length are cloned correctly (#612) 2024-09-28 21:38:49 +09:00