Skip to content

Commit f3c2c9b

Browse files
Dependency updates July 2024 (#3718)
Notable: Typescript 5.5
1 parent 72e26ac commit f3c2c9b

File tree

38 files changed

+3155
-3394
lines changed

38 files changed

+3155
-3394
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
3+
changeKind: dependencies
4+
packages:
5+
- "@typespec/bundler"
6+
- "@typespec/compiler"
7+
- "@typespec/eslint-plugin"
8+
- "@typespec/html-program-viewer"
9+
- "@typespec/http"
10+
- "@typespec/internal-build-utils"
11+
- "@typespec/json-schema"
12+
- "@typespec/library-linter"
13+
- "@typespec/openapi"
14+
- "@typespec/openapi3"
15+
- "@typespec/playground"
16+
- "@typespec/prettier-plugin-typespec"
17+
- "@typespec/protobuf"
18+
- "@typespec/rest"
19+
- tmlanguage-generator
20+
- typespec-vscode
21+
- "@typespec/versioning"
22+
- "@typespec/xml"
23+
---
24+
25+
Dependency updates July 2024

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,26 @@
4444
"@octokit/plugin-rest-endpoint-methods": "^13.2.1",
4545
"@pnpm/find-workspace-packages": "^6.0.9",
4646
"@types/node": "~18.11.19",
47-
"@typescript-eslint/parser": "^7.9.0",
48-
"@typescript-eslint/utils": "^7.9.0",
47+
"@typescript-eslint/parser": "^7.15.0",
48+
"@typescript-eslint/utils": "^7.15.0",
4949
"@vitest/coverage-v8": "^1.6.0",
50-
"c8": "^9.1.0",
51-
"cspell": "^8.8.1",
50+
"c8": "^10.1.2",
51+
"cspell": "^8.9.1",
5252
"eslint": "^8.57.0",
53-
"eslint-plugin-deprecation": "^2.0.0",
53+
"eslint-plugin-deprecation": "^3.0.0",
5454
"eslint-plugin-import": "^2.29.1",
55-
"eslint-plugin-unicorn": "^53.0.0",
55+
"eslint-plugin-unicorn": "^54.0.0",
5656
"eslint-plugin-vitest": "^0.5.4",
5757
"picocolors": "~1.0.1",
58-
"prettier": "~3.2.5",
59-
"prettier-plugin-organize-imports": "~3.2.4",
58+
"prettier": "~3.3.2",
59+
"prettier-plugin-organize-imports": "~4.0.0",
6060
"rimraf": "~5.0.7",
61-
"syncpack": "^12.3.2",
62-
"tsx": "^4.10.5",
63-
"typescript": "~5.4.5",
64-
"typescript-eslint": "^7.9.0",
61+
"syncpack": "^12.3.3",
62+
"tsx": "^4.16.0",
63+
"typescript": "~5.5.3",
64+
"typescript-eslint": "^7.15.0",
6565
"vitest": "^1.6.0",
66-
"yaml": "~2.4.2"
66+
"yaml": "~2.4.5"
6767
},
6868
"syncpack": {
6969
"dependencyTypes": [

packages/best-practices/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
"@typespec/compiler": "workspace:~",
4949
"@vitest/coverage-v8": "^1.6.0",
5050
"@vitest/ui": "^1.6.0",
51-
"c8": "^9.1.0",
51+
"c8": "^10.1.2",
5252
"rimraf": "~5.0.7",
53-
"typescript": "~5.4.5",
53+
"typescript": "~5.5.3",
5454
"vitest": "^1.6.0"
5555
}
5656
}

packages/bundle-uploader/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"!dist/test/**"
3838
],
3939
"dependencies": {
40-
"@azure/identity": "~4.2.1",
41-
"@azure/storage-blob": "~12.18.0",
40+
"@azure/identity": "~4.3.0",
41+
"@azure/storage-blob": "~12.23.0",
4242
"@pnpm/find-workspace-packages": "^6.0.9",
4343
"@typespec/bundler": "workspace:~",
4444
"json5": "^2.2.3",
@@ -50,9 +50,9 @@
5050
"@types/semver": "^7.5.8",
5151
"@vitest/coverage-v8": "^1.6.0",
5252
"@vitest/ui": "^1.6.0",
53-
"c8": "^9.1.0",
53+
"c8": "^10.1.2",
5454
"rimraf": "~5.0.7",
55-
"typescript": "~5.4.5",
55+
"typescript": "~5.5.3",
5656
"vitest": "^1.6.0"
5757
}
5858
}

