Skip to content

Conversation

@harlan-zw
Copy link
Collaborator

@harlan-zw harlan-zw commented Dec 24, 2025

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Migrates resolveTags() to be a sync function so we can run it during SSR streaming without requiring an await.

  • requires hookable v6 ⚠️ we may switch to hookable core in v3 for more minimal implementation and use a bundled version
  • ⚠️ breaking change as deprecated promise input is now no longer supported
  • Many hooks now only run sync

Migration Notes

Remove await from resolveTags().

const head = injectHead()
-const tags = await head.resolveTags()
+const tags = head.resolveTags()

Switch tag hooks, drop async.

Effects; entries:normalize, tag:normalise, tags:beforeResolve, tags:resolve, tags:afterResolve.

const head = injectHead()
-head.hooks.hook('entries:resolve', async () => {})
+head.hooks.hook('entries:resolve', () => {})

@github-actions
Copy link
Contributor

Bundle Size Analysis

Bundle Size Gzipped
Client (Minimal) 0.2 kB 0.2 kB
Server (Minimal) 0.3 kB 0.2 kB
Vue Client (Minimal) 0.3 kB 0.2 kB
Vue Server (Minimal) 0.3 kB 0.2 kB

@harlan-zw harlan-zw changed the base branch from main to v3 December 24, 2025 11:27
@harlan-zw harlan-zw mentioned this pull request Dec 24, 2025
@harlan-zw harlan-zw merged commit 436a09d into v3 Dec 25, 2025
5 checks passed
@harlan-zw harlan-zw mentioned this pull request Jan 4, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants