Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/unhead
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.1
Choose a base ref
...
head repository: unjs/unhead
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.2
Choose a head ref
  • 3 commits
  • 31 files changed
  • 1 contributor

Commits on Mar 26, 2025

  1. fix: export extra server/client types

    harlan-zw committed Mar 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9c7f608 View commit details
  2. chore: bump deps

    harlan-zw committed Mar 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cf4341d View commit details
  3. chore: release v2.0.2

    harlan-zw committed Mar 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5da5e7a View commit details
10 changes: 5 additions & 5 deletions examples/angular/package.json
Original file line number Diff line number Diff line change
@@ -21,20 +21,20 @@
"@angular/platform-browser-dynamic": "^19.2.3",
"@angular/platform-server": "^19.2.3",
"@angular/router": "^19.2.3",
"@angular/ssr": "^19.2.4",
"@angular/ssr": "^19.2.5",
"@unhead/angular": "workspace:*",
"express": "^4.21.2",
"rxjs": "~7.8.2",
"tslib": "^2.8.1",
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^19.2.4",
"@angular/build": "^19.2.4",
"@angular/cli": "^19.2.4",
"@angular-devkit/build-angular": "^19.2.5",
"@angular/build": "^19.2.5",
"@angular/cli": "^19.2.5",
"@angular/compiler-cli": "^19.2.3",
"@types/express": "^5.0.1",
"@types/node": "^22.13.11",
"@types/node": "^22.13.13",
"ng-packagr": "^19.2.0",
"typescript": "~5.8.2"
}
4 changes: 2 additions & 2 deletions examples/vite-ssr-react-ts/package.json
Original file line number Diff line number Diff line change
@@ -22,12 +22,12 @@
},
"devDependencies": {
"@types/express": "^5.0.1",
"@types/node": "^22.13.11",
"@types/node": "^22.13.13",
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"cross-env": "^7.0.3",
"typescript": "~5.8.2",
"vite": "^6.2.2"
"vite": "^6.2.3"
}
}
4 changes: 2 additions & 2 deletions examples/vite-ssr-svelte/package.json
Original file line number Diff line number Diff line change
@@ -22,12 +22,12 @@
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tsconfig/svelte": "^5.0.4",
"@types/express": "^5.0.1",
"@types/node": "^22.13.11",
"@types/node": "^22.13.13",
"cross-env": "^7.0.3",
"svelte": "^5.25.3",
"svelte-check": "^4.1.5",
"tslib": "^2.8.1",
"typescript": "~5.8.2",
"vite": "^6.2.2"
"vite": "^6.2.3"
}
}
4 changes: 2 additions & 2 deletions examples/vite-ssr-ts/package.json
Original file line number Diff line number Diff line change
@@ -17,9 +17,9 @@
},
"devDependencies": {
"@types/express": "^5.0.1",
"@types/node": "^22.13.11",
"@types/node": "^22.13.13",
"cross-env": "^7.0.3",
"typescript": "~5.8.2",
"vite": "^6.2.2"
"vite": "^6.2.3"
}
}
4 changes: 2 additions & 2 deletions examples/vite-ssr-vue-prerender/package.json
Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@
"@unhead/vue": "workspace:*",
"pinia": "^3.0.1",
"unhead": "workspace:*",
"unplugin-auto-import": "^19.1.1",
"vite": "^6.2.2",
"unplugin-auto-import": "^19.1.2",
"vite": "^6.2.3",
"vue-router": "^4.5.0"
},
"devDependencies": {
4 changes: 2 additions & 2 deletions examples/vite-ssr-vue-streaming/package.json
Original file line number Diff line number Diff line change
@@ -21,8 +21,8 @@
"@unhead/vue": "workspace:*",
"pinia": "^3.0.1",
"unhead": "workspace:*",
"unplugin-auto-import": "^19.1.1",
"vite": "^6.2.2",
"unplugin-auto-import": "^19.1.2",
"vite": "^6.2.3",
"vue-router": "^4.5.0"
},
"devDependencies": {
4 changes: 2 additions & 2 deletions examples/vite-ssr-vue/package.json
Original file line number Diff line number Diff line change
@@ -22,11 +22,11 @@
},
"devDependencies": {
"@types/express": "^5.0.1",
"@types/node": "^22.13.11",
"@types/node": "^22.13.13",
"@vitejs/plugin-vue": "^5.2.3",
"cross-env": "^7.0.3",
"typescript": "~5.8.2",
"vite": "^6.2.2",
"vite": "^6.2.3",
"vue-tsc": "^2.2.8"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "unhead-monorepo",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"private": "true",
"packageManager": "pnpm@10.6.5",
"packageManager": "pnpm@10.7.0",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"repository": {
2 changes: 1 addition & 1 deletion packages-aliased/dom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/dom",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
2 changes: 1 addition & 1 deletion packages-aliased/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/schema",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
2 changes: 1 addition & 1 deletion packages-aliased/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/shared",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
2 changes: 1 addition & 1 deletion packages-aliased/ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/ssr",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
4 changes: 2 additions & 2 deletions packages/addons/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/addons",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
@@ -65,6 +65,6 @@
"unplugin-ast": "^0.14.4"
},
"devDependencies": {
"@babel/types": "^7.26.10"
"@babel/types": "^7.27.0"
}
}
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/angular",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"description": "Full-stack <head> manager built for Angular.",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/react",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
5 changes: 5 additions & 0 deletions packages/react/src/client.ts
Original file line number Diff line number Diff line change
@@ -19,3 +19,8 @@ export function createHead(options: CreateClientHeadOptions = {}): Unhead {
export function UnheadProvider({ children, head }: { children: ReactNode, head?: ReturnType<typeof createHead> }) {
return createElement(UnheadContext.Provider, { value: head || createHead() }, children)
}

export type {
CreateClientHeadOptions,
Unhead,
}
8 changes: 7 additions & 1 deletion packages/react/src/server.ts
Original file line number Diff line number Diff line change
@@ -3,8 +3,14 @@ import type { Unhead } from 'unhead/types'
import { createElement } from 'react'
import { UnheadContext } from './context'

export { createHead, extractUnheadInputFromHtml, renderSSRHead, type SSRHeadPayload, transformHtmlTemplate } from 'unhead/server'
export { createHead, extractUnheadInputFromHtml, renderSSRHead, transformHtmlTemplate } from 'unhead/server'

export function UnheadProvider({ children, value }: { children: ReactNode, value: Unhead }) {
return createElement(UnheadContext.Provider, { value }, children)
}

export type {
CreateServerHeadOptions,
SSRHeadPayload,
Unhead,
} from 'unhead/types'
2 changes: 1 addition & 1 deletion packages/schema-org/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/schema-org",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"description": "Unhead Schema.org for Simple and Automated Google Rich Results",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
2 changes: 1 addition & 1 deletion packages/solid-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/solid-js",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
5 changes: 5 additions & 0 deletions packages/solid-js/src/client.ts
Original file line number Diff line number Diff line change
@@ -14,3 +14,8 @@ export function createHead(options: CreateClientHeadOptions = {}): Unhead {
})
return head
}

