Skip to content

Releases: natemoo-re/astro-icon

[email protected]

17 Feb 19:17
4d4fc78
Compare
Choose a tag to compare

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 from astro-icon to astro-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]

19 Dec 00:02
325dc55
Compare
Choose a tag to compare

Patch Changes

[email protected]

15 Dec 04:26
d633904
Compare
Choose a tag to compare

Patch Changes

  • #16 9ff5e7d Thanks @natemoo-re! - Fix parallelism issue when fetching icons from the Icon service in a map

[email protected]

08 Dec 23:05
8bd5d95
Compare
Choose a tag to compare

Patch Changes

[email protected]

08 Dec 19:25
25917bd
Compare
Choose a tag to compare

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>

[email protected]

06 Dec 19:23
aac7fe2
Compare
Choose a tag to compare

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]

06 Dec 00:30
8c4235a
Compare
Choose a tag to compare

Minor Changes

  • 62559e0 Thanks @natemoo-re! - Improve SpriteSheet component by automatically including only referenced icon files