mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-12-02 17:06:06 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f3b70b10b | ||
|
|
811a814ef9 | ||
|
|
54d5a17c13 | ||
|
|
fccc260627 | ||
|
|
d582e6208e | ||
|
|
625d54fdad | ||
|
|
841fb96543 | ||
|
|
7f3aeb395a | ||
|
|
9dab13aef7 | ||
|
|
df6d6f8aeb | ||
|
|
875bfd8300 | ||
|
|
cb640b6208 | ||
|
|
6a032e54cd | ||
|
|
a3902ce3bb | ||
|
|
8237f1ccaa |
@@ -45,8 +45,13 @@ jobs:
|
||||
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
|
||||
- name: Install root dependencies
|
||||
run: npm ci
|
||||
shell: bash
|
||||
- name: Create GitHub Release
|
||||
run: lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github
|
||||
run: npx lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
shell: bash
|
||||
@@ -55,7 +60,7 @@ jobs:
|
||||
# so we do that here.
|
||||
- name: Bump Package Lock
|
||||
run: |
|
||||
lerna exec "npm install --package-lock-only --legacy-peer-deps"
|
||||
npx lerna exec "npm install --package-lock-only --legacy-peer-deps"
|
||||
git add .
|
||||
git commit -m "chore(): update package lock files"
|
||||
git push
|
||||
|
||||
+10
-6
@@ -3,19 +3,23 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [7.2.0](https://github.com/ionic-team/ionicons/compare/v7.1.2...v7.2.0) (2023-10-10)
|
||||
## [7.2.2](https://github.com/ionic-team/ionicons/compare/v7.2.1...v7.2.2) (2023-12-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** mapping same icon does not warn ([#1279](https://github.com/ionic-team/ionicons/issues/1279)) ([8297018](https://github.com/ionic-team/ionicons/commit/8297018cb591f5e33a815ceb9e4e765271ecf5ad))
|
||||
* **icon:** verify the icon loads in the lifecycle ([#1278](https://github.com/ionic-team/ionicons/issues/1278)) ([7f7f346](https://github.com/ionic-team/ionicons/commit/7f7f346af47f45531046e1d2f1a88f53acee77fa))
|
||||
* **icon:** add better warning when loading icons ([#1297](https://github.com/ionic-team/ionicons/issues/1297)) ([d582e62](https://github.com/ionic-team/ionicons/commit/d582e6208e626722e4350426a509a6870e90a0bc))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* allow passing in only icon SVG data to addIcons ([#1256](https://github.com/ionic-team/ionicons/issues/1256)) ([1e33313](https://github.com/ionic-team/ionicons/commit/1e3331347328c11a8b4c58c9200059bfd76b0e59))
|
||||
* **icon:** support for dynamic type ([#1246](https://github.com/ionic-team/ionicons/issues/1246)) ([45c04dd](https://github.com/ionic-team/ionicons/commit/45c04dda6c905e535083b171cead374b1c993afa))
|
||||
|
||||
|
||||
## [7.2.1](https://github.com/ionic-team/ionicons/compare/v7.2.0...v7.2.1) (2023-10-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** font scales without host style ([#1289](https://github.com/ionic-team/ionicons/issues/1289)) ([875bfd8](https://github.com/ionic-team/ionicons/commit/875bfd8300144c62e55a5a76dc2cff8cf1f01bfe))
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
"packages": [
|
||||
"./"
|
||||
],
|
||||
"version": "7.2.0"
|
||||
"version": "7.2.2"
|
||||
}
|
||||
|
||||
Generated
+6
-10
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.2.0",
|
||||
"version": "7.2.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ionicons",
|
||||
"version": "7.2.0",
|
||||
"version": "7.2.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@stencil/core": "^4.0.3"
|
||||
@@ -18283,8 +18283,7 @@
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz",
|
||||
"integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
},
|
||||
"@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "6.8.1",
|
||||
@@ -22727,8 +22726,7 @@
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
|
||||
"integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
},
|
||||
"jest-regex-util": {
|
||||
"version": "27.5.1",
|
||||
@@ -23413,8 +23411,7 @@
|
||||
"version": "7.5.9",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
|
||||
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -28189,8 +28186,7 @@
|
||||
"version": "8.13.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
|
||||
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
},
|
||||
"xml-name-validator": {
|
||||
"version": "3.0.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.2.0",
|
||||
"version": "7.2.2",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"components/",
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
box-sizing: content-box !important;
|
||||
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
:host .ionicon {
|
||||
|
||||
@@ -64,7 +64,7 @@ export const getUrl = (i: Icon) => {
|
||||
|
||||
url = getName(i.name, i.icon, i.mode, i.ios, i.md);
|
||||
if (url) {
|
||||
return getNamedUrl(url);
|
||||
return getNamedUrl(url, i);
|
||||
}
|
||||
|
||||
if (i.icon) {
|
||||
@@ -83,12 +83,23 @@ export const getUrl = (i: Icon) => {
|
||||
};
|
||||
|
||||
|
||||
const getNamedUrl = (iconName: string) => {
|
||||
const getNamedUrl = (iconName: string, iconEl: Icon) => {
|
||||
const url = getIconMap().get(iconName);
|
||||
if (url) {
|
||||
return url;
|
||||
}
|
||||
return getAssetPath(`svg/${iconName}.svg`);
|
||||
try {
|
||||
return getAssetPath(`svg/${iconName}.svg`);
|
||||
} catch(e) {
|
||||
/**
|
||||
* In the custom elements build version of ionicons, referencing an icon
|
||||
* by name will throw an invalid URL error because the asset path is not defined.
|
||||
* This catches that error and logs something that is more developer-friendly.
|
||||
* We also include a reference to the ion-icon element so developers can
|
||||
* figure out which instance of ion-icon needs to be updated.
|
||||
*/
|
||||
console.warn(`[Ionicons Warning]: Could not load icon with name "${iconName}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`, iconEl);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user