Skip to content

Commit 42ad241

Browse files
committed
refactor: remove compatibility mode
Since the switch to the `mat-` prefix, the compatibility mode is no longer necessary. These changes remove anything that was left. BREAKING CHANGE: The `MATERIAL_COMPATIBILITY_MODE`, `CompatibilityModule`, `NoConflictStyleCompatibilityMode`, `MatPrefixRejector`, `MdPrefixRejector` symbols have been removed.
1 parent 7fe1b81 commit 42ad241

File tree

6 files changed

+3
-233
lines changed

6 files changed

+3
-233
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ src/lib/core/option/** @kara @crisbeto
3636
src/lib/core/rxjs/** @jelbourn
3737
src/lib/core/ripple/** @devversion
3838
src/lib/core/a11y/** @jelbourn @devversion
39-
src/lib/core/compatibility/** @jelbourn
4039
src/lib/core/overlay/** @jelbourn @crisbeto
4140
src/lib/core/overlay/scroll/** @andrewseguin @crisbeto
4241
src/lib/core/platform/** @jelbourn @devversion

guides/compatibility-mode.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/lib/core/common-behaviors/common-module.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import {NgModule, InjectionToken, Optional, Inject, isDevMode} from '@angular/core';
1010
import {BidiModule} from '@angular/cdk/bidi';
11-
import {CompatibilityModule} from '../compatibility/compatibility';
1211

1312

1413
/** Injection token that configures whether the Material sanity checks are enabled. */
@@ -17,13 +16,13 @@ export const MATERIAL_SANITY_CHECKS = new InjectionToken<boolean>('mat-sanity-ch
1716

1817
/**
1918
* Module that captures anything that should be loaded and/or run for *all* Angular Material
20-
* components. This includes Bidi, compatibility mode, etc.
19+
* components. This includes Bidi, etc.
2120
*
2221
* This module should be imported to each top-level component module (e.g., MatTabsModule).
2322
*/
2423
@NgModule({
25-
imports: [CompatibilityModule, BidiModule],
26-
exports: [CompatibilityModule, BidiModule],
24+
imports: [BidiModule],
25+
exports: [BidiModule],
2726
providers: [{
2827
provide: MATERIAL_SANITY_CHECKS, useValue: true,
2928
}],

src/lib/core/compatibility/compatibility.spec.ts

Whitespace-only changes.

src/lib/core/compatibility/compatibility.ts

Lines changed: 0 additions & 205 deletions
This file was deleted.

src/lib/core/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
export * from './animation/animation';
1010
export * from './common-behaviors/index';
11-
export * from './compatibility/compatibility';
1211
export * from './datetime/index';
1312
export * from './error/error-options';
1413
export * from './gestures/gesture-annotations';

0 commit comments

Comments
 (0)