Node 22 and Azure Functions v4 migration#1593
Node 22 and Azure Functions v4 migration#1593MarcAstr0 wants to merge 16 commits intoboostercloud:mainfrom
Conversation
- Bump Node.js from v20 (Iron) to v22 (Jod) LTS - Update Rush from 5.133.4 to 5.166.0 - Update nodeSupportedVersionRange to >=22.0.0 <23.0.0 - Update engine requirements across all packages
- Define type wrappers, guards, and helpers for v4 programming model (HTTP, CosmosDB, EventHub, Timer, Web PubSub) - Export types from main package entry point
- Update adapters to use v4 InvocationContext and HttpResponseInit - Add type definitions, guards, and helpers for all trigger types - Fix parameter property syntax in tests for Node 22 compatibility
This reverts commit ca34a18.
| logger.info('Triggering function app cold start...') | ||
| try { | ||
| await exec( | ||
| `curl -s -o /dev/null "https://${functionAppName}.azurewebsites.net/api/graphql" -X POST -H "Content-Type: application/json" -d '{"query":"{ __typename }"}'` |
Check warning
Code scanning / CodeQL
Unsafe shell command constructed from library input Medium
| for (let i = 1; i <= maxRetries; i++) { | ||
| try { | ||
| const result = await exec( | ||
| `az functionapp keys list --name "${functionAppName}" --resource-group "${resourceGroupName}" --query "systemKeys.webpubsub_extension" -o tsv` |
Check warning
Code scanning / CodeQL
Unsafe shell command constructed from library input Medium
| logger.info('Re-triggering function host...') | ||
| try { | ||
| await exec( | ||
| `curl -s -o /dev/null "https://${functionAppName}.azurewebsites.net/api/graphql" -X POST -H "Content-Type: application/json" -d '{"query":"{ __typename }"}'` |
Check warning
Code scanning / CodeQL
Unsafe shell command constructed from library input Medium
| logger.info('Updating Web PubSub hub...') | ||
| try { | ||
| await exec( | ||
| `az webpubsub hub update --name "${webPubSubName}" --resource-group "${resourceGroupName}" --hub-name "${hubName}" --event-handler url-template="https://${functionAppName}.azurewebsites.net/runtime/webhooks/webpubsub?code=${key}" user-event-pattern="*" system-event="connect" system-event="disconnected"` |
Check warning
Code scanning / CodeQL
Unsafe shell command constructed from library input Medium
|
/integration sha=22a37ba |
|
⌛ Integration tests are running... Check their status here 👈 |
|
❌ Oh no! Integration tests have failed |
|
/integration sha=39b572a |
|
⌛ Integration tests are running... Check their status here 👈 |
|
❌ Oh no! Integration tests have failed |
|
/integration sha=9d6ec78 |
|
⌛ Integration tests are running... Check their status here 👈 |
- Bump validator 13.12.0 → 13.15.26, mock-jwks 1.0.3 → 1.0.10 - Add pnpm overrides in .pnpmfile.cjs for transitive vulns - Fix TS7053 in http-service.ts (RequestOptions.headers union type) - Update token verifier tests for jsonwebtoken 9.x iat claim
|
❌ Oh no! Integration tests have failed |
|
/integration sha=9235aca |
|
⌛ Integration tests are running... Check their status here 👈 |
|
✅ Integration tests have finished successfully! |
|
/integration sha=ca63936 |
|
⌛ Integration tests are running... Check their status here 👈 |
|
❌ Oh no! Integration tests have failed |
|
⌛ Integration tests are running... Check their status here 👈 |
|
❌ Oh no! Integration tests have failed |
Description
Changes
Checks