Skip to content

Releases: crisbeto/angular-svg-round-progressbar

5.0.1

10 Oct 15:10
Compare
Choose a tag to compare

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

10 Oct 14:56
Compare
Choose a tag to compare

This release is missing some files on npm due to a build issue. Please use version 5.0.1 or above.

4.0.0

22 Jul 10:57
Compare
Choose a tag to compare
  • Updates the required Angular version to 8.0.0 and fixes the breaking changes.
  • Fixes some internal build issues.

3.0.1

01 Jun 18:10
Compare
Choose a tag to compare

Fixes an error with the RoundProgressService provider when using ahead-of-time compilation.

3.0.0

30 May 05:53
Compare
Choose a tag to compare
  • 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

17 May 14:24
Compare
Choose a tag to compare
  • Bumps the required Angular version to 6.0.
  • Switches the Angular dependencies to peerDependencies.
  • 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 {};

1.2.1

02 Dec 16:36
Compare
Choose a tag to compare

Fixes an issue with the published files on NPM due to a TypeScript version mismatch.

1.2.0

02 Nov 13:43
Compare
Choose a tag to compare

Bumps the minimum required Angular version to 5.0.0.

1.1.1

07 Oct 08:33
Compare
Choose a tag to compare

Fixes an SVG error that was being logged when the max is set to 0.

1.1.0

10 Apr 17:51
Compare
Choose a tag to compare

Bumps the minimum required Angular version to 4.0.0.