fix the keys type
Was any, but it should be string|number|symbol
For #72
There are two TBDs in there:
Make sure that you:
src/index.ts
mapping.md
Fwiw, I ported updeep
, a small utility package that focuses on deep merging of immutable objects to use Remeda as its underlying engine: https://github.com/yanick/updeep-remeda/
feat: Add findLast and findLastIndex functions (#235)
Implement findLast
Implement findLastIndex
Fix findIndex signature
Add findLast and findLastIndex index and mapping
Run prettier
chore(deps): bump css-what from 2.1.0 to 2.1.3 in /docs (#217)
Bumps css-what from 2.1.0 to 2.1.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (#228)
Bumps decode-uri-component from 0.2.0 to 0.2.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump json5 from 2.1.3 to 2.2.3 (#239)
Bumps json5 from 2.1.3 to 2.2.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump express from 4.16.3 to 4.17.3 in /docs (#232)
Bumps express from 4.16.3 to 4.17.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /docs (#229)
Bumps decode-uri-component from 0.2.0 to 0.2.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump minimatch from 3.0.4 to 3.1.2 (#224)
Bumps minimatch from 3.0.4 to 3.1.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump qs from 6.5.2 to 6.5.3 in /docs (#240)
Bumps qs from 6.5.2 to 6.5.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat: add meanBy (#220)
add meanBy
run prettier, add test case for empty array to meanBy
Co-authored-by: Canon Law canon@lawcasa.com Co-authored-by: Dominik Dorfmeister office@dorfmeister.cc
fix: types for keys.strict (#226)
at runtime, keys will always be strings, so it is better to convert numbers to strings on type level
chore: update prettier to latest version
chore: run the new version of prettier again against everything
feat: allow different data types on differenceWith (#227)
Co-authored-by: Dominik Dorfmeister office@dorfmeister.cc
chore: Codecov (#193)
Add codecov
Add codecov badge
Co-authored-by: Dominik Dorfmeister office@dorfmeister.cc
chore: fix github badge (#241)
switch jest for vitest
This is less of a merge request, and more of a "just want to share with the group for giggles".
I was wondering how hard it'd be to switch from jest to vitest. The answer was "pleasantly trivial". But, at least on my machine, vitest is actually slower than jest (22ish seconds versus 13ish seconds).
So there we go. If we ever want to switch to vitest, it'd be easy, but purely for performance, it doesn't seem to be a winner.
Added a sample
function that allows to pick a random sample of an array. Allows for repeating picks, and any sample size.
Make sure that you:
src/index.ts
mapping.md
See https://github.com/remeda/remeda/pull/238#issuecomment-1383131398
Basically, use the expectType
function of ts-expect
to check for types instead of the bespoke checking that was there. Technically it does the same thing, the syntax is just a wee bit shorter.
fyi, we've updated prettier in an other PR. sorry for the conflicts sweat_smile
That's easily fixed. Done!
feat: Add findLast and findLastIndex functions (#235)
Implement findLast
Implement findLastIndex
Fix findIndex signature
Add findLast and findLastIndex index and mapping
Run prettier
chore(deps): bump css-what from 2.1.0 to 2.1.3 in /docs (#217)
Bumps css-what from 2.1.0 to 2.1.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (#228)
Bumps decode-uri-component from 0.2.0 to 0.2.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump json5 from 2.1.3 to 2.2.3 (#239)
Bumps json5 from 2.1.3 to 2.2.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump express from 4.16.3 to 4.17.3 in /docs (#232)
Bumps express from 4.16.3 to 4.17.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /docs (#229)
Bumps decode-uri-component from 0.2.0 to 0.2.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump minimatch from 3.0.4 to 3.1.2 (#224)
Bumps minimatch from 3.0.4 to 3.1.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump qs from 6.5.2 to 6.5.3 in /docs (#240)
Bumps qs from 6.5.2 to 6.5.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat: add meanBy (#220)
add meanBy
run prettier, add test case for empty array to meanBy
Co-authored-by: Canon Law canon@lawcasa.com Co-authored-by: Dominik Dorfmeister office@dorfmeister.cc
fix: types for keys.strict (#226)
at runtime, keys will always be strings, so it is better to convert numbers to strings on type level
chore: update prettier to latest version
chore: run the new version of prettier again against everything
feat: allow different data types on differenceWith (#227)
Co-authored-by: Dominik Dorfmeister office@dorfmeister.cc
chore: Codecov (#193)
Add codecov
Add codecov badge
Co-authored-by: Dominik Dorfmeister office@dorfmeister.cc
chore: fix github badge (#241)
improve the type of curried pick
With the current type, the curried version of pick is... meh.
pick(['a'])
doesn't work, expect 'a' to be never, and the working
alternatives, pick(['a'] as any)
or pick<any,any>(['a'])
, are
verbose.
also change type of omit
add ts-expect to the project
Groovy! thanks!
also change type of omit
add ts-expect to the project
looks good - what about
omit
? Doesn't it have a similar problem?
Yup! But I wanted to do a trial balloon before patching ALLTHETHINGS! But I can sure extend the PR to omit
.
The tests are failing because of my addition of ts-expect. I'll leave it now just so that the reviewers can see the tests, but I can remove them prior to merging.
I'm happy with moving to
ts-expect
, but maybe we should do this for all of our tests and remove the custom helpers that we have, provided thatts-expect
can replace them?
I'll have a look at those helpers!
add matches
bumping the version
Merge branch 'add-matches'
typo in docs: Ratting => Rating
Merge pull request #1 from yanick/yanick-patch-1
typo in docs: Ratting => Rating
add my changelog
Merge branch 'changelog'
change name for @yanick/updeep-remeda
ignore the package tarballs
add a prepRelease task
Merge branch 'releasePreps'