Skip to content

Commit 7434316

Browse files
authored
fix: deprecate @unhead/shared (#484)
* fix: deprecate `@unhead/schema` * doc: missing migration * fix: deprecate `@unhead/shared`
1 parent 6e42454 commit 7434316

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+79
-106
lines changed

packages/shared/test/templateParams.bench.ts renamed to bench/templateParams.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { processTemplateParams } from '@unhead/shared'
21
import { bench, describe } from 'vitest'
2+
import { processTemplateParams } from '../src/templateParams'
33

44
describe('processTemplateParams', () => {
55
bench('basic', () => {

examples/nuxt3/nuxt.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const rootDir = fileURLToPath(new URL('../../', import.meta.url))
77
// https://v3.nuxtjs.org/api/configuration/nuxt.config
88
export default defineNuxtConfig({
99
alias: {
10-
'@unhead/shared': `${rootDir}/packages/shared/src`,
1110
'@unhead/vue': `${rootDir}/packages/vue/src`,
1211
'@unhead/ssr': `${rootDir}/packages/ssr/src`,
1312
'@unhead/dom': `${rootDir}/packages/dom/src`,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"unbuild": "^3.3.1",
4040
"utility-types": "^3.11.0",
4141
"vitest": "^3.0.5",
42-
"vue": "^3.5.13"
42+
"vue": "^3.5.13",
43+
"devalue": "^5.1.1"
4344
},
4445
"resolutions": {
4546
"@unhead/addons": "workspace:*",

packages-aliased/shared/README.md

Lines changed: 10 additions & 0 deletions
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@
3737
"dist"
3838
],
3939
"scripts": {
40-
"build": "unbuild .",
41-
"stub": "unbuild . --stub"
40+
"build": "unbuild ",
41+
"stub": "unbuild --stub"
4242
},
4343
"peerDependencies": {
4444
"unhead": "workspace:*"
45-
},
46-
"dependencies": {
47-
"packrup": "^0.1.2"
4845
}
4946
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from 'unhead/utils'

packages/addons/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
},
5959
"dependencies": {
6060
"@rollup/pluginutils": "^5.1.4",
61-
"@unhead/shared": "workspace:*",
6261
"estree-walker": "^3.0.3",
6362
"magic-string": "^0.30.17",
6463
"mlly": "^1.7.4",

packages/addons/src/unplugin/UseSeoMetaTransform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
resolveMetaKeyType,
1010
resolveMetaKeyValue,
1111
resolvePackedMetaObjectValue,
12-
} from '@unhead/shared'
12+
} from 'unhead/utils'
1313
import { walk } from 'estree-walker'
1414
import MagicString from 'magic-string'
1515
import { findStaticImports, parseStaticImport } from 'mlly'

packages/angular/src/unhead/ReactivityPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineHeadPlugin } from '@unhead/shared'
1+
import { defineHeadPlugin } from 'unhead/utils'
22
import { resolveSignalHeadInput } from './utils'
33

44
export const ReactivityPlugin = defineHeadPlugin({

0 commit comments

Comments
 (0)