packages/bundler/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@
4343
],
4444
"dependencies": {
4545
"@rollup/plugin-alias": "~5.1.0",
46-
"@rollup/plugin-commonjs": "~25.0.7",
46+
"@rollup/plugin-commonjs": "~26.0.1",
4747
"@rollup/plugin-json": "~6.1.0",
4848
"@rollup/plugin-multi-entry": "~6.0.1",
4949
"@rollup/plugin-node-resolve": "~15.2.3",
5050
"@rollup/plugin-virtual": "~3.0.2",
5151
"@typespec/compiler": "workspace:~",
5252
"picocolors": "~1.0.1",
53-
"rollup": "~4.17.2",
53+
"rollup": "~4.18.0",
5454
"yargs": "~17.7.2"
5555
},
5656
"devDependencies": {
5757
"@types/node": "~18.11.19",
5858
"@types/yargs": "~17.0.32",
5959
"@vitest/coverage-v8": "^1.6.0",
6060
"@vitest/ui": "^1.6.0",
61-
"c8": "^9.1.0",
61+
"c8": "^10.1.2",
6262
"rimraf": "~5.0.7",
63-
"typescript": "~5.4.5",
64-
"vite": "^5.2.11",
63+
"typescript": "~5.5.3",
64+
"vite": "^5.3.2",
6565
"vitest": "^1.6.0"
6666
}
6767
}

packages/bundler/src/vite/vite-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function typespecBundlePlugin(options: TypeSpecBundlePluginOptions): Plug
4040
await watchBundleLibrary(config.root, library, (bundle) => {
4141
bundles[library] = bundle;
4242
definitions[library] = bundle.definition;
43-
server.hot.send({ type: "full-reload" });
43+
server.ws.send({ type: "full-reload" });
4444
});
4545
}
4646

