Releases: natemoo-re/astro-icon
[email protected]
Minor Changes
-
#26
21bfa28
Thanks @matthewp! -astro-icon
is now compatible with Astro's--experimental-static-build
flag -
#26
21bfa28
Thanks @matthewp! - # Breaking Changes-
[email protected]
is compatible with[email protected]
and up, but will no longer work in lower versions. -
The
createIconPack
export has been moved fromastro-icon
toastro-icon/pack
.You will likely see a Vite error that
createIconPack
is not defined until you update your import statement.- import { createIconPack } from "astro-icon"; + import { createIconPack } from "astro-icon/pack"; export default createIconPack({ package: "heroicons", dir: "outline" })
-
[email protected]
Patch Changes
d998134
Thanks @natemoo-re! - Fix issue with defaultsize
prop.
[email protected]
Patch Changes
- #16
9ff5e7d
Thanks @natemoo-re! - Fix parallelism issue when fetching icons from the Icon service in a map
[email protected]
Patch Changes
-
0217a71
Thanks @natemoo-re! - Automatically prefix IDs using SVGO -
330e465
Thanks @natemoo-re! - Fail builds when icons cannot be fetched
[email protected]
Minor Changes
-
e61559b
Thanks @natemoo-re! - Adds<Sprite.Provider>
component. This will render<Spritesheet>
internally, after all<Sprite>
components have been rendered, solving a race condition.Deprecates
<Spritesheet>
, to be replaced with<Sprite.Provider>
component.Migrating from
<Spritesheet>
to<Sprite.Provider>
- Remove
Spritesheet
component. - Wrap your site content in
<Sprite.Provider>
. This also works inside of a layout component!
--- - import { Sprite, Spritesheet } from 'astro-icon'; + import { Sprite } from 'astro-icon'; --- <body> + <Sprite.Provider> <Sprite name="icon" /> - <Spritesheet /> + </Sprite.Provider> </body>
- Remove
[email protected]
Minor Changes
-
#7
3715ead
Thanks @natemoo-re! - Add support for custom icon packs from local or remote sources.Add built-in icon packs powered by Iconify! You can search for supported on icons on Icônes.
[email protected]
Minor Changes
62559e0
Thanks @natemoo-re! - Improve SpriteSheet component by automatically including only referenced icon files