What's Changed
Adds a replaceKeys
method to shallowly transform the keys of an object with the replace
method:
import { replaceKeys } from 'string-ts'
const data = {
helloWorld: {
fooBar: 'baz',
},
} as const
const result = replaceKeys(data, 'o', 'a')
// ^ { 'hellaWorld': { 'fooBar': 'baz' } }
PRs
- chore(deps-dev): bump @vitest/coverage-v8 from 1.5.2 to 1.6.0 by @dependabot in #202
- chore(deps-dev): bump tsup from 8.0.2 to 8.1.0 by @dependabot in #207
- chore(deps-dev): bump prettier from 3.2.5 to 3.3.2 by @dependabot in #211
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.7.1 to 7.13.1 by @dependabot in #212
- replaceKeys method by @gustavoguichard in #213
Full Changelog: v2.1.1...v2.2.0