Commit Graph

769 Commits

Author SHA1 Message Date
D-Sketon
61f5bfd7bf
fix(flatten/flattenDeep/flattenDepth/slice/zipObjectDeep): fix lodash compatibility (#716) 2024-10-16 10:04:17 +09:00
raon0211
904ca1a2b4 fix: Fix circular dependencies in isJSONArray, isJSONObject, and isJSONValue 2024-10-16 09:59:58 +09:00
D-Sketon
307b362afc
test: improve coverage (#718)
* test: improve coverage

* remove
2024-10-16 09:54:51 +09:00
Sojin Park
8849204a7f v1.25.1
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-10-15 00:11:55 +09:00
D-Sketon
2f9740eb30
fix(cloneDeep): Cannot assign to read only property '0' of object '[object String]' (#711)
* fix(cloneDeep):  Cannot assign to read only property '0' of object '[object String]'

* Update cloneDeep.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-15 00:08:42 +09:00
D-Sketon
f37b4ac064
fix(every/fill/filter/find/findIndex/findLastIndex/indexOf/join): fix lodash compatibility (#707)
* fix(every/fill/filter/find/findIndex/findLastIndex/indexOf/join): fix lodash compatibility

* test docs

* fix doc

* Update src/compat/array/filter.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-14 23:51:41 +09:00
Dongho Kim
3ed5a4132f
docs(first): Update example (#712)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-10-14 23:41:44 +09:00
raon0211
dbc3ca3a3a docs: Update docs for wide adoption 2024-10-14 15:50:42 +09:00
raon0211
5683519993 v1.25.0
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-10-14 15:36:19 +09:00
raon0211
610f479593 style: Fix style 2024-10-14 15:36:07 +09:00
raon0211
2dc88361a8 style: Fix style 2024-10-14 15:23:58 +09:00
raon0211
28f0eaeb15 fix(pick): Fix pick in compat to only create keys that are already existent 2024-10-14 15:23:44 +09:00
raon0211
5b60dbc7d2 fix(cloneDeep): Make cloneDeep clone read-only properties 2024-10-14 15:17:42 +09:00
Dongho Kim
49ff1b41e8
fix(cloneDeep): cloneDeep should clone own enumerable symbol property (#664)
* fix(cloneDeep): cloneDeep should clone own enumerable symbol property

* Update src/object/cloneDeep.ts

* Update cloneDeep.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-14 13:56:38 +09:00
Dayong Lee
61f5f880b6
feat(escape): add escape in compat layer (#683)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* Add escape

* add handling undefined case
2024-10-13 22:48:32 +09:00
Dongho Kim
d25dc06d52
docs(isBlob): Add missing example (#685)
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-13 22:48:12 +09:00
Dongho Kim
6b4c9ad167
feat(intersection): Add intersection to compat layer (#706)
* feat(intersection): Add `intersection` to compat layer

* Update benchmarks/performance/intersection.bench.ts

* Update benchmarks/performance/intersection.bench.ts

* Update intersection.ts

* Update intersection.ts

* Update docs/ja/reference/array/intersection.md

* Update src/compat/array/intersection.spec.ts

* Update intersection.ts

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-13 22:48:01 +09:00
lukaszkowalik2
dc100ccc11
feat(isFile): add isFile (#704)
* feat(isFile): added support for isFile

* fix(isFile): added missing .ts extensions

* Update docs/ko/reference/predicate/isFile.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-13 22:46:54 +09:00
Gyumong
be5ba71136
feat(sample): Add sample to compat layer (#708)
* feat(compat): implement array/sample

* feat(compat): array/sample test code

* feat(compat): array/sample docs

* feat(compat): array/sample bench

* fix(compat): array/sample lint

* Delete docs/ko/reference/compat/array/sample.md

* Delete docs/reference/compat/array/sample.md

* Update src/compat/array/sample.ts

* Update sample.ts

* Update src/compat/array/sample.ts

* Update sample.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-13 22:43:35 +09:00
D-Sketon
76ec5f1f4d
fix(chunk/compact/head/initial/last/tail/take/takeRight/uniq/without): fix lodash compatibility (#701)
* fix(chunk/compact/head/initial/tail/take/takeRight/uniq/without): fix lodash compatibility

* make lint happy

* bench

* last

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-13 22:07:37 +09:00
Dayong Lee
59e973708f
refactor: improve type definitions and clean up type assertions inafter, isKey, orderBy, and withTimeout functions (#703)
* Fix after

* Remove type assertion
2024-10-13 22:04:01 +09:00
최도훈
eb18184691
perf(at): improve performance (#705) 2024-10-13 22:03:10 +09:00
Dongho Kim
d19a581e7a
docs(isPlainObject): Update example of korean documentation (#700)
Some checks failed
CI / codecov (push) Has been cancelled
Release / release (push) Has been cancelled
2024-10-10 08:12:35 +09:00
D-Sketon
c95d40f4b3
fix(drop): support array-like args (#686)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* fix(drop): support arrary-like args

* doc

* Update dropWhile.ts

* Update dropRightWhile.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-09 22:42:09 +09:00
Sojin Park
274034524d style: Fix ESLint & Prettier 2024-10-09 22:28:27 +09:00
Sojin Park
6621df110a docs: Add more explanation to isPlainObject 2024-10-09 22:28:20 +09:00
Sojin Park
755d9db62c fix(isPlainObject): Check the result of toString in isPlainObject 2024-10-09 22:17:09 +09:00
Sébastien Vanvelthem
8ba7fbe4e8
fix(isPlainObject): Fix isPlainObject and perf 3x+ (#692)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* test(isPlainObject): add test for symbol and anonymous classNames

* test(isPlainObject): add test for runInNewContext

* fix: exclude iterators, support runInNewContext and anonymous classes

* refactor: use !value insteadof value === undefined (size)

* test: Make tests more explicit

* test: Remove checks for Symbol.toStringTag or Symbol.iterator

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-09 12:47:27 +09:00
HyunWoo Choi
faa0f2f582
feat(compat) : add toSafeInteger (#691)
* feat : add toSafeInteger

* feat : add lodash test

* feat : add toSafeInteger bench

* docs : add toSafeInteger Docs

* Update docs/ja/reference/compat/util/toSafeInteger.md

* Update docs/reference/compat/util/toSafeInteger.md

* Update docs/zh_hans/reference/compat/util/toSafeInteger.md

* Update docs/ko/reference/compat/util/toSafeInteger.md

* Update docs/ja/reference/compat/util/toSafeInteger.md

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-09 11:58:06 +09:00
sadobass
1c780cf1e5
docs(randomInt): Update docs (#689) 2024-10-09 11:54:32 +09:00
원동휘
b9337bbbf6
docs(throttle): Update docs (#688) 2024-10-09 11:53:59 +09:00
Dayong Lee
3b93b7badf
chore(coverage): exclude test files in coverage processes (#696)
* Fix coverage

* Remove unusable file

* Revert

* also Add in codecov

* Remove unused ignore path
2024-10-09 11:48:02 +09:00
Dongho Kim
78e13adbce
docs: Update docs for dropWhile and dropRightWhile (#684)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-08 10:30:24 +09:00
raon0211
3638f2d02c v1.24.0
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-10-07 22:28:00 +09:00
raon0211
25602192d8 docs: Fix docs style 2024-10-07 22:25:31 +09:00
HyunWoo Choi
f914f07555
feat(compat): Add isDate in compat (#675)
* feat : add isDate in compat

* feat : add isDate bench

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-07 22:14:25 +09:00
Dongho Kim
3d7ba7d691
docs(before): Update docs (#682)
* docs(before): Correct JSDoc example

* docs(before): Add lodash compatibility section

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-07 22:14:13 +09:00
Gromit (전민재)
8593c6742a
refactor(unionBy): simplify unionBy implementation logic (#676)
* refac(unionBy): simplify unionBy implementation logic

* Update src/array/unionBy.ts

Co-authored-by: D-Sketon <2055272094@qq.com>

---------

Co-authored-by: D-Sketon <2055272094@qq.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-07 22:01:33 +09:00
D-Sketon
24edab6593
fix(difference): support array-like object (#680)
* fix(difference): support array-like object

* make lint happy

* same as @types/lodash

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-07 22:01:17 +09:00
D-Sketon
3a17ade035
docs(difference): add Lodash Compatibility (#679)
* docs(difference): add Lodash Compatibility

* arraylike

* #680 update size

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-07 21:59:07 +09:00
HyunWoo Choi
2ef799386d
chore: CI error (#678) 2024-10-07 21:57:54 +09:00
Dayong Lee
e03aac81a8
feat(slice): add slice in compat layer (#659)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
* Add slice

* Add jsdoc

* Update src/compat/array/slice.ts

Co-authored-by: Sojin Park <raon0211@gmail.com>

* Simplify Code

* Fix codes

* Fix isIndex

* FIx slice

* Update src/compat/array/slice.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-07 10:00:36 +09:00
raon0211
c5bbf032a4 docs: Fix docs style 2024-10-07 09:59:13 +09:00
Dayong Lee
aaec4abbaf
refactor: add a eslint rule restricting Object.entries and update prettier-plugin-sort-re-exports (#674)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-10-06 20:57:02 +09:00
Gromit (전민재)
a6e1415973
perf(pickBy): improve pickBy performance (#673)
Some checks are pending
CI / codecov (push) Waiting to run
Release / release (push) Waiting to run
2024-10-06 17:49:58 +09:00
HyunWoo Choi
c367c37487
feat(toLength) : add toLength in compat (#662)
* feat : add toLength util

* feat : add toLength bench

* Update toLength.ts

* Update toLength.ts

* Update index.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
Co-authored-by: Sojin Park <raon0211@toss.im>
2024-10-06 17:49:18 +09:00
HyunWoo Choi
45f6db830f
feat(defaultTo) : add defaultTo util (#660)
* feat : add defaultTo util

* Update src/compat/util/defaultTo.ts

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-06 17:42:26 +09:00
Gromit (전민재)
402387b01b
perf(omitBy): improve omitBy performance (#671)
* fix: improve omitBy performance

* fix: fix omitBy ts-doc

* fix: for in to Object.keys

* Update src/object/omitBy.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-06 17:41:54 +09:00
D-Sketon
55cae8b0eb
feat(compat): implement dropRightWhile (#666)
* feat(compat): implement dropRightWhile

* Update benchmarks/performance/dropRightWhile.bench.ts

---------

Co-authored-by: Sojin Park <raon0211@gmail.com>
2024-10-06 17:20:26 +09:00
Dayong Lee
df19ff14de
style(format): add prettier-plugin-sort-re-exports prettier plugin (#670)
* Apply plugin

* Run prettier
2024-10-06 17:04:48 +09:00