@dsivd/prestations-ng 18.0.0-beta.7 → 18.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/UPGRADING_V18.md
CHANGED
|
@@ -68,11 +68,13 @@ providers: [
|
|
|
68
68
|
}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
Continue with your migration:
|
|
72
|
+
|
|
71
73
|
```bash
|
|
72
74
|
ng update @fortawesome/angular-fontawesome@0.15 --force
|
|
73
75
|
```
|
|
74
76
|
|
|
75
|
-
**NB:
|
|
77
|
+
**NB: When using `@angular/cdk` in your project**
|
|
76
78
|
|
|
77
79
|
```bash
|
|
78
80
|
ng update @angular/cdk@18
|
|
@@ -106,12 +108,18 @@ When asked the question "Select the migrations that you'd like to run", accept "
|
|
|
106
108
|
ng update @angular-eslint/builder@19
|
|
107
109
|
```
|
|
108
110
|
|
|
109
|
-
**NB:
|
|
111
|
+
**NB: When using `@angular/cdk` in your project**
|
|
110
112
|
|
|
111
113
|
```bash
|
|
112
114
|
ng update @angular/cdk@19
|
|
113
115
|
```
|
|
114
116
|
|
|
117
|
+
**NB: When using `ngx-matomo-client` in your project**
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
ng update ngx-matomo-client@7
|
|
121
|
+
```
|
|
122
|
+
|
|
115
123
|
Continue with your migration:
|
|
116
124
|
|
|
117
125
|
```bash
|
|
@@ -197,6 +205,28 @@ In your `app.module.ts` file:
|
|
|
197
205
|
})
|
|
198
206
|
```
|
|
199
207
|
|
|
208
|
+
#### Matomo migration as standalone
|
|
209
|
+
|
|
210
|
+
In your `app.module.ts` file:
|
|
211
|
+
|
|
212
|
+
- Remove `import { MatomoInitializationMode, MatomoModule } from 'ngx-matomo-client';`
|
|
213
|
+
- Remove `MatomoModule.forRoot({mode: MatomoInitializationMode.AUTO_DEFERRED})` from `imports` in `@NgModule(...)`
|
|
214
|
+
- Add `provideMatomo` to `imports` in `@NgModule(...)`
|
|
215
|
+
- Add `provideMatomo({ mode: 'deferred' })` to `providers` in `@NgModule(...)`
|
|
216
|
+
|
|
217
|
+
```diff
|
|
218
|
+
- import { MatomoInitializationMode, MatomoInitializerService, MatomoModule } from 'ngx-matomo-client';
|
|
219
|
+
+ import { MatomoInitializerService, provideMatomo } from 'ngx-matomo-client';
|
|
220
|
+
|
|
221
|
+
@NgModule({
|
|
222
|
+
imports: [
|
|
223
|
+
- MatomoModule.forRoot({mode: MatomoInitializationMode.AUTO_DEFERRED}),
|
|
224
|
+
], providers: [
|
|
225
|
+
+ provideMatomo({ mode: 'deferred' })
|
|
226
|
+
]
|
|
227
|
+
})
|
|
228
|
+
```
|
|
229
|
+
|
|
200
230
|
#### Move and update your tsconfig\*.json files
|
|
201
231
|
|
|
202
232
|
- Move your `tsconfig.app.json` and `tsconfig.spec.json` from `src` to `front` (if not already done)
|
|
@@ -361,7 +391,9 @@ Finally check if your tests run well :
|
|
|
361
391
|
```bash
|
|
362
392
|
npm run test
|
|
363
393
|
```
|
|
394
|
+
|
|
364
395
|
**NB: If you are having trouble finding puppeteer ChromiumHeadless binary**
|
|
396
|
+
|
|
365
397
|
```bash
|
|
366
398
|
npx puppeteer browsers install chrome
|
|
367
399
|
npm run test
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|