rambda 8.5.0 → 8.6.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 +8 -0
- package/README.md +22 -22
- package/dist/rambda.js +17 -17
- package/immutable.d.ts +2 -1
- package/index.d.ts +2 -1
- package/package.json +15 -15
- package/rambda.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
8.6.0
|
|
2
|
+
|
|
3
|
+
- Wrong typing for `R.dissocPath` - [Issue #709](https://github.com/selfrefactor/rambda/issues/709)
|
|
4
|
+
|
|
5
|
+
- Add `R.sortWith` - [Issue #7097](https://github.com/selfrefactor/rambda/issues/707)
|
|
6
|
+
|
|
7
|
+
- Update build dependencies
|
|
8
|
+
|
|
1
9
|
8.5.0
|
|
2
10
|
|
|
3
11
|
- Revert changes in `R.anyPass` introduced in `8.4.0` release. The reason is that the change was breaking the library older than `5.2.0` TypeScript.
|
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Also, `Rambda` provides you with included TS definitions:
|
|
|
59
59
|
// Deno extension(https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno)
|
|
60
60
|
// is installed and initialized
|
|
61
61
|
import * as R from "https://deno.land/x/rambda/mod.ts";
|
|
62
|
-
import * as Ramda from "https://
|
|
62
|
+
import * as Ramda from "https://deno.land/x/ramda/mod.ts";
|
|
63
63
|
|
|
64
64
|
R.add(1)('foo') // => will trigger warning in VSCode as it should
|
|
65
65
|
Ramda.add(1)('foo') // => will not trigger warning in VSCode
|
|
@@ -101,10 +101,6 @@ One of the main issues with `Ramda` is the slow process of releasing new version
|
|
|
101
101
|
Click to see the full list of 0 Ramda methods not implemented in Rambda and their status.
|
|
102
102
|
</summary>
|
|
103
103
|
|
|
104
|
-
- dropRepeatsBy
|
|
105
|
-
- empty
|
|
106
|
-
- eqBy
|
|
107
|
-
- forEachObjIndexed
|
|
108
104
|
- gt
|
|
109
105
|
- gte
|
|
110
106
|
- hasIn
|
|
@@ -226,7 +222,7 @@ There are methods which are benchmarked only with `Ramda` and `Rambda`(i.e. no `
|
|
|
226
222
|
|
|
227
223
|
Note that some of these methods, are called with and without curring. This is done in order to give more detailed performance feedback.
|
|
228
224
|
|
|
229
|
-
The benchmarks results are produced from latest versions of *Rambda*, *Lodash*(4.17.21) and *Ramda*(0.29.
|
|
225
|
+
The benchmarks results are produced from latest versions of *Rambda*, *Lodash*(4.17.21) and *Ramda*(0.29.1).
|
|
230
226
|
|
|
231
227
|
</summary>
|
|
232
228
|
|
|
@@ -17427,6 +17423,14 @@ describe('R.zipWith', () => {
|
|
|
17427
17423
|
|
|
17428
17424
|
## ❯ CHANGELOG
|
|
17429
17425
|
|
|
17426
|
+
8.6.0
|
|
17427
|
+
|
|
17428
|
+
- Wrong typing for `R.dissocPath` - [Issue #709](https://github.com/selfrefactor/rambda/issues/709)
|
|
17429
|
+
|
|
17430
|
+
- Add `R.sortWith` - [Issue #7097](https://github.com/selfrefactor/rambda/issues/707)
|
|
17431
|
+
|
|
17432
|
+
- Update build dependencies
|
|
17433
|
+
|
|
17430
17434
|
8.5.0
|
|
17431
17435
|
|
|
17432
17436
|
- Revert changes in `R.anyPass` introduced in `8.4.0` release. The reason is that the change was breaking the library older than `5.2.0` TypeScript.
|
|
@@ -17773,25 +17777,25 @@ Fix wrong versions in changelog
|
|
|
17773
17777
|
|
|
17774
17778
|
> Most influential contributors(in alphabetical order)
|
|
17775
17779
|
|
|
17776
|
-
- [@farwayer](https://github.com/farwayer) - improving performance in R.find, R.filter; give the idea how to make benchmarks more reliable;
|
|
17780
|
+
-  [@farwayer](https://github.com/farwayer) - improving performance in R.find, R.filter; give the idea how to make benchmarks more reliable;
|
|
17777
17781
|
|
|
17778
|
-
- [@thejohnfreeman](https://github.com/thejohnfreeman) - add R.assoc, R.chain;
|
|
17782
|
+
-  [@thejohnfreeman](https://github.com/thejohnfreeman) - add R.assoc, R.chain;
|
|
17779
17783
|
|
|
17780
|
-
- [@peeja](https://github.com/peeja) - add several methods and fix mutiple issues; provides great MR documentation
|
|
17784
|
+
-  [@peeja](https://github.com/peeja) - add several methods and fix mutiple issues; provides great MR documentation
|
|
17781
17785
|
|
|
17782
|
-
- [@helmuthdu](https://github.com/helmuthdu) - add R.clone; help improve code style;
|
|
17786
|
+
-  [@helmuthdu](https://github.com/helmuthdu) - add R.clone; help improve code style;
|
|
17783
17787
|
|
|
17784
|
-
- [@jpgorman](https://github.com/jpgorman) - add R.zip, R.reject, R.without, R.addIndex;
|
|
17788
|
+
-  [@jpgorman](https://github.com/jpgorman) - add R.zip, R.reject, R.without, R.addIndex;
|
|
17785
17789
|
|
|
17786
|
-
- [@ku8ar](https://github.com/ku8ar) - add R.slice, R.propOr, R.identical, R.propIs and several math related methods; introduce the idea to display missing Ramda methods;
|
|
17790
|
+
-  [@ku8ar](https://github.com/ku8ar) - add R.slice, R.propOr, R.identical, R.propIs and several math related methods; introduce the idea to display missing Ramda methods;
|
|
17787
17791
|
|
|
17788
|
-
- [@romgrk](https://github.com/romgrk) - add R.groupBy, R.indexBy, R.findLast, R.findLastIndex;
|
|
17792
|
+
-  [@romgrk](https://github.com/romgrk) - add R.groupBy, R.indexBy, R.findLast, R.findLastIndex;
|
|
17789
17793
|
|
|
17790
|
-
- [@squidfunk](https://github.com/squidfunk) - add R.assocPath, R.symmetricDifference, R.difference, R.intersperse;
|
|
17794
|
+
-  [@squidfunk](https://github.com/squidfunk) - add R.assocPath, R.symmetricDifference, R.difference, R.intersperse;
|
|
17791
17795
|
|
|
17792
|
-
- [@synthet1c](https://github.com/synthet1c) - add all lenses methods; add R.applySpec, R.converge;
|
|
17796
|
+
-  [@synthet1c](https://github.com/synthet1c) - add all lenses methods; add R.applySpec, R.converge;
|
|
17793
17797
|
|
|
17794
|
-
- [@vlad-zhukov](https://github.com/vlad-zhukov) - help with configuring Rollup, Babel; change export file to use ES module exports;
|
|
17798
|
+
-  [@vlad-zhukov](https://github.com/vlad-zhukov) - help with configuring Rollup, Babel; change export file to use ES module exports;
|
|
17795
17799
|
|
|
17796
17800
|
> Rambda references
|
|
17797
17801
|
|
|
@@ -17803,20 +17807,16 @@ Fix wrong versions in changelog
|
|
|
17803
17807
|
|
|
17804
17808
|
> Links to Rambda
|
|
17805
17809
|
|
|
17806
|
-
- [https://mailchi.mp/webtoolsweekly/web-tools-280](Web Tools Weekly)
|
|
17807
|
-
|
|
17808
17810
|
- [https://github.com/stoeffel/awesome-fp-js](awesome-fp-js)
|
|
17809
17811
|
|
|
17812
|
+
- [ https://mailchi.mp/webtoolsweekly/web-tools-280 ]( Web Tools Weekly #280 )
|
|
17813
|
+
|
|
17810
17814
|
- [https://github.com/docsifyjs/awesome-docsify](awesome-docsify)
|
|
17811
17815
|
|
|
17812
17816
|
> Deprecated from `Used by` section
|
|
17813
17817
|
|
|
17814
17818
|
- [SAP's Cloud SDK](https://github.com/SAP/cloud-sdk) - This repo doesn't uses `Rambda` since *October/2020* [commit that removes Rambda](https://github.com/SAP/cloud-sdk/commit/b29b4f915c4e4e9c2441e7b6b67cf83dac1fdac3)
|
|
17815
17819
|
|
|
17816
|
-
> Releases
|
|
17817
|
-
|
|
17818
|
-
[Rambda's releases](https://github.com/selfrefactor/rambda/releases) before **6.4.0** were used mostly for testing purposes.
|
|
17819
|
-
|
|
17820
17820
|
[](#-additional-info)
|
|
17821
17821
|
|
|
17822
17822
|
## My other libraries
|
package/dist/rambda.js
CHANGED
|
@@ -833,26 +833,26 @@ function dissoc(prop, obj) {
|
|
|
833
833
|
return willReturn;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
function ownKeys(
|
|
837
|
-
var
|
|
836
|
+
function ownKeys(e, r) {
|
|
837
|
+
var t = Object.keys(e);
|
|
838
838
|
if (Object.getOwnPropertySymbols) {
|
|
839
|
-
var
|
|
840
|
-
|
|
841
|
-
return Object.getOwnPropertyDescriptor(
|
|
842
|
-
})),
|
|
843
|
-
}
|
|
844
|
-
return
|
|
845
|
-
}
|
|
846
|
-
function _objectSpread2(
|
|
847
|
-
for (var
|
|
848
|
-
var
|
|
849
|
-
|
|
850
|
-
_defineProperty(
|
|
851
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
852
|
-
Object.defineProperty(
|
|
839
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
840
|
+
r && (o = o.filter(function (r) {
|
|
841
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
842
|
+
})), t.push.apply(t, o);
|
|
843
|
+
}
|
|
844
|
+
return t;
|
|
845
|
+
}
|
|
846
|
+
function _objectSpread2(e) {
|
|
847
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
848
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
849
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
850
|
+
_defineProperty(e, r, t[r]);
|
|
851
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
852
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
|
-
return
|
|
855
|
+
return e;
|
|
856
856
|
}
|
|
857
857
|
function _defineProperty(obj, key, value) {
|
|
858
858
|
key = _toPropertyKey(key);
|
package/immutable.d.ts
CHANGED
|
@@ -505,7 +505,8 @@ export function differenceWith<T1, T2>(
|
|
|
505
505
|
export function dissoc<T extends object, K extends keyof T>(prop: K, obj: T): Omit<T, K>;
|
|
506
506
|
export function dissoc<K extends string | number>(prop: K): <T extends object>(obj: T) => Omit<T, K>;
|
|
507
507
|
|
|
508
|
-
export function dissocPath<T>(
|
|
508
|
+
export function dissocPath<T>(path: Path, obj: any): T;
|
|
509
|
+
export function dissocPath<T>(path: Path): (obj: any) => T;
|
|
509
510
|
|
|
510
511
|
export function divide(x: number, y: number): number;
|
|
511
512
|
export function divide(x: number): (y: number) => number;
|
package/index.d.ts
CHANGED
|
@@ -505,7 +505,8 @@ export function differenceWith<T1, T2>(
|
|
|
505
505
|
export function dissoc<T extends object, K extends keyof T>(prop: K, obj: T): Omit<T, K>;
|
|
506
506
|
export function dissoc<K extends string | number>(prop: K): <T extends object>(obj: T) => Omit<T, K>;
|
|
507
507
|
|
|
508
|
-
export function dissocPath<T>(
|
|
508
|
+
export function dissocPath<T>(path: Path, obj: any): T;
|
|
509
|
+
export function dissocPath<T>(path: Path): (obj: any) => T;
|
|
509
510
|
|
|
510
511
|
export function divide(x: number, y: number): number;
|
|
511
512
|
export function divide(x: number): (y: number) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rambda",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"benchmark": "cd ../rambda-scripts && RAMBDA_RUN_ALL=ON RAMBDA_RUN_INDEXES=ON yarn benchmark",
|
|
6
6
|
"benchmark:all": "yarn build:step && cd ../rambda-scripts && yarn benchmark:all",
|
|
@@ -38,30 +38,30 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "7.
|
|
41
|
+
"@babel/core": "7.23.3",
|
|
42
42
|
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
43
|
-
"@babel/preset-env": "7.
|
|
43
|
+
"@babel/preset-env": "7.23.3",
|
|
44
44
|
"@definitelytyped/dtslint": "0.0.176",
|
|
45
|
-
"@rollup/plugin-babel": "6.0.
|
|
46
|
-
"@rollup/plugin-commonjs": "25.0.
|
|
47
|
-
"@rollup/plugin-node-resolve": "15.
|
|
48
|
-
"@rollup/plugin-replace": "5.0.
|
|
49
|
-
"@types/jest": "29.5.
|
|
45
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
46
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
47
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
48
|
+
"@rollup/plugin-replace": "5.0.5",
|
|
49
|
+
"@types/jest": "29.5.8",
|
|
50
50
|
"combinate": "1.1.11",
|
|
51
51
|
"cross-env": "7.0.3",
|
|
52
|
-
"fast-check": "
|
|
52
|
+
"fast-check": "3.13.2",
|
|
53
53
|
"helpers-fn": "1.8.1",
|
|
54
54
|
"is-ci": "3.0.1",
|
|
55
|
-
"jest": "29.
|
|
56
|
-
"jest-extended": "
|
|
55
|
+
"jest": "29.7.0",
|
|
56
|
+
"jest-extended": "4.0.2",
|
|
57
57
|
"lodash": "4.17.21",
|
|
58
|
-
"rambdax": "
|
|
59
|
-
"ramda": "0.29.
|
|
60
|
-
"rollup": "
|
|
58
|
+
"rambdax": "10.0.0",
|
|
59
|
+
"ramda": "0.29.1",
|
|
60
|
+
"rollup": "4.4.1",
|
|
61
61
|
"rollup-plugin-cleanup": "3.2.1",
|
|
62
62
|
"rollup-plugin-sourcemaps": "0.6.3",
|
|
63
63
|
"rollup-plugin-uglify": "6.0.4",
|
|
64
|
-
"types-ramda": "0.29.
|
|
64
|
+
"types-ramda": "0.29.6",
|
|
65
65
|
"typescript": "5.2.2"
|
|
66
66
|
},
|
|
67
67
|
"jest": {
|
package/rambda.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="./index.d.ts" />
|
|
2
|
-
export * from './src/F.js'
|
|
3
|
-
export * from './src/T.js'
|
|
4
2
|
export * from './src/add.js'
|
|
5
3
|
export * from './src/addIndex.js'
|
|
6
4
|
export * from './src/addIndexRight.js'
|
|
@@ -61,6 +59,7 @@ export * from './src/eqBy.js'
|
|
|
61
59
|
export * from './src/eqProps.js'
|
|
62
60
|
export * from './src/equals.js'
|
|
63
61
|
export * from './src/evolve.js'
|
|
62
|
+
export * from './src/F.js'
|
|
64
63
|
export * from './src/filter.js'
|
|
65
64
|
export * from './src/find.js'
|
|
66
65
|
export * from './src/findIndex.js'
|
|
@@ -146,8 +145,8 @@ export * from './src/prop.js'
|
|
|
146
145
|
export * from './src/propEq.js'
|
|
147
146
|
export * from './src/propIs.js'
|
|
148
147
|
export * from './src/propOr.js'
|
|
149
|
-
export * from './src/propSatisfies.js'
|
|
150
148
|
export * from './src/props.js'
|
|
149
|
+
export * from './src/propSatisfies.js'
|
|
151
150
|
export * from './src/range.js'
|
|
152
151
|
export * from './src/reduce.js'
|
|
153
152
|
export * from './src/reject.js'
|
|
@@ -167,6 +166,7 @@ export * from './src/startsWith.js'
|
|
|
167
166
|
export * from './src/subtract.js'
|
|
168
167
|
export * from './src/sum.js'
|
|
169
168
|
export * from './src/symmetricDifference.js'
|
|
169
|
+
export * from './src/T.js'
|
|
170
170
|
export * from './src/tail.js'
|
|
171
171
|
export * from './src/take.js'
|
|
172
172
|
export * from './src/takeLast.js'
|