Releases: crisbeto/angular-svg-round-progressbar
Releases · crisbeto/angular-svg-round-progressbar
5.0.1
There are no user-facing changes in this release, but the files published to npm have been updated to follow the Angular Package Format. Thank you @DuncanFaulkner for helping with the build setup.
5.0.0
4.0.0
3.0.1
3.0.0
- Updates the required Angular version to 8.0.0 and fixes the breaking changes.
- Switches to
OnPush
change detection. - Does some internal cleanup.
Breaking changes
This release does some long overdue internal cleanup inside the component in order to generate less ES5 code. The changes will only be breaking if you were extending the RoundProgressComponent
or were accessing some of its private APIs.
- The
_renderer
constructor parameter was removed. _diameter
getter was converted into a method called_getDiameter
._elementHeight
getter was converted into a method called_getElementHeight
._viewBox
getter was converted into a method called_getViewBox
._paddingBottom
getter was converted into a method called_getPaddingBottom
.
2.0.0
- Bumps the required Angular version to 6.0.
- Switches the Angular
dependencies
topeerDependencies
. - Uses the proper Angular conventions for providing default values.
BREAKING CHANGES
In order to align the project with the conventions set by the Angular community, the RoundProgressConfig
provider has been removed in favor of providing the default values via the ROUND_PROGRESS_DEFAULTS
injection token.
Before
import {NgModule} from '@angular/core';
import {RoundProgressModule, RoundProgressConfig} from 'angular-svg-round-progressbar';
@NgModule({
imports: [RoundProgressModule]
})
export class YourModule {
constructor(private _config: RoundProgressConfig) {
_config.setDefaults({
color: '#f00',
background: '#0f0'
});
}
};
After
import {NgModule} from '@angular/core';
import {
RoundProgressModule,
ROUND_PROGRESS_DEFAULTS
} from 'angular-svg-round-progressbar';
@NgModule({
imports: [RoundProgressModule],
providers: [{
provide: ROUND_PROGRESS_DEFAULTS,
useValue: {
color: '#f00',
background: '#0f0'
}
}]
})
export class YourModule {};