Skip to content

Commit

Permalink
refactor(animations): reuse existing Version class (#44375)
Browse files Browse the repository at this point in the history
Animations package has its own implementation of the `Version` class, when other packages use an implementation from `@angular/core`. This commit aligns Animations package with other packages and makes use of the `Version` class from `@angular/core`.

PR Close #44375
  • Loading branch information
AndrewKushnir authored and alxhub committed Dec 7, 2021
1 parent c434e84 commit 52a73c6
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions packages/animations/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@
* @description
* Entry point for all public APIs of the animation package.
*/

/**
* @description
*
* Represents the version of angular/animations
*/
export class Version {
public readonly major: string;
public readonly minor: string;
public readonly patch: string;

constructor(public full: string) {
const splits = full.split('.');
this.major = splits[0];
this.minor = splits[1];
this.patch = splits.slice(2).join('.');
}
}
import {Version} from '@angular/core';

export const VERSION = new Version('0.0.0-PLACEHOLDER');

0 comments on commit 52a73c6

Please sign in to comment.