Skip to content

Commit 29e718e

Browse files
committed
Remove lodash and use just-merge instead
1 parent b002f54 commit 29e718e

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

Diff for: .changeset/chilly-parrots-prove.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@supabase/auth-ui-react': patch
3+
---
4+
5+
Remove lodash and use just-merge instead

Diff for: packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"@stitches/core": "^1.2.8",
3737
"@stitches/react": "^1.2.8",
38-
"lodash": "^4.17.20",
38+
"just-merge": "^3.1.1",
3939
"prop-types": "^15.7.2"
4040
},
4141
"devDependencies": {

Diff for: packages/react/src/components/Auth/Auth.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createStitches, createTheme } from '@stitches/core'
2-
import { merge } from 'lodash'
2+
import merge from 'just-merge'
33
import React, { useEffect, useState } from 'react'
44
import { Auth as AuthProps, Localization, I18nVariables } from '../../types'
55
import { VIEWS } from './../../constants'
@@ -66,7 +66,7 @@ function Auth({
6666
*/
6767
createStitches({
6868
theme: merge(
69-
appearance?.theme?.default,
69+
appearance?.theme?.default ?? {},
7070
appearance?.variables?.default ?? {}
7171
),
7272
})

Diff for: pnpm-lock.yaml

+15-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)