Skip to content

Commit

Permalink
feat: update origin 19.1 (#1009)
Browse files Browse the repository at this point in the history
* feat: update origin to 19.1.2

* chore: migrate untranslated files

* chore: migrate small changes

* migrate navigation data

* chore: fix git patches

* chore: address lint errors
  • Loading branch information
lacolaco authored Jan 23, 2025
1 parent 32146ae commit c6eb47a
Show file tree
Hide file tree
Showing 97 changed files with 1,261 additions and 882 deletions.
4 changes: 3 additions & 1 deletion .textlintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"preset-ja-technical-writing": {
"sentence-length": false,
"max-comma": false,
"max-ten": false,
"no-mix-dearu-desumasu": {
"preferInList": ""
},
Expand All @@ -42,7 +43,8 @@
"変更検知戦略",
"推移的依存関係",
"三重等号演算子",
"入力変換関数"
"入力変換関数",
"等価比較関数"
]
},
"ja-no-mixed-period": false
Expand Down
25 changes: 24 additions & 1 deletion adev-ja/src/app/features/update/recommendations.en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/

export enum ApplicationComplexity {
Basic = 1,
Medium = 2,
Expand Down Expand Up @@ -2397,7 +2405,22 @@ export const RECOMMENDATIONS: Step[] = [
action:
'You may experience tests failures if you have tests that rely on change detection execution order when using `ComponentFixture.autoDetect` because it now executes change detection for fixtures within `ApplicationRef.tick`. For example, this will cause test fixture to refresh before any dialogs that it creates whereas this may have been the other way around in the past.',
},

{
action:
"In the application's project directory, run `ng update @angular/core@19 @angular/cli@19` to update your application to Angular v19.",
level: ApplicationComplexity.Basic,
necessaryAsOf: 1900,
possibleIn: 1900,
step: '19.0.0_ng_update',
},
{
possibleIn: 1900,
necessaryAsOf: 1900,
level: ApplicationComplexity.Basic,
material: true,
step: 'update @angular/material',
action: 'Run `ng update @angular/material@19`.',
},
{
action:
'Angular directives, components and pipes are now standalone by default. Specify "standalone: false" for declarations that are currently declared in an NgModule. The Angular CLI will automatically update your code to reflect that.',
Expand Down
25 changes: 24 additions & 1 deletion adev-ja/src/app/features/update/recommendations.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/

export enum ApplicationComplexity {
Basic = 1,
Medium = 2,
Expand Down Expand Up @@ -2397,7 +2405,22 @@ export const RECOMMENDATIONS: Step[] = [
action:
'`ComponentFixture.autoDetect` が `ApplicationRef.tick` 内のフィクスチャの変更検出を実行するようになったため、`ComponentFixture.autoDetect` を使用しているときに変更検出の実行順序に依存しているテストがあると、テストに失敗することがあります。たとえば、これによってテストフィクスチャは、これまではその逆であったかもしれませんが、作成するダイアログの前にリフレッシュされます。',
},

{
action:
"アプリケーションのプロジェクトディレクトリで、`ng update @angular/core@19 @angular/cli@19` を実行し、アプリケーションをAngular v19にアップデートしてください。",
level: ApplicationComplexity.Basic,
necessaryAsOf: 1900,
possibleIn: 1900,
step: '19.0.0_ng_update',
},
{
possibleIn: 1900,
necessaryAsOf: 1900,
level: ApplicationComplexity.Basic,
material: true,
step: '@angular/material をアップデートしてください。',
action: 'Run `ng update @angular/material@19`.',
},
{
action:
'Angularディレクティブ、コンポーネント、パイプはデフォルトでスタンドアロンになりました。現在NgModuleで宣言されている宣言には "standalone: false" を指定してください。Angular CLIは自動的にコードを更新します。',
Expand Down
9 changes: 8 additions & 1 deletion adev-ja/src/app/features/update/update.component.en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/

import {ChangeDetectionStrategy, Component, HostListener, inject} from '@angular/core';
import {Step, RECOMMENDATIONS} from './recommendations';
import {Clipboard} from '@angular/cdk/clipboard';
Expand Down Expand Up @@ -30,7 +38,6 @@ interface Option {
CdkMenuModule,
IconComponent,
],
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export default class AppComponent {
Expand Down
8 changes: 8 additions & 0 deletions adev-ja/src/app/features/update/update.component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/

import {ChangeDetectionStrategy, Component, HostListener, inject} from '@angular/core';
import {Step, RECOMMENDATIONS} from './recommendations';
import {Clipboard} from '@angular/cdk/clipboard';
Expand Down
Loading

0 comments on commit c6eb47a

Please sign in to comment.