Skip to content

fix(unhead)!: sync resolve tag engine - #619

Merged
harlan-zw merged 3 commits into
v3from
fix/sync-resolve-tags
Dec 25, 2025
Merged

harlan-zw merged 3 commits into
v3from
fix/sync-resolve-tags

Conversation

@harlan-zw

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

Copy link
Copy Markdown
Collaborator

🔗 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
Copy Markdown
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
@harlan-zw harlan-zw mentioned this pull request Jan 4, 2026
1 of 6 tasks
@harlan-zw harlan-zw mentioned this pull request Apr 4, 2026
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.

1 participant