You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***core:** rename the project into `ngx-scrollreveal` ([f4c4d1a](https://github.com/tinesoft/ngx-scrollreveal/commit/f4c4d1a))
8
+
9
+
10
+
### Features
11
+
12
+
***core:** migrate to ScrollReveal `v4.x.x` ([7b3c816](https://github.com/tinesoft/ngx-scrollreveal/commit/7b3c816))
13
+
***core:** remove the `forRoot()` in `NgsRevealModule` (no longer needed with Angular 6) ([b708dec](https://github.com/tinesoft/ngx-scrollreveal/commit/b708dec))
14
+
***core:** update to `Angular v6.x.x` and higher ([54c8a0a](https://github.com/tinesoft/ngx-scrollreveal/commit/54c8a0a))
15
+
16
+
17
+
### BREAKING CHANGES
18
+
19
+
***core:** imports in your application must be updated to consider the new package name `ngx-scrollreveal`
20
+
21
+
Before:
22
+
```
23
+
npm install --save ng-scrollreveal
24
+
25
+
...
26
+
27
+
import { ... } from 'ng-scrollreveal';
28
+
```
29
+
30
+
After:
31
+
```
32
+
npm install --save ngx-scrollreveal
33
+
34
+
...
35
+
36
+
import { ... } from 'ngx-scrollreveal';
37
+
```
38
+
***core:**`NgsRevealModule.forRoot()` has been removed, and internally replaced by use of new `providedIn` option in `@Injectable`
39
+
40
+
Before:
41
+
42
+
```ts
43
+
import {NgsRevealModule} from'ng-scrollreveal';
44
+
45
+
@NgModule({
46
+
declarations: [AppComponent, ...],
47
+
imports: [NgsRevealModule.forRoot()],
48
+
bootstrap: [AppComponent]
49
+
})
50
+
exportclassAppModule {
51
+
}
52
+
```
53
+
54
+
After:
55
+
56
+
```ts
57
+
import {NgsRevealModule} from'ng-scrollreveal';
58
+
59
+
@NgModule({
60
+
declarations: [AppComponent, ...],
61
+
imports: [NgsRevealModule],
62
+
bootstrap: [AppComponent]
63
+
})
64
+
exportclassAppModule {
65
+
}
66
+
```
67
+
***core:** migration to ScrollReveal `v4.x.x` brings some breaking changes to be addressed
68
+
69
+
-`@types/scrollreveal` is no longer necessary and **must be removed** from your `package.son`
70
+
-`options.distance` now only supports `em`, `px` and `%` values
71
+
-`NgsRevealConfig` default values have been updated to match [ScrollReveal](https://scrollrevealjs.org/api/defaults.html)'s
72
+
- be aware that `ScrollReveal` now requires a **commercial license**, unless for [GPL-3.0](https://opensource.org/licenses/GPL-3.0) compatible open source projects.
***all:** making @IgorMinar happy all the way (it's just angular!) ([061c648](https://github.com/tinesoft/ngx-scrollreveal/commit/061c648))
137
+
***all:** making [@IgorMinar](https://github.com/IgorMinar) happy all the way (it's just angular!) ([061c648](https://github.com/tinesoft/ngx-scrollreveal/commit/061c648))
63
138
64
139
65
140
### BREAKING CHANGES
66
141
67
-
***all:** rename UMD bundled file from `ngx-scrollreveal.min.js` to `ngx-scrollreveal.umd.js`
68
-
***all:** rename package from `ng2-scrollreveal` to `ngx-scrollreveal` to conform with new Angular Naming Guidelines.
142
+
***all:** rename UMD bundled file from `ng-scrollreveal.min.js` to `ng-scrollreveal.umd.js`
143
+
***all:** rename package from `ng2-scrollreveal` to `ng-scrollreveal` to conform with new Angular Naming Guidelines.
69
144
70
145
This only affect how you install and import the library (no actual breaking changes in code).
71
146
@@ -82,10 +157,10 @@ import { NgsRevealModule } from 'ng2-scrollreveal';
82
157
After:
83
158
84
159
```
85
-
npm install --save ngx-scrollreveal
160
+
npm install --save ng-scrollreveal
86
161
...
87
162
88
-
import { NgsRevealModule } from 'ngx-scrollreveal';
163
+
import { NgsRevealModule } from 'ng-scrollreveal';
0 commit comments