Skip to content

Commit 92f6fbd

Browse files
authored
feat: upgrade deps for react 19 (#81)
1 parent f3115ed commit 92f6fbd

46 files changed

Lines changed: 2575 additions & 5354 deletions

Some content is hidden

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

.aspire/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"appHostPath": "../src/AppHost/AppHost.csproj"
3-
}
3+
}

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ dotnet_naming_style.begins_with_i.required_suffix =
246246
dotnet_naming_style.begins_with_i.word_separator =
247247
dotnet_naming_style.begins_with_i.capitalization = pascal_case
248248

249-
# JavaScript files
250-
[*.{js,jsx,ts,tsx,json}]
249+
# Web files
250+
[*.{js,jsx,ts,tsx,md,mdx,json,xml,html,css}]
251251

252252
# Indentation and spacing
253253
indent_size = 2

.github/dependabot.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ updates:
99
- package-ecosystem: 'nuget'
1010
directory: '/'
1111
schedule:
12-
interval: 'weekly'
12+
interval: 'quarterly'
1313
labels: ['📦 Issue-Dependencies', '🛠️ Area-AppHost']
1414

1515
# Maintain dependencies for npm
1616
- package-ecosystem: 'npm'
1717
directory: '/src/WebClient'
1818
schedule:
19-
interval: 'monthly'
19+
interval: 'quarterly'
2020
labels: ['📦 Issue-Dependencies', '🌐 Area-WebApp']
2121

22+
# Maintain dependencies for Terraform
23+
- package-ecosystem: 'terraform'
24+
directory: '/infra'
25+
schedule:
26+
interval: 'quarterly'
27+
labels: ['📦 Issue-Dependencies', '🚧 Area-Infrastructure']
28+
2229
# Maintain dependencies for GitHub Actions
2330
- package-ecosystem: 'github-actions'
2431
directory: '/'
2532
schedule:
26-
interval: 'weekly'
33+
interval: 'quarterly'
2734
labels: ['📦 Issue-Dependencies', '♾️ Area-Workflow']

.github/workflows/azure-swa.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ on:
1010
permissions:
1111
contents: read
1212
pull-requests: write
13-
14-
defaults:
15-
run:
16-
shell: pwsh
17-
13+
1814
env:
1915
NODEJS_VERSION: '24.x'
2016

@@ -33,21 +29,29 @@ jobs:
3329
cancel-in-progress: true
3430

3531
steps:
36-
- name: Checkout repository
32+
- name: Check out repository
3733
uses: actions/checkout@v5
3834

3935
- name: Set up Node.js
40-
uses: actions/setup-node@v5
36+
uses: actions/setup-node@v6
4137
with:
4238
node-version: ${{ env.NODEJS_VERSION }}
43-
cache: npm
44-
cache-dependency-path: ./src/WebClient/package-lock.json
39+
40+
- name: Cache build
41+
uses: actions/cache@v5
42+
with:
43+
path: |
44+
~/.npm
45+
${{ github.workspace }}/src/WebClient/.next/cache
46+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
47+
restore-keys: |
48+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
4549
4650
- name: Install dependencies
4751
run: npm ci --prefix ./src/WebClient
4852

4953
- name: Verify formatting
50-
run: npm run lint --prefix ./src/WebClient
54+
run: npm run lint:ci --prefix ./src/WebClient
5155

5256
- name: Build sources
5357
run: npm run build --prefix ./src/WebClient

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
shell: pwsh
1818

1919
env:
20-
DOTNET_VERSION: '9.x'
20+
DOTNET_VERSION: '10.x'
2121

2222
jobs:
2323
analyze:
@@ -36,7 +36,7 @@ jobs:
3636
build-mode: none
3737

3838
steps:
39-
- name: Checkout repository
39+
- name: Check out repository
4040
uses: actions/checkout@v5
4141

4242
- name: Set up .NET
@@ -46,7 +46,7 @@ jobs:
4646
dotnet-version: ${{ env.DOTNET_VERSION }}
4747

4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@v3
49+
uses: github/codeql-action/init@v4
5050
with:
5151
languages: ${{ matrix.language }}
5252
build-mode: ${{ matrix.build-mode }}
@@ -56,7 +56,7 @@ jobs:
5656
run: |
5757
dotnet build --configuration Release
5858
59-
- name: Perform CodeQL Analysis
60-
uses: github/codeql-action/analyze@v3
59+
- name: Perform analysis
60+
uses: github/codeql-action/analyze@v4
6161
with:
6262
category: "/language:${{matrix.language}}"

