Skip to content

Commit e2e680a

Browse files
Merge pull request #427 from purple-technology/fx-1836
FX-1836: remove lodash in favor of es-toolkit
2 parents 3fb519a + 49bd298 commit e2e680a

File tree

9 files changed

+20
-21
lines changed

9 files changed

+20
-21
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# If updated, update it also in .tool-versions
12
use-node-version=22.12.0
23
node-version=22.12.0
34
engine-strict=false

.tool-versions

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
nodejs 18.12.1
1+
# Used by "asdf" tool version manager
2+
# If updated, update it also in .npmrc
3+
nodejs 22.12.0
4+
pnpm 9.7.0

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [5.30.1](https://github.com/purple-technology/phoenix-components/compare/v5.30.0...v5.30.1) (2025-10-23)
6+
57
## [5.30.0](https://github.com/purple-technology/phoenix-components/compare/v5.29.0...v5.30.0) (2025-10-23)
68

79

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Before merging to master run `npm run release:feature`, this will create a new v
5454
2. Import `Theme` from Phoenix Components and wrap the app in `<ThemeProvider>` from `styled-components` providing the `Theme` object. If your repository already contains custom `styled-components` theme, merge both themes together. Also, import `<GlobalStyles>` component which provides styles such as default font and sizes, and include it once in your project.
5555

5656
```typescript
57-
import merge from 'lodash/merge'
57+
import { merge } from 'es-toolkit'
5858
import { ThemeProvider } from 'styled-components'
5959
import { GlobalStyles, Theme as PhoenixTheme } from '@purple/phoenix-components'
6060
import { Theme } from './CustomAppTheme'

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@purple/phoenix-components",
3-
"version": "5.30.0",
3+
"version": "5.30.1",
44
"description": "",
55
"main": "dist/bundle.umd.js",
66
"module": "dist/bundle.esm.js",
@@ -54,9 +54,9 @@
5454
"@react-hook/previous": "~1.0.1",
5555
"@tippyjs/react": "~4.2.6",
5656
"countries-and-timezones": "^3.3.0",
57+
"es-toolkit": "^1.40.0",
5758
"formik": "~2.4.6",
5859
"is-mobile": "~3.1.1",
59-
"lodash": "~4.17.21",
6060
"nanoid": "~3.3.4",
6161
"nouislider": "~15.7.2",
6262
"react-day-picker": "~8.10.1",
@@ -108,7 +108,6 @@
108108
"@testing-library/react": "^14.0.0",
109109
"@types/countries-and-timezones": "^3.2.3",
110110
"@types/jest": "^27.0.2",
111-
"@types/lodash": "^4.14.178",
112111
"@types/node": "^20.4.7",
113112
"@types/react": "^19.1.8",
114113
"@types/react-dom": "^19.1.6",

pnpm-lock.yaml

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

rollup.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ const common = {
5252
'@tippyjs/react',
5353
'@tippyjs/react/headless',
5454
'countries-and-timezones',
55-
'lodash/intersection',
56-
'lodash/pick',
57-
'lodash/isEqual',
5855
'nanoid',
5956
'nouislider',
6057
'is-mobile',

src/components/List/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pick from 'lodash/pick'
1+
import { pick } from 'es-toolkit'
22
import React, { HTMLAttributes } from 'react'
33

44
import { GenericComponentProps } from '../../interfaces/GenericComponentProps'

src/components/common/Slider/useSlider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import isEqual from 'lodash/isEqual'
1+
import { isEqual } from 'es-toolkit'
22
import noUiSlider, { API } from 'nouislider'
33
import React, { useEffect, useRef } from 'react'
44

0 commit comments

Comments
 (0)