@dsivd/prestations-ng 18.0.0-beta.4 → 18.0.0-beta.6

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.
@@ -92,7 +92,6 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
92
92
  '/karma.conf.js',
93
93
  '/.eslintrc.json',
94
94
  '/tsconfig*.json',
95
- '/src/tsconfig*.json',
96
95
  '/src/main.ts',
97
96
  '/src/typings.d.ts'
98
97
  ],
@@ -371,7 +370,7 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
371
370
  {
372
371
  files: ['src/**/*.spec.ts', 'src/**/*.d.ts'],
373
372
  parserOptions: {
374
- project: 'src/tsconfig.spec.json'
373
+ project: 'tsconfig.spec.json'
375
374
  },
376
375
  extends: ['plugin:jasmine/recommended'],
377
376
  plugins: ['jasmine'],
package/UPGRADING_V18.md CHANGED
@@ -30,7 +30,10 @@ ng update @angular/core@18 @angular/cli@18
30
30
  ```
31
31
 
32
32
  When asked the question "Select the migrations that you'd like to run", accept "use-application-builder" by hitting "Space" key then "Enter".
33
- Then fix provideHttpClient withXsrfConfiguration by modifying your `app.module.ts` and adding:
33
+
34
+ #### Fix provideHttpClient withXsrfConfiguration
35
+
36
+ Modify your `app.module.ts` and add:
34
37
  `{
35
38
  cookieName: 'XSRF-TOKEN',
36
39
  headerName: 'X-XSRF-TOKEN'
@@ -48,10 +51,32 @@ providers: [
48
51
  ]
49
52
  ```
50
53
 
54
+ #### Add an empty "browser" to your output path in angular.json
55
+
56
+ ```diff
57
+ {
58
+ "projects": {
59
+ "[YOUR_PROJECT_NAME]": {
60
+ "architect": {
61
+ "build": {
62
+ "options": {
63
+ "outputPath": {
64
+ - "base": "dist"
65
+ + "base": "dist",
66
+ + "browser": ""
67
+ }
68
+ ```
69
+
51
70
  ```bash
52
71
  ng update @fortawesome/angular-fontawesome@0.15 --force
53
72
  ```
54
73
 
74
+ **NB: If your project has `@angular/cdk`**
75
+
76
+ ```bash
77
+ ng update @angular/cdk@18
78
+ ```
79
+
55
80
  ### Updating to Angular 19
56
81
 
57
82
  `prestations-ng` **v18+** now supports **Angular v19**.
@@ -78,7 +103,17 @@ When asked the question "Select the migrations that you'd like to run", accept "
78
103
 
79
104
  ```bash
80
105
  ng update @angular-eslint/builder@19
106
+ ```
107
+
108
+ **NB: If your project has `@angular/cdk`**
109
+
110
+ ```bash
111
+ ng update @angular/cdk@19
112
+ ```
113
+
114
+ Continue with your migration:
81
115
 
116
+ ```bash
82
117
  npm install --save-dev jasmine@5
83
118
 
84
119
  ng update karma@6.4 karma-chrome-launcher@3.2 karma-coverage@2.2 karma-jasmine@5.1 karma-jasmine-html-reporter@2.1
@@ -87,13 +122,16 @@ npm install --save-dev @typescript-eslint/utils@7 @typescript-eslint/types@7
87
122
 
88
123
  ng update @angular-eslint/eslint-plugin@19 @angular-eslint/eslint-plugin-template@19 @angular-eslint/template-parser@19
89
124
  ng update @typescript-eslint/eslint-plugin@7 @typescript-eslint/parser@7
90
- ng update eslint-plugin-import eslint-plugin-jasmine eslint-plugin-rxjs-angular
125
+ ng update eslint-plugin-import eslint-plugin-jasmine eslint-plugin-rxjs-angular eslint-plugin-simple-import-sort
91
126
  ng update eslint@8
92
127
  ng update eslint-plugin-rxjs
93
128
  ng update @types/jasmine@5 @types/node@20 ts-node@10
94
129
 
95
130
  npm remove eslint-plugin-jsdoc
96
131
 
132
+ npm remove puppeteer
133
+ npm install --save-dev puppeteer
134
+
97
135
  npm update
98
136
  ```
99
137
 
@@ -140,7 +178,25 @@ In your `app.module.ts` file:
140
178
  })
141
179
  ```
142
180
 
143
- #### Move and upodate your tsconfig\*.json files
181
+ #### ImageCropper migration as standalone (if you are using it in your project)
182
+
183
+ - Remove `import { ImageCropperModule } from 'ngx-image-cropper';`
184
+ - Remove `ImageCropperModule` from `imports` in `@NgModule(...)`
185
+ - Add `ImageCropperComponent` to `imports` in `@NgModule(...)`
186
+
187
+ ```diff
188
+ - import { ImageCropperModule } from 'ngx-image-cropper';
189
+ + import { ImageCropperComponent } from 'ngx-image-cropper';
190
+
191
+ @NgModule({
192
+ imports: [
193
+ - ImageCropperModule,
194
+ + ImageCropperComponent,
195
+ ]
196
+ })
197
+ ```
198
+
199
+ #### Move and update your tsconfig\*.json files
144
200
 
145
201
  - Move your `tsconfig.app.json` and `tsconfig.spec.json` from `src` to `front` (if not already done)
146
202
  - Replace your `tsconfig.json` content with:
@@ -151,7 +207,7 @@ In your `app.module.ts` file:
151
207
  "compilerOptions": {
152
208
  "outDir": "./dist/out-tsc",
153
209
  "noImplicitOverride": true,
154
- "noPropertyAccessFromIndexSignature": true,
210
+ "noPropertyAccessFromIndexSignature": false,
155
211
  "noImplicitReturns": true,
156
212
  "noFallthroughCasesInSwitch": true,
157
213
  "skipLibCheck": true,
@@ -182,7 +238,7 @@ In your `app.module.ts` file:
182
238
  {
183
239
  "extends": "./tsconfig.json",
184
240
  "compilerOptions": {
185
- "outDir": "../out-tsc/app",
241
+ "outDir": "./out-tsc/app",
186
242
  "types": []
187
243
  },
188
244
  "files": ["src/main.ts"],
@@ -196,7 +252,7 @@ In your `app.module.ts` file:
196
252
  {
197
253
  "extends": "./tsconfig.json",
198
254
  "compilerOptions": {
199
- "outDir": "../out-tsc/spec",
255
+ "outDir": "./out-tsc/spec",
200
256
  "types": ["jasmine", "node"]
201
257
  },
202
258
  "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
@@ -295,9 +351,16 @@ npm install
295
351
 
296
352
  ```bash
297
353
  npm run build
354
+ npm run test
298
355
  npm start
299
356
  ```
300
357
 
358
+ **NB: If you are having trouble finding puppeteer ChromiumHeadless binary**
359
+
360
+ ```bash
361
+ npx puppeteer browsers install chrome
362
+ ```
363
+
301
364
  Your are good if no errors are remaining!
302
365
  Finally check if your tests run well :
303
366
 
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "ng-update": {
41
41
  "migrations": "./schematics/migration-collection.json"
42
42
  },
43
- "version": "18.0.0-beta.4",
43
+ "version": "18.0.0-beta.6",
44
44
  "module": "fesm2022/dsivd-prestations-ng.mjs",
45
45
  "typings": "index.d.ts",
46
46
  "exports": {