Skip to content

Commit d3dad28

Browse files
authored
build: add Angular 20 support (#2342)
1 parent c739a26 commit d3dad28

164 files changed

Lines changed: 9583 additions & 10864 deletions

File tree

Some content is hidden

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

.bundlemonrc.integration.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"files": [
77
{
88
"friendlyName": "Main bundles",
9-
"path": "./**/dist-integration/**/main{-,.}<hash>.js",
9+
"path": "./**/dist-integration/browser/**/main{-,.}<hash>.js",
1010
"maxPercentIncrease": 1
1111
},
1212
{
1313
"friendlyName": "Main bundles(Gzip)",
14-
"path": "./**/dist-integration/**/main{-,.}<hash>.js",
14+
"path": "./**/dist-integration/browser/**/main{-,.}<hash>.js",
1515
"compression": "gzip",
1616
"maxPercentIncrease": 1
1717
}

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ orbs:
77
job_defaults_var: &job_defaults
88
working_directory: ~/workspace/app
99
docker:
10-
- image: cimg/node:18.20.0-browsers
10+
- image: cimg/node:22.16.0-browsers
1111

1212
# Yarn cache key
1313
cache_var: &cache_key yarn-packages-v5-{{ .Branch }}-{{ checksum "yarn.lock" }}
@@ -139,18 +139,18 @@ jobs:
139139
name: Run integration tests for the SSR build application
140140
command: yarn test:ci:integration:ssr
141141

142-
integration_ng19_tests:
142+
integration_ng20_tests:
143143
<<: *job_defaults
144144
steps:
145145
- *attach_workspace
146146
- browser-tools/install-browser-tools
147147
- run:
148-
name: Run integration tests for ng19 application
149-
command: yarn integration:ng19
148+
name: Run integration tests for ng20 application
149+
command: yarn integration:ng20
150150
- persist_to_workspace:
151151
root: ~/workspace
152152
paths:
153-
- app/integrations/hello-world-ng19/dist-integration
153+
- app/integrations/hello-world-ng20/dist-integration
154154

155155
integration_test_types:
156156
<<: *job_defaults
@@ -229,7 +229,7 @@ workflows:
229229
### requires:
230230
### - build
231231

232-
- integration_ng19_tests:
232+
- integration_ng20_tests:
233233
requires:
234234
- build
235235

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inputs:
1313
node-version:
1414
description: Node version
1515
required: true
16-
default: 18.x
16+
default: 22.x
1717
github-ref-name:
1818
description: Branch name
1919
required: true
@@ -54,7 +54,7 @@ runs:
5454
~/.cache
5555
./node_modules
5656
./@ngxs
57-
./integrations/hello-world-ng19/dist-integration
57+
./integrations/hello-world-ng20/dist-integration
5858
key: ${{ runner.os }}-node-${{ inputs.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}-branch-${{ inputs.github-ref-name }}-sha-${{ inputs.github-sha }}
5959
restore-keys: |
6060
${{ runner.os }}-node-${{ inputs.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}-branch-${{ inputs.github-ref-name }}-sha-

.github/actions/upload-integration-test-artifact/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
# - ./.github/actions/upload-integration-test-artifact
88

99
name: upload-integration-test-artifact
10-
description: Upload an integration test artifact with a name such as 'hello-world-ng19'.
10+
description: Upload an integration test artifact with a name such as 'hello-world-ng20'.
1111

1212
inputs:
1313
script:
14-
description: A script with a name such as 'integration:ng19' that generates an integration test artifact.
14+
description: A script with a name such as 'integration:ng20' that generates an integration test artifact.
1515
required: true
1616

1717
runs:
@@ -21,7 +21,7 @@ runs:
2121
id: artifact-name
2222
shell: bash
2323
run: |
24-
echo "Replace colons with dashes, substring 'integration' with a substring 'hello-world'. Example result: hello-world-ng19"
24+
echo "Replace colons with dashes, substring 'integration' with a substring 'hello-world'. Example result: hello-world-ng20"
2525
echo "value=$(echo ${SCRIPT} | sed -r "s/:/-/g" | sed -r "s/integration/hello-world/g")" >> $GITHUB_OUTPUT
2626
env:
2727
SCRIPT: ${{ inputs.script }}

.github/workflows/pr-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
pull_request:
99

1010
env:
11-
NODE_VERSION: 18.x
11+
NODE_VERSION: 22.x
1212
BASE_REF: ${{ format('remotes/origin/{0}', github.base_ref) }}
1313

1414
defaults:
@@ -96,7 +96,7 @@ jobs:
9696
strategy:
9797
matrix:
9898
script:
99-
- 'integration:ng19'
99+
- 'integration:ng20'
100100
- 'test:types'
101101

102102
steps:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- created
1111

1212
env:
13-
NODE_VERSION: 18.x
13+
NODE_VERSION: 22.x
1414

1515
defaults:
1616
run:
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
matrix:
8787
script:
88-
- 'integration:ng19'
88+
- 'integration:ng20'
8989
- 'test:types'
9090

9191
steps:

.github/workflows/trunk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
tags-ignore: ['*']
1111

1212
env:
13-
NODE_VERSION: 18.x
13+
NODE_VERSION: 22.x
1414

1515
defaults:
1616
run:
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
matrix:
8787
script:
88-
- 'integration:ng19'
88+
- 'integration:ng20'
8989
- 'test:types'
9090

9191
steps:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ testem.log
5050
/typings
5151
.test-results.json
5252
/dist-lib
53-
/dist-integration
5453
**/_ignore
5554
.astro
5655

@@ -69,8 +68,9 @@ Thumbs.db
6968
yarn-error.log
7069
.ng_pkg_build/
7170
package-lock.json
72-
dist-integration-server/
7371
.cache
7472
migrations.json
7573
.nx/cache
7674
.nx/workspace-data
75+
.cursor/rules/nx-rules.mdc
76+
.github/instructions/nx.instructions.md

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ $ npm install @ngxs/store@dev
66

77
### To become next patch version
88

9+
- Build: Add Angular 20 support [#2342](https://github.com/ngxs/store/pull/2342)
910
- Feature(store): Implement `ActionDirector` [#2329](https://github.com/ngxs/store/pull/2329)
1011
- Feature(store): Add `lazyProvider` utility [#2326](https://github.com/ngxs/store/pull/2326)
1112
- Feature(devtools-plugin): Add `serialize` option [#2337](https://github.com/ngxs/store/pull/2337)

integration/.browserslistrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)