packages/compiler/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@
8282
"lint:fix": "eslint . --fix"
8383
},
8484
"dependencies": {
85-
"@babel/code-frame": "~7.24.2",
86-
"ajv": "~8.13.0",
85+
"@babel/code-frame": "~7.24.7",
86+
"ajv": "~8.16.0",
8787
"change-case": "~5.4.4",
88-
"globby": "~14.0.1",
88+
"globby": "~14.0.2",
8989
"mustache": "~4.2.0",
9090
"picocolors": "~1.0.1",
91-
"prettier": "~3.2.5",
91+
"prettier": "~3.3.2",
9292
"prompts": "~2.4.2",
9393
"semver": "^7.6.2",
9494
"vscode-languageserver": "~9.0.1",
9595
"vscode-languageserver-textdocument": "~1.0.11",
96-
"yaml": "~2.4.2",
96+
"yaml": "~2.4.5",
9797
"yargs": "~17.7.2"
9898
},
9999
"devDependencies": {
@@ -106,13 +106,13 @@
106106
"@typespec/internal-build-utils": "workspace:~",
107107
"@vitest/coverage-v8": "^1.6.0",
108108
"@vitest/ui": "^1.6.0",
109-
"c8": "^9.1.0",
109+
"c8": "^10.1.2",
110110
"grammarkdown": "~3.3.2",
111111
"rimraf": "~5.0.7",
112112
"source-map-support": "~0.5.21",
113113
"tmlanguage-generator": "workspace:~",
114114
"ts-node": "~10.9.2",
115-
"typescript": "~5.4.5",
115+
"typescript": "~5.5.3",
116116
"vitest": "^1.6.0",
117117
"vscode-oniguruma": "~2.0.1",
118118
"vscode-textmate": "~9.0.0"

packages/compiler/src/core/scanner.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export enum Token {
4040

4141
///////////////////////////////////////////////////////////////
4242
// Trivia
43-
/**@internal */ __StartTrivia,
43+
/** @internal */ __StartTrivia,
4444

4545
SingleLineComment = __StartTrivia,
4646
MultiLineComment,
@@ -383,7 +383,7 @@ export function isTrivia(token: Token) {
383383
return token >= Token.__StartTrivia && token < Token.__EndTrivia;
384384
}
385385

386-
export function isComment(token: Token) {
386+
export function isComment(token: Token): boolean {
387387
return token === Token.SingleLineComment || token === Token.MultiLineComment;
388388
}
389389

packages/eslint-plugin-typespec/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@
4141
},
4242
"devDependencies": {
4343
"@types/node": "~18.11.19",
44-
"@typescript-eslint/parser": "^7.9.0",
45-
"@typescript-eslint/rule-tester": "^7.9.0",
46-
"@typescript-eslint/types": "^7.9.0",
44+
"@typescript-eslint/parser": "^7.15.0",
45+
"@typescript-eslint/rule-tester": "^7.15.0",
46+
"@typescript-eslint/types": "^7.15.0",
4747
"@vitest/coverage-v8": "^1.6.0",
4848
"@vitest/ui": "^1.6.0",
49-
"c8": "^9.1.0",
49+
"c8": "^10.1.2",
5050
"eslint": "^8.57.0",
5151
"rimraf": "~5.0.7",
52-
"typescript": "~5.4.5",
52+
"typescript": "~5.5.3",
5353
"vitest": "^1.6.0"
5454
},
5555
"dependencies": {
56-
"@typescript-eslint/utils": "^7.9.0"
56+
"@typescript-eslint/utils": "^7.15.0"
5757
}
5858
}

packages/html-program-viewer/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,22 @@
5252
},
5353
"dependencies": {
5454
"@emotion/react": "^11.11.4",
55-
"prettier": "~3.2.5",
55+
"prettier": "~3.3.2",
5656
"react": "~18.3.1",
5757
"react-dom": "~18.3.1",
5858
"react-is": "~18.3.1"
5959
},
6060
"devDependencies": {
61-
"@babel/core": "^7.24.5",
61+
"@babel/core": "^7.24.7",
6262
"@types/node": "~18.11.19",
63-
"@types/react": "~18.3.2",
63+
"@types/react": "~18.3.3",
6464
"@types/react-dom": "~18.3.0",
6565
"@typespec/compiler": "workspace:~",
6666
"@vitest/coverage-v8": "^1.6.0",
6767
"@vitest/ui": "^1.6.0",
68-
"c8": "^9.1.0",
68+
"c8": "^10.1.2",
6969
"rimraf": "~5.0.7",
70-
"typescript": "~5.4.5",
70+
"typescript": "~5.5.3",
7171
"vitest": "^1.6.0"
7272
}
7373
}

packages/http/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"@typespec/tspd": "workspace:~",
6363
"@vitest/coverage-v8": "^1.6.0",
6464
"@vitest/ui": "^1.6.0",
65-
"c8": "^9.1.0",
65+
"c8": "^10.1.2",
6666
"rimraf": "~5.0.7",
67-
"typescript": "~5.4.5",
67+
"typescript": "~5.5.3",
6868
"vitest": "^1.6.0"
6969
}
7070
}

packages/internal-build-utils/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
],
4242
"dependencies": {
4343
"@pnpm/find-workspace-packages": "^6.0.9",
44-
"cspell": "^8.8.1",
44+
"cspell": "^8.9.1",
4545
"semver": "^7.6.2",
4646
"strip-json-comments": "~5.0.1",
4747
"yargs": "~17.7.2"
@@ -52,10 +52,10 @@
5252
"@types/yargs": "~17.0.32",
5353
"@vitest/coverage-v8": "^1.6.0",
5454
"@vitest/ui": "^1.6.0",
55-
"c8": "^9.1.0",
55+
"c8": "^10.1.2",
5656
"chokidar": "~3.6.0",
5757
"rimraf": "~5.0.7",
58-
"typescript": "~5.4.5",
58+
"typescript": "~5.5.3",
5959
"vitest": "^1.6.0"
6060
}
6161
}

