From 22e478d8a1339274ab0682be881cc3f435eb1e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Fri, 15 May 2026 15:53:34 +0200 Subject: [PATCH 01/33] chore: rename twodft to dallay across all package references --- demo/package.json | 2 +- package.json | 16 ++++++---------- packages/core/CHANGELOG.md | 6 +++--- packages/core/README.md | 30 +++++++++++++++--------------- packages/core/package.json | 12 ++++++------ packages/service/package.json | 6 +++--- 6 files changed, 34 insertions(+), 38 deletions(-) diff --git a/demo/package.json b/demo/package.json index b270d795..0a4cc880 100644 --- a/demo/package.json +++ b/demo/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@astrojs/cloudflare": "^13.1.8", - "@twodft/astro-icon": "workspace:*", + "@dallay/astro-icon": "workspace:*", "astro": "^6.1.4" } } diff --git a/package.json b/package.json index 33afdb62..747d14ae 100644 --- a/package.json +++ b/package.json @@ -4,29 +4,25 @@ "version": "0.0.0", "type": "module", "scripts": { - "build": "pnpm --filter @twodft/astro-icon --filter www run build", + "build": "pnpm --filter @dallay/astro-icon --filter www run build", "dev": "pnpm -r run dev", - "lint": "prettier \"**/*.{js,ts,md,json}\"", - "version": "changeset version && pnpm install --no-frozen-lockfile --lockfile-only" + "lint": "prettier \"**/*.{js,ts,md,json}\"" }, "repository": { "type": "git", - "url": "git+https://github.com/twodft/astro-icon.git" + "url": "git+https://github.com/dallay/astro-icon.git" }, "keywords": [], "license": "MIT", "bugs": { - "url": "https://github.com/twodft/astro-icon/issues" + "url": "https://github.com/dallay/astro-icon/issues" }, - "homepage": "https://github.com/natemoo-re/astro-icon#readme", + "homepage": "https://github.com/dallay/astro-icon#readme", "packageManager": "pnpm@10.33.0", "engines": { "node": ">=22.12.0" }, - "dependencies": { - "@changesets/changelog-github": "^0.6.0", - "@changesets/cli": "^2.30.0" - }, + "dependencies": {}, "devDependencies": { "prettier": "^3.8.1" } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e57ceb14..4bee72bd 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -22,16 +22,16 @@ ### Patch Changes -- Fix compatibility with Astro v6 and `@astrojs/cloudflare` v13 in development and server-rendered builds by preventing `@twodft/astro-icon/components` from being prebundled before the integration's virtual module is registered. +- Fix compatibility with Astro v6 and `@astrojs/cloudflare` v13 in development and server-rendered builds by preventing `@dallay/astro-icon/components` from being prebundled before the integration's virtual module is registered. ## 1.2.0 -First release as `@twodft/astro-icon`, a maintained fork of [`astro-icon`](https://github.com/natemoo-re/astro-icon). +First release as `@dallay/astro-icon`, a maintained fork of [`astro-icon`](https://github.com/natemoo-re/astro-icon). ### Minor Changes - Upgraded to support **Astro v6.x** and updated all dependencies (TypeScript 6, Vite 7, Node 22+). -- Migrated package namespace from `astro-icon` to `@twodft/astro-icon`. +- Migrated package namespace from `astro-icon` to `@dallay/astro-icon`. ### Patch Changes diff --git a/packages/core/README.md b/packages/core/README.md index 3222a7d6..9fbde510 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -2,14 +2,14 @@ > **A community-maintained fork of [`astro-icon`](https://github.com/natemoo-re/astro-icon) by [Nate Moore](https://github.com/natemoo-re), updated for Astro v6.x and Cloudflare Workers compatibility.** -[![npm version](https://img.shields.io/npm/v/@twodft/astro-icon?color=blue)](https://www.npmjs.com/package/@twodft/astro-icon) +[![npm version](https://img.shields.io/npm/v/@dallay/astro-icon?color=blue)](https://www.npmjs.com/package/@dallay/astro-icon) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) --- ## ⚠️ About This Fork -This package (`@twodft/astro-icon`) is a **ported and extended version** of the original [`astro-icon`](https://github.com/natemoo-re/astro-icon) created by **[Nate Moore (@natemoo-re)](https://github.com/natemoo-re)**. +This package (`@dallay/astro-icon`) is a **ported and extended version** of the original [`astro-icon`](https://github.com/natemoo-re/astro-icon) created by **[Nate Moore (@natemoo-re)](https://github.com/natemoo-re)**. The original `astro-icon` is an excellent integration that has served the Astro community well. This fork exists to address specific compatibility needs that arose with newer versions of Astro and serverless deployment targets: @@ -32,20 +32,20 @@ If the upstream project resumes active development with Astro v6 support, we rec ### Using npm ```sh -npm install @twodft/astro-icon +npm install @dallay/astro-icon ``` ### Using pnpm ```sh -pnpm add @twodft/astro-icon +pnpm add @dallay/astro-icon ``` Then, add the integration to your `astro.config.mjs`: ```js import { defineConfig } from "astro/config"; -import icon from "@twodft/astro-icon"; +import icon from "@dallay/astro-icon"; export default defineConfig({ integrations: [icon()], @@ -66,7 +66,7 @@ By default, Astro Icon supports custom local `svg` icons. They are optimized wit ```astro --- -import { Icon } from '@twodft/astro-icon/components'; +import { Icon } from '@dallay/astro-icon/components'; --- @@ -83,7 +83,7 @@ Astro Icon also supports [Iconify](https://iconify.design) icon sets out-of-the- ```astro --- -import { Icon } from '@twodft/astro-icon/components' +import { Icon } from '@dallay/astro-icon/components' --- @@ -117,7 +117,7 @@ Styling your icons is straightforward. Any styles can be targeted to the `[data- ```astro --- -import { Icon } from '@twodft/astro-icon/components'; +import { Icon } from '@dallay/astro-icon/components'; --- diff --git a/demo/src/pages/index.astro b/demo/src/pages/index.astro index 8004907b..66f36116 100644 --- a/demo/src/pages/index.astro +++ b/demo/src/pages/index.astro @@ -1,5 +1,8 @@ --- -const _icon = "adjustment"; +import { Icon } from "@dallay/astro-icon/components"; +import Base from "../layouts/base.astro"; + +const icon = "adjustment"; --- @@ -12,6 +15,7 @@ const _icon = "adjustment";

