Skip to content

Commit 614ded2

Browse files
authored
feat: add support for ramda@0.32.0 (#3357)
BREAKING CHANGE: renameKeys was removed as it's now part of ramda@0.32.0
1 parent 1e4e38e commit 614ded2

11 files changed

Lines changed: 3067 additions & 10714 deletions

File tree

.github/workflows/nodejs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v5
15-
- name: Use Node.js 22
15+
- name: Use Node.js 24
1616
uses: actions/setup-node@v6
1717
with:
18-
node-version: 22
18+
node-version: 24
1919
- name: Cache Node Modules
2020
id: cache-node-modules
2121
uses: actions/cache@v4
@@ -143,7 +143,7 @@ jobs:
143143
- run: npm run build:umd
144144
- run: npm run docs
145145
- name: Deploy 🚀
146-
uses: JamesIves/github-pages-deploy-action@v4.7.3
146+
uses: JamesIves/github-pages-deploy-action@v4.7.6
147147
with:
148148
branch: gh-pages
149149
folder: docs/ramda-adjunct

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ _Do you want to find out more about why this library exists ? Read this [**artic
123123

124124
## Requirements
125125

126-
- ramda >= 0.30.0
126+
- ramda >= 0.32.0
127127
- node >= 0.10.48
128128

129129
Ramda Adjunct is being automatically tested against all LTS and Current Node.js versions.

package-lock.json

Lines changed: 3053 additions & 10596 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"changelog": "conventional-changelog -p angular -i ./CHANGELOG.md -s",
8383
"test": "mocha",
8484
"test:web": "testem ci",
85-
"test:ramda": "npm install ramda@0.30.0 && npm test",
85+
"test:ramda": "npm i --no-save ramda@0.32.0 && npm test",
8686
"test:types": "tsd",
8787
"test:bundle-create": "webpack --config webpack.config-test.web.cjs --progress",
8888
"test:bundle-clean": "rimraf tmp-test-bundle.js",
@@ -96,7 +96,7 @@
9696
"prepare": "husky"
9797
},
9898
"peerDependencies": {
99-
"ramda": ">= 0.30.0"
99+
"ramda": ">= 0.32.0"
100100
},
101101
"devDependencies": {
102102
"@babel/cli": "7.28.3",
@@ -114,9 +114,9 @@
114114
"babel-plugin-annotate-pure-calls": "0.5.0",
115115
"c8": "10.1.3",
116116
"chai": "6.2.1",
117-
"cross-env": "7.0.3",
118117
"conventional-changelog-cli": "5.0.0",
119118
"core-js": "=3.47.0",
119+
"cross-env": "7.0.3",
120120
"docdash": "git+https://github.com/char0n/docdash.git#534b44382138a55dd8d93642c979e51e46471185",
121121
"eslint": "^9.39.1",
122122
"eslint-config-prettier": "^10.1.8",
@@ -138,7 +138,7 @@
138138
"monet": "0.9.3",
139139
"prettier": "=3.7.4",
140140
"process": "=0.11.10",
141-
"ramda": "=0.30.0",
141+
"ramda": "=0.32.0",
142142
"ramda-fantasy": "=0.8.0",
143143
"regenerator-runtime": "=0.14.1",
144144
"rimraf": "6.1.2",
@@ -159,7 +159,9 @@
159159
"strict": true,
160160
"baseUrl": ".",
161161
"paths": {
162-
"ramda-adjunct": ["types/index.d.ts"]
162+
"ramda-adjunct": [
163+
"types/index.d.ts"
164+
]
163165
}
164166
}
165167
},

src/copyKeys.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { curryN } from 'ramda';
2-
3-
import renameKeys from './renameKeys.js';
1+
import { curryN, renameKeys } from 'ramda';
42

53
/**
64
* Creates a new object with the own properties of the provided object, and the
@@ -17,7 +15,7 @@ import renameKeys from './renameKeys.js';
1715
* @param {!Object} keysMap
1816
* @param {!Object} obj
1917
* @return {!Object} New object with copied keys
20-
* @see {@link RA.renameKeys|renameKeys}
18+
* @see {@link https://ramdajs.com/docs/#renameKeys|renameKeys}
2119
* @example
2220
*
2321
* copyKeys({ a: 'b' }, { a: true }); //=> { a: true, b: true }

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export { default as invoke } from './invoke.js';
171171
export { default as invokeArgs } from './invokeArgs.js';
172172
export { default as paths } from './paths.js';
173173
export { default as renameKey } from './renameKey.js';
174-
export { default as renameKeys } from './renameKeys.js';
175174
export { default as renameKeysWith } from './renameKeysWith.js';
176175
export { default as renameKeyWith } from './renameKeyWith.js';
177176
export { default as copyKeys } from './copyKeys.js';

src/renameKey.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { curry } from 'ramda';
2-
3-
import renameKeys from './renameKeys.js';
1+
import { curry, renameKeys } from 'ramda';
42

53
/**
64
* Creates a new object with the own properties of the provided object, but a

src/renameKeys.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

test/renameKeys.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

types/index.d.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -608,15 +608,6 @@ type PickRenameMulti<
608608
> = {
609609
[P in keyof T as P extends keyof R ? R[P] : P]: T[P];
610610
};
611-
export function renameKeys<
612-
MAP extends Dictionary<string>,
613-
OBJ extends { readonly [s in keyof MAP]: any },
614-
>(keysMap: MAP, obj: OBJ): PickRenameMulti<MAP, OBJ>;
615-
export function renameKeys<MAP extends Dictionary<string>>(
616-
keysMap: MAP
617-
): <OBJ extends { readonly [s in keyof MAP]: any }>(
618-
obj: OBJ
619-
) => PickRenameMulti<MAP, OBJ>;
620611

621612
type Keyable = string | number | symbol;
622613
type RenameObjectKey<

0 commit comments

Comments
 (0)