Skip to content

Commit e2e16ea

Browse files
committed
refactor(material/core): remove extra version constant
Cleans up an extra `VERSION` constant that was put in place for something that shouldn't be an issue anymore.
1 parent f3e8196 commit e2e16ea

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,10 @@
88

99
import {HighContrastModeDetector} from '@angular/cdk/a11y';
1010
import {BidiModule} from '@angular/cdk/bidi';
11-
import {Inject, InjectionToken, isDevMode, NgModule, Optional, Version} from '@angular/core';
11+
import {Inject, InjectionToken, isDevMode, NgModule, Optional} from '@angular/core';
1212
import {VERSION as CDK_VERSION} from '@angular/cdk';
1313
import {DOCUMENT} from '@angular/common';
14-
15-
// Private version constant to circumvent test/build issues,
16-
// i.e. avoid core to depend on the @angular/material primary entry-point
17-
// Can be removed once the Material primary entry-point no longer
18-
// re-exports all secondary entry-points
19-
const VERSION = new Version('0.0.0-PLACEHOLDER');
14+
import {VERSION} from '../version';
2015

2116
/** @docs-private */
2217
export function MATERIAL_SANITY_CHECKS_FACTORY(): SanityChecks {
@@ -157,7 +152,7 @@ export class MatCommonModule {
157152
console.warn(
158153
'The Angular Material version (' + VERSION.full + ') does not match ' +
159154
'the Angular CDK version (' + CDK_VERSION.full + ').\n' +
160-
'Please ensure the versions of these two packages exactly match.'
155+
'Please ensure the versions of these two packages match exactly.'
161156
);
162157
}
163158
}

0 commit comments

Comments
 (0)