.github/workflows/terraform.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Terraform CI/CD
22

33
on:
44
push:
5-
branches: ['main']
5+
branches: ["main"]
66
paths:
7-
- 'infra/**'
8-
- '.github/workflows/terraform.yml'
7+
- "infra/**"
8+
- ".github/workflows/terraform.yml"
99
pull_request:
1010
types: [opened, synchronize, reopened]
11-
branches: ['main']
11+
branches: ["main"]
1212
paths:
13-
- 'infra/**'
14-
- '.github/workflows/terraform.yml'
13+
- "infra/**"
14+
- ".github/workflows/terraform.yml"
1515

1616
permissions:
1717
contents: read
@@ -39,7 +39,7 @@ jobs:
3939
cancel-in-progress: false
4040

4141
steps:
42-
- name: Checkout repository
42+
- name: Check out repository
4343
uses: actions/checkout@v5
4444

4545
- name: Set up Terraform
@@ -78,7 +78,7 @@ jobs:
7878
fi
7979
8080
- name: Publish plan
81-
uses: actions/upload-artifact@v4
81+
uses: actions/upload-artifact@v6
8282
with:
8383
name: tfplan-${{ github.run_id }}
8484
path: infra/tfplan
@@ -87,7 +87,7 @@ jobs:
8787
id: build-summary
8888
run: |
8989
TF_PLAN=$(terraform -chdir=infra show -no-color tfplan)
90-
90+
9191
delimiter="$(openssl rand -hex 8)"
9292
echo "summary<<${delimiter}" >> $GITHUB_OUTPUT
9393
echo "## Terraform Plan" >> $GITHUB_OUTPUT
@@ -103,10 +103,10 @@ jobs:
103103
env:
104104
SUMMARY: ${{ steps.build-summary.outputs.summary }}
105105
run: echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
106-
106+
107107
- name: Push summary to PR
108108
if: github.event_name == 'pull_request'
109-
uses: actions/github-script@v7
109+
uses: actions/github-script@v8
110110
env:
111111
SUMMARY: "${{ steps.build-summary.outputs.summary }}"
112112
with:
@@ -132,7 +132,7 @@ jobs:
132132
cancel-in-progress: false
133133

134134
steps:
135-
- name: Checkout repository
135+
- name: Check out repository
136136
uses: actions/checkout@v5
137137

138138
- name: Set up Terraform
@@ -151,7 +151,7 @@ jobs:
151151
run: terraform -chdir=infra init -input=false
152152

153153
- name: Download plan
154-
uses: actions/download-artifact@v4
154+
uses: actions/download-artifact@v7
155155
with:
156156
name: tfplan-${{ github.run_id }}
157157
path: infra

.vscode/extensions.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"recommendations": [
3-
"dbaeumer.vscode-eslint",
3+
"biomejs.biome",
44
"editorconfig.editorconfig",
5-
"GitHub.copilot",
65
"GitHub.copilot-chat",
6+
"hashicorp.terraform",
77
"ms-azuretools.vscode-azurestaticwebapps",
8-
"ms-azuretools.vscode-bicep",
8+
"ms-azuretools.vscode-azureterraform",
99
"ms-dotnettools.csdevkit",
1010
"ms-vscode.azurecli",
11-
"ms-vscode.powershell",
11+
"ms-vscode.powershell"
1212
]
1313
}

biome.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
3+
"root": true,
4+
"vcs": {
5+
"enabled": true,
6+
"clientKind": "git",
7+
"useIgnoreFile": true,
8+
"defaultBranch": "main"
9+
},
10+
"files": {
11+
"ignoreUnknown": false,
12+
"includes": ["**", "!!**/next-env.d.ts"]
13+
},
14+
"formatter": {
15+
"enabled": true,
16+
"useEditorconfig": true
17+
},
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": true
22+
},
23+
"domains": {
24+
"next": "recommended",
25+
"react": "recommended"
26+
}
27+
},
28+
"javascript": {
29+
"formatter": {
30+
"quoteStyle": "single"
31+
}
32+
},
33+
"assist": {
34+
"enabled": true,
35+
"actions": {
36+
"source": {
37+
"organizeImports": "on"
38+
}
39+
}
40+
}
41+
}

infra/.terraform.lock.hcl

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
azurerm = {
44
source = "hashicorp/azurerm"
5-
version = "~> 4.47"
5+
version = "~> 4.57"
66
}
77
}
88

0 commit comments

Comments
 (0)