export type {
CreateClientHeadOptions,
Unhead,
}
8 changes: 7 additions & 1 deletion packages/solid-js/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
export { UnheadContext } from './context'

export { createHead, extractUnheadInputFromHtml, renderSSRHead, type SSRHeadPayload, transformHtmlTemplate } from 'unhead/server'
export { createHead, extractUnheadInputFromHtml, renderSSRHead, transformHtmlTemplate } from 'unhead/server'

export type {
CreateServerHeadOptions,
SSRHeadPayload,
Unhead,
} from 'unhead/types'
2 changes: 1 addition & 1 deletion packages/svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/svelte",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
7 changes: 6 additions & 1 deletion packages/svelte/src/client.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { createHead as _createHead, createDebouncedFn, renderDOMHead } from 'unh

export { UnheadContextKey } from './context'

export function createHead(options: Omit<CreateClientHeadOptions, 'propResolvers'> = {}): Unhead {
export function createHead(options: CreateClientHeadOptions = {}): Unhead {
const head = _createHead({
domOptions: {
render: createDebouncedFn(() => renderDOMHead(head), fn => tick().then(fn)),
@@ -15,3 +15,8 @@ export function createHead(options: Omit<CreateClientHeadOptions, 'propResolvers
}

export { renderDOMHead } from 'unhead/client'

export type {
CreateClientHeadOptions,
Unhead,
}
8 changes: 7 additions & 1 deletion packages/svelte/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
export { UnheadContextKey } from './context'

export { createHead, extractUnheadInputFromHtml, renderSSRHead, type SSRHeadPayload, transformHtmlTemplate } from 'unhead/server'
export { createHead, extractUnheadInputFromHtml, renderSSRHead, transformHtmlTemplate } from 'unhead/server'

export type {
CreateServerHeadOptions,
SSRHeadPayload,
Unhead,
} from 'unhead/types'
2 changes: 1 addition & 1 deletion packages/unhead/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "unhead",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"description": "Full-stack <head> manager built for any framework.",
"author": {
"name": "Harlan Wilton",
4 changes: 4 additions & 0 deletions packages/unhead/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export type {
CreateClientHeadOptions,
Unhead,
} from '../types'
export { createHead } from './createHead'
export { renderDOMHead } from './renderDOMHead'
export { createDebouncedFn } from './util'
2 changes: 1 addition & 1 deletion packages/unhead/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type { SSRHeadPayload } from '../types'
export type { CreateServerHeadOptions, SSRHeadPayload, Unhead } from '../types'
export { createHead } from './createHead'
export { renderSSRHead } from './renderSSRHead'
export { transformHtmlTemplate } from './transformHtmlTemplate'
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unhead/vue",
"type": "module",
"version": "2.0.1",
"version": "2.0.2",
"description": "Full-stack <head> manager built for Vue.",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
5 changes: 5 additions & 0 deletions packages/vue/src/client.ts
Original file line number Diff line number Diff line change
@@ -17,3 +17,8 @@ export function createHead(options: CreateClientHeadOptions = {}): VueHeadClient
head.install = vueInstall(head)
return head
}

export type {
CreateClientHeadOptions,
VueHeadClient,
}
5 changes: 5 additions & 0 deletions packages/vue/src/server.ts
Original file line number Diff line number Diff line change
@@ -15,3 +15,8 @@ export function createHead(options: Omit<CreateServerHeadOptions, 'propsResolver
head.install = vueInstall(head)
return head
}

export type {
CreateServerHeadOptions,
VueHeadClient,
}
Loading