Skip to content

Commit e64ea69

Browse files
clydinalan-agius4
authored andcommitted
fix(@schematics/angular): remove IE9/10 from browserslist for new projects
BREAKING CHANGE: Deprecated support for IE 9-10 has been removed in Angular 11. Only IE 9-10 support has been removed. IE 11 is officially supported in Angular 11. Additional information can be found here: https://v10.angular.io/guide/deprecations#ie-9-10-and-mobile
1 parent 1b8fabf commit e64ea69

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

packages/schematics/angular/application/files/.browserslistrc.template

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR<% if (legacyBrowsers) { %>
17-
IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11.
1817
IE 11<% } else { %>
19-
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
2018
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.<% } %>

packages/schematics/angular/application/index_spec.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -431,25 +431,21 @@ describe('Application Schematic', () => {
431431
});
432432
});
433433

434-
it(`should add support for IE 9-11 in '.browserslistrc' when 'legacyBrowsers' is true`, async () => {
434+
it(`should add support for IE 11 in '.browserslistrc' when 'legacyBrowsers' is true`, async () => {
435435
const options: ApplicationOptions = { ...defaultOptions, legacyBrowsers: true };
436436
const tree = await schematicRunner.runSchematicAsync('application', options, workspaceTree)
437437
.toPromise();
438438
const content = tree.readContent('/projects/foo/.browserslistrc');
439439
expect(content).not.toContain('not IE 11');
440440
expect(content).toContain('IE 11');
441-
442-
expect(content).not.toContain('not IE 9-10');
443-
expect(content).toContain('IE 9-10');
444441
});
445442

446-
it(`should not add support for IE 9-11 in '.browserslistrc' when 'legacyBrowsers' is false`, async () => {
443+
it(`should not add support for IE 11 in '.browserslistrc' when 'legacyBrowsers' is false`, async () => {
447444
const options: ApplicationOptions = { ...defaultOptions, legacyBrowsers: false };
448445
const tree = await schematicRunner.runSchematicAsync('application', options, workspaceTree)
449446
.toPromise();
450447
const content = tree.readContent('/projects/foo/.browserslistrc');
451448
expect(content).toContain('not IE 11');
452-
expect(content).toContain('not IE 9-10');
453449
});
454450

455451
it(`should create kebab-case project folder names with camelCase project name`, async () => {

tests/legacy-cli/e2e/assets/protractor-saucelabs.conf.js

-6
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ exports.config = {
4444
version: '13.1',
4545
tunnelIdentifier,
4646
},
47-
{
48-
browserName: 'internet explorer',
49-
platform: 'Windows 8',
50-
version: '10',
51-
tunnelIdentifier,
52-
},
5347
{
5448
browserName: 'internet explorer',
5549
platform: 'Windows 8.1',

0 commit comments

Comments
 (0)