Skip to content

Commit 39fa747

Browse files
committed
Prepare v2.0.0 release
1 parent 9658939 commit 39fa747

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v2.0.0
4+
5+
The module bundling now uses [ng-packagr](https://github.com/dherges/ng-packagr).
6+
The reason behind a new major release is because imports will break in existing codebases.
7+
From now, you can/must simply use ``import { NgHttpLoaderModule } from 'ng-http-loader'`` without referencing the full path: they have changed, and this is the main reason a major release is introduced.
8+
9+
Additionally, [missing spinkit](https://github.com/mpalourdio/ng-http-loader/pull/70) have been added.
10+
311
## v1.0.3
412

513
Some compiler options have been reverted, so the compilation target is ``es5`` like before v1.0.2.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import { NgModule } from '@angular/core';
5555
[...]
5656
import { AppComponent } from './app.component';
5757
import { HttpClientModule } from '@angular/common/http'; <============
58-
import { NgHttpLoaderModule } from 'ng-http-loader/ng-http-loader.module'; <============
58+
import { NgHttpLoaderModule } from 'ng-http-loader'; <============
5959

6060
@NgModule({
6161
declarations: [
@@ -80,8 +80,8 @@ import { NgModule } from '@angular/core';
8080
[...]
8181
import { AppComponent } from './app.component';
8282
import { HttpClientModule } from '@angular/common/http'; <============
83-
import { NgHttpLoaderComponentsModule } from 'ng-http-loader/components/ng-http-loader-components.module'; <============
84-
import { NgHttpLoaderServicesModule } from 'ng-http-loader/services/ng-http-loader-services.module'; <============
83+
import { NgHttpLoaderComponentsModule } from 'ng-http-loader'; <============
84+
import { NgHttpLoaderServicesModule } from 'ng-http-loader'; <============
8585

8686
@NgModule({
8787
declarations: [
@@ -119,7 +119,7 @@ You can customize the **background-color**, the **spinner type** and the **debou
119119
**_To use this syntax, you must reference the ``Spinkit`` const as a public property in your app.component.ts_**:
120120

121121
```typescript
122-
import { Spinkit } from 'ng-http-loader/spinkits'; <============
122+
import { Spinkit } from 'ng-http-loader'; <============
123123

124124
@Component({
125125
selector: 'app-root',
@@ -170,7 +170,7 @@ Sometimes, when manually showing the spinner, an http request could be performed
170170
**For this reason, when calling ``SpinnerVisibilityService#show()``, it prevents the http interceptor from being triggered unless you explicitly call ``SpinnerVisibilityService#hide()``.**
171171

172172
```typescript
173-
import { SpinnerVisibilityService } from 'ng-http-loader/services/spinner-visibility.service';
173+
import { SpinnerVisibilityService } from 'ng-http-loader';
174174

175175
@Component({
176176
selector: 'my-component',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-http-loader",
3-
"version": "1.0.3",
3+
"version": "2.0.0",
44
"scripts": {
55
"ng": "ng",
66
"build": "ng build",

0 commit comments

Comments
 (0)