yanick
Repos
466
Followers
145
Following
16

Events

fix the keys type

Was any, but it should be string|number|symbol

Created at 8 hours ago
pull request opened
add zipObj

For #72

There are two TBDs in there:

  1. If there are more values than keys passed in, I throw an error. Do we want to be more forgiving?
  2. I've added the data last, curried version of the function, but in this instance it doesn't seem super-useful Should it be there for uniformity's sake, or should it be removed?

Make sure that you:

  • [x ] Typedoc added for new methods and updated for changed
  • [ x] Tests added for new methods and updated for changed
  • [ x] New methods added to src/index.ts
  • [ x] New methods added to mapping.md
Created at 2 weeks ago
create branch
yanick create branch zipObj
Created at 2 weeks ago
issue comment
add mergeDeep

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/

Created at 2 weeks ago

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:

  • dependency-name: css-what dependency-type: indirect ...

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:

  • dependency-name: decode-uri-component dependency-type: indirect ...

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:

  • dependency-name: json5 dependency-type: indirect ...

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:

  • dependency-name: express dependency-type: direct:production ...

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:

  • dependency-name: decode-uri-component dependency-type: indirect ...

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:

  • dependency-name: minimatch dependency-type: indirect ...

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:

  • dependency-name: qs dependency-type: indirect ...

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)

  • fix: types for keys.strict

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

Created at 2 weeks ago
pull request opened
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.

Created at 2 weeks ago
create branch
yanick create branch vitest
Created at 2 weeks ago
pull request opened
add a sample function

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:

  • [x ] Typedoc added for new methods and updated for changed
  • [ x] Tests added for new methods and updated for changed
  • [ x] New methods added to src/index.ts
  • [ x] New methods added to mapping.md
Created at 2 weeks ago
create branch
yanick create branch sample
Created at 2 weeks ago
pull request opened
move to ts-expect

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.

Created at 2 weeks ago
create branch
yanick create branch expectType
Created at 2 weeks ago
issue comment
reusable omit

#238 should take care of this

Created at 3 weeks ago
issue comment
improve the type of curried pick

fyi, we've updated prettier in an other PR. sorry for the conflicts sweat_smile

That's easily fixed. Done!

Created at 3 weeks ago

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:

  • dependency-name: css-what dependency-type: indirect ...

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:

  • dependency-name: decode-uri-component dependency-type: indirect ...

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:

  • dependency-name: json5 dependency-type: indirect ...

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:

  • dependency-name: express dependency-type: direct:production ...

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:

  • dependency-name: decode-uri-component dependency-type: indirect ...

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:

  • dependency-name: minimatch dependency-type: indirect ...

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:

  • dependency-name: qs dependency-type: indirect ...

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)

  • fix: types for keys.strict

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

Created at 3 weeks ago
issue comment
don't change the original object if there were no updates

Groovy! thanks!

Created at 3 weeks ago

also change type of omit

add ts-expect to the project

Created at 3 weeks ago
issue comment
improve the type of curried pick

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 that ts-expect can replace them?

I'll have a look at those helpers!

Created at 3 weeks ago

add matches

bumping the version

Merge branch 'add-matches'

Created at 3 weeks ago
yanick create tag v2.1.0
Created at 3 weeks ago
pull request opened
typo in docs: Ratting => Rating
Created at 3 weeks ago

typo in docs: Ratting => Rating

Merge pull request #1 from yanick/yanick-patch-1

typo in docs: Ratting => Rating

Created at 3 weeks ago
pull request closed
typo in docs: Ratting => Rating
Created at 3 weeks ago
pull request opened
typo in docs: Ratting => Rating
Created at 3 weeks ago
yanick create branch yanick-patch-1
Created at 3 weeks ago
Created at 3 weeks ago

add task publish

Created at 3 weeks ago

add my changelog

Merge branch 'changelog'

change name for @yanick/updeep-remeda

ignore the package tarballs

add a prepRelease task

Merge branch 'releasePreps'

Created at 3 weeks ago
yanick create tag v2.0.0
Created at 3 weeks ago
yanick delete tag v2.2.0
Created at 3 weeks ago
yanick delete tag v2.1.0
Created at 3 weeks ago