Skip to content

Commit b791224

Browse files
feat(angular): deve ser utilizado o Angular v20
1 parent 0f299bd commit b791224

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+789
-179
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@
274274
"space-in-parens": ["off", "never"],
275275
"@angular-eslint/prefer-standalone": "off",
276276
"@typescript-eslint/no-unsafe-function-type": "off",
277-
"@typescript-eslint/no-empty-object-type": "off"
277+
"@typescript-eslint/no-empty-object-type": "off",
278+
"@angular-eslint/prefer-inject": "off"
278279
}
279280
},
280281
{

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- uses: actions/setup-node@v3
4545
with:
46-
node-version: 18
46+
node-version: 20
4747

4848
# Executa um comando do projeto na máquina virtual
4949
- run: npm i
@@ -65,7 +65,7 @@ jobs:
6565

6666
- uses: actions/setup-node@v3
6767
with:
68-
node-version: 18
68+
node-version: 20
6969

7070
- run: npm i
7171
- run: npm run build
@@ -88,7 +88,7 @@ jobs:
8888

8989
- uses: actions/setup-node@v3
9090
with:
91-
node-version: 18
91+
node-version: 20
9292

9393
- run: npm i
9494
- run: npm run test:ui
@@ -105,7 +105,7 @@ jobs:
105105

106106
- uses: actions/setup-node@v3
107107
with:
108-
node-version: 18
108+
node-version: 20
109109

110110
- run: npm i
111111
- run: npm run build:ui:lite
@@ -123,7 +123,7 @@ jobs:
123123

124124
- uses: actions/setup-node@v3
125125
with:
126-
node-version: 18
126+
node-version: 20
127127

128128
- run: npm i
129129
- run: npm run test:code-editor
@@ -140,7 +140,7 @@ jobs:
140140

141141
- uses: actions/setup-node@v3
142142
with:
143-
node-version: 18
143+
node-version: 20
144144

145145
- run: npm i
146146
- run: npm run build:schematics
@@ -158,7 +158,7 @@ jobs:
158158

159159
- uses: actions/setup-node@v3
160160
with:
161-
node-version: 18
161+
node-version: 20
162162

163163
- run: npm i
164164
- run: npm run build:storage:lite

.github/workflows/publish_po_angular_ci-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- uses: actions/setup-node@v3
3030
with:
31-
node-version: '18.x'
31+
node-version: '20.x'
3232
registry-url: 'https://registry.npmjs.org'
3333

3434
- name: Check out po-angular

.github/workflows/publish_po_angular_ci-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/setup-node@v3
2121
with:
22-
node-version: '18.x'
22+
node-version: '20.x'
2323
registry-url: 'https://registry.npmjs.org'
2424

2525
- name: Check out po-angular

.github/workflows/publish_po_angular_ci-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/setup-node@v3
2121
with:
22-
node-version: '18.x'
22+
node-version: '20.x'
2323
registry-url: 'https://registry.npmjs.org'
2424

2525
- name: Check out po-angular

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ Biblioteca de componentes de UI para Angular.
2020

2121
### Pré-requisitos
2222

23-
Para começar a utilizar o **PO UI** é pré-requisito ter o `Node.js` instalado (versão 18.19.x ou acima) e o seu gerenciador de pacote favorito na versão mais atual. Caso você ainda não tenha instalado o pacote `@angular/cli`, instale-o via `npm` ou `yarn`.
23+
Para começar a utilizar o **PO UI** é pré-requisito ter o `Node.js` instalado (versão 20.11.x ou acima) e o seu gerenciador de pacote favorito na versão mais atual. Caso você ainda não tenha instalado o pacote `@angular/cli`, instale-o via `npm` ou `yarn`.
2424

2525
Instalando com npm:
2626
```
27-
npm i -g @angular/cli@19
27+
npm i -g @angular/cli@20
2828
```
2929

3030
Caso prefira instalar com o yarn:
3131
```
32-
yarn global add @angular/cli@19
32+
yarn global add @angular/cli@20
3333
```
3434

3535
### Passo 1 - Crie o seu primeiro projeto
@@ -53,26 +53,26 @@ Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser
5353

5454
```json
5555
"dependencies": {
56-
"@angular/animations": "~19.0.0",
57-
"@angular/common": "~19.0.0",
58-
"@angular/compiler": "~19.0.0",
59-
"@angular/core": "~19.0.0",
60-
"@angular/forms": "~19.0.0",
61-
"@angular/platform-browser": "~19.0.0",
62-
"@angular/platform-browser-dynamic": "~19.0.0",
63-
"@angular/router": "~19.0.0",
56+
"@angular/animations": "~20.0.0",
57+
"@angular/common": "~20.0.0",
58+
"@angular/compiler": "~20.0.0",
59+
"@angular/core": "~20.0.0",
60+
"@angular/forms": "~20.0.0",
61+
"@angular/platform-browser": "~20.0.0",
62+
"@angular/platform-browser-dynamic": "~20.0.0",
63+
"@angular/router": "~20.0.0",
6464
"rxjs": "~7.8.0",
6565
"tslib": "^2.3.0",
6666
"zone.js": "~0.15.0"
6767
...
6868
},
6969
"devDependencies": {
70-
"@angular-devkit/build-angular": "~19.2.3",
71-
"@angular-devkit/schematics": "~19.0.5",
72-
"@angular/cli": "~19.0.5",
73-
"@angular/compiler-cli": "~19.0.0",
70+
"@angular/build": "~20.0.6",
71+
"@angular-devkit/schematics": "~20.0.0",
72+
"@angular/cli": "~20.0.6",
73+
"@angular/compiler-cli": "~20.0.0",
7474
...
75-
"typescript": "~5.6.2"
75+
"typescript": "~5.8.2"
7676
}
7777
```
7878

angular.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,5 +366,31 @@
366366
"cli": {
367367
"analytics": false,
368368
"schematicCollections": ["@angular-eslint/schematics"]
369+
},
370+
"schematics": {
371+
"@schematics/angular:component": {
372+
"type": "component"
373+
},
374+
"@schematics/angular:directive": {
375+
"type": "directive"
376+
},
377+
"@schematics/angular:service": {
378+
"type": "service"
379+
},
380+
"@schematics/angular:guard": {
381+
"typeSeparator": "."
382+
},
383+
"@schematics/angular:interceptor": {
384+
"typeSeparator": "."
385+
},
386+
"@schematics/angular:module": {
387+
"typeSeparator": "."
388+
},
389+
"@schematics/angular:pipe": {
390+
"typeSeparator": "."
391+
},
392+
"@schematics/angular:resolver": {
393+
"typeSeparator": "."
394+
}
369395
}
370396
}

