rambda 8.0.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 +39 -21
- package/README.md +793 -526
- package/dist/rambda.js +188 -75
- package/dist/rambda.umd.js +1 -1
- package/immutable.d.ts +60 -26
- package/index.d.ts +60 -26
- package/package.json +24 -25
- package/rambda.js +8 -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/src/differenceWith.js +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
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
|
+
|
|
13
|
+
8.1.0
|
|
14
|
+
|
|
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.
|
|
16
|
+
|
|
17
|
+
- Add `R.differenceWith` method - [Issue #91](https://github.com/selfrefactor/rambdax/issues/91)
|
|
18
|
+
|
|
1
19
|
8.0.0
|
|
2
20
|
|
|
3
21
|
- handle falsy values in merge methods - https://github.com/ramda/ramda/pull/3222
|
|
@@ -12,7 +30,7 @@
|
|
|
12
30
|
|
|
13
31
|
- `R.nop` is removed - it will be moved to `Rambdax` as `R.noop`
|
|
14
32
|
|
|
15
|
-
- `R.includes` is no longer using string literal in
|
|
33
|
+
- `R.includes` is no longer using string literal in TypeScript definitions
|
|
16
34
|
|
|
17
35
|
> Reason for breaking change - synchronize with Ramda `0.29.0` release:
|
|
18
36
|
|
|
@@ -43,7 +61,7 @@
|
|
|
43
61
|
|
|
44
62
|
- Add `R.modify`
|
|
45
63
|
|
|
46
|
-
- 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)
|
|
47
65
|
|
|
48
66
|
- Using wrong clone of object in `R.mergeDeepRight` - [Issue #650](https://github.com/selfrefactor/rambda/issues/650)
|
|
49
67
|
|
|
@@ -53,7 +71,7 @@
|
|
|
53
71
|
|
|
54
72
|
7.2.1
|
|
55
73
|
|
|
56
|
-
- 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.
|
|
57
75
|
|
|
58
76
|
- Drop support for `Wallaby` as per [https://github.com/wallabyjs/public/issues/3037](https://github.com/wallabyjs/public/issues/3037)
|
|
59
77
|
|
|
@@ -87,7 +105,7 @@
|
|
|
87
105
|
|
|
88
106
|
- Replace `Async` with `Promise` as return type of `R.type`.
|
|
89
107
|
|
|
90
|
-
- Add new types as
|
|
108
|
+
- Add new types as TypeScript output for `R.type` - "Map", "WeakMap", "Generator", "GeneratorFunction", "BigInt", "ArrayBuffer"
|
|
91
109
|
|
|
92
110
|
- Add `R.juxt` method
|
|
93
111
|
|
|
@@ -115,7 +133,7 @@ Rambda doesn't work with `pnpm` due to wrong export configuration - [Issue #619]
|
|
|
115
133
|
|
|
116
134
|
7.0.0
|
|
117
135
|
|
|
118
|
-
- 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.
|
|
119
137
|
|
|
120
138
|
Related commit in `@types/ramda` - https://github.com/DefinitelyTyped/DefinitelyTyped/commit/286eff4f76d41eb8f091e7437eabd8a60d97fc1f#diff-4f74803fa83a81e47cb17a7d8a4e46a7e451f4d9e5ce2f1bd7a70a72d91f4bc1
|
|
121
139
|
|
|
@@ -198,7 +216,7 @@ Fixing `R.uniq` was done by improving `R.indexOf` which has performance implicat
|
|
|
198
216
|
|
|
199
217
|
6.8.3
|
|
200
218
|
|
|
201
|
-
- Fix
|
|
219
|
+
- Fix TypeScript build process with `rambda/immutable` - [Issue #572](https://github.com/selfrefactor/rambda/issues/572)
|
|
202
220
|
|
|
203
221
|
- Add `R.objOf` method
|
|
204
222
|
|
|
@@ -218,7 +236,7 @@ Fixing `R.uniq` was done by improving `R.indexOf` which has performance implicat
|
|
|
218
236
|
|
|
219
237
|
6.7.0
|
|
220
238
|
|
|
221
|
-
- 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:
|
|
222
240
|
|
|
223
241
|
1. R.maxBy
|
|
224
242
|
2. R.minBy
|
|
@@ -273,7 +291,7 @@ Fix wrong versions in changelog
|
|
|
273
291
|
|
|
274
292
|
6.4.0
|
|
275
293
|
|
|
276
|
-
- 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
|
|
277
295
|
|
|
278
296
|
- Close [Issue #553](https://github.com/selfrefactor/rambda/issues/553) - fix problem with curried typings of `R.prop`
|
|
279
297
|
|
|
@@ -291,7 +309,7 @@ Fix wrong versions in changelog
|
|
|
291
309
|
|
|
292
310
|
6.3.1
|
|
293
311
|
|
|
294
|
-
- Fix missing `Evolved` declaration in
|
|
312
|
+
- Fix missing `Evolved` declaration in TypeScript definition
|
|
295
313
|
|
|
296
314
|
6.3.0
|
|
297
315
|
|
|
@@ -321,7 +339,7 @@ Fix wrong versions in changelog
|
|
|
321
339
|
|
|
322
340
|
- Add `R.splitWhen`
|
|
323
341
|
|
|
324
|
-
- 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.
|
|
325
343
|
|
|
326
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.
|
|
327
345
|
|
|
@@ -351,7 +369,7 @@ Fix wrong versions in changelog
|
|
|
351
369
|
|
|
352
370
|
- Simplify `R.forEach` typings
|
|
353
371
|
|
|
354
|
-
- Remove `ReadonlyArray<T>` pattern from
|
|
372
|
+
- Remove `ReadonlyArray<T>` pattern from TypeScript definitions - not enough value for the noise it adds.
|
|
355
373
|
|
|
356
374
|
5.13.1
|
|
357
375
|
|
|
@@ -426,7 +444,7 @@ Close [Issue #510](https://github.com/selfrefactor/rambda/issues/510) - `R.clamp
|
|
|
426
444
|
|
|
427
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.
|
|
428
446
|
|
|
429
|
-
Add index as additional argument to the
|
|
447
|
+
Add index as additional argument to the TypeScript definitions of the following methods:
|
|
430
448
|
|
|
431
449
|
- R.all
|
|
432
450
|
- R.find
|
|
@@ -518,7 +536,7 @@ Also restore `R.converge`, `R.findLast`, `R.findLastIndex` and `R.curryN` as I h
|
|
|
518
536
|
|
|
519
537
|
- 5.2.1
|
|
520
538
|
|
|
521
|
-
Fix
|
|
539
|
+
Fix TypeScript comment for every method
|
|
522
540
|
|
|
523
541
|
- 5.2.0
|
|
524
542
|
|
|
@@ -538,7 +556,7 @@ Close [Issue #411](https://github.com/selfrefactor/rambda/issues/411) - change t
|
|
|
538
556
|
|
|
539
557
|
Move `R.partialCurry` to Rambdax(reason for major bump).
|
|
540
558
|
|
|
541
|
-
Use new type of export in
|
|
559
|
+
Use new type of export in TypeScript definitions.
|
|
542
560
|
|
|
543
561
|
Approve [PR #381](https://github.com/selfrefactor/rambda/pull/381) - add `R.applySpec`
|
|
544
562
|
|
|
@@ -662,7 +680,7 @@ Close [issue #287](https://github.com/selfrefactor/rambda/issues/287) - `ts-tool
|
|
|
662
680
|
|
|
663
681
|
Close [issue #273](https://github.com/selfrefactor/rambda/issues/273) - ts-toolbelt needs other type of export when `isolatedModules` TypeScript property
|
|
664
682
|
|
|
665
|
-
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
|
|
666
684
|
|
|
667
685
|
- 3.2.1 Fast fix for [issue #273](https://github.com/selfrefactor/rambda/issues/273) - messed up typings
|
|
668
686
|
|
|
@@ -674,7 +692,7 @@ Add `R.partialCurry` typings.
|
|
|
674
692
|
|
|
675
693
|
Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.slice` method.
|
|
676
694
|
|
|
677
|
-
- 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.
|
|
678
696
|
|
|
679
697
|
- `R.either` and `R.both` supports multiple arguments as they should.
|
|
680
698
|
|
|
@@ -706,7 +724,7 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
706
724
|
|
|
707
725
|
- 2.10.2 Close [issue #175](https://github.com/selfrefactor/rambda/issues/175) - missing typescript file
|
|
708
726
|
|
|
709
|
-
- 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
|
|
710
728
|
|
|
711
729
|
- 2.9.0 `R.toPairs` and `R.fromPairs`
|
|
712
730
|
|
|
@@ -734,7 +752,7 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
734
752
|
|
|
735
753
|
- 1.2.6 Use `src` folder instead of `modules`
|
|
736
754
|
- 1.2.5 Fix `omit` typing
|
|
737
|
-
- 1.2.4 Add missing
|
|
755
|
+
- 1.2.4 Add missing TypeScript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82)
|
|
738
756
|
- 1.2.2 Change curry method used across most of library methods
|
|
739
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)
|
|
740
758
|
- 1.2.0 Add `R.min`, `R.minBy`, `R.max`, `R.maxBy`, `R.nth` and `R.keys`
|
|
@@ -756,14 +774,14 @@ Approve [PR #266](https://github.com/selfrefactor/rambda/pull/266) that adds `R.
|
|
|
756
774
|
- 1.0.4 Close [issue #50](https://github.com/selfrefactor/rambda/issues/50) - add `R.pipe` typings
|
|
757
775
|
- 1.0.3 `R.ifElse` accept also boolean as condition argument
|
|
758
776
|
- 1.0.2 Remove `typedDefaultTo` and `typedPathOr` | Add `R.pickAll` and `R.none`
|
|
759
|
-
- 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
|
|
760
778
|
- 0.9.8 Revert to ES5 compatible build - [issue #46](https://github.com/selfrefactor/rambda/issues/46)
|
|
761
779
|
- 0.9.7 Refactor for `Rollup` tree-shake | Remove `R.padEnd` and `R.padStart`
|
|
762
780
|
- 0.9.6 Close [issue #44](https://github.com/selfrefactor/rambda/issues/44) - `R.reverse` mutates the array
|
|
763
|
-
- 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
|
|
764
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)
|
|
765
783
|
- 0.9.3 Add `R.forEach` and `R.times`
|
|
766
|
-
- 0.9.2 Add `
|
|
784
|
+
- 0.9.2 Add `TypeScript` definitions
|
|
767
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`.
|
|
768
786
|
- 0.9.0 Add `R.pipe` [PR#35](https://github.com/selfrefactor/rambda/pull/35)
|
|
769
787
|
- 0.8.9 Add `R.isNil`
|