Skip to content

Commit 692a4a9

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 c649f7d commit 692a4a9

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,16 +8,11 @@
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';
1414
import {_isTestEnvironment} from '@angular/cdk/platform';
15-
16-
// Private version constant to circumvent test/build issues,
17-
// i.e. avoid core to depend on the @angular/material primary entry-point
18-
// Can be removed once the Material primary entry-point no longer
19-
// re-exports all secondary entry-points
20-
const VERSION = new Version('0.0.0-PLACEHOLDER');
15+
import {VERSION} from '../version';
2116

2217
/** @docs-private */
2318
export function MATERIAL_SANITY_CHECKS_FACTORY(): SanityChecks {
@@ -146,7 +141,7 @@ export class MatCommonModule {
146141
console.warn(
147142
'The Angular Material version (' + VERSION.full + ') does not match ' +
148143
'the Angular CDK version (' + CDK_VERSION.full + ').\n' +
149-
'Please ensure the versions of these two packages exactly match.'
144+
'Please ensure the versions of these two packages match exactly.'
150145
);
151146
}
152147
}

0 commit comments

Comments
 (0)