rambda 10.0.0-beta.1 → 10.0.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 +11 -8
- package/README.md +947 -306
- package/dist/rambda.cjs +212 -105
- package/dist/rambda.js +202 -104
- package/dist/rambda.umd.js +212 -105
- package/index.d.ts +587 -16
- package/package.json +9 -12
- package/rambda.js +7 -1
- package/src/addPropToObjects.js +14 -0
- package/src/defaultTo.js +2 -6
- package/src/drop.js +2 -6
- package/src/flattenObject.js +76 -0
- package/src/map.js +13 -9
- package/src/{replaceItemAtIndex.js → modifyItemAtIndex.js} +1 -1
- package/src/path.js +24 -26
- package/src/pathSatisfies.js +5 -0
- package/src/propOr.js +1 -1
- package/src/range.js +14 -21
- package/src/shuffle.js +2 -0
- package/src/sortBy.js +21 -12
- package/src/sortByDescending.js +5 -0
- package/src/sortByPath.js +6 -0
- package/src/sortByPathDescending.js +6 -0
- package/immutable.d.ts +0 -1617
- package/immutable.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -81,14 +81,20 @@ This is major revamp of `Rambda` library:
|
|
|
81
81
|
-- R.rejectObject
|
|
82
82
|
-- R.findNth
|
|
83
83
|
-- R.combinations
|
|
84
|
-
-- R.
|
|
84
|
+
-- R.sortByPath
|
|
85
|
+
-- R.sortByPathDescending
|
|
86
|
+
-- R.sortByDescending
|
|
87
|
+
-- R.flattenObject
|
|
88
|
+
-- R.addPropToObjects
|
|
85
89
|
|
|
86
90
|
- Rename following methods:
|
|
87
91
|
|
|
88
|
-
--
|
|
92
|
+
-- modifyItemAtIndex -> adjust
|
|
89
93
|
-- checkObjectWithSpec -> where
|
|
90
94
|
-- objectIncludes -> whereEq
|
|
91
95
|
-- modify -> modifyProp
|
|
96
|
+
-- chain -> flatMap
|
|
97
|
+
-- mapObjIndexed -> mapObject
|
|
92
98
|
|
|
93
99
|
_ Regarding using object as input with TypeScript in methods such as `R.map/filter` - this feature is no longer supported in TypeScript as it has multiple issues when using inside pipes. In JS, it still works as before. Following methods are affected:
|
|
94
100
|
|
|
@@ -116,7 +122,9 @@ _ Regarding using object as input with TypeScript in methods such as `R.map/filt
|
|
|
116
122
|
|
|
117
123
|
-- append/prepend
|
|
118
124
|
|
|
119
|
-
- Change `R.range` to work with
|
|
125
|
+
- Change `R.range` to work with descending order.
|
|
126
|
+
|
|
127
|
+
- Remove `rambda/immutable` as import option as it is hard to support in the new context.
|
|
120
128
|
|
|
121
129
|
- Sync with typing of `@types/ramda`:
|
|
122
130
|
|
|
@@ -169,11 +177,6 @@ _ Regarding using object as input with TypeScript in methods such as `R.map/filt
|
|
|
169
177
|
|
|
170
178
|
- Revert adding stopper logic in `R.reduce` - https://github.com/selfrefactor/rambda/pull/630
|
|
171
179
|
|
|
172
|
-
- Renamed methods:
|
|
173
|
-
|
|
174
|
-
-- `chain` to `flatMap`
|
|
175
|
-
-- `mapObjIndexed` to `mapObject`
|
|
176
|
-
|
|
177
180
|
9.4.2
|
|
178
181
|
|
|
179
182
|
- Fix TS issue when `R.take` is used as part of `R.pipe`.
|