Skip to content

Commit

Permalink
fix: swap in deepmerge
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jan 22, 2022
1 parent b4559c9 commit 1b2cdbd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-panthers-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@presta/html': patch
---

Swap in deepmerge for deep-extend
4 changes: 2 additions & 2 deletions packages/html/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import merge from 'deep-extend'
import merge from 'deepmerge'

type GenericObject = { [key: string]: any }

Expand Down Expand Up @@ -112,7 +112,7 @@ export function prefixToObjects(prefix: string, props: Social): HeadElementWithC
}

export function createHeadTags(config: Partial<PrestaHead> = {}) {
const { title, description, image, url, ...o } = merge({}, defaults, config)
const { title, description, image, url, ...o } = merge(defaults, config)

const meta = o.meta ? filterUnique(o.meta) : []
const link = o.link ? filterUnique(o.link) : []
Expand Down
5 changes: 1 addition & 4 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
},
"homepage": "https://github.com/sure-thing/presta#readme",
"dependencies": {
"deep-extend": "^0.6.0"
},
"devDependencies": {
"@types/deep-extend": "^0.4.32"
"deepmerge": "^4.2.2"
}
}

0 comments on commit 1b2cdbd

Please sign in to comment.