Skip to content

Commit aa85f7d

Browse files
author
Castro, Mario
committed
Dependency upgrades for Node 20
1 parent c3aa44d commit aa85f7d

File tree

12 files changed

+21666
-31492
lines changed

12 files changed

+21666
-31492
lines changed

package-lock.json

+21,607-31,440
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@
66
"clean-compile": "lerna run clean && lerna clean --yes && lerna bootstrap && lerna run compile"
77
},
88
"devDependencies": {
9-
"@boostercloud/metadata-booster": "1.20.0",
9+
"@boostercloud/metadata-booster": "file:/Users/mcastr45/Code/Optum/booster/common/temp/artifacts/packages/boostercloud-metadata-booster-3.0.0.tgz",
1010
"@types/jsonwebtoken": "^8.5.9",
1111
"@typescript-eslint/eslint-plugin": "^4.29.0",
1212
"@typescript-eslint/parser": "^4.29.0",
1313
"eslint": "^7.32.0",
1414
"eslint-config-prettier": "^8.3.0",
1515
"eslint-plugin-import": "^2.23.4",
1616
"eslint-plugin-prettier": "^3.4.0",
17-
"lerna": "^4.0.0",
18-
"typescript": "4.7.4"
19-
}
17+
"lerna": "^8.1.8",
18+
"typescript": "^5.6.3"
19+
},
20+
"workspaces": [
21+
"packages/*"
22+
]
2023
}