packages/json-schema/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@
6262
"@typespec/tspd": "workspace:~",
6363
"@vitest/coverage-v8": "^1.6.0",
6464
"@vitest/ui": "^1.6.0",
65-
"ajv": "~8.13.0",
65+
"ajv": "~8.16.0",
6666
"ajv-formats": "~3.0.1",
67-
"c8": "^9.1.0",
67+
"c8": "^10.1.2",
6868
"rimraf": "~5.0.7",
69-
"typescript": "~5.4.5",
69+
"typescript": "~5.5.3",
7070
"vitest": "^1.6.0"
7171
},
7272
"dependencies": {
73-
"yaml": "~2.4.2"
73+
"yaml": "~2.4.5"
7474
}
7575
}

packages/json-schema/src/json-schema-emitter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ export class JsonSchemaEmitter extends TypeEmitter<Record<string, any>, JSONSche
819819

820820
// #region context emitters
821821
modelDeclarationContext(model: Model, name: string): Context {
822-
if (this.#isStdType(model) && model.name === "object") {
822+
if (this.#isStdType(model) && (model.name as any) === "object") {
823823
return {};
824824
}
825825

packages/library-linter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
"@typespec/compiler": "workspace:~",
5656
"@vitest/coverage-v8": "^1.6.0",
5757
"@vitest/ui": "^1.6.0",
58-
"c8": "^9.1.0",
58+
"c8": "^10.1.2",
5959
"rimraf": "~5.0.7",
60-
"typescript": "~5.4.5",
60+
"typescript": "~5.5.3",
6161
"vitest": "^1.6.0"
6262
}
6363
}

packages/monarch/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
"@types/node": "~18.11.19",
4646
"@vitest/coverage-v8": "^1.6.0",
4747
"@vitest/ui": "^1.6.0",
48-
"c8": "^9.1.0",
49-
"happy-dom": "^14.11.0",
48+
"c8": "^10.1.2",
49+
"happy-dom": "^14.12.3",
5050
"rimraf": "~5.0.7",
51-
"typescript": "~5.4.5",
51+
"typescript": "~5.5.3",
5252
"vitest": "^1.6.0"
5353
},
5454
"dependencies": {
55-
"monaco-editor-core": "^0.48.0"
55+
"monaco-editor-core": "^0.50.0"
5656
}
5757
}

packages/monarch/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"outDir": "dist",
55
"rootDir": ".",
66
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo",
7-
"lib": ["DOM", "ESNext"],
87
"verbatimModuleSyntax": true
98
},
109
"include": ["src/**/*.ts", "test/**/*.ts"]

packages/openapi/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
"@typespec/tspd": "workspace:~",
6565
"@vitest/coverage-v8": "^1.6.0",
6666
"@vitest/ui": "^1.6.0",
67-
"c8": "^9.1.0",
67+
"c8": "^10.1.2",
6868
"rimraf": "~5.0.7",
69-
"typescript": "~5.4.5",
69+
"typescript": "~5.5.3",
7070
"vitest": "^1.6.0"
7171
}
7272
}

packages/openapi/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"compilerOptions": {
55
"outDir": "dist",
66
"rootDir": ".",
7-
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo",
8-
"lib": ["DOM", "ESNext"]
7+
"tsBuildInfoFile": "temp/tsconfig.tsbuildinfo"
98
},
109
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
1110
}

packages/openapi3/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"!dist/test/**"
5353
],
5454
"dependencies": {
55-
"yaml": "~2.4.2"
55+
"yaml": "~2.4.5"
5656
},
5757
"peerDependencies": {
5858
"@typespec/compiler": "workspace:~",
@@ -71,9 +71,9 @@
7171
"@typespec/versioning": "workspace:~",
7272
"@vitest/coverage-v8": "^1.6.0",
7373
"@vitest/ui": "^1.6.0",
74-
"c8": "^9.1.0",
74+
"c8": "^10.1.2",
7575
"rimraf": "~5.0.7",
76-
"typescript": "~5.4.5",
76+
"typescript": "~5.5.3",
7777
"vitest": "^1.6.0"
7878
}
7979
}

0 commit comments

Comments
 (0)