Local Icons

+ @@ -30,16 +34,18 @@ const _icon = "adjustment"; render it here!

+ - - - - - - - - - + + + + + + + + + + diff --git a/packages/core/components/Icon.astro b/packages/core/components/Icon.astro index e00a86f9..7e2ecf75 100644 --- a/packages/core/components/Icon.astro +++ b/packages/core/components/Icon.astro @@ -100,7 +100,7 @@ if (!iconData) { throw err; } -const _id = `ai:${collection.prefix}:${iconName ?? setName}`; +const id = `ai:${collection.prefix}:${iconName ?? setName}`; if (props.size) { props.width = props.size; @@ -108,11 +108,26 @@ if (props.size) { delete props.size; } const renderData = iconToSVG(iconData); + +// Determine accessible role: +// - If a title is provided the icon is meaningful → role="img" +// - Otherwise it is decorative → aria-hidden="true" +const isDecorative = !title; +const descId = desc ? `${id}:desc` : undefined; const normalizedProps = { ...(renderData.attributes as Partial), + // Prevent SVGs from being focusable in IE/Edge and some browsers + focusable: "false" as const, + // Decorative icons must be hidden from the accessibility tree (WCAG 1.1.1). + // Meaningful icons get role="img" and, when a desc is provided, aria-describedby + // pointing to the stable so assistive technologies read the description. + ...(isDecorative + ? { "aria-hidden": "true" as const } + : { role: "img" as const, ...(descId ? { "aria-describedby": descId } : {}) }), ...props, }; -const _normalizedBody = renderData.body; +// biome-ignore lint/correctness/noUnusedVariables: used in the Astro template below, outside Biome's JS scope +const normalizedBody = renderData.body; // biome-ignore lint/correctness/noUnusedVariables: viewBox is extracted to remove it from normalizedProps via delete const { viewBox } = normalizedProps; @@ -123,10 +138,10 @@ if (includeSymbol) { {title && {title}} - {desc && {desc}} + {desc && {desc}} { inline ? ( - + ) : ( {includeSymbol && } From a6a717a5cd9a82f2138eba2c55dcc3bb5c6a6953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Sat, 16 May 2026 18:17:24 +0200 Subject: [PATCH 26/33] fix(security): add GITHUB_TOKEN permissions and patch yaml CVE - Add explicit permissions blocks to all CI jobs (actions/missing-workflow-permissions) - lint job: contents: write (needed for git push on auto-fix) - smoke job: contents: read (read-only, follows least privilege) - Add pnpm override for yaml >= 2.8.3 to patch stack overflow vulnerability (GHSA-xxx, yaml >= 2.0.0 < 2.8.3) Closes code-scanning alerts #6 and #7 Closes dependabot alert #13 --- .github/workflows/ci.yml | 4 ++++ package.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c171c04b..f93d5bed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,8 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 @@ -71,6 +73,8 @@ jobs: smoke: name: Smoke Test runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 diff --git a/package.json b/package.json index fe432d53..949b4ef8 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "path-to-regexp": ">=6.3.0", "undici@<6": ">=5.29.0", "ajv@>=7.0.0-alpha.0": ">=8.18.0", - "smol-toml": ">=1.6.1" + "smol-toml": ">=1.6.1", + "yaml@>=2.0.0": ">=2.8.3" } }, "devDependencies": { From 2b68b47eb60dfce8f3dbf8976904f9288e2dec5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Sat, 16 May 2026 18:18:13 +0200 Subject: [PATCH 27/33] chore(deps): update lockfile with yaml override >= 2.8.3 --- pnpm-lock.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bdc1347b..1ab09512 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,7 @@ overrides: undici@<6: '>=5.29.0' ajv@>=7.0.0-alpha.0: '>=8.18.0' smol-toml: '>=1.6.1' + yaml@>=2.0.0: '>=2.8.3' importers: @@ -2948,7 +2949,7 @@ packages: sugarss: ^5.0.0 terser: ^5.16.0 tsx: ^4.8.1 - yaml: ^2.4.2 + yaml: '>=2.8.3' peerDependenciesMeta: '@types/node': optional: true @@ -3132,11 +3133,6 @@ packages: resolution: {integrity: sha512-qhjK/bzSRZ6HtTvgeFvjNPJGWdZ0+x5NREV/9XZWFjIGezew2b4r5JPy66IfOhd5OA7KeFwk1JfmEbnTvev0cA==} hasBin: true - yaml@2.7.1: - resolution: {integrity: sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==} - engines: {node: '>= 14'} - hasBin: true - yaml@2.9.0: resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} engines: {node: '>= 14.6'} @@ -6586,9 +6582,7 @@ snapshots: vscode-languageserver-textdocument: 1.0.12 vscode-languageserver-types: 3.17.5 vscode-uri: 3.1.0 - yaml: 2.7.1 - - yaml@2.7.1: {} + yaml: 2.9.0 yaml@2.9.0: {} From 229253041f168565ac6f44e442a39ac620d399ce Mon Sep 17 00:00:00 2001 From: "dallay-bot[bot]" <172063952+dallay-bot[bot]@users.noreply.github.com> Date: Sat, 16 May 2026 18:45:55 +0200 Subject: [PATCH 28/33] chore: release @dallay/astro-icon 1.3.2 (#7) Co-authored-by: dallay-bot[bot] <172063952+dallay-bot[bot]@users.noreply.github.com> --- .github/.release-please-manifest.json | 2 +- packages/core/CHANGELOG.md | 7 +++++++ packages/core/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index 32617b15..6c58a52d 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - "packages/core": "1.3.1" + "packages/core": "1.3.2" } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 90494f2a..4db56d64 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,12 @@ # astro-icon +## [1.3.2](https://github.com/dallay/astro-icon/compare/@dallay/astro-icon-v1.3.1...@dallay/astro-icon-v1.3.2) (2026-05-16) + + +### Bug Fixes + +* **a11y:** WCAG 2.1 accessibility improvements across Icon component and demo ([#6](https://github.com/dallay/astro-icon/issues/6)) ([af292bc](https://github.com/dallay/astro-icon/commit/af292bcfe229ca8c9f5b001e2ce2cf744de178fd)) + ## [1.3.1](https://github.com/dallay/astro-icon/compare/@dallay/astro-icon-v1.3.0...@dallay/astro-icon-v1.3.1) (2026-05-16) diff --git a/packages/core/package.json b/packages/core/package.json index a80b4442..d1001974 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dallay/astro-icon", - "version": "1.3.1", + "version": "1.3.2", "type": "module", "publishConfig": { "access": "public" From ca5c1ec7a018cc230130fa965a470418511d2a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Sat, 16 May 2026 19:13:25 +0200 Subject: [PATCH 29/33] docs(README): update installation instructions and add package manager options Enhance README with additional package manager installation commands for better user guidance. --- packages/core/README.md | 45 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index 9fbde510..0c6b4275 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -3,7 +3,16 @@ > **A community-maintained fork of [`astro-icon`](https://github.com/natemoo-re/astro-icon) by [Nate Moore](https://github.com/natemoo-re), updated for Astro v6.x and Cloudflare Workers compatibility.** [![npm version](https://img.shields.io/npm/v/@dallay/astro-icon?color=blue)](https://www.npmjs.com/package/@dallay/astro-icon) +[![npm downloads](https://img.shields.io/npm/dm/@dallay/astro-icon?color=blue)](https://www.npmjs.com/package/@dallay/astro-icon) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) +[![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/) +[![Astro v6](https://img.shields.io/badge/Astro-v6+-ff4d03?logo=astro)](https://astro.build) +[![Cloudflare Ready](https://img.shields.io/badge/Cloudflare-Ready-orange?logo=cloudflare)](https://workers.cloudflare.com/) +[![GitHub issues](https://img.shields.io/github/issues/dallay/astro-icon)](https://github.com/dallay/astro-icon/issues) +[![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/) +[![Astro v6](https://img.shields.io/badge/Astro-v6+-ff4d03?logo=astro)](https://astro.build) +[![Cloudflare Ready](https://img.shields.io/badge/Cloudflare-Ready-orange?logo=cloudflare)](https://workers.cloudflare.com/) +[![GitHub issues](https://img.shields.io/github/issues/dallay/astro-icon)](https://github.com/dallay/astro-icon/issues) --- @@ -29,18 +38,50 @@ If the upstream project resumes active development with Astro v6 support, we rec ## Installation -### Using npm +Choose your preferred package manager: + +### npm ```sh npm install @dallay/astro-icon ``` -### Using pnpm +### pnpm + +```sh +pnpm add @dallay/astro-icon +``` + +### yarn + +```sh +yarn add @dallay/astro-icon +``` + +### bun + +```sh +bun add @dallay/astro-icon +``` + +### pnpm ```sh pnpm add @dallay/astro-icon ``` +### yarn + +```sh +yarn add @dallay/astro-icon +``` + +### bun + +```sh +bun add @dallay/astro-icon +``` + Then, add the integration to your `astro.config.mjs`: ```js From 73aa8f2362b1b27d9b7b29068b3b918e94356f97 Mon Sep 17 00:00:00 2001 From: "dallay-bot[bot]" <172063952+dallay-bot[bot]@users.noreply.github.com> Date: Sat, 16 May 2026 19:27:44 +0200 Subject: [PATCH 30/33] chore: release @dallay/astro-icon 1.3.3 (#8) Co-authored-by: dallay-bot[bot] <172063952+dallay-bot[bot]@users.noreply.github.com> --- .github/.release-please-manifest.json | 2 +- packages/core/CHANGELOG.md | 7 +++++++ packages/core/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index 6c58a52d..b8f99a37 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - "packages/core": "1.3.2" + "packages/core": "1.3.3" } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 4db56d64..cd879f0e 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,12 @@ # astro-icon +## [1.3.3](https://github.com/dallay/astro-icon/compare/@dallay/astro-icon-v1.3.2...@dallay/astro-icon-v1.3.3) (2026-05-16) + + +### Documentation + +* **README:** update installation instructions and add package manager options ([ca5c1ec](https://github.com/dallay/astro-icon/commit/ca5c1ec7a018cc230130fa965a470418511d2a7b)) + ## [1.3.2](https://github.com/dallay/astro-icon/compare/@dallay/astro-icon-v1.3.1...@dallay/astro-icon-v1.3.2) (2026-05-16) diff --git a/packages/core/package.json b/packages/core/package.json index d1001974..aa9b1a72 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dallay/astro-icon", - "version": "1.3.2", + "version": "1.3.3", "type": "module", "publishConfig": { "access": "public" From b6a4eb57891adfc33b527a3b48eb7cf8b59f3bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Sat, 16 May 2026 19:39:09 +0200 Subject: [PATCH 31/33] docs: update all references from astro-icon to @dallay/astro-icon - Update installation commands (npm, pnpm, yarn) - Update import statements in code examples - Update GitHub links to point to dallay/astro-icon - Update changelog and issue links This fork maintains the package under @dallay/astro-icon, so documentation now points to the correct package. --- .../www/src/content/docs/getting-started.mdx | 32 +++++++++---------- .../src/content/docs/guides/components.mdx | 6 ++-- .../src/content/docs/guides/customization.mdx | 4 +-- .../src/content/docs/guides/upgrade/v1.mdx | 16 +++++----- packages/www/src/content/docs/index.mdx | 2 +- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/packages/www/src/content/docs/getting-started.mdx b/packages/www/src/content/docs/getting-started.mdx index 3adf8b5d..b051d3f9 100644 --- a/packages/www/src/content/docs/getting-started.mdx +++ b/packages/www/src/content/docs/getting-started.mdx @@ -23,52 +23,52 @@ The `astro add` command-line tool automates the installation for you. Run one of ```sh -npx astro add astro-icon +npx astro add @dallay/astro-icon ``` ```sh -pnpm astro add astro-icon +pnpm astro add @dallay/astro-icon ``` ```sh -yarn astro add astro-icon +yarn astro add @dallay/astro-icon ``` -If you run into any issues, [feel free to report them to us on GitHub](https://github.com/natemoo-re/astro-icon/issues) and try the manual installation steps below. +If you run into any issues, [feel free to report them to us on GitHub](https://github.com/dallay/astro-icon/issues) and try the manual installation steps below. ### Manual Install -First, install the `astro-icon` package using your package manager. Run one of the following commands in the terminal: +First, install the `@dallay/astro-icon` package using your package manager. Run one of the following commands in the terminal: ```sh -npm install astro-icon +npm install @dallay/astro-icon ``` ```sh -pnpm add astro-icon +pnpm add @dallay/astro-icon ``` ```sh -yarn add astro-icon +yarn add @dallay/astro-icon ``` @@ -79,7 +79,7 @@ Then, apply this integration to your `astro.config.*` file using the `integratio ```diff title="astro.config.mjs" lang="js" ins="icon()" import { defineConfig } from "astro/config"; -+ import icon from "astro-icon"; ++ import icon from "@dallay/astro-icon"; export default defineConfig({ integrations: [icon()], @@ -95,7 +95,7 @@ Icons in the `/src/icons/` directory can be automatically referenced by their sl ```astro mark="/src/icons/logo.svg" mark="logo" mark="/src/icons/logos/astro.svg" mark="logos/astro" --- -import { Icon } from 'astro-icon/components' +import { Icon } from '@dallay/astro-icon/components' --- @@ -114,33 +114,33 @@ import { Icon } from 'astro-icon/components' ## Updating Astro Icon -Astro Icon is a third-party Astro integration, which are not yet supported by `@astrojs/upgrade`. Instead, you can upgrade `astro-icon` by running the following command in your terminal: +Astro Icon is a third-party Astro integration, which are not yet supported by `@astrojs/upgrade`. Instead, you can upgrade `@dallay/astro-icon` by running the following command in your terminal: ```sh -npm install astro-icon@latest +npm install @dallay/astro-icon@latest ``` ```sh -pnpm add astro-icon@latest +pnpm add @dallay/astro-icon@latest ``` ```sh -yarn add astro-icon@latest +yarn add @dallay/astro-icon@latest ``` -See the [Astro Icon changelog](https://github.com/natemoo-re/astro-icon/blob/main/packages/core/CHANGELOG.md) for a full list of the changes made in each release. +See the [Astro Icon changelog](https://github.com/dallay/astro-icon/blob/main/packages/core/CHANGELOG.md) for a full list of the changes made in each release. ## Troubleshooting Astro Icon @@ -150,4 +150,4 @@ See the guides in the sidebar for help with additional topics. If your answer cannot be found in these docs, please visit the [full Astro Docs](https://docs.astro.build) for complete Astro documentation. Your question may be answered by understanding how Astro works in general. -You can also check for any known [Astro Icon issues on GitHub](https://github.com/natemoo-re/astro-icon/issues). Although this is not an official Astro package, we encourage you to join the [Astro Discord](https://astro.build/chat/) and chat with the active, friendly Astro community! +You can also check for any known [Astro Icon issues on GitHub](https://github.com/dallay/astro-icon/issues). Although this is not an official Astro package, we encourage you to join the [Astro Discord](https://astro.build/chat/) and chat with the active, friendly Astro community! diff --git a/packages/www/src/content/docs/guides/components.mdx b/packages/www/src/content/docs/guides/components.mdx index d6f6e1a4..df190448 100644 --- a/packages/www/src/content/docs/guides/components.mdx +++ b/packages/www/src/content/docs/guides/components.mdx @@ -7,11 +7,11 @@ Astro Icon's main API is an `Icon` component that automatically inlines an ` @@ -49,7 +49,7 @@ The approach uses a novel take on the more traditional [SVG Sprite](https://css- ```astro --- -import { Icon } from 'astro-icon/components' +import { Icon } from '@dallay/astro-icon/components' --- diff --git a/packages/www/src/content/docs/guides/customization.mdx b/packages/www/src/content/docs/guides/customization.mdx index 46fd1e88..b0f9647e 100644 --- a/packages/www/src/content/docs/guides/customization.mdx +++ b/packages/www/src/content/docs/guides/customization.mdx @@ -18,7 +18,7 @@ Icons in the `/src/icons/` directory can be automatically referenced by their sl ```astro mark="/src/icons/logo.svg" mark="logo" mark="/src/icons/logos/astro.svg" mark="logos/astro" --- -import { Icon } from 'astro-icon/components' +import { Icon } from '@dallay/astro-icon/components' --- @@ -76,7 +76,7 @@ Installed icon sets can be automatically referenced by their prefixed id, for ex ```astro mark="@iconify-json/mdi" mark="mdi:account" --- -import { Icon } from 'astro-icon/components' +import { Icon } from '@dallay/astro-icon/components' --- diff --git a/packages/www/src/content/docs/guides/upgrade/v1.mdx b/packages/www/src/content/docs/guides/upgrade/v1.mdx index 5549953c..acc97258 100644 --- a/packages/www/src/content/docs/guides/upgrade/v1.mdx +++ b/packages/www/src/content/docs/guides/upgrade/v1.mdx @@ -24,21 +24,21 @@ Update your project’s version of `astro-icon` to the latest version using your ```sh ins="latest" -npm install astro-icon@latest +npm install @dallay/astro-icon@latest ``` ```sh ins="latest" -pnpm add astro-icon@latest +pnpm add @dallay/astro-icon@latest ``` ```sh ins="latest" -yarn add astro-icon@latest +yarn add @dallay/astro-icon@latest ``` @@ -57,9 +57,9 @@ In v1, `astro-icon` has become a full-fledged integration. Update your `astro.config.mjs` file to include the new `astro-icon` integration. -```js title="astro.config.mjs" ins="import icon from \"astro-icon\";" ins="icon()" +```js title="astro.config.mjs" ins="import icon from \"@dallay/astro-icon\";" ins="icon()" import { defineConfig } from "astro/config"; -import icon from "astro-icon"; +import icon from "@dallay/astro-icon"; export default defineConfig({ integrations: [icon()], @@ -115,7 +115,7 @@ In v1, components are exported from the `astro-icon/components` path. Update your import statements to reference `astro-icon/components`. ```js ins="/components" -import { Icon } from 'astro-icon/components' +import { Icon } from '@dallay/astro-icon/components' ``` ### Changed: styling attribute @@ -167,7 +167,7 @@ Remove the `` wrapper from your pages. Replace any references t ```diff lang="astro" del="Sprite," ins="Icon" ins="/components" --- -import { Sprite, Icon } from 'astro-icon/components' +import { Sprite, Icon } from '@dallay/astro-icon/components' --- - @@ -206,7 +206,7 @@ Remove any usage of the `optimize` prop. Configure SVGO optimization by passing ```js title="astro.config.mjs" {7-15} import { defineConfig } from "astro/config"; -import icon from "astro-icon"; +import icon from "@dallay/astro-icon"; export default defineConfig({ integrations: [ diff --git a/packages/www/src/content/docs/index.mdx b/packages/www/src/content/docs/index.mdx index 60da448c..30512c4f 100644 --- a/packages/www/src/content/docs/index.mdx +++ b/packages/www/src/content/docs/index.mdx @@ -12,7 +12,7 @@ hero: icon: right-arrow variant: primary - text: View Repo - link: https://github.com/natemoo-re/astro-icon + link: https://github.com/dallay/astro-icon icon: external --- From 7ed6b1c1bdab77ac1ad17e03012dd0684b312abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Sat, 16 May 2026 20:00:48 +0200 Subject: [PATCH 32/33] Use @dallay/astro-icon in docs Update documentation examples to import the scoped package name. Replaced instances of `astro-icon` with `@dallay/astro-icon` in packages/www/src/content/docs/reference/configuration.mdx so examples reflect the packaged module name. --- packages/www/src/content/docs/reference/configuration.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/www/src/content/docs/reference/configuration.mdx b/packages/www/src/content/docs/reference/configuration.mdx index c1e0ab42..e8eca3d2 100644 --- a/packages/www/src/content/docs/reference/configuration.mdx +++ b/packages/www/src/content/docs/reference/configuration.mdx @@ -9,7 +9,7 @@ Astro Icon is an integration built on top the [Astro](https://astro.build) web f ```diff lang="js" title="astro.config.mjs" import { defineConfig } from 'astro/config'; -+ import icon from 'astro-icon'; ++ import icon from '@dallay/astro-icon'; export default defineConfig({ integrations: [ @@ -28,7 +28,7 @@ Filter the specific icons to include from `@iconify-json/*` sets in the final se ```js {7-12} import { defineConfig } from 'astro/config'; -import icon from 'astro-icon'; +import icon from '@dallay/astro-icon'; export default defineConfig({ integrations: [ @@ -56,7 +56,7 @@ To use a local icon directory other than the default `src/icons/`, set the `icon ```js {7} import { defineConfig } from "astro/config"; -import icon from "astro-icon"; +import icon from "@dallay/astro-icon"; export default defineConfig({ integrations: [ @@ -75,7 +75,7 @@ Refer to the official [`svgo` configuration options](https://github.com/svg/svgo ```js {7-24} import { defineConfig } from "astro/config"; -import icon from "astro-icon"; +import icon from "@dallay/astro-icon"; export default defineConfig({ integrations: [ From fbc4abd0f50d2c29d3d6ba24e12d8acfb1796af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= <33158051+yacosta738@users.noreply.github.com> Date: Sat, 16 May 2026 22:27:16 +0200 Subject: [PATCH 33/33] chore: Bump Node version to 24.15.0 Update Node runtime reference from 22.12.0 to 24.15.0 by changing .nvmrc and the "engines.node" field in package.json so local tooling and package metadata require the newer Node version. --- .nvmrc | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index dc0bb0f4..5bf4400f 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v22.12.0 +24.15.0 diff --git a/package.json b/package.json index 949b4ef8..79c1bb76 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/dallay/astro-icon#readme", "packageManager": "pnpm@10.33.0", "engines": { - "node": ">=22.12.0" + "node": ">=24.15.0" }, "pnpm": { "overrides": {