rambda 8.1.0 → 8.3.0
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 +44 -22
- package/README.md +467 -290
- package/dist/rambda.js +255 -152
- package/dist/rambda.umd.js +1 -1
- package/immutable.d.ts +52 -11
- package/index.d.ts +52 -11
- package/package.json +25 -24
- package/rambda.js +12 -0
- package/src/_internals/_arity.js +64 -0
- package/src/_internals/utils.js +21 -0
- package/src/addIndex.js +23 -0
- package/src/addIndexRight.js +9 -0
- package/src/ap.js +7 -0
- package/src/aperture.js +15 -0
- package/src/applyTo.js +7 -0
- package/src/ascend.js +23 -0
- package/src/binary.js +5 -0
- package/src/call.js +1 -0
- package/src/collectBy.js +27 -0
- package/src/comparator.js +5 -0
- package/src/composeWith.js +33 -0
- package/src/curryN.js +2 -65
- package/src/descend.js +17 -0
- package/src/pipe.js +1 -67
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
|
+
8.3.0
|
|
2
|
+
|
|
3
|
+
Add the following methods:
|
|
4
|
+
|
|
5
|
+
- binary
|
|
6
|
+
- call
|
|
7
|
+
- collectBy
|
|
8
|
+
- comparator
|
|
9
|
+
- composeWith
|
|
10
|
+
|
|
11
|
+
8.2.0
|
|
12
|
+
|
|
13
|
+
Add the following methods:
|
|
14
|
+
|
|
15
|
+
- addIndex
|
|
16
|
+
- addIndexRight
|
|
17
|
+
- ap
|
|
18
|
+
- aperture
|
|
19
|
+
- applyTo
|
|
20
|
+
- ascend
|
|
21
|
+
- descend
|
|
22
|
+
|
|
1
23
|
8.1.0
|
|
2
24
|
|
|
3
|
-
- Fix input order of TS definitions for `R.propEq` method - [Issue #688](https://github.com/selfrefactor/rambda/issues/688)
|
|
25
|
+
- Fix input order of TS definitions for `R.propEq` method - [Issue #688](https://github.com/selfrefactor/rambda/issues/688). The issue was due to 8.0.0 was shipped with TS definitions of `7.5.0` release.
|
|
4
26
|
|
|
5
27
|
- Add `R.differenceWith` method - [Issue #91](https://github.com/selfrefactor/rambdax/issues/91)
|
|
6
28
|
|
|
@@ -18,7 +40,7 @@
|
|
|
18
40
|
|
|
19
41
|
- `R.nop` is removed - it will be moved to `Rambdax` as `R.noop`
|
|
20
42
|
|
|
21
|
-
- `R.includes` is no longer using string literal in
|
|
43
|
+
- `R.includes` is no longer using string literal in TypeScript definitions
|
|
22
44
|
|
|
23
45
|
> Reason for breaking change - synchronize with Ramda `0.29.0` release:
|
|
24
46
|
|
|
@@ -49,7 +71,7 @@
|
|
|
49
71
|
|
|
50
72
|
- Add `R.modify`
|
|
51
73
|
|
|
52
|
-
- Allow multiple inputs in
|
|
74
|
+
- Allow multiple inputs in TypeScript versions of `R.anyPass` and `R.allPass` - [Issue #642](https://github.com/selfrefactor/rambda/issues/604)
|
|
53
75
|
|
|
54
76
|
- Using wrong clone of object in `R.mergeDeepRight` - [Issue #650](https://github.com/selfrefactor/rambda/issues/650)
|
|
55
77
|
|
|
@@ -59,7 +81,7 @@
|
|
|
59
81
|
|
|
60
82
|
7.2.1
|
|
61
83
|
|
|
62
|
-
- Remove bad typings of `R.propIs` which caused the library to cannot be build with
|
|
84
|
+
- Remove bad typings of `R.propIs` which caused the library to cannot be build with TypeScript.
|
|
63
85
|
|
|
64
86
|
- Drop support for `Wallaby` as per [https://github.com/wallabyjs/public/issues/3037](https://github.com/wallabyjs/public/issues/3037)
|
|
65
87
|
|
|
@@ -93,7 +115,7 @@
|
|
|
93
115
|
|
|
94
116
|
- Replace `Async` with `Promise` as return type of `R.type`.
|
|
95
117
|
|
|
96
|
-
- Add new types as
|
|
118
|
+
- Add new types as TypeScript output for `R.type` - "Map", "WeakMap", "Generator", "GeneratorFunction", "BigInt", "ArrayBuffer"
|
|
97
119
|
|
|
98
120
|
- Add `R.juxt` method
|
|
99
121
|
|
|
@@ -121,7 +143,7 @@ Rambda doesn't work with `pnpm` due to wrong export configuration - [Issue #619]
|
|
|
121
143
|
|
|
122
144
|
7.0.0
|
|
123
145
|
|
|
124
|
-
- 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
|
|
146
|
+
- 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.
|
|
125
147
|
|
|
126
148
|
Related commit in `@types/ramda` - https://github.com/DefinitelyTyped/DefinitelyTyped/commit/286eff4f76d41eb8f091e7437eabd8a60d97fc1f#diff-4f74803fa83a81e47cb17a7d8a4e46a7e451f4d9e5ce2f1bd7a70a72d91f4bc1
|
|
127
149
|
|
|
@@ -204,7 +226,7 @@ Fixing `R.uniq` was done by improving `R.indexOf` which has performance implicat
|
|
|
204
226
|
|
|
205
227
|
6.8.3
|
|
206
228
|
|
|
207
|
-
- Fix
|
|
229
|
+
- Fix TypeScript build process with `rambda/immutable` - [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
208
230
|
|
|
209
231
|
- Add `R.objOf` method
|
|
210
232
|
|
|
@@ -224,7 +246,7 @@ Fixing `R.uniq` was done by improving `R.indexOf` which has performance implicat
|
|
|
224
246
|
|
|
225
247
|
6.7.0
|
|
226
248
|
|
|
227
|
-
- Remove `ts-toolbelt` types from
|
|
249
|
+
- Remove `ts-toolbelt` types from TypeScript definitions. Most affected are the following methods, which lose one of its curried definitions:
|
|
228
250
|
|
|
229
251
|
1. R.maxBy
|
|
230
252
|
2. R.minBy
|
|
@@ -279,7 +301,7 @@ Fix wrong versions in changelog
|
|
|
279
301
|
|
|
280
302
|
6.4.0
|
|
281
303
|
|
|
282
|
-
- Close [Issue #560](https://github.com/selfrefactor/rambda/issues/560) - apply immutable lint to
|
|
304
|
+
- Close [Issue #560](https://github.com/selfrefactor/rambda/issues/560) - apply immutable lint to TypeScript definitions
|
|
283
305
|
|
|
284
306
|
- Close [Issue #553](https://github.com/selfrefactor/rambda/issues/553) - fix problem with curried typings of `R.prop`
|
|
285
307
|
|
|
@@ -297,7 +319,7 @@ Fix wrong versions in changelog
|
|
|
297
319
|
|
|
298
320
|
6.3.1
|
|
299
321
|
|
|
300
|
-
- Fix missing `Evolved` declaration in
|
|
322
|
+
- Fix missing `Evolved` declaration in TypeScript definition
|
|
301
323
|
|
|
302
324
|
6.3.0
|
|
303
325
|
|
|
@@ -327,7 +349,7 @@ Fix wrong versions in changelog
|
|
|
327
349
|
|
|
328
350
|
- Add `R.splitWhen`
|
|
329
351
|
|
|
330
|
-
- Close [Issue #547](https://github.com/selfrefactor/rambda/issues/547) - restore `readonly` declaration in
|
|
352
|
+
- Close [Issue #547](https://github.com/selfrefactor/rambda/issues/547) - restore `readonly` declaration in TypeScript definitions.
|
|
331
353
|
|
|
332
354
|
- `R.append`/`R.prepend` now work only with arrays just like Ramda. Previous behaviour was for them to work with both arrays and strings.
|
|
333
355
|
|
|
@@ -357,7 +379,7 @@ Fix wrong versions in changelog
|
|
|
357
379
|
|
|
358
380
|
- Simplify `R.forEach` typings
|
|
359
381
|
|
|
360
|
-
- Remove `ReadonlyArray<T>` pattern from
|
|
382
|
+
- Remove `ReadonlyArray<T>` pattern from TypeScript definitions - not enough value for the noise it adds.
|
|
361
383
|
|
|
362
384
|
5.13.1
|
|
363
385
|
|
|
@@ -432,7 +454,7 @@ Close [Issue #510](https://github.com/selfrefactor/rambda/issues/510) - `R.clamp
|
|
|
432
454
|
|
|
433
455
|
- `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.
|
|
434
456
|
|
|
435
|
-
Add index as additional argument to the
|
|
457
|
+
Add index as additional argument to the TypeScript definitions of the following methods:
|
|
436
458
|
|
|
437
459
|
- R.all
|
|
438
460
|
- R.find
|
|
@@ -524,7 +546,7 @@ Also restore `R.converge`, `R.findLast`, `R.findLastIndex` and `R.curryN` as I h
|
|
|
524
546
|
|
|
525
547
|
- 5.2.1
|
|
526
548
|
|
|
527
|
-
Fix
|
|
549
|
+
Fix TypeScript comment for every method
|
|
528
550
|
|
|
529
551
|
- 5.2.0
|
|
530
552
|
|
|
@@ -544,7 +566,7 @@ Close [Issue #411](https://github.com/selfrefactor/rambda/issues/411) - change t
|
|
|
544
566
|
|
|
545
567
|
Move `R.partialCurry` to Rambdax(reason for major bump).
|
|
546
568
|
|
|
547
|
-
Use new type of export in
|
|
569
|
+
Use new type of export in TypeScript definitions.
|
|
548
570
|
|
|
549
571
|
Approve [PR #381](https://github.com/selfrefactor/rambda/pull/381) - add `R.applySpec`
|
|
550
572
|
|
|
@@ -668,7 +690,7 @@ Close [issue #287](https://github.com/selfrefactor/rambda/issues/287) - `ts-tool
|
|
|
668
690
|
|
|
669
691
|
Close [issue #273](https://github.com/selfrefactor/rambda/issues/273) - ts-toolbelt needs other type of export when `isolatedModules` TypeScript property
|
|
670
692
|
|
|
671
|
-
Close [issue #245](https://github.com/selfrefactor/rambda/issues/245) - complete typings tests for methods that have more specific
|
|
693
|
+
Close [issue #245](https://github.com/selfrefactor/rambda/issues/245) - complete typings tests for methods that have more specific TypeScript definitions
|
|
672
694
|
|
|
673
695
|
- 3.2.1 Fast fix for [issue #273](https://github.com/selfrefactor/rambda/issues/273) - messed up typings
|
|
674
696
|
|
|
@@ -680,7 +702,7 @@ Add `R.partialCurry` typings.
|
|
|
680
702
|
|
|
681
703
|
Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.slice` method.
|
|
682
704
|
|
|
683
|
-
- 3.1.0 This might be breaking change for
|
|
705
|
+
- 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.
|
|
684
706
|
|
|
685
707
|
- `R.either` and `R.both` supports multiple arguments as they should.
|
|
686
708
|
|
|
@@ -712,7 +734,7 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
712
734
|
|
|
713
735
|
- 2.10.2 Close [issue #175](https://github.com/selfrefactor/rambda/issues/175) - missing typescript file
|
|
714
736
|
|
|
715
|
-
- 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
|
|
737
|
+
- 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
|
|
716
738
|
|
|
717
739
|
- 2.9.0 `R.toPairs` and `R.fromPairs`
|
|
718
740
|
|
|
@@ -740,7 +762,7 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
740
762
|
|
|
741
763
|
- 1.2.6 Use `src` folder instead of `modules`
|
|
742
764
|
- 1.2.5 Fix `omit` typing
|
|
743
|
-
- 1.2.4 Add missing
|
|
765
|
+
- 1.2.4 Add missing TypeScript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82)
|
|
744
766
|
- 1.2.2 Change curry method used across most of library methods
|
|
745
767
|
- 1.2.1 Add `R.assoc` | fix passing `undefined` to `R.map` and `R.merge` [issue #77](https://github.com/selfrefactor/rambda/issues/77)
|
|
746
768
|
- 1.2.0 Add `R.min`, `R.minBy`, `R.max`, `R.maxBy`, `R.nth` and `R.keys`
|
|
@@ -762,14 +784,14 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
762
784
|
- 1.0.4 Close [issue #50](https://github.com/selfrefactor/rambda/issues/50) - add `R.pipe` typings
|
|
763
785
|
- 1.0.3 `R.ifElse` accept also boolean as condition argument
|
|
764
786
|
- 1.0.2 Remove `typedDefaultTo` and `typedPathOr` | Add `R.pickAll` and `R.none`
|
|
765
|
-
- 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
|
|
787
|
+
- 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
|
|
766
788
|
- 0.9.8 Revert to ES5 compatible build - [issue #46](https://github.com/selfrefactor/rambda/issues/46)
|
|
767
789
|
- 0.9.7 Refactor for `Rollup` tree-shake | Remove `R.padEnd` and `R.padStart`
|
|
768
790
|
- 0.9.6 Close [issue #44](https://github.com/selfrefactor/rambda/issues/44) - `R.reverse` mutates the array
|
|
769
|
-
- 0.9.5 Close [issue #45](https://github.com/selfrefactor/rambda/issues/45) - invalid
|
|
791
|
+
- 0.9.5 Close [issue #45](https://github.com/selfrefactor/rambda/issues/45) - invalid TypeScript typings
|
|
770
792
|
- 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)
|
|
771
793
|
- 0.9.3 Add `R.forEach` and `R.times`
|
|
772
|
-
- 0.9.2 Add `
|
|
794
|
+
- 0.9.2 Add `TypeScript` definitions
|
|
773
795
|
- 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`.
|
|
774
796
|
- 0.9.0 Add `R.pipe` [PR#35](https://github.com/selfrefactor/rambda/pull/35)
|
|
775
797
|
- 0.8.9 Add `R.isNil`
|