packages/rocket-file-uploads-azure-infrastructure/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@
2424
"url": "git+https://github.com/boostercloud/rocket-files.git"
2525
},
2626
"peerDependencies": {
27-
"@boostercloud/framework-core": ">= 1.20.0",
28-
"@boostercloud/framework-types": ">= 1.20.0"
27+
"@boostercloud/framework-core": ">= 3.1.0",
28+
"@boostercloud/framework-types": ">= 3.1.0"
2929
},
3030
"dependencies": {
3131
"@boostercloud/rocket-file-uploads-types": "^1.4.0"
3232
},
3333
"devDependencies": {
34-
"@boostercloud/framework-provider-azure-infrastructure": "1.20.0",
35-
"@boostercloud/metadata-booster": "1.20.0",
36-
"@cdktf/provider-azurerm": "5.0.13",
34+
"@boostercloud/framework-provider-azure-infrastructure": "3.1.0",
35+
"@boostercloud/metadata-booster": "3.1.0",
36+
"@cdktf/provider-azurerm": "13.18.0",
3737
"@types/mustache": "^4.1.0",
38-
"@types/node": "16.4.11",
38+
"@types/node": "^20.17.17",
3939
"@typescript-eslint/eslint-plugin": "^4.29.0",
4040
"@typescript-eslint/parser": "^4.29.0",
41-
"cdktf": "^0.15.0",
41+
"cdktf": "^0.20.11",
4242
"eslint": "^7.32.0",
4343
"eslint-config-prettier": "^8.3.0",
4444
"eslint-plugin-import": "^2.23.4",
4545
"eslint-plugin-prettier": "^3.4.0",
4646
"mustache": "4.1.0",
4747
"prettier": "^2.3.2",
48-
"typescript": "4.7.4"
48+
"typescript": "^5.6.3"
4949
},
5050
"scripts": {
5151
"lint:check": "eslint --ext '.js,.ts' **/*.ts",

packages/rocket-file-uploads-azure-infrastructure/src/synth/synth.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { TerraformRoleAssignment } from './terraform-role-assignment'
88
import { TerraformStack } from 'cdktf'
99

1010
export class Synth {
11-
public static mountStack(
11+
public static async mountStack(
1212
configuration: RocketFilesConfiguration,
1313
config: BoosterConfig,
1414
applicationSynthStack: ApplicationSynthStack,
1515
utils: RocketUtils
16-
): ApplicationSynthStack {
16+
): Promise<ApplicationSynthStack> {
1717
const appPrefix = applicationSynthStack.appPrefix
18-
const terraformStackResource = applicationSynthStack.terraformStack as TerraformStack
18+
const terraformStackResource = applicationSynthStack.terraformStack as unknown as TerraformStack
1919
const resourceGroup = applicationSynthStack.resourceGroup!
2020
const rocketStack = applicationSynthStack.rocketStack ?? []
2121
const azurermProvider = applicationSynthStack.azureProvider!

packages/rocket-file-uploads-azure-infrastructure/src/synth/terraform-function-app.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class TerraformFunctionApp {
2020
const applicationServicePlan = applicationSynthStack.applicationServicePlan!
2121
const storageAccount = applicationSynthStack.storageAccount!
2222
const cosmosDatabaseName = applicationSynthStack.cosmosdbDatabase?.name
23-
const apiManagementServiceName = applicationSynthStack.apiManagementName
23+
// const apiManagementServiceName = applicationSynthStack.apiManagementName
2424
const cosmosDbConnectionString = applicationSynthStack.cosmosdbDatabase?.primaryKey
2525
const functionAppName = getFunctionAppName(applicationSynthStack)
2626

@@ -35,7 +35,7 @@ export class TerraformFunctionApp {
3535
WEBSITE_CONTENTSHARE: id,
3636
...config.env,
3737
BOOSTER_ENV: config.environmentName,
38-
BOOSTER_REST_API_URL: `https://${apiManagementServiceName}.azure-api.net/${config.environmentName}`,
38+
// BOOSTER_REST_API_URL: `https://${apiManagementServiceName}.azure-api.net/${config.environmentName}`,
3939
COSMOSDB_CONNECTION_STRING: `AccountEndpoint=https://${cosmosDatabaseName}.documents.azure.com:443/;AccountKey=${cosmosDbConnectionString};`,
4040
BOOSTER_ROCKET_FUNCTION_ID: functionID,
4141
...accountConnections,
@@ -49,10 +49,10 @@ export class TerraformFunctionApp {
4949
provider: providerResource,
5050
siteConfig: {
5151
applicationStack: {
52-
nodeVersion: '~14',
52+
nodeVersion: '~20',
5353
},
5454
},
55-
functionsExtensionVersion: '~3', // keep it on version 3. Version 4 needs a migration process
55+
functionsExtensionVersion: '~4', // keep it on version 3. Version 4 needs a migration process
5656
identity: {
5757
type: 'SystemAssigned',
5858
},

packages/rocket-file-uploads-azure/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@
2424
"url": "git+https://github.com/boostercloud/rocket-files.git"
2525
},
2626
"peerDependencies": {
27-
"@boostercloud/framework-core": ">= 1.20.0",
28-
"@boostercloud/framework-provider-azure": ">= 1.20.0",
29-
"@boostercloud/framework-types": ">= 1.20.0"
27+
"@boostercloud/framework-core": ">= 3.1.0",
28+
"@boostercloud/framework-provider-azure": ">= 3.1.0",
29+
"@boostercloud/framework-types": ">= 3.1.0"
3030
},
3131
"dependencies": {
3232
"@azure/functions": "3.0.0",
33-
"@azure/identity": "3.0.0",
33+
"@azure/identity": "4.2.1",
3434
"@azure/storage-blob": "^12.0.0",
3535
"@boostercloud/rocket-file-uploads-types": "^1.4.0"
3636
},
3737
"devDependencies": {
38-
"@boostercloud/metadata-booster": "1.20.0",
39-
"@types/node": "16.4.11",
38+
"@boostercloud/metadata-booster": "3.1.0",
39+
"@types/node": "^20.17.17",
4040
"@typescript-eslint/eslint-plugin": "^4.29.0",
4141
"@typescript-eslint/parser": "^4.29.0",
4242
"eslint": "^7.32.0",
4343
"eslint-config-prettier": "^8.3.0",
4444
"eslint-plugin-import": "^2.23.4",
4545
"eslint-plugin-prettier": "^3.4.0",
4646
"prettier": "^2.3.2",
47-
"typescript": "4.7.4"
47+
"typescript": "^5.6.3"
4848
},
4949
"scripts": {
5050
"lint:check": "eslint --ext '.js,.ts' **/*.ts",

packages/rocket-file-uploads-core/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@
2424
"url": "git+https://github.com/boostercloud/rocket-files.git"
2525
},
2626
"peerDependencies": {
27-
"@boostercloud/framework-core": ">= 1.20.0",
28-
"@boostercloud/framework-types": ">= 1.20.0"
27+
"@boostercloud/framework-core": ">= 3.1.0",
28+
"@boostercloud/framework-types": ">= 3.1.0"
2929
},
3030
"dependencies": {
3131
"@boostercloud/rocket-file-uploads-types": "^1.4.0"
3232
},
3333
"devDependencies": {
34-
"@boostercloud/metadata-booster": "1.20.0",
35-
"@types/node": "16.4.11",
34+
"@boostercloud/metadata-booster": "3.1.0",
35+
"@types/node": "^20.17.17",
3636
"@typescript-eslint/eslint-plugin": "^4.29.0",
3737
"@typescript-eslint/parser": "^4.29.0",
3838
"eslint": "^7.32.0",
3939
"eslint-config-prettier": "^8.3.0",
4040
"eslint-plugin-import": "^2.23.4",
4141
"eslint-plugin-prettier": "^3.4.0",
4242
"prettier": "^2.3.2",
43-
"typescript": "4.7.4"
43+
"typescript": "^5.6.3"
4444
},
4545
"scripts": {
4646
"lint:check": "eslint --ext '.js,.ts' **/*.ts",

packages/rocket-file-uploads-local-infrastructure/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@
2424
"url": "git+https://github.com/boostercloud/rocket-files.git"
2525
},
2626
"peerDependencies": {
27-
"@boostercloud/framework-core": ">= 1.20.0",
28-
"@boostercloud/framework-types": ">= 1.20.0"
27+
"@boostercloud/framework-core": ">= 3.1.0",
28+
"@boostercloud/framework-types": ">= 3.1.0"
2929
},
3030
"dependencies": {
3131
"@boostercloud/rocket-file-uploads-types": "^1.4.0"
3232
},
3333
"devDependencies": {
34-
"@boostercloud/framework-provider-local-infrastructure": "1.20.0",
35-
"@boostercloud/metadata-booster": "1.20.0",
34+
"@boostercloud/framework-provider-local-infrastructure": "3.1.0",
35+
"@boostercloud/metadata-booster": "3.1.0",
3636
"@types/mustache": "^4.1.0",
37-
"@types/node": "16.4.11",
37+
"@types/node": "^20.17.17",
3838
"@typescript-eslint/eslint-plugin": "^4.29.0",
3939
"@typescript-eslint/parser": "^4.29.0",
4040
"eslint": "^7.32.0",
4141
"eslint-config-prettier": "^8.3.0",
4242
"eslint-plugin-import": "^2.23.4",
4343
"eslint-plugin-prettier": "^3.4.0",
4444
"prettier": "^2.3.2",
45-
"typescript": "4.7.4"
45+
"typescript": "^5.6.3"
4646
},
4747
"scripts": {
4848
"lint:check": "eslint --ext '.js,.ts' **/*.ts",

packages/rocket-file-uploads-local-infrastructure/src/fs-watch.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ export function fsWatch(storageName: string, containerName: string, port: number
99
if (!fs.existsSync(_path)) {
1010
fs.mkdirSync(_path, { recursive: true })
1111
}
12-
fs.watch(_path, { recursive: true }, async (eventType: 'rename' | 'change', filename: string) => {
13-
const parsed = path.parse(filename)
14-
if (new RegExp(/(^|[/\\])\../).test(filename)) return // ignore files starting with a dot
12+
fs.watch(_path, { recursive: true, encoding: 'buffer' }, async (eventType: 'rename' | 'change', filename: Buffer | null) => {
13+
if (!filename) return
14+
const filenameStr = filename.toString()
15+
16+
const parsed = path.parse(filenameStr)
17+
if (new RegExp(/(^|[/\\])\../).test(filenameStr)) return // ignore files starting with a dot
1518
if (!isValidDirectory(parsed.dir, directories)) return
16-
const name = path.join(storageName, containerName, filename)
19+
const name = path.join(storageName, containerName, filenameStr)
1720
const uri = `http://localhost:${port}/${name}`
1821
await boosterRocketDispatcher({
1922
[rocketFunctionIDEnvVar]: functionID,

packages/rocket-file-uploads-local/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@
2424
"url": "git+https://github.com/boostercloud/rocket-files.git"
2525
},
2626
"peerDependencies": {
27-
"@boostercloud/framework-core": ">= 1.20.0",
28-
"@boostercloud/framework-provider-local": ">= 1.20.0",
29-
"@boostercloud/framework-types": ">= 1.20.0"
27+
"@boostercloud/framework-core": ">= 3.1.0",
28+
"@boostercloud/framework-provider-local": ">= 3.1.0",
29+
"@boostercloud/framework-types": ">= 3.1.0"
3030
},
3131
"dependencies": {
3232
"@boostercloud/rocket-file-uploads-types": "^1.4.0"
3333
},
3434
"devDependencies": {
35-
"@boostercloud/metadata-booster": "1.20.0",
36-
"@types/node": "16.4.11",
35+
"@boostercloud/metadata-booster": "3.1.0",
36+
"@types/node": "^20.17.17",
3737
"@typescript-eslint/eslint-plugin": "^4.29.0",
3838
"@typescript-eslint/parser": "^4.29.0",
3939
"eslint": "^7.32.0",
4040
"eslint-config-prettier": "^8.3.0",
4141
"eslint-plugin-import": "^2.23.4",
4242
"eslint-plugin-prettier": "^3.4.0",
4343
"prettier": "^2.3.2",
44-
"typescript": "4.7.4"
44+
"typescript": "^5.6.3"
4545
},
4646
"scripts": {
4747
"lint:check": "eslint --ext '.js,.ts' **/*.ts",

packages/rocket-file-uploads-types/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"url": "git+https://github.com/boostercloud/rocket-files.git"
2525
},
2626
"peerDependencies": {
27-
"@boostercloud/framework-core": ">= 1.20.0",
28-
"@boostercloud/framework-types": ">= 1.20.0"
27+
"@boostercloud/framework-core": ">= 3.1.0",
28+
"@boostercloud/framework-types": ">= 3.1.0"
2929
},
3030
"dependencies": {
31-
"minimatch": "3.0.4"
31+
"minimatch": "3.0.5"
3232
},
3333
"devDependencies": {
34-
"@boostercloud/metadata-booster": "1.20.0",
34+
"@boostercloud/metadata-booster": "3.1.0",
3535
"@types/chai": "4.3.8",
3636
"@types/mocha": "10.0.2",
3737
"@types/sinon": "10.0.19",
@@ -42,7 +42,7 @@
4242
"sinon": "16.1.0",
4343
"sinon-chai": "3.7.0",
4444
"ts-node": "10.9.1",
45-
"typescript": "4.7.4"
45+
"@types/node": "^20.17.17"
4646
},
4747
"scripts": {
4848
"lint:check": "eslint --ext '.js,.ts' **/*.ts",

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"noFallthroughCasesInSwitch": true,
1515
"forceConsistentCasingInFileNames": true,
1616
"experimentalDecorators": true,
17+
"skipLibCheck": true,
1718
"lib": [
1819
"ES2019",
1920
"ES2020"

0 commit comments

Comments
 (0)