Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit ce87324

Browse files
committed
Update the v18 instructions
1 parent cce3a16 commit ce87324

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

src/app/recommendations.ts

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,31 @@ export const RECOMMENDATIONS: Step[] = [
296296
{ possibleIn: 1700, necessaryAsOf: 1700, level: ApplicationComplexity.Medium, step: 'v17 withNoDomReuse', action: 'To disable hydration use `ngSkipHydration` or remove the `provideClientHydration` call from the provider list since `withNoDomReuse` is no longer part of the public API.' },
297297
{ possibleIn: 1700, necessaryAsOf: 1700, level: ApplicationComplexity.Basic, step: 'v17 paramsInheritanceStrategy', action: 'If you want the child routes of `loadComponent` routes to inherit data from their parent specify the `paramsInheritanceStrategy` to `always`, which in v17 is now set to `emptyOnly`.' },
298298

299+
{
300+
possibleIn: 1800,
301+
necessaryAsOf: 1800,
302+
level: ApplicationComplexity.Basic,
303+
step: 'v18 node support',
304+
action: 'Make sure that you are using a supported version of node.js before you upgrade your application. Angular v18 supports node.js versions: v18.19.0 and newer'
305+
},
306+
{ possibleIn: 1800,
307+
necessaryAsOf: 1800,
308+
level: ApplicationComplexity.Basic,
309+
step: 'v18 ng update',
310+
action: 'In the application\'s project directory, run `ng update @angular/core@18 @angular/cli@18` to update your application to Angular v18.'
311+
},
312+
{
313+
possibleIn: 1800,
314+
necessaryAsOf: 1800,
315+
level: ApplicationComplexity.Basic,
316+
step: "18.0.0 Upgrade TypeScript",
317+
action: "Update TypeScript to versions 5.4 or newer."
318+
},
299319
{
300320
possibleIn: 1800,
301321
necessaryAsOf: 1800,
302322
level: ApplicationComplexity.Advanced,
303-
step: "18.0.0: async has been removed, use waitForAsync instead",
323+
step: "18.0.0: async has been removed, use `waitForAsync` instead",
304324
action: "Replace `async` from `@angular/core` with `waitForAsync`."
305325
},
306326
{
@@ -329,14 +349,14 @@ export const RECOMMENDATIONS: Step[] = [
329349
necessaryAsOf: 1800,
330350
level: ApplicationComplexity.Advanced,
331351
step: "18.0.0.REMOVE_OBSOLETE_IS_WORKER",
332-
action: "Update the application to remove 'isPlatformWorkerUi' and 'isPlatformWorkerApp' since they were part of platform WebWorker which is now not part of Angular."
352+
action: "Update the application to remove `isPlatformWorkerUi` and `isPlatformWorkerApp` since they were part of platform WebWorker which is now not part of Angular."
333353
},
334354
{
335355
possibleIn: 1800,
336356
necessaryAsOf: 1800,
337357
level: ApplicationComplexity.Medium,
338358
step: "18.0.0.FORCE_ZONE_CHANGE_DETECTION",
339-
action: "Tests may run additional rounds of change detection to fully reflect test state in the DOM. As a last resort, revert to the old behavior by adding 'provideZoneChangeDetection({ignoreChangesOutsideZone: true})' to the TestBed providers."
359+
action: "Tests may run additional rounds of change detection to fully reflect test state in the DOM. As a last resort, revert to the old behavior by adding `provideZoneChangeDetection({ignoreChangesOutsideZone: true})` to the TestBed providers."
340360
},
341361
{
342362
possibleIn: 1800,
@@ -364,14 +384,7 @@ export const RECOMMENDATIONS: Step[] = [
364384
necessaryAsOf: 1800,
365385
level: ApplicationComplexity.Advanced,
366386
step: "18.0.0 Use RedirectCommand or new NavigationBehaviorOptions",
367-
action: "When a guard returns a `UrlTree` as a redirect, the redirecting navigation will now use `replaceUrl` if the initial navigation was also using the `replaceUrl` option. If this is not desirable, the redirect can configure new `NavigationBehaviorOptions` by returning a `RedirectCommand` with the desired options instead of `UrlTree`."
368-
},
369-
{
370-
possibleIn: 1800,
371-
necessaryAsOf: 1800,
372-
level: ApplicationComplexity.Basic,
373-
step: "18.0.0 Upgrade TypeScript",
374-
action: "Update TypeScript to versions 5.4 or newer."
387+
action: "When a guard returns a `UrlTree` as a redirect, the redirecting navigation will now use `replaceUrl` if the initial navigation was also using the `replaceUrl` option. If you prefer the previous behavior, configure the redirect using the new `NavigationBehaviorOptions` by returning a `RedirectCommand` with the desired options instead of `UrlTree`."
375388
},
376389
{
377390
possibleIn: 1800,

0 commit comments

Comments
 (0)