Nuxt Icon v2.6.0
nuxt/icon
Summary
Nuxt Icon v2.6.0 introduces the ability to set different providers for SSR and client-side rendering, enhancing flexibility. Additionally, there are important behavior changes regarding the resolution of custom collection directories, which now depend on the declaring layer. Several bug fixes improve caching, collection handling, and remote request deduplication.
Full release notes
🚀 Features
providercan now be set separately for SSR and the browser:provider: { server: 'server', client: 'iconify' }. A string works as before. (#541)- Behavior change: a relative
dirincustomCollections/serverBundle.collectionsdeclared in a Nuxt layer now resolves against that layer's directory instead of the app'srootDir. If a base layer declared a collection and expected each app to supply the SVGs, declare it in the app or use an absolute path. (#530)
🐞 Bug Fixes
- Allow
iconsquery in cached handler for Nitro 3 - by @KazariAI and Sebastien Chopin in https://github.com/nuxt/icon/issues/542 (01bfc) - Resolve a custom collection
dirfrom the layer that declared it - by @giaBaoJS and @atinux in https://github.com/nuxt/icon/issues/530 (8f146) - Don't append custom collection prefixes to the shared collection list - by @giaBaoJS and @atinux in https://github.com/nuxt/icon/issues/533 (951c1)
- bundle: Include custom collection aliases in the client bundle - by @giaBaoJS and @atinux in https://github.com/nuxt/icon/issues/536 (cc27c)
- css: Mount a late icon under the name it was requested for - by @atinux in https://github.com/nuxt/icon/issues/546 (3eb56)
- scan: Don't extract icon names from the middle of identifiers - by @giaBaoJS in https://github.com/nuxt/icon/issues/531 (729a5)
- server: Dedupe remote collection requests - by @onmax in https://github.com/nuxt/icon/issues/535 (14d22)
- test: Update stale fixtures snapshot after solar icon set bump - by @antfubot in https://github.com/nuxt/icon/issues/532 (b878f)
