Skip to content

Commit 2818136

Browse files
authored
merge release-9.0.13
Release 9.0.13
2 parents 35f87db + 13464e3 commit 2818136

56 files changed

Lines changed: 1425 additions & 195 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/ionic-issue-bot.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ comment:
4242
If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (`+1`). If you would like to provide an additional use case for the feature, please post a comment.
4343
4444
45-
The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
45+
Feedback is open for 90 days. After that, the team will review the feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
4646
4747
4848
Thank you!
@@ -103,6 +103,14 @@ stale:
103103
lock: true
104104
dryRun: false
105105

106+
labelTimeout:
107+
labels:
108+
- label: "community feedback wanted"
109+
days: 90
110+
replaceWith: triage
111+
maxIssuesPerRun: 100
112+
dryRun: false
113+
106114
noReply:
107115
days: 14
108116
maxIssuesPerRun: 100
@@ -121,11 +129,15 @@ noReply:
121129
lock: true
122130
dryRun: false
123131

124-
noReproduction:
132+
needsReproduction:
125133
days: 14
126134
maxIssuesPerRun: 100
127135
label: "ionitron: needs reproduction"
128136
responseLabel: triage
137+
# a link to a repo outside ionic-team, like StackBlitz or CodeSandbox
138+
# an attached file (not an image or video),
139+
# or an Ionic component tag (<ion-badge> or <IonBadge>)
140+
responsePattern: 'https?://(github\.com/(?!ionic-team/|user-attachments/assets/)[^/\s]+/[^/\s]+|gitlab\.com/|bitbucket\.org/|stackblitz\.com/|codesandbox\.io/)|<ion-?[a-z][a-z-]*'
129141
exemptProjects: true
130142
exemptMilestones: true
131143
message: >

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [9.0.13](https://github.com/ionic-team/ionic-framework/compare/v9.0.12...v9.0.13) (2026-11-20)
7+
8+
### Bug Fixes
9+
10+
* **angular:** go back in browser history when popping to the previous view ([#31752](https://github.com/ionic-team/ionic-framework/issues/31752)) ([fd0ac5e](https://github.com/ionic-team/ionic-framework/commit/fd0ac5e9f340766e19f093852e596d67cd9b567a)), closes [#23448](https://github.com/ionic-team/ionic-framework/issues/23448) [#17752](https://github.com/ionic-team/ionic-framework/issues/17752) [#28307](https://github.com/ionic-team/ionic-framework/issues/28307)
11+
* **breadcrumb, item-option:** pass rel to the link ([#31726](https://github.com/ionic-team/ionic-framework/issues/31726)) ([f07b030](https://github.com/ionic-team/ionic-framework/commit/f07b030521d76fea9a7099e42170ddcd62e11c61)), closes [#31725](https://github.com/ionic-team/ionic-framework/issues/31725)
12+
* **datetime:** do not change max when the selected day does not exist in the new month ([#31489](https://github.com/ionic-team/ionic-framework/issues/31489)) ([17326e1](https://github.com/ionic-team/ionic-framework/commit/17326e1edce57938e416834a0dda96ca74890acb)), closes [#29124](https://github.com/ionic-team/ionic-framework/issues/29124) [#29124](https://github.com/ionic-team/ionic-framework/issues/29124)
13+
* **datetime:** show all month values between the min and max years ([#31490](https://github.com/ionic-team/ionic-framework/issues/31490)) ([97420a3](https://github.com/ionic-team/ionic-framework/commit/97420a3692ee49839a5ac0302327304b564f0435))
14+
* **deps:** update @stencil/core to v4.45.5 for ssr escaping ([#31791](https://github.com/ionic-team/ionic-framework/issues/31791)) ([6e16101](https://github.com/ionic-team/ionic-framework/commit/6e1610174f86cf3fa82bae9ae8781c24b98b3fed)), closes [#31792](https://github.com/ionic-team/ionic-framework/issues/31792)
15+
* **deps:** update ionicons to v8.1.1 for svg sanitization fix ([#31790](https://github.com/ionic-team/ionic-framework/issues/31790)) ([2040b22](https://github.com/ionic-team/ionic-framework/commit/2040b22afd8a8236ebe6444ef52db88ffcff2118)), closes [#31789](https://github.com/ionic-team/ionic-framework/issues/31789)
16+
* **footer:** fade the toolbar background out fully at the bottom ([#31771](https://github.com/ionic-team/ionic-framework/issues/31771)) ([ca4f2e6](https://github.com/ionic-team/ionic-framework/commit/ca4f2e67f9d388469e5e1f13787def6dbe65fa63)), closes [#31768](https://github.com/ionic-team/ionic-framework/issues/31768)
17+
* **rtl:** use :dir() for rtl styles when the browser supports it ([#31744](https://github.com/ionic-team/ionic-framework/issues/31744)) ([7ecca28](https://github.com/ionic-team/ionic-framework/commit/7ecca28c17913ac5bf062e8937954516f005c0eb))
18+
19+
620
## [9.0.12](https://github.com/ionic-team/ionic-framework/compare/v9.0.11...v9.0.12) (2026-11-17)
721

822
### Bug Fixes

‎core/CHANGELOG.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [9.0.13](https://github.com/ionic-team/ionic-framework/compare/v9.0.12...v9.0.13) (2026-11-20)
7+
8+
### Bug Fixes
9+
10+
* **breadcrumb, item-option:** pass rel to the link ([#31726](https://github.com/ionic-team/ionic-framework/issues/31726)) ([f07b030](https://github.com/ionic-team/ionic-framework/commit/f07b030521d76fea9a7099e42170ddcd62e11c61)), closes [#31725](https://github.com/ionic-team/ionic-framework/issues/31725)
11+
* **datetime:** do not change max when the selected day does not exist in the new month ([#31489](https://github.com/ionic-team/ionic-framework/issues/31489)) ([17326e1](https://github.com/ionic-team/ionic-framework/commit/17326e1edce57938e416834a0dda96ca74890acb)), closes [#29124](https://github.com/ionic-team/ionic-framework/issues/29124) [#29124](https://github.com/ionic-team/ionic-framework/issues/29124)
12+
* **datetime:** show all month values between the min and max years ([#31490](https://github.com/ionic-team/ionic-framework/issues/31490)) ([97420a3](https://github.com/ionic-team/ionic-framework/commit/97420a3692ee49839a5ac0302327304b564f0435))
13+
* **deps:** update @stencil/core to v4.45.5 for ssr escaping ([#31791](https://github.com/ionic-team/ionic-framework/issues/31791)) ([6e16101](https://github.com/ionic-team/ionic-framework/commit/6e1610174f86cf3fa82bae9ae8781c24b98b3fed)), closes [#31792](https://github.com/ionic-team/ionic-framework/issues/31792)
14+
* **deps:** update ionicons to v8.1.1 for svg sanitization fix ([#31790](https://github.com/ionic-team/ionic-framework/issues/31790)) ([2040b22](https://github.com/ionic-team/ionic-framework/commit/2040b22afd8a8236ebe6444ef52db88ffcff2118)), closes [#31789](https://github.com/ionic-team/ionic-framework/issues/31789)
15+
* **footer:** fade the toolbar background out fully at the bottom ([#31771](https://github.com/ionic-team/ionic-framework/issues/31771)) ([ca4f2e6](https://github.com/ionic-team/ionic-framework/commit/ca4f2e67f9d388469e5e1f13787def6dbe65fa63)), closes [#31768](https://github.com/ionic-team/ionic-framework/issues/31768)
16+
* **rtl:** use :dir() for rtl styles when the browser supports it ([#31744](https://github.com/ionic-team/ionic-framework/issues/31744)) ([7ecca28](https://github.com/ionic-team/ionic-framework/commit/7ecca28c17913ac5bf062e8937954516f005c0eb))
17+
18+
619
## [9.0.12](https://github.com/ionic-team/ionic-framework/compare/v9.0.11...v9.0.12) (2026-11-17)
720

821
### Bug Fixes

‎core/package-lock.json‎

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎core/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ionic/core",
3-
"version": "9.0.12",
3+
"version": "9.0.13",
44
"description": "Base components for Ionic",
55
"engines": {
66
"node": ">= 16"
@@ -66,8 +66,8 @@
6666
"loader/"
6767
],
6868
"dependencies": {
69-
"@stencil/core": "^4.45.4",
70-
"ionicons": "^8.1.0",
69+
"@stencil/core": "^4.45.5",
70+
"ionicons": "^8.1.1",
7171
"tslib": "^2.1.0"
7272
},
7373
"devDependencies": {

‎core/src/components/breadcrumb/breadcrumb.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export class Breadcrumb implements ComponentInterface {
183183
el,
184184
inheritedAttributes,
185185
last,
186+
rel,
186187
routerAnimation,
187188
routerDirection,
188189
separator,
@@ -203,6 +204,7 @@ export class Breadcrumb implements ComponentInterface {
203204
: {
204205
download,
205206
href,
207+
rel,
206208
target,
207209
};
208210

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { newSpecPage } from '@stencil/core/testing';
2+
3+
import { Breadcrumb } from '../breadcrumb';
4+
5+
describe('breadcrumb: rel', () => {
6+
it('should set the rel attribute on the link', async () => {
7+
const page = await newSpecPage({
8+
components: [Breadcrumb],
9+
html: `<ion-breadcrumb href="https://ionic.io" rel="noopener noreferrer">Ionic</ion-breadcrumb>`,
10+
});
11+
12+
const link = page.body.querySelector('ion-breadcrumb')!.shadowRoot!.querySelector('a')!;
13+
14+
expect(link.getAttribute('rel')).toBe('noopener noreferrer');
15+
});
16+
});

‎core/src/components/datetime/test/data.spec.ts‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
getToday,
77
getCombinedDateColumnData,
88
getTimeColumnsData,
9+
getMonthColumnData,
910
} from '../utils/data';
1011

1112
// The minutes are the same across all hour cycles, so we don't check those
@@ -516,3 +517,33 @@ describe('getCombinedDateColumnData', () => {
516517
]);
517518
});
518519
});
520+
521+
describe('getMonthColumnData()', () => {
522+
const monthValues = [1, 3, 5, 7, 9, 11];
523+
const getValues = (refParts: DatetimeParts, minParts?: DatetimeParts, maxParts?: DatetimeParts) =>
524+
getMonthColumnData('en-US', refParts, minParts, maxParts, monthValues).map((option) => option.value);
525+
526+
it('should apply the min month only in the min year when monthValues is set', () => {
527+
const minParts = { month: 6, day: 1, year: 2020 };
528+
529+
expect(getValues({ month: 5, day: 1, year: 2020 }, minParts)).toEqual([7, 9, 11]);
530+
expect(getValues({ month: 3, day: 1, year: 2024 }, minParts)).toEqual([1, 3, 5, 7, 9, 11]);
531+
});
532+
533+
it('should apply the max month only in the max year when monthValues is set', () => {
534+
const maxParts = { month: 4, day: 30, year: 2025 };
535+
536+
expect(getValues({ month: 3, day: 1, year: 2025 }, undefined, maxParts)).toEqual([1, 3]);
537+
expect(getValues({ month: 9, day: 1, year: 2024 }, undefined, maxParts)).toEqual([1, 3, 5, 7, 9, 11]);
538+
});
539+
540+
it('should match the months shown when monthValues is not set', () => {
541+
const minParts = { month: 6, day: 1, year: 2020 };
542+
const maxParts = { month: 4, day: 30, year: 2025 };
543+
const refParts = { month: 3, day: 1, year: 2024 };
544+
545+
const allMonths = getMonthColumnData('en-US', refParts, minParts, maxParts).map((option) => option.value);
546+
expect(allMonths).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
547+
expect(getValues(refParts, minParts, maxParts)).toEqual([1, 3, 5, 7, 9, 11]);
548+
});
549+
});

‎core/src/components/datetime/test/manipulation.spec.ts‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,38 @@ describe('validateParts()', () => {
558558
})
559559
).toEqual({ month: 1, day: 1, year: 2022, hour: 9, minute: 30 });
560560
});
561+
it('should not mutate the max parts when the day does not exist in the new month', () => {
562+
// Selecting March 31 and then April on the month wheel produces April 31.
563+
const maxParts = { month: 4, day: 20, year: 2024, hour: 23, minute: 59 };
564+
565+
expect(validateParts({ month: 4, day: 31, year: 2024, hour: 23, minute: 59 }, undefined, maxParts)).toEqual({
566+
month: 4,
567+
day: 20,
568+
year: 2024,
569+
hour: 23,
570+
minute: 59,
571+
});
572+
expect(maxParts).toEqual({ month: 4, day: 20, year: 2024, hour: 23, minute: 59 });
573+
});
574+
it('should not mutate the min parts when the day does not exist in the new month', () => {
575+
const minParts = { month: 3, day: 1, year: 2024, hour: 0, minute: 0 };
576+
577+
const result = validateParts({ month: 2, day: 31, year: 2024, hour: 0, minute: 0 }, minParts);
578+
expect(result).toEqual({ month: 3, day: 1, year: 2024, hour: 0, minute: 0 });
579+
expect(minParts).toEqual({ month: 3, day: 1, year: 2024, hour: 0, minute: 0 });
580+
});
581+
it('should move the time back in bounds when the fixed day lands on the max day', () => {
582+
// February 31 becomes February 29, which is the max day, so the max time applies.
583+
expect(
584+
validateParts({ month: 2, day: 31, year: 2024, hour: 23, minute: 0 }, undefined, {
585+
month: 2,
586+
day: 29,
587+
year: 2024,
588+
hour: 20,
589+
minute: 0,
590+
})
591+
).toEqual({ month: 2, day: 29, year: 2024, hour: 20, minute: 0 });
592+
});
561593
});
562594

563595
describe('getClosestValidDate()', () => {

‎core/src/components/datetime/utils/data.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,15 @@ export const getMonthColumnData = (
359359

360360
if (monthValues !== undefined) {
361361
let processedMonths = monthValues;
362-
if (maxParts?.month !== undefined) {
362+
/**
363+
* The max and min months only apply to the
364+
* max and min years. For example, with a max of
365+
* 2025-03, every month of 2024 is still allowed.
366+
*/
367+
if (maxParts?.month !== undefined && maxParts.year === year) {
363368
processedMonths = processedMonths.filter((month) => month <= maxParts.month!);
364369
}
365-
if (minParts?.month !== undefined) {
370+
if (minParts?.month !== undefined && minParts.year === year) {
366371
processedMonths = processedMonths.filter((month) => month >= minParts.month!);
367372
}
368373

0 commit comments

Comments
 (0)