Skip to content

Releases: natemoo-re/astro-icon

astro-icon@0.7.0

05 Apr 22:39
8512356
Compare
Choose a tag to compare

Minor Changes

  • #32 4cfc1ba Thanks @tony-sull! - Removes the deprecation warning for assert in import.meta.globEager

Patch Changes

  • 3b29d89 Thanks @natemoo-re! - Improve warning when no sprites are found rather than throwing an error

astro-icon@0.6.1

24 Mar 17:43
73e4b9b
Compare
Choose a tag to compare

Patch Changes

astro-icon@0.6.0

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

    • astro-icon@0.6.0 is compatible with astro@0.23.x 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" })

astro-icon@0.5.3

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

Patch Changes

astro-icon@0.5.2

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

astro-icon@0.5.1

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

Patch Changes

astro-icon@0.5.0

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>

astro-icon@0.4.0

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.

astro-icon@0.3.0

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