Compare commits

...
26 Commits
Author SHA1 Message Date
ionitron 3dab196131 8.0.7 2025-05-06 18:17:46 +00:00
Brandy SmithandBrandy Smith 7f73379a7c docs(changelog): correct links and add two recent releases (#1451)
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
2025-05-06 07:59:07 -07:00
ionitron abda804f39 8.0.6 2025-05-05 22:56:10 +00:00
Christian Bromann b9858daaab fix(ci): uncomment ci pipeline 2025-05-05 15:55:32 -07:00
ionitron 0807bbe045 8.0.5 2025-05-05 22:52:55 +00:00
Christian Bromann 0269306a15 fix(ci): remove auth step 2025-05-05 15:52:04 -07:00
Christian Bromann be3fcd7a70 fix(ci): fix auth command 2025-05-05 15:50:01 -07:00
Christian Bromann 4921d70e32 fix(ci): fix auth command 2025-05-05 15:48:06 -07:00
Christian Bromann bef34677cd fix(ci): fix propagating version 2025-05-05 15:44:13 -07:00
Christian Bromann 2e393282c9 fix(ci): fix git set up 2025-05-05 15:42:38 -07:00
Christian Bromann ecfff506b9 fix(ci): retrieve new version from package.json 2025-05-05 15:32:25 -07:00
Christian Bromann 87161a14a5 fix(ci): dry run it 2025-05-05 15:24:20 -07:00
Christian Bromann b1893f4ef6 fix(ci): test a different token 2025-05-05 15:22:11 -07:00
Christian Bromann fa5244e544 8.0.4 2025-05-05 15:18:31 -07:00
Christian Bromann d0e18dab3e fix(ci): tweak release pipeline 2025-05-05 15:18:26 -07:00
Christian Bromann e4d8d28253 8.0.3 2025-05-05 15:13:58 -07:00
Christian Bromann 77e5de20c8 fix(ci): set token before push 2025-05-05 15:13:45 -07:00
Christian Bromann 17ea00ef3c 8.0.2 2025-05-05 15:06:01 -07:00
Christian Bromann 04975203b7 8.0.1 2025-05-05 14:56:52 -07:00
Christian Bromann 2ad4148057 fix(ci): set proper token 2025-05-05 14:56:22 -07:00
Christian Bromann 5b23d0a963 fix(ci): set up git before calling npm version 2025-05-05 14:53:56 -07:00
Christian Bromann 987d118b0b ci: update pipelines 2025-05-05 14:52:10 -07:00
Christian Bromann a380c95899 docs: missing ; in readme 2025-05-05 12:20:36 -07:00
Christian Bromann fe60bd2490 docs: clarify usage of addIcons 2025-05-05 12:19:42 -07:00
Christian Bromann ba27560096 fix: exports 2025-05-05 12:15:51 -07:00
Christian Bromann dcca52d3b2 v8.0.0 2025-05-02 08:26:41 -07:00
8 changed files with 130 additions and 119 deletions
@@ -12,6 +12,14 @@ inputs:
description: 'A folder containing a package.json file.'
token:
description: 'The NPM authentication token required to publish.'
createRelease:
description: 'Create a release on GitHub.'
default: 'false'
ghToken:
description: 'The GitHub authentication token required to create a release.'
runs:
using: 'composite'
steps:
@@ -25,8 +33,16 @@ runs:
run: npm ci
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Set Git User
run: |
git config user.name ionitron
git config user.email hi@ionicframework.com
shell: bash
- name: Update Version
run: npm version ${{ inputs.version }} --git-tag-version false
id: update_version
run: |
npm version ${{ inputs.version }}
echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Run Build
@@ -43,3 +59,15 @@ runs:
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Create Release
if: ${{ inputs.createRelease == 'true' }}
run: |
git remote set-url origin https://${GH_TOKEN}:x-oauth-basic@github.com/ionic-team/ionicons.git
git remote -v
git push origin main --tags
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
shell: bash
env:
GH_TOKEN: ${{ inputs.ghToken }}
VERSION: ${{ env.VERSION }}
+14 -6
View File
@@ -20,13 +20,21 @@ jobs:
shell: bash
release-ionicons:
runs-on: ubuntu-latest
needs: [create-dev-hash]
uses: ./.github/workflows/release-ionicons.yml
with:
tag: dev
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to NPM
uses: ./.github/workflows/actions/publish-npm
with:
tag: dev
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
working-directory: './'
token: ${{ secrets.NPM_TOKEN }}
createRelease: 'false'
get-build:
name: Get your dev build!
-30
View File
@@ -1,30 +0,0 @@
name: 'Release Ionicons'
on:
workflow_call:
inputs:
version:
description: 'The type of version to release.'
type: string
required: true
tag:
description: 'The tag to publish to on NPM.'
type: string
required: true
secrets:
NPM_TOKEN:
required: true
jobs:
release-core:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/publish-npm
with:
tag: ${{ inputs.tag }}
version: ${{ inputs.version }}
working-directory: './'
token: ${{ secrets.NPM_TOKEN }}
+12 -70
View File
@@ -20,78 +20,20 @@ on:
jobs:
release-ionicons:
uses: ./.github/workflows/release-ionicons.yml
with:
tag: ${{ inputs.tag }}
version: ${{ inputs.version }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
finalize-release:
needs: [release-ionicons]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.IONITRON_TOKEN }}
fetch-depth: 0
- name: Configure Identity
# Commits from github-actions do not
# trigger other GitHub Actions. As a result,
# we publish releases from Ionitron instead
# so actions run when merging the release branch
# back into main.
run: |
git config user.name ionitron
git config user.email hi@ionicframework.com
shell: bash
# This ensures the local version of Lerna is installed
# and that we do not use the global Lerna version. We currently
# rely on functionality that does not exist in newer versions of Lerna.
- name: Install root dependencies
run: npm ci
shell: bash
- name: Create GitHub Release
run: npx lerna@5 version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
update-package-lock:
# This needs to run after finalize-release
# because we also push to the repo in that
# job. If these jobs ran in parallel then it is
# possible for them to push at the same time.
needs: [finalize-release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Pull the latest version of the reference
# branch instead of the revision that triggered
# the workflow otherwise we won't get the commit
# created in the previous job and this next job
# will fail.
- name: Publish to NPM
uses: ./.github/workflows/actions/publish-npm
with:
ref: ${{ github.ref }}
- name: Configure Identity
# Commits from github-actions do not
# trigger other GitHub Actions. As a result,
# we push from Ionitron instead so actions
# run when merging the release branch
# back into main.
run: |
git config user.name ionitron
git config user.email hi@ionicframework.com
shell: bash
# Lerna does not automatically bump versions
# of Ionicons dependencies that have changed,
# so we do that here.
- name: Bump Package Lock
run: |
npx lerna@5 exec "npm install --package-lock-only --legacy-peer-deps"
git add .
git commit -m "chore(): update package lock files"
git push
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
tag: ${{ inputs.tag }}
version: ${{ inputs.version }}
working-directory: './'
token: ${{ secrets.NPM_TOKEN }}
createRelease: true
ghToken: ${{ secrets.IONITRON_TOKEN }}
+54
View File
@@ -3,6 +3,60 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.0.6](https://github.com/ionic-team/ionicons/compare/v8.0.5...v8.0.6) (2025-05-05)
### Bug Fixes
* publish correct Ionicons build
## [8.0.5](https://github.com/ionic-team/ionicons/compare/v8.0.0...v8.0.5) (2025-05-05)
### Bug Fixes
* properly export Ionicons package files
# [8.0.0](https://github.com/ionic-team/ionicons/compare/v7.4.0...v8.0.0) (2025-05-02)
### ⚠️ Breaking Changes
* **Modernized Project Setup** ([#1447](https://github.com/ionic-team/ionicons/pull/1447))
* Updated all project dependencies
* Removed `lerna` from the monorepo setup
* Refactored and updated the build process
* Introduced Prettier formatting with build integration
* Replaced or fixed several icons to improve browser compatibility (notably Safari's `file://` SVG rendering)
* Various plugin fixes
### 🐛 Bug Fixes
* Icons:
* SVG `fill` path updated in `warning-outline.svg` (Fixes [#1298](https://github.com/ionic-team/ionicons/issues/1298))
* Applied `currentColor` to icons for better theming (Fixes [#1420](https://github.com/ionic-team/ionicons/issues/1420))
* Added missing tags to multiple icons:
* `bell` tag to `notifications` (Fixes [#1090](https://github.com/ionic-team/ionicons/issues/1090))
* `sliders`, `filters` tags to `option` (Fixes [#1060](https://github.com/ionic-team/ionicons/issues/1060))
* `loveseat` tag to `bed` (Closes [#503](https://github.com/ionic-team/ionicons/issues/503))
* `contacts` tag to `people-circle` (Closes [#779](https://github.com/ionic-team/ionicons/issues/779))
* Fixed and updated `data.json`
* Fixed broken contributing link
* Added missing `rimraf` dependency
* Improved codebase with additional comments
# [7.4.0](https://github.com/ionic-team/ionicons/compare/v7.3.1...v7.4.0) (2024-05-01)
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "ionicons",
"version": "7.4.0",
"version": "8.0.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ionicons",
"version": "7.4.0",
"version": "8.0.7",
"license": "MIT",
"dependencies": {
"@stencil/core": "^4.30.0"
+10 -5
View File
@@ -1,6 +1,6 @@
{
"name": "ionicons",
"version": "7.4.0",
"version": "8.0.7",
"description": "Premium icons for Ionic.",
"files": [
"components/",
@@ -15,17 +15,22 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/ionicons/ionicons.esm.js",
"import": "./dist/index.js",
"require": "./dist/index.cjs.js"
},
"./loader": {
"types": "./dist/loader/index.d.ts",
"import": "./dist/loader/index.js",
"require": "./dist/loader/index.cjs.js"
},
"./components": {
"types": "./components/index.d.ts",
"import": "./components/index.js"
},
"./icons": {
"types": "./icons/index.d.ts",
"import": "./icons/index.mjs",
"require": "./icons/index.js"
"types": "./icons/ion-icon.d.ts",
"import": "./icons/ion-icon.mjs",
"require": "./icons/ion-icon.js"
}
},
"scripts": {
+9 -5
View File
@@ -26,15 +26,15 @@ Also note that only visible icons are loaded, and icons that are "below the fold
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing `</body>` tag, to enable them.
```html
<script type="module" src="https://esm.sh/ionicons@latest"></script>
<script nomodule src="https://esm.sh/ionicons@latest"></script>
<script type="module" src="https://esm.sh/ionicons/loader@latest"></script>
<script nomodule src="https://esm.sh/ionicons/loader@latest"></script>
```
you can replace `latest` to pick any version of Ionicon, e.g.:
```html
<script type="module" src="https://esm.sh/ionicons@7.4.1"></script>
<script nomodule src="https://esm.sh/ionicons@7.4.1"></script>
<script type="module" src="https://esm.sh/ionicons/loader@8.0.0"></script>
<script nomodule src="https://esm.sh/ionicons/loader@8.0.0"></script>
```
### Basic usage
@@ -58,10 +58,14 @@ To use a custom SVG, provide its url in the `src` attribute to request the exter
If you have a different set of icons you would like to load or if the Ionicon icons are hosted on a different page or path, you can set the asset url from which Ionicons pulls the icons via:
```ts
import { setAssetPath } from 'ionicons'
import { setAssetPath, addIcons } from 'ionicons';
import { add, logoIonic, save } from 'ionicons/icons';
// set root path for loading icons to "<root>/public/svg"
setAssetPath(`${window.location.origin}/public/svg/`);
// only load specific icons
addIcons({ add, logoIonic, save });
```
This allows the use of named icons like this: