Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #1219

Merged
merged 15 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .chronus/changes/upgrade-deps-july-2024-2-2024-6-22-23-39-34.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: dependencies
packages:
- "@azure-tools/typespec-autorest-canonical"
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-azure-core"
- "@azure-tools/typespec-azure-portal-core"
- "@azure-tools/typespec-azure-resource-manager"
- "@azure-tools/typespec-azure-rulesets"
- "@azure-tools/typespec-client-generator-core"
---

Update dependencies
2 changes: 1 addition & 1 deletion core
Submodule core updated 71 files
+26 −0 .chronus/changes/upgrade-deps-july-2024-2-2024-6-22-23-39-34.md
+1 −1 docs/libraries/http/operations.md
+13 −13 package.json
+5 −5 packages/best-practices/package.json
+7 −7 packages/bundle-uploader/package.json
+7 −7 packages/bundler/package.json
+9 −9 packages/compiler/package.json
+1 −1 packages/compiler/src/core/checker.ts
+1 −1 packages/compiler/src/core/helpers/discriminator-utils.ts
+9 −9 packages/eslint-plugin-typespec/package.json
+14 −14 packages/html-program-viewer/package.json
+1 −1 packages/http-client-csharp/emitter/src/emitter.ts
+0 −4 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/ClientModelPlugin.cs
+99 −0 ...ient-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/Classifier2xxAnd4xxDefinition.cs
+17 −7 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ClientProvider.cs
+237 −5 ...ges/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/RestClientProvider.cs
+36 −41 ...client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ScmMethodProviderCollection.cs
+3 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/ScmOutputLibrary.cs
+17 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/ScmTypeFactory.cs
+3 −0 .../http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Snippets/ClientPipelineSnippets.cs
+26 −0 ...ttp-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Snippets/ClientUriBuilderSnippets.cs
+7 −0 ...http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Snippets/PipelineMessageSnippets.cs
+2 −1 ...http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Snippets/PipelineRequestSnippets.cs
+96 −31 ...tp-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/RestClientProviderTests.cs
+24 −5 ...-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/ScmMethodProviderCollectionTests.cs
+5 −5 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Expressions/ArrayInitializerExpression.cs
+11 −6 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Expressions/NewArrayExpression.cs
+8 −3 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Expressions/TypeReferenceExpression.cs
+3 −7 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Primitives/PropertyWireInformation.cs
+2 −7 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Primitives/TypeProviderWriter.cs
+19 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Primitives/WireInformation.cs
+3 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/ParameterProvider.cs
+1 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/TypeProvider.cs
+2 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Snippets/Snippet.DeclarationStatements.cs
+3 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Snippets/Snippet.New.cs
+5 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Snippets/Snippet.cs
+2 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Writers/CodeWriter.cs
+2 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/Snippets/SnippetTests.cs
+1 −1 ...sharp/generator/Microsoft.Generator.CSharp/test/Snippets/TestData/SnippetTests/ValidateFrameworkInstance.cs
+1 −1 ...-client-csharp/generator/Microsoft.Generator.CSharp/test/Snippets/TestData/SnippetTests/ValidateInstance.cs
+1 −1 ...ent-csharp/generator/Microsoft.Generator.CSharp/test/Snippets/TestData/SnippetTests/ValidateInstanceCtor.cs
+1 −1 ...nerator/Microsoft.Generator.CSharp/test/Snippets/TestData/SnippetTests/ValidateInstanceCtorWithArguments.cs
+260 −18 ...-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.RestClient.cs
+3 −0 ...http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.cs
+3 −3 packages/http-server-javascript/package.json
+5 −5 packages/http/package.json
+1 −1 packages/http/src/route.ts
+7 −7 packages/internal-build-utils/package.json
+6 −6 packages/json-schema/package.json
+5 −5 packages/library-linter/package.json
+5 −5 packages/monarch/package.json
+5 −5 packages/openapi/package.json
+5 −5 packages/openapi3/package.json
+13 −13 packages/playground-website/package.json
+16 −16 packages/playground/package.json
+20 −19 packages/prettier-plugin-typespec/ThirdPartyNotices.txt
+3 −3 packages/prettier-plugin-typespec/package.json
+5 −5 packages/protobuf/package.json
+13 −13 packages/react-components/package.json
+5 −5 packages/rest/package.json
+5 −5 packages/samples/package.json
+2 −2 packages/tmlanguage-generator/package.json
+8 −8 packages/tspd/package.json
+1 −1 packages/tspd/src/ref-doc/extractor.ts
+9 −0 packages/typespec-vscode/.npmignore
+1 −1 packages/typespec-vscode/ThirdPartyNotices.txt
+9 −13 packages/typespec-vscode/package.json
+5 −5 packages/versioning/package.json
+6 −6 packages/website/package.json
+5 −5 packages/xml/package.json
+2,767 −3,812 pnpm-lock.yaml
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@
"sync-labels": "tsx ./core/eng/common/scripts/labels/sync-labels.ts --config ./eng/config/labels.ts"
},
"devDependencies": {
"@chronus/chronus": "^0.10.2",
"@chronus/github": "^0.4.0",
"@chronus/chronus": "^0.11.0",
"@chronus/github": "^0.4.1",
"@eslint/js": "^8.57.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@types/node": "~18.11.19",
"@typescript-eslint/parser": "^7.15.0",
"@typescript-eslint/utils": "^7.15.0",
"@typescript-eslint/parser": "^7.17.0",
"@typescript-eslint/utils": "^7.17.0",
"c8": "^10.1.2",
"cspell": "^8.9.1",
"cspell": "^8.12.1",
"eslint": "^8.57.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-vitest": "^0.5.4",
"prettier": "~3.3.2",
"prettier": "~3.3.3",
"prettier-plugin-organize-imports": "~4.0.0",
"rimraf": "~5.0.7",
"rimraf": "~6.0.1",
"syncpack": "^12.3.3",
"tsx": "^4.16.0",
"typescript": "~5.5.3",
"typescript-eslint": "^7.15.0",
"vitest": "^1.6.0"
"tsx": "^4.16.2",
"typescript": "~5.5.4",
"typescript-eslint": "^7.17.0",
"vitest": "^2.0.4"
},
"syncpack": {
"dependencyTypes": [
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"devDependencies": {
"@typespec/compiler": "workspace:~",
"dotenv": "~16.4.5",
"typescript": "~5.5.3"
"typescript": "~5.5.4"
}
}
10 changes: 5 additions & 5 deletions packages/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
"@types/node": "~18.11.19",
"@typespec/internal-build-utils": "workspace:~",
"@typespec/samples": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"autorest": "~3.7.1",
"cross-env": "~7.0.3",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
10 changes: 5 additions & 5 deletions packages/typespec-autorest-canonical/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@typespec/versioning": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"change-case": "~5.4.4",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
10 changes: 5 additions & 5 deletions packages/typespec-autorest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@typespec/versioning": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"change-case": "~5.4.4",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
2 changes: 1 addition & 1 deletion packages/typespec-autorest/src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ export async function getOpenAPIForService(
const encodedName = resolveEncodedName(program, type, "application/json");
// Pick the value set via `encodedName` or default back to the legacy projection otherwise.
// `resolveEncodedName` will return the original name if no @encodedName so we have to do that check
return encodedName === type.name ? viaProjection ?? type.name : encodedName;
return encodedName === type.name ? (viaProjection ?? type.name) : encodedName;
}

function emitEndpointParameters(methodParams: HttpOperationParameters, visibility: Visibility) {
Expand Down
10 changes: 5 additions & 5 deletions packages/typespec-azure-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@typespec/versioning": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
16 changes: 8 additions & 8 deletions packages/typespec-azure-playground-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@azure-tools/typespec-azure-resource-manager": "workspace:~",
"@azure-tools/typespec-azure-rulesets": "workspace:~",
"@azure-tools/typespec-client-generator-core": "workspace:~",
"@emotion/react": "^11.11.4",
"@emotion/react": "^11.13.0",
"@typespec/compiler": "workspace:~",
"@typespec/http": "workspace:~",
"@typespec/openapi": "workspace:~",
Expand All @@ -67,19 +67,19 @@
"es-module-shims": "~1.10.0",
"react": "~18.3.1",
"react-dom": "~18.3.1",
"vite": "^5.3.2"
"vite": "^5.3.4"
},
"devDependencies": {
"@playwright/test": "^1.45.0",
"@playwright/test": "^1.45.3",
"@types/node": "~18.11.19",
"@types/react-dom": "~18.3.0",
"@typespec/bundler": "workspace:~",
"@typespec/playground": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"cross-env": "~7.0.3",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
8 changes: 4 additions & 4 deletions packages/typespec-azure-portal-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@typespec/versioning": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"source-map-support": "~0.5.21",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"typescript": "~5.5.4",
"vitest": "^2.0.4"
},
"exports": {
".": {
Expand Down
10 changes: 5 additions & 5 deletions packages/typespec-azure-resource-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@typespec/versioning": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
10 changes: 5 additions & 5 deletions packages/typespec-azure-rulesets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
"@types/node": "~18.11.19",
"@typespec/compiler": "workspace:~",
"@typespec/tspd": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"change-case": "~5.4.4",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
10 changes: 5 additions & 5 deletions packages/typespec-client-generator-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@
"@typespec/tspd": "workspace:~",
"@typespec/versioning": "workspace:~",
"@typespec/xml": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"c8": "^10.1.2",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const $client: ClientDecorator = (
const service =
explicitService?.kind === "Namespace"
? explicitService
: findClientService(context.program, target) ?? (target as any);
: (findClientService(context.program, target) ?? (target as any));
if (!name.endsWith("Client")) {
reportDiagnostic(context.program, {
code: "client-name",
Expand Down
8 changes: 4 additions & 4 deletions packages/typespec-service-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
"@typespec/openapi": "workspace:~",
"@typespec/rest": "workspace:~",
"@typespec/tspd": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/coverage-v8": "^2.0.4",
"c8": "^10.1.2",
"rimraf": "~5.0.7",
"typescript": "~5.5.3",
"vitest": "^1.6.0"
"rimraf": "~6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
}
}
6 changes: 3 additions & 3 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@docusaurus/plugin-content-docs": "~3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@docusaurus/theme-common": "~3.4.0",
"@fluentui/react-components": "~9.54.2",
"@fluentui/react-components": "~9.54.5",
"@mdx-js/react": "^3.0.1",
"@typespec/playground": "workspace:~",
"@typespec/website": "workspace:~",
Expand Down Expand Up @@ -51,8 +51,8 @@
"dotenv": "~16.4.5",
"file-loader": "~6.2.0",
"monaco-editor-webpack-plugin": "~7.1.0",
"rimraf": "~5.0.7",
"typescript": "~5.5.3"
"rimraf": "~6.0.1",
"typescript": "~5.5.4"
},
"browserslist": {
"production": [
Expand Down
Loading
Loading