Skip to content

Commit 53754f6

Browse files
authored
feat: update ramda dependency (#129)
BREAKING CHANGE: drop support for older versions of ramda * feat: update ramda dependency * feat(ci): add 0.29 ramda version
1 parent 678315c commit 53754f6

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/health-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
jest:
1010
strategy:
1111
matrix:
12-
version: ['0.26.1', '0.27.0', '0.27.1', '0.27.2', '0.28']
12+
version: ['0.29']
1313
name: Unit test
1414
runs-on: ubuntu-latest
1515
steps:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"move-file-cli": "^3.0.0",
107107
"npm-run-all": "^4.1.5",
108108
"prettier": "^2.8.8",
109-
"ramda": "^0.28.0",
109+
"ramda": "^0.29.0",
110110
"replace-in-files-cli": "^2.0.0",
111111
"rimraf": "^5.0.0",
112112
"rollup": "^3.20.2",
@@ -115,7 +115,7 @@
115115
"tsd-jsdoc": "^2.5.0"
116116
},
117117
"peerDependencies": {
118-
"ramda": ">=0.26.1"
118+
"ramda": ">=0.29.0"
119119
},
120120
"engines": {
121121
"node": ">=12"

src/cast-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ import { unless, is, of } from 'ramda';
1414
* @returns {Array} An `Array` containing the given `value`
1515
* or the same input if it was already an `Array`.
1616
*/
17-
const castArray = unless(is(Array), of);
17+
const castArray = unless(is(Array), of(Array));
1818

1919
export default castArray;

src/join-from.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { rejectNil } from './reject-nil';
2020
* `fns` with `separator`.
2121
*/
2222
const joinFrom = curry(function joinFrom(separator, fns, elem) {
23-
return applyTo(elem, compose(join(separator), rejectNil, ap(fns), of));
23+
return applyTo(elem, compose(join(separator), rejectNil, ap(fns), of(Array)));
2424
});
2525

2626
export default joinFrom;

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -5533,10 +5533,10 @@ [email protected]:
55335533
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.25.0.tgz#8fdf68231cffa90bc2f9460390a0cb74a29b29a9"
55345534
integrity sha512-GXpfrYVPwx3K7RQ6aYT8KPS8XViSXUVJT1ONhoKPE9VAleW42YE+U+8VEyGWt41EnEQW7gwecYJriTI0pKoecQ==
55355535

5536-
ramda@^0.28.0:
5537-
version "0.28.0"
5538-
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.28.0.tgz#acd785690100337e8b063cab3470019be427cc97"
5539-
integrity sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==
5536+
ramda@^0.29.0:
5537+
version "0.29.0"
5538+
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.29.0.tgz#fbbb67a740a754c8a4cbb41e2a6e0eb8507f55fb"
5539+
integrity sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==
55405540

55415541
randombytes@^2.1.0:
55425542
version "2.1.0"

0 commit comments

Comments
 (0)