docs/guides/getting-started.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
### Pré-requisitos
55

6-
Para começar a utilizar o **PO UI** é pré-requisito ter o `Node.js` instalado (versão 18.19.x ou acima) e o seu gerenciador de pacote favorito na versão mais atual. Caso você ainda não tenha instalado o pacote `@angular/cli`, instale-o via `npm` ou `yarn`.
6+
Para começar a utilizar o **PO UI** é pré-requisito ter o `Node.js` instalado (versão 20.11.x ou acima) e o seu gerenciador de pacote favorito na versão mais atual. Caso você ainda não tenha instalado o pacote `@angular/cli`, instale-o via `npm` ou `yarn`.
77

88
Instalando com npm:
99
```
10-
npm i -g @angular/cli@19
10+
npm i -g @angular/cli@20
1111
```
1212

1313
Caso prefira instalar com o yarn:
1414
```
15-
yarn global add @angular/cli@19
15+
yarn global add @angular/cli@20
1616
```
1717

1818
### Passo 1 - Crie o seu primeiro projeto
@@ -36,26 +36,26 @@ Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser
3636

3737
```json
3838
"dependencies": {
39-
"@angular/animations": "~19.0.0",
40-
"@angular/common": "~19.0.0",
41-
"@angular/compiler": "~19.0.0",
42-
"@angular/core": "~19.0.0",
43-
"@angular/forms": "~19.0.0",
44-
"@angular/platform-browser": "~19.0.0",
45-
"@angular/platform-browser-dynamic": "~19.0.0",
46-
"@angular/router": "~19.0.0",
39+
"@angular/animations": "~20.0.0",
40+
"@angular/common": "~20.0.0",
41+
"@angular/compiler": "~20.0.0",
42+
"@angular/core": "~20.0.0",
43+
"@angular/forms": "~20.0.0",
44+
"@angular/platform-browser": "~20.0.0",
45+
"@angular/platform-browser-dynamic": "~20.0.0",
46+
"@angular/router": "~20.0.0",
4747
"rxjs": "~7.8.0",
4848
"tslib": "^2.3.0",
4949
"zone.js": "~0.15.0"
5050
...
5151
},
5252
"devDependencies": {
53-
"@angular-devkit/build-angular": "~19.2.3",
54-
"@angular-devkit/schematics": "~19.0.5",
55-
"@angular/cli": "~19.0.5",
56-
"@angular/compiler-cli": "~19.0.0",
53+
"@angular/build": "~20.0.6",
54+
"@angular-devkit/schematics": "~20.0.0",
55+
"@angular/cli": "~20.0.6",
56+
"@angular/compiler-cli": "~20.0.0",
5757
...
58-
"typescript": "~5.6.2"
58+
"typescript": "~5.8.2"
5959
}
6060
```
6161

docs/guides/migration-poui.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Antes de atualizar a versão do PO UI, é importante que você tenha atualizado
1313
o Angular que o PO UI está homologado, veja nossa
1414
[tabela de compatibilidade](https://github.com/po-ui/po-angular/wiki#vers%C3%B5es-angular-x-po-ui) em nosso Github Wiki.
1515

16-
> Caso o seu projeto esteja na versão Angular@16:
16+
> Caso o seu projeto esteja na versão Angular@19:
1717
Realize a instalação do pacote Schematics do Angular para o nosso script de atualização funcionar corretamente:
1818

1919
```
@@ -29,7 +29,7 @@ ng update @angular/cli@<version> @angular/core@<version> --force
2929
Por exemplo:
3030

3131
```
32-
ng update @angular/cli@19 @angular/core@19 --force
32+
ng update @angular/cli@20 @angular/core@20 --force
3333
```
3434

3535
> Para realizar a migração completa e avaliar se não precisa fazer alguma alteração veja o [**Guia de Upgrade do Angular**](https://update.angular.io/).
@@ -70,7 +70,7 @@ ng update @po-ui/ng-components --allow-dirty --force
7070
```json
7171
"devDependencies": {
7272
...,
73-
"@angular-devkit/schematics": "~19.0.5",
73+
"@angular-devkit/schematics": "~20.0.0",
7474
...
7575
}
7676
```

docs/guides/releases.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Consulte abaixo nossos guias de migração de versão para obter mais informaç
3838
</tr>
3939
</thead>
4040
<tbody>
41+
<tr class="po-table-row">
42+
<td class="po-table-column">20.0.0</td>
43+
<td class="po-table-column">20.0.0</td>
44+
<td class="po-table-column"><a href="guides/migration-poui">Migração do PO UI</a></td>
45+
</tr>
4146
<tr class="po-table-row">
4247
<td class="po-table-column">19.0.0</td>
4348
<td class="po-table-column">19.0.0</td>

0 commit comments

Comments
 (0)