- #258
61d5da607914212b8c7895cbffb049512a289b5a
Thanks @maxchang3! - Fix icon reloading logic to only trigger for relevant file changes
- #250
41218facd06f51a63d75cccb80c3745c256ec99f
Thanks @harukats! - Fixes type definitions and hash calculation for aliased icon names
1e6d429829a0e90ea2d43354daddedf026e08e51
Thanks @natemoo-re! - Fixes change detection logic for local icons whileastro dev
is running
-
#247
fce07f17fe67116165d5d3dd279519bb7bbed55c
Thanks @christina-de-martinez! - Adds adesc
prop shorthand which maps to the SVG<desc>
tag, similar totitle
. -
#246
4c5da3378436c2bee6ccdf4ad9cf0e1f32fb6903
Thanks @stramel! - Fixes an issue whereviewBox
was not correctly passed to<symbol>
elements -
#245
ff3a66a8a357375076022b6f9800561ed845c071
Thanks @stramel! - Fixes handling of duplicate icon entries in the integration configuration -
#243
a8c0a6c5fe2a01841c258af5fb3abe04839df5eb
Thanks @stramel! - Replaces deprecatedxlink:href
attribute with standardhref
attribute
-
#219
f18661fc47da152e7555d24b23143f0b481c852b
Thanks @Harry-Ross! - Added better typings for height, width and size to accept non-number values (i.e. 2 rem) -
#203
a4ff8736965214e16ce0b72364f43b3a4973f281
Thanks @natemoo-re! - Fixes an issue where collections would not be updated when the dev server was automatically restarted -
#230
7b11f6b0fb8977bfa35305f48ce70e9bc04ea07a
Thanks @frankievalentine! - Fixes a type definition issue caused by outdated dependency
- #200
d7528f61484d5b60108cbe00bc5fb856766688d0
Thanks @natemoo-re! - Adds support for theis:inline
directive, which bypasses automatic sprite optimization and directly embeds the plain SVG.
- #198
aac1ca330f6fdb56a6f3c32c4a91444ee746b557
Thanks @natemoo-re! - Fixes a regression in1.0.3
that changed how icons were sized
2aad9d7ab21cdeff91ce43a21babf70e81b1d116
Thanks @natemoo-re! - Fixes an internal TypeScript issue that may have been visible when runningastro check
-
#184
beefcb732c266bc3eedfa12740c0842fef7deccf
Thanks @natemoo-re! - Improves handling of invalid local icons, which previously caused all local icons to silently fail. -
#179
b55cd5f92da8988467e86cb2a45d3dfa82ef3ffa
Thanks @natemoo-re! - BREAKING: Requires subdirectory prefixes for local icons.This fixes a regression introduced in v1 and matches the previous v0
name
behavior.As an example, the
src/icons/logos/astro.svg
file could previously be referenced by the nameastro
. It should correctly be referenced aslogos/astro
.Before
<Icon name="astro" />
After
<Icon name="logos/astro" />
-
#180
580b5cd93d373ba72418365a97dac4cddf82afd7
Thanks @natemoo-re! - Removes an unecessary warning when only using local icons
-
#172
3819bd149236e7496beff275adc0239b098fe8ea
Thanks @natemoo-re! - Fix broken link in README -
#175
c8c3df3c7fbeb85ad6bf5af67c53048ea26abefc
Thanks @natemoo-re! - Fixes an issue that caused installed@iconify-json/*
packages to not be detected in production environments
-
#111
a40531cddfe8e688d35bd25ae15ebc64a0a14ec1
Thanks @natemoo-re! - Finally,[email protected]
has arrived! This release provides a more flexible and reliable method of icon management, removes a number of redundant APIs, and now relies on Astro's official integration API.Please see the Upgade to
astro-icon
v1 guide for specific migration steps and the brand new docs site for more information.
-
#111
a40531cddfe8e688d35bd25ae15ebc64a0a14ec1
Thanks @natemoo-re! - Updates theexports
field to point to the correctastro-icon/components
source file -
#111
a40531cddfe8e688d35bd25ae15ebc64a0a14ec1
Thanks @natemoo-re! - Moves warning about local directory to the moment they are used -
#111
a40531cddfe8e688d35bd25ae15ebc64a0a14ec1
Thanks @natemoo-re! - Makes theastro-icon
integration'sinclude
settings optional. By default, all icons for any detected@iconify-json/*
dependencies will be included. This makes migration much easier for existing static site users, while offering the same amount of control for server rendered users. -
#111
a40531cddfe8e688d35bd25ae15ebc64a0a14ec1
Thanks @natemoo-re! - Updates the SVGO options so that they are correctly passed through the build process
- #111
1d65511c418b0fef0668e760c33bff21deeb8ef3
Thanks @natemoo-re! - Updates theexports
field to point to the correctastro-icon/components
source file
-
#111
ad93cfc54abe169f4a52b803eded540b94299dbc
Thanks @natemoo-re! - Makes theastro-icon
integration'sinclude
settings optional. By default, all icons for any detected@iconify-json/*
dependencies will be included. This makes migration much easier for existing static site users, while offering the same amount of control for server rendered users. -
#111
ee99e2119b3bcc9b05376909a46a65da0087305b
Thanks @natemoo-re! - Updates the SVGO options so that they are correctly passed through the build process
- Oops, actually publish
dist
- #111
f1c763d
Thanks @natemoo-re! - This version ofastro-icon
provides a new way to manage your icons, relying on Astro's official integration API rather than a managed remote API. Please see the README for more information.
-
#153
3664cac3633330c3d19c8e1eb6ffa5c6b8848091
Thanks @natemoo-re! - Fixes incompatability with Vite 5 by removing a deprecated method -
#148
d176a7da3b7332d459ec97c0af1667b6be9057fa
Thanks @kripod! - Fixes an edge case withcreateIconPack
when a module cannot be resolved -
#141
832ac0523905f658cebd537d65c67b391d7c9b52
Thanks @liruifengv! - fix type import -
#149
f5640282120e4eaa947c695e02587604f3f8b1a6
Thanks @kripod! - Improves the performance forcreateIconPack
's local icon resolution
- #109
4e5f0a9
Thanks @natemoo-re! - Removevite/client
reference
- #56
60c7304
Thanks @dwightjack! - Fix Chrome not rendering icons using SVG gradients
- #61
41b0b76
Thanks @jasikpark! - Update README to drop SVGO workaround recommendation
- #46
31b6eae
Thanks @natemoo-re! - Another Vite 3 fix
- #44
3b5c5ff
Thanks @FredKSchott! - Small fix for vite 3
147001e
Thanks @natemoo-re! - FixSprite
component for Astro v1.0.0
- #32
4cfc1ba
Thanks @tony-sull! - Removes the deprecation warning for assert in import.meta.globEager
3b29d89
Thanks @natemoo-re! - Improve warning when no sprites are found rather than throwing an error
- #30
940539b
Thanks @natemoo-re! - Update package.json to include Astro keywords
- #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" })
-
d998134
Thanks @natemoo-re! - Fix issue with defaultsize
prop.
- #16
9ff5e7d
Thanks @natemoo-re! - Fix parallelism issue when fetching icons from the Icon service in a map
0217a71
Thanks @natemoo-re! - Automatically prefix IDs using SVGO
330e465
Thanks @natemoo-re! - Fail builds when icons cannot be fetched
-
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
-
#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.
62559e0
Thanks @natemoo-re! - Improve SpriteSheet component by automatically including only referenced icon files
e201b6e
Thanks @natemoo-re! - Improve documentation
- Fix issue with published package
52bb8ff
Thanks @natemoo-re! - Add<Sprite>
and<SpriteSheet>
components that take advantage of<use>