rambda 8.1.0 → 8.2.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 +34 -22
- package/README.md +432 -273
- package/dist/rambda.js +173 -75
- package/dist/rambda.umd.js +1 -1
- package/immutable.d.ts +26 -0
- package/index.d.ts +26 -0
- package/package.json +24 -24
- package/rambda.js +7 -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/descend.js +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
8.2.0
|
|
2
|
+
|
|
3
|
+
Add the following methods:
|
|
4
|
+
|
|
5
|
+
- addIndex
|
|
6
|
+
- addIndexRight
|
|
7
|
+
- ap
|
|
8
|
+
- aperture
|
|
9
|
+
- applyTo
|
|
10
|
+
- ascend
|
|
11
|
+
- descend
|
|
12
|
+
|
|
1
13
|
8.1.0
|
|
2
14
|
|
|
3
|
-
- Fix input order of TS definitions for `R.propEq` method - [Issue #688](https://github.com/selfrefactor/rambda/issues/688)
|
|
15
|
+
- 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
16
|
|
|
5
17
|
- Add `R.differenceWith` method - [Issue #91](https://github.com/selfrefactor/rambdax/issues/91)
|
|
6
18
|
|
|
@@ -18,7 +30,7 @@
|
|
|
18
30
|
|
|
19
31
|
- `R.nop` is removed - it will be moved to `Rambdax` as `R.noop`
|
|
20
32
|
|
|
21
|
-
- `R.includes` is no longer using string literal in
|
|
33
|
+
- `R.includes` is no longer using string literal in TypeScript definitions
|
|
22
34
|
|
|
23
35
|
> Reason for breaking change - synchronize with Ramda `0.29.0` release:
|
|
24
36
|
|
|
@@ -49,7 +61,7 @@
|
|
|
49
61
|
|
|
50
62
|
- Add `R.modify`
|
|
51
63
|
|
|
52
|
-
- Allow multiple inputs in
|
|
64
|
+
- Allow multiple inputs in TypeScript versions of `R.anyPass` and `R.allPass` - [Issue #642](https://github.com/selfrefactor/rambda/issues/604)
|
|
53
65
|
|
|
54
66
|
- Using wrong clone of object in `R.mergeDeepRight` - [Issue #650](https://github.com/selfrefactor/rambda/issues/650)
|
|
55
67
|
|
|
@@ -59,7 +71,7 @@
|
|
|
59
71
|
|
|
60
72
|
7.2.1
|
|
61
73
|
|
|
62
|
-
- Remove bad typings of `R.propIs` which caused the library to cannot be build with
|
|
74
|
+
- Remove bad typings of `R.propIs` which caused the library to cannot be build with TypeScript.
|
|
63
75
|
|
|
64
76
|
- Drop support for `Wallaby` as per [https://github.com/wallabyjs/public/issues/3037](https://github.com/wallabyjs/public/issues/3037)
|
|
65
77
|
|
|
@@ -93,7 +105,7 @@
|
|
|
93
105
|
|
|
94
106
|
- Replace `Async` with `Promise` as return type of `R.type`.
|
|
95
107
|
|
|
96
|
-
- Add new types as
|
|
108
|
+
- Add new types as TypeScript output for `R.type` - "Map", "WeakMap", "Generator", "GeneratorFunction", "BigInt", "ArrayBuffer"
|
|
97
109
|
|
|
98
110
|
- Add `R.juxt` method
|
|
99
111
|
|
|
@@ -121,7 +133,7 @@ Rambda doesn't work with `pnpm` due to wrong export configuration - [Issue #619]
|
|
|
121
133
|
|
|
122
134
|
7.0.0
|
|
123
135
|
|
|
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
|
|
136
|
+
- 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
137
|
|
|
126
138
|
Related commit in `@types/ramda` - https://github.com/DefinitelyTyped/DefinitelyTyped/commit/286eff4f76d41eb8f091e7437eabd8a60d97fc1f#diff-4f74803fa83a81e47cb17a7d8a4e46a7e451f4d9e5ce2f1bd7a70a72d91f4bc1
|
|
127
139
|
|
|
@@ -204,7 +216,7 @@ Fixing `R.uniq` was done by improving `R.indexOf` which has performance implicat
|
|
|
204
216
|
|
|
205
217
|
6.8.3
|
|
206
218
|
|
|
207
|
-
- Fix
|
|
219
|
+
- Fix TypeScript build process with `rambda/immutable` - [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
208
220
|
|
|
209
221
|
- Add `R.objOf` method
|
|
210
222
|
|
|
@@ -224,7 +236,7 @@ Fixing `R.uniq` was done by improving `R.indexOf` which has performance implicat
|
|
|
224
236
|
|
|
225
237
|
6.7.0
|
|
226
238
|
|
|
227
|
-
- Remove `ts-toolbelt` types from
|
|
239
|
+
- Remove `ts-toolbelt` types from TypeScript definitions. Most affected are the following methods, which lose one of its curried definitions:
|
|
228
240
|
|
|
229
241
|
1. R.maxBy
|
|
230
242
|
2. R.minBy
|
|
@@ -279,7 +291,7 @@ Fix wrong versions in changelog
|
|
|
279
291
|
|
|
280
292
|
6.4.0
|
|
281
293
|
|
|
282
|
-
- Close [Issue #560](https://github.com/selfrefactor/rambda/issues/560) - apply immutable lint to
|
|
294
|
+
- Close [Issue #560](https://github.com/selfrefactor/rambda/issues/560) - apply immutable lint to TypeScript definitions
|
|
283
295
|
|
|
284
296
|
- Close [Issue #553](https://github.com/selfrefactor/rambda/issues/553) - fix problem with curried typings of `R.prop`
|
|
285
297
|
|
|
@@ -297,7 +309,7 @@ Fix wrong versions in changelog
|
|
|
297
309
|
|
|
298
310
|
6.3.1
|
|
299
311
|
|
|
300
|
-
- Fix missing `Evolved` declaration in
|
|
312
|
+
- Fix missing `Evolved` declaration in TypeScript definition
|
|
301
313
|
|
|
302
314
|
6.3.0
|
|
303
315
|
|
|
@@ -327,7 +339,7 @@ Fix wrong versions in changelog
|
|
|
327
339
|
|
|
328
340
|
- Add `R.splitWhen`
|
|
329
341
|
|
|
330
|
-
- Close [Issue #547](https://github.com/selfrefactor/rambda/issues/547) - restore `readonly` declaration in
|
|
342
|
+
- Close [Issue #547](https://github.com/selfrefactor/rambda/issues/547) - restore `readonly` declaration in TypeScript definitions.
|
|
331
343
|
|
|
332
344
|
- `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
345
|
|
|
@@ -357,7 +369,7 @@ Fix wrong versions in changelog
|
|
|
357
369
|
|
|
358
370
|
- Simplify `R.forEach` typings
|
|
359
371
|
|
|
360
|
-
- Remove `ReadonlyArray<T>` pattern from
|
|
372
|
+
- Remove `ReadonlyArray<T>` pattern from TypeScript definitions - not enough value for the noise it adds.
|
|
361
373
|
|
|
362
374
|
5.13.1
|
|
363
375
|
|
|
@@ -432,7 +444,7 @@ Close [Issue #510](https://github.com/selfrefactor/rambda/issues/510) - `R.clamp
|
|
|
432
444
|
|
|
433
445
|
- `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
446
|
|
|
435
|
-
Add index as additional argument to the
|
|
447
|
+
Add index as additional argument to the TypeScript definitions of the following methods:
|
|
436
448
|
|
|
437
449
|
- R.all
|
|
438
450
|
- R.find
|
|
@@ -524,7 +536,7 @@ Also restore `R.converge`, `R.findLast`, `R.findLastIndex` and `R.curryN` as I h
|
|
|
524
536
|
|
|
525
537
|
- 5.2.1
|
|
526
538
|
|
|
527
|
-
Fix
|
|
539
|
+
Fix TypeScript comment for every method
|
|
528
540
|
|
|
529
541
|
- 5.2.0
|
|
530
542
|
|
|
@@ -544,7 +556,7 @@ Close [Issue #411](https://github.com/selfrefactor/rambda/issues/411) - change t
|
|
|
544
556
|
|
|
545
557
|
Move `R.partialCurry` to Rambdax(reason for major bump).
|
|
546
558
|
|
|
547
|
-
Use new type of export in
|
|
559
|
+
Use new type of export in TypeScript definitions.
|
|
548
560
|
|
|
549
561
|
Approve [PR #381](https://github.com/selfrefactor/rambda/pull/381) - add `R.applySpec`
|
|
550
562
|
|
|
@@ -668,7 +680,7 @@ Close [issue #287](https://github.com/selfrefactor/rambda/issues/287) - `ts-tool
|
|
|
668
680
|
|
|
669
681
|
Close [issue #273](https://github.com/selfrefactor/rambda/issues/273) - ts-toolbelt needs other type of export when `isolatedModules` TypeScript property
|
|
670
682
|
|
|
671
|
-
Close [issue #245](https://github.com/selfrefactor/rambda/issues/245) - complete typings tests for methods that have more specific
|
|
683
|
+
Close [issue #245](https://github.com/selfrefactor/rambda/issues/245) - complete typings tests for methods that have more specific TypeScript definitions
|
|
672
684
|
|
|
673
685
|
- 3.2.1 Fast fix for [issue #273](https://github.com/selfrefactor/rambda/issues/273) - messed up typings
|
|
674
686
|
|
|
@@ -680,7 +692,7 @@ Add `R.partialCurry` typings.
|
|
|
680
692
|
|
|
681
693
|
Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.slice` method.
|
|
682
694
|
|
|
683
|
-
- 3.1.0 This might be breaking change for
|
|
695
|
+
- 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
696
|
|
|
685
697
|
- `R.either` and `R.both` supports multiple arguments as they should.
|
|
686
698
|
|
|
@@ -712,7 +724,7 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
712
724
|
|
|
713
725
|
- 2.10.2 Close [issue #175](https://github.com/selfrefactor/rambda/issues/175) - missing typescript file
|
|
714
726
|
|
|
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
|
|
727
|
+
- 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
728
|
|
|
717
729
|
- 2.9.0 `R.toPairs` and `R.fromPairs`
|
|
718
730
|
|
|
@@ -740,7 +752,7 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
740
752
|
|
|
741
753
|
- 1.2.6 Use `src` folder instead of `modules`
|
|
742
754
|
- 1.2.5 Fix `omit` typing
|
|
743
|
-
- 1.2.4 Add missing
|
|
755
|
+
- 1.2.4 Add missing TypeScript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82)
|
|
744
756
|
- 1.2.2 Change curry method used across most of library methods
|
|
745
757
|
- 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
758
|
- 1.2.0 Add `R.min`, `R.minBy`, `R.max`, `R.maxBy`, `R.nth` and `R.keys`
|
|
@@ -762,14 +774,14 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
762
774
|
- 1.0.4 Close [issue #50](https://github.com/selfrefactor/rambda/issues/50) - add `R.pipe` typings
|
|
763
775
|
- 1.0.3 `R.ifElse` accept also boolean as condition argument
|
|
764
776
|
- 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
|
|
777
|
+
- 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
778
|
- 0.9.8 Revert to ES5 compatible build - [issue #46](https://github.com/selfrefactor/rambda/issues/46)
|
|
767
779
|
- 0.9.7 Refactor for `Rollup` tree-shake | Remove `R.padEnd` and `R.padStart`
|
|
768
780
|
- 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
|
|
781
|
+
- 0.9.5 Close [issue #45](https://github.com/selfrefactor/rambda/issues/45) - invalid TypeScript typings
|
|
770
782
|
- 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
783
|
- 0.9.3 Add `R.forEach` and `R.times`
|
|
772
|
-
- 0.9.2 Add `
|
|
784
|
+
- 0.9.2 Add `TypeScript` definitions
|
|
773
785
|
- 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
786
|
- 0.9.0 Add `R.pipe` [PR#35](https://github.com/selfrefactor/rambda/pull/35)
|
|
775
787
|
- 0.8.9 Add `R.isNil`
|