rambda 10.3.0 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -768
- package/README.md +66 -269
- package/dist/rambda.cjs +1 -1
- package/dist/rambda.js +1 -1
- package/dist/rambda.umd.js +1 -1
- package/index.d.cts +3 -3
- package/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/propOr.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
|
+
10.3.1
|
|
2
|
+
|
|
3
|
+
- Fix issue with wrong order of inputs in `R.propOr` - [Issue #779](https://github.com/selfrefactor/rambda/issues/779)
|
|
4
|
+
|
|
5
|
+
- Fix issue with TypeScript definitions for `R.includes`- [Issue #781](https://github.com/selfrefactor/rambda/issues/781)
|
|
6
|
+
|
|
1
7
|
10.3.0
|
|
2
8
|
|
|
3
9
|
- Add `R.mapPropObject`
|
|
4
10
|
|
|
11
|
+
- Add `R.duplicateBy`
|
|
5
12
|
- Add `R.duplicateBy`
|
|
6
13
|
|
|
14
|
+
- Add `R.filterAsync`
|
|
7
15
|
- Add `R.filterAsync`
|
|
8
16
|
|
|
17
|
+
- Add `R.indexBy`
|
|
9
18
|
- Add `R.indexBy`
|
|
10
19
|
|
|
11
20
|
- Restore `R.replaceAll`
|
|
21
|
+
- Restore `R.replaceAll`
|
|
22
|
+
|
|
23
|
+
- Remove option for `R.mapAsync` to be called outside of `R.pipeAsync`. This is done for consistency as all other methods follow this rule, i.e. they are all curried.
|
|
12
24
|
|
|
25
|
+
- Fix `R.pluck` to work without `R.pipe`
|
|
13
26
|
- Remove option for `R.mapAsync` to be called outside of `R.pipeAsync`. This is done for consistency as all other methods follow this rule, i.e. they are all curried.
|
|
14
27
|
|
|
15
28
|
- Fix `R.pluck` to work without `R.pipe`
|
|
@@ -473,771 +486,4 @@ Add the following methods:
|
|
|
473
486
|
|
|
474
487
|
> Reason for breaking change - synchronize with Ramda `0.29.0` release:
|
|
475
488
|
|
|
476
|
-
- change order of `R.propEq` - [Ramda MR](https://github.com/ramda/ramda/pull/2938/files)
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
7.5.0
|
|
480
|
-
|
|
481
|
-
- IMPORTANT: Remove `export` property in `package.json` in order to allow `Rambda` support for projects with `"type": "module"` in `package.json` - [Issue #667](https://github.com/selfrefactor/rambda/issues/657)
|
|
482
|
-
|
|
483
|
-
- Add `R.unnest` - [Rambdax issue 89](https://github.com/selfrefactor/rambdax/issues/89)
|
|
484
|
-
|
|
485
|
-
- `R.uniq` is not using `R.equals` as Ramda does - [Issue #88](https://github.com/selfrefactor/rambdax/issues/88)
|
|
486
|
-
|
|
487
|
-
- Fix `R.path(['non','existing','path'], obj)` TS definition as 7.4.0 release caused TS errors - [Issue #668](https://github.com/selfrefactor/rambda/issues/668)
|
|
488
|
-
|
|
489
|
-
7.4.0
|
|
490
|
-
|
|
491
|
-
- Synchronize with `@types/ramda` - `R.prop`, `R.path`, `R.pickAll`
|
|
492
|
-
|
|
493
|
-
- Remove `esm` Rollup output due to tree-shaking issues.
|
|
494
|
-
|
|
495
|
-
- Upgrade all dev dependencies.
|
|
496
|
-
|
|
497
|
-
7.3.0
|
|
498
|
-
|
|
499
|
-
- Important - changing import declaration in `package.json` in order to fix tree-shaking issue - [Issue #647](https://github.com/selfrefactor/rambda/issues/647)
|
|
500
|
-
|
|
501
|
-
- Add `R.modify`
|
|
502
|
-
|
|
503
|
-
- Allow multiple inputs in TypeScript versions of `R.anyPass` and `R.allPass` - [Issue #642](https://github.com/selfrefactor/rambda/issues/604)
|
|
504
|
-
|
|
505
|
-
- Using wrong clone of object in `R.mergeDeepRight` - [Issue #650](https://github.com/selfrefactor/rambda/issues/650)
|
|
506
|
-
|
|
507
|
-
- Missing early return in `R.where` - [Issue #648](https://github.com/selfrefactor/rambda/issues/648)
|
|
508
|
-
|
|
509
|
-
- `R.allPass` doesn't accept more than 1 parameters for function predicates- [Issue #604](https://github.com/selfrefactor/rambda/issues/604)
|
|
510
|
-
|
|
511
|
-
7.2.1
|
|
512
|
-
|
|
513
|
-
- Remove bad typings of `R.propIs` which caused the library to cannot be build with TypeScript.
|
|
514
|
-
|
|
515
|
-
- Drop support for `Wallaby` as per [https://github.com/wallabyjs/public/issues/3037](https://github.com/wallabyjs/public/issues/3037)
|
|
516
|
-
|
|
517
|
-
7.2.0
|
|
518
|
-
|
|
519
|
-
- Wrong `R.update` if index is `-1` - [PR #593](https://github.com/selfrefactor/rambda/pull/593)
|
|
520
|
-
|
|
521
|
-
- Wrong curried typings in `R.anyPass` - [Issue #642](https://github.com/selfrefactor/rambda/issues/642)
|
|
522
|
-
|
|
523
|
-
- `R.modifyPath` not exported - [Issue #640](https://github.com/selfrefactor/rambda/issues/640)
|
|
524
|
-
|
|
525
|
-
- Add new method `R.uniqBy`. Implementation is coming from [Ramda MR#2641](https://github.com/ramda/ramda/pull/2641)
|
|
526
|
-
|
|
527
|
-
- Apply the following changes from `@types/rambda`:
|
|
528
|
-
|
|
529
|
-
-- [https://github.com/DefinitelyTyped/DefinitelyTyped/commit/bab47272d52fc7bb81e85da36dbe9c905a04d067](add `AnyFunction` and `AnyConstructor`)
|
|
530
|
-
|
|
531
|
-
-- Improve `R.ifElse` typings - https://github.com/DefinitelyTyped/DefinitelyTyped/pull/59291
|
|
532
|
-
|
|
533
|
-
-- Make `R.propEq` safe for `null/undefined` arguments - https://github.com/ramda/ramda/pull/2594/files
|
|
534
|
-
|
|
535
|
-
7.1.4
|
|
536
|
-
|
|
537
|
-
- `R.mergeRight` not found on `Deno` import - [Issue #633](https://github.com/selfrefactor/rambda/issues/633)
|
|
538
|
-
|
|
539
|
-
7.1.0
|
|
540
|
-
|
|
541
|
-
- Add `R.mergeRight` - introduced by Ramda's latest release. While Ramda renames `R.merge`, Rambda will keep `R.merge`.
|
|
542
|
-
|
|
543
|
-
- Rambda's `pipe/compose` doesn't return proper length of composed function which leads to issue with `R.applySpec`. It was fixed by using Ramda's `pipe/compose` logic - [Issue #627](https://github.com/selfrefactor/rambda/issues/627)
|
|
544
|
-
|
|
545
|
-
- Replace `Async` with `Promise` as return type of `R.type`.
|
|
546
|
-
|
|
547
|
-
- Add new types as TypeScript output for `R.type` - "Map", "WeakMap", "Generator", "GeneratorFunction", "BigInt", "ArrayBuffer"
|
|
548
|
-
|
|
549
|
-
- Add `R.juxt` method
|
|
550
|
-
|
|
551
|
-
- Add `R.propSatisfies` method
|
|
552
|
-
|
|
553
|
-
- Add new methods after `Ramda` version upgrade to `0.28.0`:
|
|
554
|
-
|
|
555
|
-
-- R.count
|
|
556
|
-
-- R.modifyPath
|
|
557
|
-
-- R.on
|
|
558
|
-
-- R.whereAny
|
|
559
|
-
-- R.partialObject
|
|
560
|
-
|
|
561
|
-
7.0.3
|
|
562
|
-
|
|
563
|
-
Rambda.none has wrong logic introduced in version `7.0.0` - [Issue #625](https://github.com/selfrefactor/rambda/issues/625)
|
|
564
|
-
|
|
565
|
-
7.0.2
|
|
566
|
-
|
|
567
|
-
Rambda doesn't work with `pnpm` due to wrong export configuration - [Issue #619](https://github.com/selfrefactor/rambda/issues/619)
|
|
568
|
-
|
|
569
|
-
7.0.1
|
|
570
|
-
|
|
571
|
-
- Wrong ESM export configuration in `package.json` - [Issue #614](https://github.com/selfrefactor/rambda/issues/614)
|
|
572
|
-
|
|
573
|
-
7.0.0
|
|
574
|
-
|
|
575
|
-
- Breaking change - sync `R.compose`/`R.pipe` with `@types/ramda`. That is significant change so as safeguard, it will lead a major bump. Important - this lead to raising required TypeScript version to `4.2.2`. In other words, to use `Rambda` you'll need TypeScript version `4.2.2` or newer.
|
|
576
|
-
|
|
577
|
-
Related commit in `@types/ramda` - https://github.com/DefinitelyTyped/DefinitelyTyped/commit/286eff4f76d41eb8f091e7437eabd8a60d97fc1f#diff-4f74803fa83a81e47cb17a7d8a4e46a7e451f4d9e5ce2f1bd7a70a72d91f4bc1
|
|
578
|
-
|
|
579
|
-
There are several other changes in `@types/ramda` as stated in [this comment](https://github.com/ramda/ramda/issues/2976#issuecomment-990408945). This leads to change of typings for the following methods in **Rambda**:
|
|
580
|
-
|
|
581
|
-
-- R.unless
|
|
582
|
-
|
|
583
|
-
-- R.toString
|
|
584
|
-
|
|
585
|
-
-- R.ifElse
|
|
586
|
-
|
|
587
|
-
-- R.always
|
|
588
|
-
|
|
589
|
-
-- R.complement
|
|
590
|
-
|
|
591
|
-
-- R.cond
|
|
592
|
-
|
|
593
|
-
-- R.is
|
|
594
|
-
|
|
595
|
-
-- R.sortBy
|
|
596
|
-
|
|
597
|
-
-- R.dissoc
|
|
598
|
-
|
|
599
|
-
-- R.toPairs
|
|
600
|
-
|
|
601
|
-
-- R.assoc
|
|
602
|
-
|
|
603
|
-
-- R.toLower
|
|
604
|
-
|
|
605
|
-
-- R.toUpper
|
|
606
|
-
|
|
607
|
-
- One more reason for the breaking change is changing of export declarations in `package.json` based on [this blog post](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing) and [this merged Ramda's PR](https://github.com/ramda/ramda/pull/2999). This also led to renaming of `babel.config.js` to `babel.config.cjs`.
|
|
608
|
-
|
|
609
|
-
- Add `R.apply`, `R.bind` and `R.unapply`
|
|
610
|
-
|
|
611
|
-
- `R.startsWith/R.endsWith` now support lists as inputs. This way, it matches current Ramda behavior.
|
|
612
|
-
|
|
613
|
-
- Remove unused typing for `R.chain`.
|
|
614
|
-
|
|
615
|
-
- `R.map`/`R.filter` no longer accept bad inputs as iterable. This way, Rambda behaves more like Ramda, which also throws.
|
|
616
|
-
|
|
617
|
-
- Make `R.lastIndexOf` follow the logic of `R.indexOf`.
|
|
618
|
-
|
|
619
|
-
- Change `R.type` logic to Ramda logic. This way, `R.type` can return `Error` and `Set` as results.
|
|
620
|
-
|
|
621
|
-
- Add missing logic in `R.equals` to compare sets - [Issue #599](https://github.com/selfrefactor/rambda/issues/599)
|
|
622
|
-
|
|
623
|
-
- Improve list cloning - [Issue #595](https://github.com/selfrefactor/rambda/issues/595)
|
|
624
|
-
|
|
625
|
-
- Handle multiple inputs with `R.allPass` and `R.anyPass` - [Issue #604](https://github.com/selfrefactor/rambda/issues/604)
|
|
626
|
-
|
|
627
|
-
- Fix `R.length` wrong logic with inputs as `{length: 123}` - [Issue #606](https://github.com/selfrefactor/rambda/issues/606).
|
|
628
|
-
|
|
629
|
-
- Improve non-curry typings of `R.merge` by using types from [mobily/ts-belt](https://github.com/mobily/ts-belt).
|
|
630
|
-
|
|
631
|
-
- Improve performance of `R.uniqWith`.
|
|
632
|
-
|
|
633
|
-
- Wrong `R.update` if index is `-1` - [PR #593](https://github.com/selfrefactor/rambda/pull/593)
|
|
634
|
-
|
|
635
|
-
- Make `R.eqProps` safe for falsy inputs - based on [this opened Ramda PR](https://github.com/ramda/ramda/pull/2943).
|
|
636
|
-
|
|
637
|
-
- Incorrect benchmarks for `R.pipe/R.compose` - [Issue #608](https://github.com/selfrefactor/rambda/issues/608)
|
|
638
|
-
|
|
639
|
-
- Fix `R.last/R.head` typings - [Issue #609](https://github.com/selfrefactor/rambda/issues/609)
|
|
640
|
-
|
|
641
|
-
6.9.0
|
|
642
|
-
|
|
643
|
-
- Fix slow `R.uniq` methods - [Issue #581](https://github.com/selfrefactor/rambda/issues/581)
|
|
644
|
-
|
|
645
|
-
Fixing `R.uniq` was done by improving `R.indexOf` which has performance implication to all methods importing `R.indexOf`:
|
|
646
|
-
|
|
647
|
-
- R.includes
|
|
648
|
-
- R.intersection
|
|
649
|
-
- R.difference
|
|
650
|
-
- R.excludes
|
|
651
|
-
- R.symmetricDifference
|
|
652
|
-
- R.union
|
|
653
|
-
|
|
654
|
-
- R.without no longer support the following case - `without('0:1', ['0', '0:1']) // => ['0']`. Now it throws as the first argument should be a list, not a string. Ramda, on the other hand, returns an empty list - https://github.com/ramda/ramda/issues/3086.
|
|
655
|
-
|
|
656
|
-
6.8.3
|
|
657
|
-
|
|
658
|
-
- Fix TypeScript build process with `rambda/immutable` - [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
659
|
-
|
|
660
|
-
- Add `R.objOf` method
|
|
661
|
-
|
|
662
|
-
- Add `R.mapObjIndexed` method
|
|
663
|
-
|
|
664
|
-
- Publish shorter README.md version to NPM
|
|
665
|
-
|
|
666
|
-
6.8.0
|
|
667
|
-
|
|
668
|
-
- `R.has` use `Object.prototype.hasOwnProperty`- [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
669
|
-
|
|
670
|
-
- Expose `immutable.ts` typings which are Rambda typings with `readonly` statements - [Issue #565](https://github.com/selfrefactor/rambda/issues/565)
|
|
671
|
-
|
|
672
|
-
- Fix `R.intersection` wrong order compared to Ramda.
|
|
673
|
-
|
|
674
|
-
- `R.path` wrong return of `null` instead of `undefined` when path value is `null` - [PR #577](https://github.com/selfrefactor/rambda/pull/577)
|
|
675
|
-
|
|
676
|
-
6.7.0
|
|
677
|
-
|
|
678
|
-
- Remove `ts-toolbelt` types from TypeScript definitions. Most affected are the following methods, which lose one of its curried definitions:
|
|
679
|
-
|
|
680
|
-
1. R.maxBy
|
|
681
|
-
2. R.minBy
|
|
682
|
-
3. R.pathEq
|
|
683
|
-
4. R.viewOr
|
|
684
|
-
5. R.when
|
|
685
|
-
6. R.merge
|
|
686
|
-
7. R.mergeDeepRight
|
|
687
|
-
8. R.mergeLeft
|
|
688
|
-
|
|
689
|
-
6.6.0
|
|
690
|
-
|
|
691
|
-
- Change `R.piped` typings to mimic that of `R.pipe`. Main difference is that `R.pipe` is focused on unary functions.
|
|
692
|
-
|
|
693
|
-
- Fix wrong logic when `R.without` use `R.includes` while it should use array version of `R.includes`.
|
|
694
|
-
|
|
695
|
-
- Use uglify plugin for UMD bundle.
|
|
696
|
-
|
|
697
|
-
- Remove `dist` folder from `.gitignore` in order to fix `Deno` broken package. [Issue #570](https://github.com/selfrefactor/rambda/issues/570)
|
|
698
|
-
|
|
699
|
-
- Improve `R.fromPairs` typings - [Issue #567](https://github.com/selfrefactor/rambda/issues/567)
|
|
700
|
-
|
|
701
|
-
6.5.3
|
|
702
|
-
|
|
703
|
-
- Wrong logic where `R.without` use `R.includes` while it should use the array version of `R.includes`
|
|
704
|
-
|
|
705
|
-
This is Ramda bug, that Rambda also has before this release - https://github.com/ramda/ramda/issues/3086
|
|
706
|
-
|
|
707
|
-
6.5.2
|
|
708
|
-
|
|
709
|
-
- Wrong `R.defaultTo` typings - changes introduced in v6.5.0 are missing their TS equivalent.
|
|
710
|
-
|
|
711
|
-
- Update dependencies
|
|
712
|
-
|
|
713
|
-
6.5.1
|
|
714
|
-
|
|
715
|
-
Fix wrong versions in changelog
|
|
716
|
-
|
|
717
|
-
6.5.0
|
|
718
|
-
|
|
719
|
-
- `R.defaultTo` no longer accepts infinite inputs, thus it follows Ramda implementation.
|
|
720
|
-
|
|
721
|
-
- `R.equals` supports equality of functions.
|
|
722
|
-
|
|
723
|
-
- `R.pipe` doesn't use `R.compose`.
|
|
724
|
-
|
|
725
|
-
- Close [Issue #561](https://github.com/selfrefactor/rambda/issues/561) - export several internal TS interfaces and types
|
|
726
|
-
|
|
727
|
-
- Close [Issue #559](https://github.com/selfrefactor/rambda/issues/559) - improve `R.propOr` typings
|
|
728
|
-
|
|
729
|
-
- Add `CHANGELOG.md` file in release files list
|
|
730
|
-
|
|
731
|
-
6.4.0
|
|
732
|
-
|
|
733
|
-
- Close [Issue #560](https://github.com/selfrefactor/rambda/issues/560) - apply immutable lint to TypeScript definitions
|
|
734
|
-
|
|
735
|
-
- Close [Issue #553](https://github.com/selfrefactor/rambda/issues/553) - fix problem with curried typings of `R.prop`
|
|
736
|
-
|
|
737
|
-
- Fix wrong `R.last` typing
|
|
738
|
-
|
|
739
|
-
- Upgrade all `rollup` related dependencies
|
|
740
|
-
|
|
741
|
-
- `R.type` supports `Symbol` just like *Ramda*.
|
|
742
|
-
|
|
743
|
-
- Remove file extension in `main` property in `package.json` in order to allow `experimental-modules`. See also this Ramda's PR - https://github.com/ramda/ramda/pull/2678/files
|
|
744
|
-
|
|
745
|
-
- Import `R.indexBy`/`R.when`/`R.zipObj`/`R.propEq`/`R.complement` changes from recent `@types/ramda` release.
|
|
746
|
-
|
|
747
|
-
- `R.tryCatch` stop supporting asynchronous functions; the previous behaviour is exported to *Rambdax* as `R.tryCatchAsync`
|
|
748
|
-
|
|
749
|
-
6.3.1
|
|
750
|
-
|
|
751
|
-
- Fix missing `Evolved` declaration in TypeScript definition
|
|
752
|
-
|
|
753
|
-
6.3.0
|
|
754
|
-
|
|
755
|
-
- Add `R.takeLastWhile`
|
|
756
|
-
|
|
757
|
-
- Add `R.dropWhile`
|
|
758
|
-
|
|
759
|
-
- Add `R.eqProps`
|
|
760
|
-
|
|
761
|
-
- Add `R.dropLastWhile`
|
|
762
|
-
|
|
763
|
-
- Add `R.dropRepeats`
|
|
764
|
-
|
|
765
|
-
- Add `R.dropRepeatsWith`
|
|
766
|
-
|
|
767
|
-
- Add `R.evolve`
|
|
768
|
-
|
|
769
|
-
- Add typings for `R.takeWhile` when iterable is a string
|
|
770
|
-
|
|
771
|
-
6.2.0
|
|
772
|
-
|
|
773
|
-
- Add `R.props`
|
|
774
|
-
|
|
775
|
-
- Add `R.zipWith`
|
|
776
|
-
|
|
777
|
-
- Add `R.splitAt`
|
|
778
|
-
|
|
779
|
-
- Add `R.splitWhen`
|
|
780
|
-
|
|
781
|
-
- Close [Issue #547](https://github.com/selfrefactor/rambda/issues/547) - restore `readonly` declaration in TypeScript definitions.
|
|
782
|
-
|
|
783
|
-
- `R.append`/`R.prepend` now work only with arrays just like Ramda. Previous behaviour was for them to work with both arrays and strings.
|
|
784
|
-
|
|
785
|
-
- Sync `R.pluck` typings with `@types/ramda` as there was a tiny difference.
|
|
786
|
-
|
|
787
|
-
6.1.0
|
|
788
|
-
|
|
789
|
-
- Fix `R.and` wrong definition, because the function doesn't convert the result to boolean. This introduce another difference with `@types/ramda`.
|
|
790
|
-
|
|
791
|
-
- Add `R.once`
|
|
792
|
-
|
|
793
|
-
- Add `R.or`
|
|
794
|
-
|
|
795
|
-
6.0.1
|
|
796
|
-
|
|
797
|
-
- Fix typing of `R.reject` as it wrongly declares that with object, it pass property to predicate.
|
|
798
|
-
|
|
799
|
-
6.0.0
|
|
800
|
-
|
|
801
|
-
- Breaking change - `R.map`/`R.filter`/`R.reject`/`R.forEach`/`R.partition` doesn't pass index as second argument to the predicate, when looping over arrays. The old behaviour of *map*, *filter* and *forEach* can be found in Rambdax methods *R.mapIndexed*, *R.filterIndexed* and *R.forEachIndexed*.
|
|
802
|
-
|
|
803
|
-
- Breaking change - `R.all`/`R.none`/`R.any`/`R.find`/`R.findLast`/`R.findIndex`/`R.findLastIndex` doesn't pass index as second argument to the predicate.
|
|
804
|
-
|
|
805
|
-
- Change `R.assocPath` typings so the user can explicitly sets type of the new object
|
|
806
|
-
|
|
807
|
-
- Typings of `R.assoc` match its `@types/ramda` counterpart.
|
|
808
|
-
|
|
809
|
-
- Simplify `R.forEach` typings
|
|
810
|
-
|
|
811
|
-
- Remove `ReadonlyArray<T>` pattern from TypeScript definitions - not enough value for the noise it adds.
|
|
812
|
-
|
|
813
|
-
5.13.1
|
|
814
|
-
|
|
815
|
-
- Fix wrong `R.takeWhile`
|
|
816
|
-
|
|
817
|
-
5.13.0
|
|
818
|
-
|
|
819
|
-
- Add `R.takeWhile` method
|
|
820
|
-
|
|
821
|
-
- Fix `R.lensPath` issue when using string as path input. The issue was introduced when fixing [Issue #524](https://github.com/selfrefactor/rambda/issues/524) in the previous release.
|
|
822
|
-
|
|
823
|
-
5.12.1
|
|
824
|
-
|
|
825
|
-
- Close [Issue #524](https://github.com/selfrefactor/rambda/issues/524) -
|
|
826
|
-
wrong `R.assocPath` when path includes numbers
|
|
827
|
-
|
|
828
|
-
- `R.includes` throws on wrong input, i.e. `R.includes(1, null)`
|
|
829
|
-
|
|
830
|
-
5.12.0
|
|
831
|
-
|
|
832
|
-
- Add `R.move` method
|
|
833
|
-
|
|
834
|
-
- Add `R.union` method
|
|
835
|
-
|
|
836
|
-
- Close [Issue #519](https://github.com/selfrefactor/rambda/issues/519) -
|
|
837
|
-
`ts-toolbelt` needs other type of export with `--isolatedModules` flag
|
|
838
|
-
|
|
839
|
-
- Change `R.when` implementation and typings to match those of `Ramda`
|
|
840
|
-
|
|
841
|
-
- `R.over` and `R.set` use `R.curry` instead of manual currying
|
|
842
|
-
|
|
843
|
-
- `R.lensPath` typings support string as path, i.e. `'a.b'` instead of `['a', 'b']`
|
|
844
|
-
|
|
845
|
-
- `R.equals` now supports negative zero just like `Ramda.equals`
|
|
846
|
-
|
|
847
|
-
- `R.replace` uses `R.curry`
|
|
848
|
-
|
|
849
|
-
5.11.0
|
|
850
|
-
|
|
851
|
-
Forgot to export `R.of` because of wrong marker in `files/index.d.ts`
|
|
852
|
-
|
|
853
|
-
5.10.0
|
|
854
|
-
|
|
855
|
-
Close [Issue #514](https://github.com/selfrefactor/rambda/issues/514) -
|
|
856
|
-
wrong `R.length` with empty string
|
|
857
|
-
|
|
858
|
-
Close [Issue #511](https://github.com/selfrefactor/rambda/issues/511) - error in `ts-toolbelt` library
|
|
859
|
-
|
|
860
|
-
Close [Issue #510](https://github.com/selfrefactor/rambda/issues/510) - `R.clamp` should throw if min argument is greater than max argument
|
|
861
|
-
|
|
862
|
-
- [PR #508](https://github.com/selfrefactor/rambda/pull/508) - add `R.of`
|
|
863
|
-
|
|
864
|
-
- Definition of `R.curry` are not same as those of `@types/ramda`
|
|
865
|
-
|
|
866
|
-
- Definitions of `R.either` is same as that of `R.both`
|
|
867
|
-
|
|
868
|
-
- Definitions of `R.ifElse` no longer use `any` type
|
|
869
|
-
|
|
870
|
-
- Definition of `R.flatten` requires passing type for the output
|
|
871
|
-
|
|
872
|
-
- Fix definition of `R.propOr`, `R.dissoc`
|
|
873
|
-
|
|
874
|
-
- Fix curried definitions of `R.take`, `R.takeLast`, `R.drop` and `R.dropLast`
|
|
875
|
-
|
|
876
|
-
- 5.9.0
|
|
877
|
-
|
|
878
|
-
- `R.pickAll` definition allows passing string as path to search.
|
|
879
|
-
|
|
880
|
-
- `R.propEq` definition is now similar to that in `@types/ramda`.
|
|
881
|
-
|
|
882
|
-
- `R.none` matches `R.all` implementation and pass index as second argument to predicate input.
|
|
883
|
-
|
|
884
|
-
- `R.reduce` - drop support for object as iterable. Now it throws the same error as Ramda. Also instead of returning the initial value when iterable is `undefined`, now it throws.
|
|
885
|
-
|
|
886
|
-
Add index as additional argument to the TypeScript definitions of the following methods:
|
|
887
|
-
|
|
888
|
-
- R.all
|
|
889
|
-
- R.find
|
|
890
|
-
- R.findLast
|
|
891
|
-
- R.findIndex
|
|
892
|
-
- R.findLastIndex
|
|
893
|
-
|
|
894
|
-
- 5.8.0
|
|
895
|
-
|
|
896
|
-
Add `R.mergeAll`
|
|
897
|
-
Add `R.mergeDeepRight`
|
|
898
|
-
Add `R.mergeLeft`
|
|
899
|
-
Add `R.partition`
|
|
900
|
-
Add `R.pathEq`
|
|
901
|
-
Add `R.tryCatch`
|
|
902
|
-
Add `R.unless`
|
|
903
|
-
Add `R.whereEq`
|
|
904
|
-
Add `R.where`
|
|
905
|
-
|
|
906
|
-
- Add `R.last` typing for empty array
|
|
907
|
-
|
|
908
|
-
- 5.7.0 Revert [PR #469](https://github.com/selfrefactor/rambda/pull/469) as `R.curry` was slow | Also now `R.flip` throws if arity is greater than or equal to 5
|
|
909
|
-
|
|
910
|
-
- 5.6.3 Merge several PRs of [@farwayer](https://github.com/farwayer)
|
|
911
|
-
|
|
912
|
-
- [PR #482](https://github.com/selfrefactor/rambda/pull/482) - improve `R.forEach` performance by not using `R.map`
|
|
913
|
-
|
|
914
|
-
- [PR #485](https://github.com/selfrefactor/rambda/pull/485) - improve `R.map` performance
|
|
915
|
-
|
|
916
|
-
- [PR #482](https://github.com/selfrefactor/rambda/pull/486) - improve `R.reduce` performance
|
|
917
|
-
|
|
918
|
-
- Fix missing high arity typings for `R.compose/pipe`
|
|
919
|
-
|
|
920
|
-
- `R.merge` definitions match those of `@types/ramda`
|
|
921
|
-
|
|
922
|
-
- Remove `dist` folder from Rambda repo
|
|
923
|
-
|
|
924
|
-
- 5.6.2
|
|
925
|
-
|
|
926
|
-
Close [Issue #476](https://github.com/selfrefactor/rambda/issues/476) - typesafe `R.propEq` definitions
|
|
927
|
-
|
|
928
|
-
Approve [PR #477](https://github.com/selfrefactor/rambda/pull/477) - fix `R.groupWith` when list length is 1
|
|
929
|
-
|
|
930
|
-
- 5.6.1
|
|
931
|
-
|
|
932
|
-
Update `ts-toolbelt` files as now there is update pipeline for it.
|
|
933
|
-
|
|
934
|
-
Approve [PR #474](https://github.com/selfrefactor/rambda/pull/474) - intruduce internal `isArray` helper
|
|
935
|
-
|
|
936
|
-
- 5.6.0
|
|
937
|
-
|
|
938
|
-
Approve [PR #469](https://github.com/selfrefactor/rambda/pull/469) - R.flip supports any arity | implement `R.curry` with `R.curryN` add `R.applySpec`
|
|
939
|
-
|
|
940
|
-
- 5.5.0
|
|
941
|
-
|
|
942
|
-
Close [Issue #464](https://github.com/selfrefactor/rambda/issues/464) - `R.flip` should handle functions with arity above 2
|
|
943
|
-
|
|
944
|
-
Close [Issue #468](https://github.com/selfrefactor/rambda/issues/468) - `fs-extra` should be dev dependency as it was wrongly added as production dependency in `5.2.0`
|
|
945
|
-
|
|
946
|
-
`R.flip` typings now match `@types/ramda` typings
|
|
947
|
-
|
|
948
|
-
Add `R.hasPath` method
|
|
949
|
-
|
|
950
|
-
Add `R.mathMod` typings
|
|
951
|
-
|
|
952
|
-
- 5.4.3
|
|
953
|
-
|
|
954
|
-
Fix `R.omit` typings
|
|
955
|
-
|
|
956
|
-
- 5.4.2
|
|
957
|
-
|
|
958
|
-
Fix `R.pick` typings
|
|
959
|
-
|
|
960
|
-
> Close [Issue #460](https://github.com/selfrefactor/rambda/issues/460) - `R.paths` should be curried
|
|
961
|
-
|
|
962
|
-
- 5.4.1
|
|
963
|
-
|
|
964
|
-
> Close [Issue #458](https://github.com/selfrefactor/rambda/issues/458) - wrong `R.propIs` typing
|
|
965
|
-
|
|
966
|
-
- 5.4.0
|
|
967
|
-
|
|
968
|
-
> Close [Issue #408](https://github.com/selfrefactor/rambda/issues/408) - add `R.chain`
|
|
969
|
-
|
|
970
|
-
- 5.3.0
|
|
971
|
-
|
|
972
|
-
> Close [Issue #430](https://github.com/selfrefactor/rambda/issues/430) - add `R.when`
|
|
973
|
-
|
|
974
|
-
Also restore `R.converge`, `R.findLast`, `R.findLastIndex` and `R.curryN` as I have forgotten to export them when releasing `5.2.0`.
|
|
975
|
-
|
|
976
|
-
- 5.2.1
|
|
977
|
-
|
|
978
|
-
Fix TypeScript comment for every method
|
|
979
|
-
|
|
980
|
-
- 5.2.0
|
|
981
|
-
|
|
982
|
-
Release new documentation site
|
|
983
|
-
|
|
984
|
-
`Ramda` repo now holds all `Rambdax` methods and tests
|
|
985
|
-
|
|
986
|
-
- 5.1.1
|
|
987
|
-
|
|
988
|
-
Add `R.converge` and `R.curryN` from [PR #412](https://github.com/selfrefactor/rambda/pull/412)
|
|
989
|
-
|
|
990
|
-
Close [Issue #410](https://github.com/selfrefactor/rambda/issues/410) - wrong implementation of `R.groupWith`
|
|
991
|
-
|
|
992
|
-
Close [Issue #411](https://github.com/selfrefactor/rambda/issues/411) - change the order of declared `R.map` typings rules
|
|
993
|
-
|
|
994
|
-
- 5.0.0
|
|
995
|
-
|
|
996
|
-
Move `R.partialCurry` to Rambdax(reason for major bump).
|
|
997
|
-
|
|
998
|
-
Use new type of export in TypeScript definitions.
|
|
999
|
-
|
|
1000
|
-
Approve [PR #381](https://github.com/selfrefactor/rambda/pull/381) - add `R.applySpec`
|
|
1001
|
-
|
|
1002
|
-
- 4.6.0
|
|
1003
|
-
|
|
1004
|
-
Approve [PR #375](https://github.com/selfrefactor/rambda/pull/375) - add lenses(Thank you [@synthet1c](https://github.com/synthet1c))
|
|
1005
|
-
|
|
1006
|
-
Add `R.lens`
|
|
1007
|
-
|
|
1008
|
-
Add `R.lensIndex`
|
|
1009
|
-
|
|
1010
|
-
Add `R.lensPath`
|
|
1011
|
-
|
|
1012
|
-
Add `R.lensProp`
|
|
1013
|
-
|
|
1014
|
-
Add `R.over`
|
|
1015
|
-
|
|
1016
|
-
Add `R.set`
|
|
1017
|
-
|
|
1018
|
-
Add `R.view`
|
|
1019
|
-
|
|
1020
|
-
> Sync with Ramda 0.27
|
|
1021
|
-
|
|
1022
|
-
Add `R.paths`
|
|
1023
|
-
|
|
1024
|
-
Add `R.xor`
|
|
1025
|
-
|
|
1026
|
-
> Close [Issue #373](https://github.com/selfrefactor/rambda/issues/373)
|
|
1027
|
-
|
|
1028
|
-
Add `R.cond`
|
|
1029
|
-
|
|
1030
|
-
- 4.5.0 Add `R.clamp`
|
|
1031
|
-
|
|
1032
|
-
- 4.4.2 Improve `R.propOr` typings
|
|
1033
|
-
|
|
1034
|
-
- 4.4.1 Make `R.reject` has the same typing as `R.filter`
|
|
1035
|
-
|
|
1036
|
-
- 4.4.0 Several changes:
|
|
1037
|
-
|
|
1038
|
-
Close [Issue #317](https://github.com/selfrefactor/rambda/issues/317) - add `R.transpose`
|
|
1039
|
-
|
|
1040
|
-
Close [Issue #325](https://github.com/selfrefactor/rambda/issues/325) - `R.filter` should return equal values for bad inputs `null` and `undefined`
|
|
1041
|
-
|
|
1042
|
-
Approve suggestion for `R.indexBy` to accept string not only function as first argument.
|
|
1043
|
-
|
|
1044
|
-
Edit of `R.path` typings
|
|
1045
|
-
|
|
1046
|
-
- 4.2.0 Approve [PR #314](https://github.com/selfrefactor/rambda/pull/314) - add `R.and`
|
|
1047
|
-
|
|
1048
|
-
- 4.1.1 Add missing typings for `R.slice`
|
|
1049
|
-
|
|
1050
|
-
- 4.1.0 Add `R.findLast` and `R.findLastIndex`
|
|
1051
|
-
|
|
1052
|
-
- 4.0.2 Fix `R.isEmpty` wrong behaviour compared to the Ramda method
|
|
1053
|
-
|
|
1054
|
-
- 4.0.1 Approve [PR #289](https://github.com/selfrefactor/rambda/pull/289) - remove console.log in `R.values` method
|
|
1055
|
-
|
|
1056
|
-
- 4.0.0 Multiple breaking changes as Rambda methods are changed in order to increase the similarity between with Ramda
|
|
1057
|
-
|
|
1058
|
-
Add to `Differences`:
|
|
1059
|
-
|
|
1060
|
-
```text
|
|
1061
|
-
R.type can return 'NaN'
|
|
1062
|
-
|
|
1063
|
-
R.compose doesn't pass `this` context
|
|
1064
|
-
|
|
1065
|
-
R.clone doesn't work with number, booleans and strings as input
|
|
1066
|
-
```
|
|
1067
|
-
|
|
1068
|
-
All breaking changes:
|
|
1069
|
-
|
|
1070
|
-
-- R.add works only with numbers
|
|
1071
|
-
|
|
1072
|
-
-- Fix R.adjust which had wrong order of arguments
|
|
1073
|
-
|
|
1074
|
-
-- R.adjust works when index is out of bounds
|
|
1075
|
-
|
|
1076
|
-
-- R.complement support function with multiple arguments
|
|
1077
|
-
|
|
1078
|
-
-- R.compose/pipe throws when called with no argument
|
|
1079
|
-
|
|
1080
|
-
-- R.clone works with `Date` value as input
|
|
1081
|
-
|
|
1082
|
-
-- R.drop/dropLast/take/takeLast always return new copy of the list/string
|
|
1083
|
-
|
|
1084
|
-
-- R.take/takeLast return original list/string with negative index
|
|
1085
|
-
|
|
1086
|
-
-- R.equals handles `NaN` and `RegExp` types
|
|
1087
|
-
|
|
1088
|
-
-- R.type/R.equals supports `new Boolean/new Number/new Date/new String` expressions
|
|
1089
|
-
|
|
1090
|
-
-- R.has works with non-object
|
|
1091
|
-
|
|
1092
|
-
-- R.ifElse pass all arguments
|
|
1093
|
-
|
|
1094
|
-
-- R.length works with bad input
|
|
1095
|
-
|
|
1096
|
-
-- R.propEq work with bad input for object argument
|
|
1097
|
-
|
|
1098
|
-
-- R.range work with bad inputs
|
|
1099
|
-
|
|
1100
|
-
-- R.times work with bad inputs
|
|
1101
|
-
|
|
1102
|
-
-- R.reverse works with strings
|
|
1103
|
-
|
|
1104
|
-
-- R.splitEvery throws on non-positive integer index
|
|
1105
|
-
|
|
1106
|
-
-- R.test throws just like Ramda when first argument is not regex
|
|
1107
|
-
|
|
1108
|
-
-- R.values works with bad inputs
|
|
1109
|
-
|
|
1110
|
-
-- R.zipObj ignores extra keys
|
|
1111
|
-
|
|
1112
|
-
- 3.3.0
|
|
1113
|
-
|
|
1114
|
-
This is pre `4.0.0` release and it contains all of the above changes
|
|
1115
|
-
|
|
1116
|
-
Close [issue #287](https://github.com/selfrefactor/rambda/issues/287) - `ts-toolbelt` directory was changed but not reflected in `files` property in `package.json`
|
|
1117
|
-
|
|
1118
|
-
- 3.2.5
|
|
1119
|
-
|
|
1120
|
-
Close [issue #273](https://github.com/selfrefactor/rambda/issues/273) - ts-toolbelt needs other type of export when `isolatedModules` TypeScript property
|
|
1121
|
-
|
|
1122
|
-
Close [issue #245](https://github.com/selfrefactor/rambda/issues/245) - complete typings tests for methods that have more specific TypeScript definitions
|
|
1123
|
-
|
|
1124
|
-
- 3.2.1 Fast fix for [issue #273](https://github.com/selfrefactor/rambda/issues/273) - messed up typings
|
|
1125
|
-
|
|
1126
|
-
- 3.2.0 There are several changes:
|
|
1127
|
-
|
|
1128
|
-
Close [issue #263](https://github.com/selfrefactor/rambda/issues/263) - broken curry typing solved by `ts-toolbelt` local dependency.
|
|
1129
|
-
|
|
1130
|
-
Add `R.partialCurry` typings.
|
|
1131
|
-
|
|
1132
|
-
Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.slice` method.
|
|
1133
|
-
|
|
1134
|
-
- 3.1.0 This might be breaking change for TypeScript users, as very different definitions are introduced. With the previous state of the definitions, it was not possible to pass `dtslint` typings tests.
|
|
1135
|
-
|
|
1136
|
-
- `R.either` and `R.both` supports multiple arguments as they should.
|
|
1137
|
-
|
|
1138
|
-
- Several methods added by [@squidfunk](https://github.com/squidfunk) - `R.assocPath`, `R.symmetricDifference`, `R.intersperse`, `R.intersection` and `R.difference`
|
|
1139
|
-
|
|
1140
|
-
- 3.0.1 Close [issue #234](https://github.com/selfrefactor/rambda/issues/234) - wrong curry typing
|
|
1141
|
-
|
|
1142
|
-
- 3.0.0 Deprecate `R.contains`, while `R.includes` is now following Ramda API(it uses `R.equals` for comparision)
|
|
1143
|
-
|
|
1144
|
-
- 2.14.5 `R.without` needs currying
|
|
1145
|
-
|
|
1146
|
-
- 2.14.4 Close [issue #227](https://github.com/selfrefactor/rambda/issues/227) - add index as third argument of `R.reduce` typings
|
|
1147
|
-
|
|
1148
|
-
- 2.14.2 Use `R.curry` with `R.reduce` as manual curry there didn't work as expected.
|
|
1149
|
-
|
|
1150
|
-
- 2.14.1 Fix wrong typescript with `R.head` - [PR #228](https://github.com/selfrefactor/rambda/pull/228) pushed by [@tonivj5](https://github.com/tonivj5)
|
|
1151
|
-
|
|
1152
|
-
- 2.14.0 Add `R.groupWith` by @selfrefactor | Add `R.propOr`, `R.mathMod`, `R.mean`, `R.median`, `R.negate`, `R.product` by [@ku8ar](https://github.com/ku8ar)
|
|
1153
|
-
|
|
1154
|
-
- 2.13.0 Add `R.identical` - [PR #217](https://github.com/selfrefactor/rambda/pull/217) pushed by [@ku8ar](https://github.com/ku8ar)
|
|
1155
|
-
|
|
1156
|
-
- 2.12.0 Add `R.propIs` - [PR #213](https://github.com/selfrefactor/rambda/pull/213) and add `R.sum` - [issue #207](https://github.com/selfrefactor/rambda/issues/207)
|
|
1157
|
-
|
|
1158
|
-
- 2.11.2 Close Rambdax [issue #32](https://github.com/selfrefactor/rambdax/issues/32) - wrong `R.type` when function is input
|
|
1159
|
-
|
|
1160
|
-
- 2.11.1 Approve [PR #182](https://github.com/selfrefactor/rambda/pull/182) - Changed typings to allow object as input to `R.forEach` and `R.map`
|
|
1161
|
-
|
|
1162
|
-
- 2.11.0 Approve [PR #179](https://github.com/selfrefactor/rambda/pull/179) - `R.adjust` handles negative index; `R.all` doesn't need `R.filter`
|
|
1163
|
-
|
|
1164
|
-
- 2.10.2 Close [issue #175](https://github.com/selfrefactor/rambda/issues/175) - missing typescript file
|
|
1165
|
-
|
|
1166
|
-
- 2.10.0 Approve huge and important [PR #171](https://github.com/selfrefactor/rambda/pull/171) submitted by [@helmuthdu](https://github.com/helmuthdu) - Add comments to each method, improve TypeScript support
|
|
1167
|
-
|
|
1168
|
-
- 2.9.0 `R.toPairs` and `R.fromPairs`
|
|
1169
|
-
|
|
1170
|
-
- 2.8.0 Approve [PR #165](https://github.com/selfrefactor/rambda/pull/165) `R.clone`
|
|
1171
|
-
|
|
1172
|
-
- 2.7.1 expose `src` | Discussed at [issue #147](https://github.com/selfrefactor/rambda/issues/147)
|
|
1173
|
-
|
|
1174
|
-
- 2.7.0 Approve [PR #161](https://github.com/selfrefactor/rambda/pull/161) `R.isEmpty`
|
|
1175
|
-
|
|
1176
|
-
- 2.6.0 `R.map`, `R.filter` and `R.forEach` pass original object to iterator as third argument | Discussed at [issue #147](https://github.com/selfrefactor/rambda/issues/147)
|
|
1177
|
-
|
|
1178
|
-
- 2.5.0 Close [issue #149](https://github.com/selfrefactor/rambda/issues/149) Add `R.partial` | `R.type` handles `NaN`
|
|
1179
|
-
|
|
1180
|
-
- 2.4.0 Major bump of `Rollup`; Stop building for ES5
|
|
1181
|
-
|
|
1182
|
-
- 2.3.1 Close [issue #90](https://github.com/selfrefactor/rambda/issues/90) | Add string type of path in `R.pathOr`
|
|
1183
|
-
|
|
1184
|
-
- 2.3.0 Close [issue #89](https://github.com/selfrefactor/rambda/issues/89) | Fix missing `Number` TS definition in `R.type`
|
|
1185
|
-
|
|
1186
|
-
- 2.2.0 `R.defaultTo` accepts indefinite number of input arguments. So the following is valid expression: `const x = defaultTo('foo',null, null, 'bar')`
|
|
1187
|
-
|
|
1188
|
-
- 2.1.0 Restore `R.zip` using [WatermelonDB](https://github.com/Nozbe/WatermelonDB/) implementation.
|
|
1189
|
-
|
|
1190
|
-
- 2.0.0 Major version caused by removing of `R.zip` and `R.addIndex`. [Issue #85](https://github.com/selfrefactor/rambda/issues/85) rightfully finds that the implementation of `R.addIndex` is not correct. This led to removing this method and also of `R.zip` as it had depended on it. The second change is that `R.map`, `R.filter` are passing array index as second argument when looping over arrays. The third change is that `R.includes` will return `false` if input is neigher `string` nor `array`. The previous behaviour was to throw an error. The last change is to increase the number of methods that are passing index as second argument to the predicate function.
|
|
1191
|
-
|
|
1192
|
-
- 1.2.6 Use `src` folder instead of `modules`
|
|
1193
|
-
- 1.2.5 Fix `omit` typing
|
|
1194
|
-
- 1.2.4 Add missing TypeScript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82)
|
|
1195
|
-
- 1.2.2 Change curry method used across most of library methods
|
|
1196
|
-
- 1.2.1 Add `R.assoc` | fix passing `undefined` to `R.map` and `R.merge` [issue #77](https://github.com/selfrefactor/rambda/issues/77)
|
|
1197
|
-
- 1.2.0 Add `R.min`, `R.minBy`, `R.max`, `R.maxBy`, `R.nth` and `R.keys`
|
|
1198
|
-
- 1.1.5 Close [issue #74](https://github.com/selfrefactor/rambda/issues/74) `R.zipObj`
|
|
1199
|
-
- 1.1.4 Close [issue #71](https://github.com/selfrefactor/rambda/issues/71) CRA fail to build `rambda`
|
|
1200
|
-
- 1.1.3 Approve [PR #70](https://github.com/selfrefactor/rambda/pull/67) implement `R.groupBy` | Close [issue #69](https://github.com/selfrefactor/rambda/issues/69)
|
|
1201
|
-
- 1.1.2 Approve [PR #67](https://github.com/selfrefactor/rambda/pull/67) use `babel-plugin-annotate-pure-calls`
|
|
1202
|
-
- 1.1.1 Approve [PR #66](https://github.com/selfrefactor/rambda/pull/66) `R.zip`
|
|
1203
|
-
- 1.1.0 `R.compose` accepts more than one input argument [issue #65](https://github.com/selfrefactor/rambda/issues/65)
|
|
1204
|
-
- 1.0.13 Approve [PR #64](https://github.com/selfrefactor/rambda/pull/64) `R.indexOf`
|
|
1205
|
-
- 1.0.12 Close [issue #61](https://github.com/selfrefactor/rambda/issues/61) make all functions modules
|
|
1206
|
-
- 1.0.11 Close [issue #60](https://github.com/selfrefactor/rambda/issues/60) problem with babelrc
|
|
1207
|
-
- 1.0.10 Close [issue #59](https://github.com/selfrefactor/rambda/issues/59) add R.dissoc
|
|
1208
|
-
- 1.0.9 Close [issue #58](https://github.com/selfrefactor/rambda/issues/58) - Incorrect `R.equals`
|
|
1209
|
-
- 1.0.8 `R.map` and `R.filter` pass object properties when mapping over objects
|
|
1210
|
-
- 1.0.7 Add `R.uniqWith`
|
|
1211
|
-
- 1.0.6 Close [issue #52](https://github.com/selfrefactor/rambda/issues/52) - ES5 compatible code
|
|
1212
|
-
- 1.0.5 Close [issue #51](https://github.com/selfrefactor/rambda/issues/51)
|
|
1213
|
-
- 1.0.4 Close [issue #50](https://github.com/selfrefactor/rambda/issues/50) - add `R.pipe` typings
|
|
1214
|
-
- 1.0.3 `R.ifElse` accept also boolean as condition argument
|
|
1215
|
-
- 1.0.2 Remove `typedDefaultTo` and `typedPathOr` | Add `R.pickAll` and `R.none`
|
|
1216
|
-
- 1.0.0 Major change as build is now ES6 not ES5 compatible (Related to [issue #46](https://github.com/selfrefactor/rambda/issues/46))| Making `Rambda` fully tree-shakeable| Edit TypeScript definition
|
|
1217
|
-
- 0.9.8 Revert to ES5 compatible build - [issue #46](https://github.com/selfrefactor/rambda/issues/46)
|
|
1218
|
-
- 0.9.7 Refactor for `Rollup` tree-shake | Remove `R.padEnd` and `R.padStart`
|
|
1219
|
-
- 0.9.6 Close [issue #44](https://github.com/selfrefactor/rambda/issues/44) - `R.reverse` mutates the array
|
|
1220
|
-
- 0.9.5 Close [issue #45](https://github.com/selfrefactor/rambda/issues/45) - invalid TypeScript typings
|
|
1221
|
-
- 0.9.4 Add `R.reject` and `R.without` ([PR#41](https://github.com/selfrefactor/rambda/pull/41) [PR#42](https://github.com/selfrefactor/rambda/pull/42)) | Remove 'browser' field in `package.json` due to Webpack bug [4674](https://github.com/webpack/webpack/issues/4674)
|
|
1222
|
-
- 0.9.3 Add `R.forEach` and `R.times`
|
|
1223
|
-
- 0.9.2 Add `TypeScript` definitions
|
|
1224
|
-
- 0.9.1 Close [issue #36](https://github.com/selfrefactor/rambda/issues/36) - move current behaviour of `defaultTo` to a new method `typedDefaultTo`; make `defaultTo` follow Ramda spec; add `pathOr`; add `typedPathOr`.
|
|
1225
|
-
- 0.9.0 Add `R.pipe` [PR#35](https://github.com/selfrefactor/rambda/pull/35)
|
|
1226
|
-
- 0.8.9 Add `R.isNil`
|
|
1227
|
-
- 0.8.8 Migrate to ES modules [PR33](https://github.com/selfrefactor/rambda/pull/33) | Add R.flip to the API | R.map/filter works with objects
|
|
1228
|
-
- 0.8.7 Change `Webpack` with `Rollup` - [PR29](https://github.com/selfrefactor/rambda/pull/29)
|
|
1229
|
-
- 0.8.6 Add `R.tap` and `R.identity`
|
|
1230
|
-
- 0.8.5 Add `R.all`, `R.allPass`, `R.both`, `R.either` and `R.complement`
|
|
1231
|
-
- 0.8.4 Learning to run `yarn test` before `yarn publish` the hard way
|
|
1232
|
-
- 0.8.3 Add `R.always`, `R.T` and `R.F`
|
|
1233
|
-
- 0.8.2 Add `concat`, `padStart`, `padEnd`, `lastIndexOf`, `toString`, `reverse`, `endsWith` and `startsWith` methods
|
|
1234
|
-
- 0.8.1 Add `R.ifElse`
|
|
1235
|
-
- 0.8.0 Add `R.not`, `R.includes` | Take string as condition for `R.pick` and `R.omit`
|
|
1236
|
-
- 0.7.6 Fix incorrect implementation of `R.values`
|
|
1237
|
-
- 0.7.5 Fix incorrect implementation of `R.omit`
|
|
1238
|
-
- 0.7.4 [issue #13](https://github.com/selfrefactor/rambda/issues/13) - Fix `R.curry`, which used to return incorrectly `function` when called with more arguments
|
|
1239
|
-
- 0.7.3 Close [issue #9](https://github.com/selfrefactor/rambda/issues/9) - Compile to `es2015`; Approve [PR #10](https://github.com/selfrefactor/rambda/pull/10) - add `R.addIndex` to the API
|
|
1240
|
-
- 0.7.2 Add `Promise` support for `R.type`
|
|
1241
|
-
- 0.7.1 Close [issue #7](https://github.com/selfrefactor/rambda/issues/7) - add `R.reduce` to the API
|
|
1242
|
-
- 0.7.0 Close [issue #5](https://github.com/selfrefactor/rambda/issues/5) - change name of `curry` to `partialCurry`; add new method `curry`, which works just like Ramda's `curry`
|
|
1243
|
-
- 0.6.2 Add separate documentation site via `docsify`
|
|
489
|
+
- change order of `R.propEq` - [Ramda MR](https://github.com/ramda/ramda/pull/2938/files)
|
package/README.md
CHANGED
|
@@ -76,7 +76,28 @@ it('within Ramda.pipe requires explicit types', () => {
|
|
|
76
76
|
});
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
IMPORTANT - all methods are tested to deliver correct types when they are part of `R.pipe/R.pipeAsync` chains.
|
|
79
|
+
:exclamation: IMPORTANT - all methods are tested to deliver correct types when they are part of `R.pipe/R.pipeAsync` chains.
|
|
80
|
+
|
|
81
|
+
In other words:
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
R.filter(x => x > 1)([1,2,3])
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
might trigger TS error as it not the same as
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
|
|
91
|
+
R.pipe([1,2,3], R.filter(x => x > 1)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### :exclamation: All methods are curried
|
|
95
|
+
|
|
96
|
+
There is one way to use `Rambda` methods and it is with currying, i.e. using `R.filter(fn, list)` will not work as it is inteded to be `R.filter(fn)(list)`.
|
|
97
|
+
|
|
98
|
+
The reason is that all methods are supposed to be used inside `R.pipe`. After all, building chains is the very base of functional programming.
|
|
99
|
+
|
|
100
|
+
Of course, there is value in supporting the case where you can pass all inputs at once, but I find that the price in terms of maintainability is not worth it.
|
|
80
101
|
|
|
81
102
|
### Keep only the most useful methods
|
|
82
103
|
|
|
@@ -4761,7 +4782,7 @@ describe('R.head', () => {
|
|
|
4761
4782
|
|
|
4762
4783
|
```typescript
|
|
4763
4784
|
|
|
4764
|
-
includes
|
|
4785
|
+
includes(s: string): (list: readonly string[] | string) => boolean
|
|
4765
4786
|
```
|
|
4766
4787
|
|
|
4767
4788
|
If `input` is string, then this method work as native `String.includes`.
|
|
@@ -4783,8 +4804,8 @@ const result = [
|
|
|
4783
4804
|
<summary>All TypeScript definitions</summary>
|
|
4784
4805
|
|
|
4785
4806
|
```typescript
|
|
4786
|
-
includes
|
|
4787
|
-
includes<T>(
|
|
4807
|
+
includes(s: string): (list: readonly string[] | string) => boolean;
|
|
4808
|
+
includes<T>(target: T): (list: readonly T[]) => boolean;
|
|
4788
4809
|
```
|
|
4789
4810
|
|
|
4790
4811
|
</details>
|
|
@@ -4861,7 +4882,7 @@ test('with wrong input that does not throw', () => {
|
|
|
4861
4882
|
<summary><strong>TypeScript</strong> test</summary>
|
|
4862
4883
|
|
|
4863
4884
|
```typescript
|
|
4864
|
-
import {
|
|
4885
|
+
import { pipe, includes } from 'rambda'
|
|
4865
4886
|
|
|
4866
4887
|
describe('R.includes', () => {
|
|
4867
4888
|
it('happy', () => {
|
|
@@ -4873,6 +4894,16 @@ describe('R.includes', () => {
|
|
|
4873
4894
|
const result = pipe('foo', includes('bar'))
|
|
4874
4895
|
result // $ExpectType boolean
|
|
4875
4896
|
})
|
|
4897
|
+
it('with array of strings', () => {
|
|
4898
|
+
const result = pipe(['1','2'], includes('1'))
|
|
4899
|
+
result // $ExpectType boolean
|
|
4900
|
+
})
|
|
4901
|
+
it('without R.pipe', () => {
|
|
4902
|
+
const result1 = includes('1')(['1', '2'])
|
|
4903
|
+
const result2 = includes(1)([1, 2])
|
|
4904
|
+
result1 // $ExpectType boolean
|
|
4905
|
+
result2 // $ExpectType boolean
|
|
4906
|
+
})
|
|
4876
4907
|
})
|
|
4877
4908
|
```
|
|
4878
4909
|
|
|
@@ -7156,10 +7187,17 @@ export function modifyPath(pathInput, fn) {
|
|
|
7156
7187
|
```javascript
|
|
7157
7188
|
import { modifyPath } from './modifyPath.js'
|
|
7158
7189
|
|
|
7190
|
+
const obj = { a: { b: { c: 1 } } }
|
|
7191
|
+
|
|
7159
7192
|
test('happy', () => {
|
|
7160
|
-
const result = modifyPath('a.b.c', x => x + 1)(
|
|
7193
|
+
const result = modifyPath('a.b.c', x => x + 1)(obj)
|
|
7161
7194
|
expect(result).toEqual({ a: { b: { c: 2 } } })
|
|
7162
7195
|
})
|
|
7196
|
+
|
|
7197
|
+
test('works only on existing paths', () => {
|
|
7198
|
+
const result = modifyPath('a.b.d', x => x + 1)(obj)
|
|
7199
|
+
expect(result).toEqual(obj)
|
|
7200
|
+
})
|
|
7163
7201
|
```
|
|
7164
7202
|
|
|
7165
7203
|
</details>
|
|
@@ -9352,7 +9390,7 @@ test('returns false if called with a null or undefined object', () => {
|
|
|
9352
9390
|
|
|
9353
9391
|
```typescript
|
|
9354
9392
|
|
|
9355
|
-
propOr<T, P extends string>(
|
|
9393
|
+
propOr<T, P extends string>(property: P, defaultValue: T): (obj: Partial<Record<P, T>>) => T
|
|
9356
9394
|
```
|
|
9357
9395
|
|
|
9358
9396
|
It returns either `defaultValue` or the value of `property` in `obj`.
|
|
@@ -9376,7 +9414,7 @@ const result = [
|
|
|
9376
9414
|
<summary>All TypeScript definitions</summary>
|
|
9377
9415
|
|
|
9378
9416
|
```typescript
|
|
9379
|
-
propOr<T, P extends string>(
|
|
9417
|
+
propOr<T, P extends string>(property: P, defaultValue: T): (obj: Partial<Record<P, T>>) => T;
|
|
9380
9418
|
```
|
|
9381
9419
|
|
|
9382
9420
|
</details>
|
|
@@ -9388,7 +9426,7 @@ propOr<T, P extends string>(defaultValue: T, property: P): (obj: Partial<Record<
|
|
|
9388
9426
|
```javascript
|
|
9389
9427
|
import { defaultTo } from './defaultTo.js'
|
|
9390
9428
|
|
|
9391
|
-
export function propOr(
|
|
9429
|
+
export function propOr(property, defaultValue) {
|
|
9392
9430
|
return obj => {
|
|
9393
9431
|
if (!obj) {
|
|
9394
9432
|
return defaultValue
|
|
@@ -9410,9 +9448,9 @@ import { propOr } from './propOr.js'
|
|
|
9410
9448
|
|
|
9411
9449
|
test('propOr', () => {
|
|
9412
9450
|
const obj = { a: 1 }
|
|
9413
|
-
expect(propOr('
|
|
9414
|
-
expect(propOr('
|
|
9415
|
-
expect(propOr('
|
|
9451
|
+
expect(propOr('a', 'default', )(obj)).toBe(1)
|
|
9452
|
+
expect(propOr('notExist', 'default')(obj)).toBe('default')
|
|
9453
|
+
expect(propOr('notExist', 'default')(null)).toBe('default')
|
|
9416
9454
|
})
|
|
9417
9455
|
```
|
|
9418
9456
|
|
|
@@ -9429,11 +9467,9 @@ const obj = { foo: 'bar' }
|
|
|
9429
9467
|
const property = 'foo'
|
|
9430
9468
|
const fallback = 'fallback'
|
|
9431
9469
|
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
result // $ExpectType string
|
|
9436
|
-
})
|
|
9470
|
+
it('R.propOr', () => {
|
|
9471
|
+
const result = propOr(property, fallback)(obj)
|
|
9472
|
+
result // $ExpectType string
|
|
9437
9473
|
})
|
|
9438
9474
|
```
|
|
9439
9475
|
|
|
@@ -13507,20 +13543,33 @@ describe('R.zipWith', () => {
|
|
|
13507
13543
|
|
|
13508
13544
|
## ❯ CHANGELOG
|
|
13509
13545
|
|
|
13546
|
+
10.3.1
|
|
13547
|
+
|
|
13548
|
+
- Fix issue with wrong order of inputs in `R.propOr` - [Issue #779](https://github.com/selfrefactor/rambda/issues/779)
|
|
13549
|
+
|
|
13550
|
+
- Fix issue with TypeScript definitions for `R.includes`- [Issue #781](https://github.com/selfrefactor/rambda/issues/781)
|
|
13551
|
+
|
|
13510
13552
|
10.3.0
|
|
13511
13553
|
|
|
13512
13554
|
- Add `R.mapPropObject`
|
|
13513
13555
|
|
|
13556
|
+
- Add `R.duplicateBy`
|
|
13514
13557
|
- Add `R.duplicateBy`
|
|
13515
13558
|
|
|
13559
|
+
- Add `R.filterAsync`
|
|
13516
13560
|
- Add `R.filterAsync`
|
|
13517
13561
|
|
|
13562
|
+
- Add `R.indexBy`
|
|
13518
13563
|
- Add `R.indexBy`
|
|
13519
13564
|
|
|
13565
|
+
- Restore `R.replaceAll`
|
|
13520
13566
|
- Restore `R.replaceAll`
|
|
13521
13567
|
|
|
13522
13568
|
- Remove option for `R.mapAsync` to be called outside of `R.pipeAsync`. This is done for consistency as all other methods follow this rule, i.e. they are all curried.
|
|
13523
13569
|
|
|
13570
|
+
- Fix `R.pluck` to work without `R.pipe`
|
|
13571
|
+
- Remove option for `R.mapAsync` to be called outside of `R.pipeAsync`. This is done for consistency as all other methods follow this rule, i.e. they are all curried.
|
|
13572
|
+
|
|
13524
13573
|
- Fix `R.pluck` to work without `R.pipe`
|
|
13525
13574
|
|
|
13526
13575
|
10.2.0
|
|
@@ -13984,258 +14033,6 @@ Add the following methods:
|
|
|
13984
14033
|
|
|
13985
14034
|
- change order of `R.propEq` - [Ramda MR](https://github.com/ramda/ramda/pull/2938/files)
|
|
13986
14035
|
|
|
13987
|
-
7.5.0
|
|
13988
|
-
|
|
13989
|
-
- IMPORTANT: Remove `export` property in `package.json` in order to allow `Rambda` support for projects with `"type": "module"` in `package.json` - [Issue #667](https://github.com/selfrefactor/rambda/issues/657)
|
|
13990
|
-
|
|
13991
|
-
- Add `R.unnest` - [Rambdax issue 89](https://github.com/selfrefactor/rambdax/issues/89)
|
|
13992
|
-
|
|
13993
|
-
- `R.uniq` is not using `R.equals` as Ramda does - [Issue #88](https://github.com/selfrefactor/rambdax/issues/88)
|
|
13994
|
-
|
|
13995
|
-
- Fix `R.path(['non','existing','path'], obj)` TS definition as 7.4.0 release caused TS errors - [Issue #668](https://github.com/selfrefactor/rambda/issues/668)
|
|
13996
|
-
|
|
13997
|
-
7.4.0
|
|
13998
|
-
|
|
13999
|
-
- Synchronize with `@types/ramda` - `R.prop`, `R.path`, `R.pickAll`
|
|
14000
|
-
|
|
14001
|
-
- Remove `esm` Rollup output due to tree-shaking issues.
|
|
14002
|
-
|
|
14003
|
-
- Upgrade all dev dependencies.
|
|
14004
|
-
|
|
14005
|
-
7.3.0
|
|
14006
|
-
|
|
14007
|
-
- Important - changing import declaration in `package.json` in order to fix tree-shaking issue - [Issue #647](https://github.com/selfrefactor/rambda/issues/647)
|
|
14008
|
-
|
|
14009
|
-
- Add `R.modify`
|
|
14010
|
-
|
|
14011
|
-
- Allow multiple inputs in TypeScript versions of `R.anyPass` and `R.allPass` - [Issue #642](https://github.com/selfrefactor/rambda/issues/604)
|
|
14012
|
-
|
|
14013
|
-
- Using wrong clone of object in `R.mergeDeepRight` - [Issue #650](https://github.com/selfrefactor/rambda/issues/650)
|
|
14014
|
-
|
|
14015
|
-
- Missing early return in `R.where` - [Issue #648](https://github.com/selfrefactor/rambda/issues/648)
|
|
14016
|
-
|
|
14017
|
-
- `R.allPass` doesn't accept more than 1 parameters for function predicates- [Issue #604](https://github.com/selfrefactor/rambda/issues/604)
|
|
14018
|
-
|
|
14019
|
-
7.2.1
|
|
14020
|
-
|
|
14021
|
-
- Remove bad typings of `R.propIs` which caused the library to cannot be build with TypeScript.
|
|
14022
|
-
|
|
14023
|
-
- Drop support for `Wallaby` as per [https://github.com/wallabyjs/public/issues/3037](https://github.com/wallabyjs/public/issues/3037)
|
|
14024
|
-
|
|
14025
|
-
7.2.0
|
|
14026
|
-
|
|
14027
|
-
- Wrong `R.update` if index is `-1` - [PR #593](https://github.com/selfrefactor/rambda/pull/593)
|
|
14028
|
-
|
|
14029
|
-
- Wrong curried typings in `R.anyPass` - [Issue #642](https://github.com/selfrefactor/rambda/issues/642)
|
|
14030
|
-
|
|
14031
|
-
- `R.modifyPath` not exported - [Issue #640](https://github.com/selfrefactor/rambda/issues/640)
|
|
14032
|
-
|
|
14033
|
-
- Add new method `R.uniqBy`. Implementation is coming from [Ramda MR#2641](https://github.com/ramda/ramda/pull/2641)
|
|
14034
|
-
|
|
14035
|
-
- Apply the following changes from `@types/rambda`:
|
|
14036
|
-
|
|
14037
|
-
-- [https://github.com/DefinitelyTyped/DefinitelyTyped/commit/bab47272d52fc7bb81e85da36dbe9c905a04d067](add `AnyFunction` and `AnyConstructor`)
|
|
14038
|
-
|
|
14039
|
-
-- Improve `R.ifElse` typings - https://github.com/DefinitelyTyped/DefinitelyTyped/pull/59291
|
|
14040
|
-
|
|
14041
|
-
-- Make `R.propEq` safe for `null/undefined` arguments - https://github.com/ramda/ramda/pull/2594/files
|
|
14042
|
-
|
|
14043
|
-
7.1.4
|
|
14044
|
-
|
|
14045
|
-
- `R.mergeRight` not found on `Deno` import - [Issue #633](https://github.com/selfrefactor/rambda/issues/633)
|
|
14046
|
-
|
|
14047
|
-
7.1.0
|
|
14048
|
-
|
|
14049
|
-
- Add `R.mergeRight` - introduced by Ramda's latest release. While Ramda renames `R.merge`, Rambda will keep `R.merge`.
|
|
14050
|
-
|
|
14051
|
-
- Rambda's `pipe/compose` doesn't return proper length of composed function which leads to issue with `R.applySpec`. It was fixed by using Ramda's `pipe/compose` logic - [Issue #627](https://github.com/selfrefactor/rambda/issues/627)
|
|
14052
|
-
|
|
14053
|
-
- Replace `Async` with `Promise` as return type of `R.type`.
|
|
14054
|
-
|
|
14055
|
-
- Add new types as TypeScript output for `R.type` - "Map", "WeakMap", "Generator", "GeneratorFunction", "BigInt", "ArrayBuffer"
|
|
14056
|
-
|
|
14057
|
-
- Add `R.juxt` method
|
|
14058
|
-
|
|
14059
|
-
- Add `R.propSatisfies` method
|
|
14060
|
-
|
|
14061
|
-
- Add new methods after `Ramda` version upgrade to `0.28.0`:
|
|
14062
|
-
|
|
14063
|
-
-- R.count
|
|
14064
|
-
-- R.modifyPath
|
|
14065
|
-
-- R.on
|
|
14066
|
-
-- R.whereAny
|
|
14067
|
-
-- R.partialObject
|
|
14068
|
-
|
|
14069
|
-
7.0.3
|
|
14070
|
-
|
|
14071
|
-
Rambda.none has wrong logic introduced in version `7.0.0` - [Issue #625](https://github.com/selfrefactor/rambda/issues/625)
|
|
14072
|
-
|
|
14073
|
-
7.0.2
|
|
14074
|
-
|
|
14075
|
-
Rambda doesn't work with `pnpm` due to wrong export configuration - [Issue #619](https://github.com/selfrefactor/rambda/issues/619)
|
|
14076
|
-
|
|
14077
|
-
7.0.1
|
|
14078
|
-
|
|
14079
|
-
- Wrong ESM export configuration in `package.json` - [Issue #614](https://github.com/selfrefactor/rambda/issues/614)
|
|
14080
|
-
|
|
14081
|
-
7.0.0
|
|
14082
|
-
|
|
14083
|
-
- Breaking change - sync `R.compose`/`R.pipe` with `@types/ramda`. That is significant change so as safeguard, it will lead a major bump. Important - this lead to raising required TypeScript version to `4.2.2`. In other words, to use `Rambda` you'll need TypeScript version `4.2.2` or newer.
|
|
14084
|
-
|
|
14085
|
-
Related commit in `@types/ramda` - https://github.com/DefinitelyTyped/DefinitelyTyped/commit/286eff4f76d41eb8f091e7437eabd8a60d97fc1f#diff-4f74803fa83a81e47cb17a7d8a4e46a7e451f4d9e5ce2f1bd7a70a72d91f4bc1
|
|
14086
|
-
|
|
14087
|
-
There are several other changes in `@types/ramda` as stated in [this comment](https://github.com/ramda/ramda/issues/2976#issuecomment-990408945). This leads to change of typings for the following methods in **Rambda**:
|
|
14088
|
-
|
|
14089
|
-
-- R.unless
|
|
14090
|
-
|
|
14091
|
-
-- R.toString
|
|
14092
|
-
|
|
14093
|
-
-- R.ifElse
|
|
14094
|
-
|
|
14095
|
-
-- R.always
|
|
14096
|
-
|
|
14097
|
-
-- R.complement
|
|
14098
|
-
|
|
14099
|
-
-- R.cond
|
|
14100
|
-
|
|
14101
|
-
-- R.is
|
|
14102
|
-
|
|
14103
|
-
-- R.sortBy
|
|
14104
|
-
|
|
14105
|
-
-- R.dissoc
|
|
14106
|
-
|
|
14107
|
-
-- R.toPairs
|
|
14108
|
-
|
|
14109
|
-
-- R.assoc
|
|
14110
|
-
|
|
14111
|
-
-- R.toLower
|
|
14112
|
-
|
|
14113
|
-
-- R.toUpper
|
|
14114
|
-
|
|
14115
|
-
- One more reason for the breaking change is changing of export declarations in `package.json` based on [this blog post](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing) and [this merged Ramda's PR](https://github.com/ramda/ramda/pull/2999). This also led to renaming of `babel.config.js` to `babel.config.cjs`.
|
|
14116
|
-
|
|
14117
|
-
- Add `R.apply`, `R.bind` and `R.unapply`
|
|
14118
|
-
|
|
14119
|
-
- `R.startsWith/R.endsWith` now support lists as inputs. This way, it matches current Ramda behavior.
|
|
14120
|
-
|
|
14121
|
-
- Remove unused typing for `R.chain`.
|
|
14122
|
-
|
|
14123
|
-
- `R.map`/`R.filter` no longer accept bad inputs as iterable. This way, Rambda behaves more like Ramda, which also throws.
|
|
14124
|
-
|
|
14125
|
-
- Make `R.lastIndexOf` follow the logic of `R.indexOf`.
|
|
14126
|
-
|
|
14127
|
-
- Change `R.type` logic to Ramda logic. This way, `R.type` can return `Error` and `Set` as results.
|
|
14128
|
-
|
|
14129
|
-
- Add missing logic in `R.equals` to compare sets - [Issue #599](https://github.com/selfrefactor/rambda/issues/599)
|
|
14130
|
-
|
|
14131
|
-
- Improve list cloning - [Issue #595](https://github.com/selfrefactor/rambda/issues/595)
|
|
14132
|
-
|
|
14133
|
-
- Handle multiple inputs with `R.allPass` and `R.anyPass` - [Issue #604](https://github.com/selfrefactor/rambda/issues/604)
|
|
14134
|
-
|
|
14135
|
-
- Fix `R.length` wrong logic with inputs as `{length: 123}` - [Issue #606](https://github.com/selfrefactor/rambda/issues/606).
|
|
14136
|
-
|
|
14137
|
-
- Improve non-curry typings of `R.merge` by using types from [mobily/ts-belt](https://github.com/mobily/ts-belt).
|
|
14138
|
-
|
|
14139
|
-
- Improve performance of `R.uniqWith`.
|
|
14140
|
-
|
|
14141
|
-
- Wrong `R.update` if index is `-1` - [PR #593](https://github.com/selfrefactor/rambda/pull/593)
|
|
14142
|
-
|
|
14143
|
-
- Make `R.eqProps` safe for falsy inputs - based on [this opened Ramda PR](https://github.com/ramda/ramda/pull/2943).
|
|
14144
|
-
|
|
14145
|
-
- Incorrect benchmarks for `R.pipe/R.compose` - [Issue #608](https://github.com/selfrefactor/rambda/issues/608)
|
|
14146
|
-
|
|
14147
|
-
- Fix `R.last/R.head` typings - [Issue #609](https://github.com/selfrefactor/rambda/issues/609)
|
|
14148
|
-
|
|
14149
|
-
6.9.0
|
|
14150
|
-
|
|
14151
|
-
- Fix slow `R.uniq` methods - [Issue #581](https://github.com/selfrefactor/rambda/issues/581)
|
|
14152
|
-
|
|
14153
|
-
Fixing `R.uniq` was done by improving `R.indexOf` which has performance implication to all methods importing `R.indexOf`:
|
|
14154
|
-
|
|
14155
|
-
- R.includes
|
|
14156
|
-
- R.intersection
|
|
14157
|
-
- R.difference
|
|
14158
|
-
- R.excludes
|
|
14159
|
-
- R.symmetricDifference
|
|
14160
|
-
- R.union
|
|
14161
|
-
|
|
14162
|
-
- R.without no longer support the following case - `without('0:1', ['0', '0:1']) // => ['0']`. Now it throws as the first argument should be a list, not a string. Ramda, on the other hand, returns an empty list - https://github.com/ramda/ramda/issues/3086.
|
|
14163
|
-
|
|
14164
|
-
6.8.3
|
|
14165
|
-
|
|
14166
|
-
- Fix TypeScript build process with `rambda/immutable` - [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
14167
|
-
|
|
14168
|
-
- Add `R.objOf` method
|
|
14169
|
-
|
|
14170
|
-
- Add `R.mapObjIndexed` method
|
|
14171
|
-
|
|
14172
|
-
- Publish shorter README.md version to NPM
|
|
14173
|
-
|
|
14174
|
-
6.8.0
|
|
14175
|
-
|
|
14176
|
-
- `R.has` use `Object.prototype.hasOwnProperty`- [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
14177
|
-
|
|
14178
|
-
- Expose `immutable.ts` typings which are Rambda typings with `readonly` statements - [Issue #565](https://github.com/selfrefactor/rambda/issues/565)
|
|
14179
|
-
|
|
14180
|
-
- Fix `R.intersection` wrong order compared to Ramda.
|
|
14181
|
-
|
|
14182
|
-
- `R.path` wrong return of `null` instead of `undefined` when path value is `null` - [PR #577](https://github.com/selfrefactor/rambda/pull/577)
|
|
14183
|
-
|
|
14184
|
-
6.7.0
|
|
14185
|
-
|
|
14186
|
-
- Remove `ts-toolbelt` types from TypeScript definitions. Most affected are the following methods, which lose one of its curried definitions:
|
|
14187
|
-
|
|
14188
|
-
1. R.maxBy
|
|
14189
|
-
2. R.minBy
|
|
14190
|
-
3. R.pathEq
|
|
14191
|
-
4. R.viewOr
|
|
14192
|
-
5. R.when
|
|
14193
|
-
6. R.merge
|
|
14194
|
-
7. R.mergeDeepRight
|
|
14195
|
-
8. R.mergeLeft
|
|
14196
|
-
|
|
14197
|
-
6.6.0
|
|
14198
|
-
|
|
14199
|
-
- Change `R.piped` typings to mimic that of `R.pipe`. Main difference is that `R.pipe` is focused on unary functions.
|
|
14200
|
-
|
|
14201
|
-
- Fix wrong logic when `R.without` use `R.includes` while it should use array version of `R.includes`.
|
|
14202
|
-
|
|
14203
|
-
- Use uglify plugin for UMD bundle.
|
|
14204
|
-
|
|
14205
|
-
- Remove `dist` folder from `.gitignore` in order to fix `Deno` broken package. [Issue #570](https://github.com/selfrefactor/rambda/issues/570)
|
|
14206
|
-
|
|
14207
|
-
- Improve `R.fromPairs` typings - [Issue #567](https://github.com/selfrefactor/rambda/issues/567)
|
|
14208
|
-
|
|
14209
|
-
6.5.3
|
|
14210
|
-
|
|
14211
|
-
- Wrong logic where `R.without` use `R.includes` while it should use the array version of `R.includes`
|
|
14212
|
-
|
|
14213
|
-
This is Ramda bug, that Rambda also has before this release - https://github.com/ramda/ramda/issues/3086
|
|
14214
|
-
|
|
14215
|
-
6.5.2
|
|
14216
|
-
|
|
14217
|
-
- Wrong `R.defaultTo` typings - changes introduced in v6.5.0 are missing their TS equivalent.
|
|
14218
|
-
|
|
14219
|
-
- Update dependencies
|
|
14220
|
-
|
|
14221
|
-
6.5.1
|
|
14222
|
-
|
|
14223
|
-
Fix wrong versions in changelog
|
|
14224
|
-
|
|
14225
|
-
6.5.0
|
|
14226
|
-
|
|
14227
|
-
- `R.defaultTo` no longer accepts infinite inputs, thus it follows Ramda implementation.
|
|
14228
|
-
|
|
14229
|
-
- `R.equals` supports equality of functions.
|
|
14230
|
-
|
|
14231
|
-
- `R.pipe` doesn't use `R.compose`.
|
|
14232
|
-
|
|
14233
|
-
- Close [Issue #561](https://github.com/selfrefactor/rambda/issues/561) - export several internal TS interfaces and types
|
|
14234
|
-
|
|
14235
|
-
- Close [Issue #559](https://github.com/selfrefactor/rambda/issues/559) - improve `R.propOr` typings
|
|
14236
|
-
|
|
14237
|
-
- Add `CHANGELOG.md` file in release files list
|
|
14238
|
-
|
|
14239
14036
|
> This is only part of the changelog. You can read the full text in [CHANGELOG.md](CHANGELOG.md) file.
|
|
14240
14037
|
|
|
14241
14038
|
[](#-changelog)
|
package/dist/rambda.cjs
CHANGED
package/dist/rambda.js
CHANGED
package/dist/rambda.umd.js
CHANGED
package/index.d.cts
CHANGED
|
@@ -428,8 +428,8 @@ export function head<T>(listOrString: T): T extends string ? string :
|
|
|
428
428
|
*
|
|
429
429
|
* If `input` is array, then `R.equals` is used to define if `valueToFind` belongs to the list.
|
|
430
430
|
*/
|
|
431
|
-
export function includes
|
|
432
|
-
export function includes<T>(
|
|
431
|
+
export function includes(s: string): (list: readonly string[] | string) => boolean;
|
|
432
|
+
export function includes<T>(target: T): (list: readonly T[]) => boolean;
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
435
|
* It transforms list of objects to object using specified property as the base for the returned object.
|
|
@@ -1773,7 +1773,7 @@ export function propEq<K extends keyof U, U>(val: U[K], name: K, obj: U): boolea
|
|
|
1773
1773
|
/**
|
|
1774
1774
|
* It returns either `defaultValue` or the value of `property` in `obj`.
|
|
1775
1775
|
*/
|
|
1776
|
-
export function propOr<T, P extends string>(
|
|
1776
|
+
export function propOr<T, P extends string>(property: P, defaultValue: T): (obj: Partial<Record<P, T>>) => T;
|
|
1777
1777
|
|
|
1778
1778
|
/**
|
|
1779
1779
|
* It returns `true` if the object property satisfies a given predicate.
|
package/index.d.ts
CHANGED
|
@@ -428,8 +428,8 @@ export function head<T>(listOrString: T): T extends string ? string :
|
|
|
428
428
|
*
|
|
429
429
|
* If `input` is array, then `R.equals` is used to define if `valueToFind` belongs to the list.
|
|
430
430
|
*/
|
|
431
|
-
export function includes
|
|
432
|
-
export function includes<T>(
|
|
431
|
+
export function includes(s: string): (list: readonly string[] | string) => boolean;
|
|
432
|
+
export function includes<T>(target: T): (list: readonly T[]) => boolean;
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
435
|
* It transforms list of objects to object using specified property as the base for the returned object.
|
|
@@ -1773,7 +1773,7 @@ export function propEq<K extends keyof U, U>(val: U[K], name: K, obj: U): boolea
|
|
|
1773
1773
|
/**
|
|
1774
1774
|
* It returns either `defaultValue` or the value of `property` in `obj`.
|
|
1775
1775
|
*/
|
|
1776
|
-
export function propOr<T, P extends string>(
|
|
1776
|
+
export function propOr<T, P extends string>(property: P, defaultValue: T): (obj: Partial<Record<P, T>>) => T;
|
|
1777
1777
|
|
|
1778
1778
|
/**
|
|
1779
1779
|
* It returns `true` if the object property satisfies a given predicate.
|
package/package.json
CHANGED