Skip to content

Rremove use of deprecated getDiscriminatedUnion in JS emitter#6306

Merged
timotheeguerin merged 9 commits intomicrosoft:mainfrom
joheredi:feature/remove-use-of-deprecated-union
Mar 8, 2025
Merged

Rremove use of deprecated getDiscriminatedUnion in JS emitter#6306
timotheeguerin merged 9 commits intomicrosoft:mainfrom
joheredi:feature/remove-use-of-deprecated-union

Conversation

@joheredi
Copy link
Copy Markdown
Member

@joheredi joheredi commented Mar 6, 2025

This change removed the use of the deprecated overload on the JS emitter and adds support for models in the $.type.getDiscriminator typekit

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Mar 6, 2025

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/emitter-framework
  • @typespec/http-client-js
  • @typespec/http-client
Show changes

@typespec/compiler - deprecation ✏️

Remove the use of deprecated getDiscriminatedUnion

@typespec/http-client-js - deprecation ✏️

Remove the use of deprecated getDiscriminatedUnion

@typespec/http-client - deprecation ✏️

Remove the use of deprecated getDiscriminatedUnion

@typespec/emitter-framework - internal ✏️

Remove use of deprecated getDiscriminatedUnion overload

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Mar 6, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@joheredi joheredi force-pushed the feature/remove-use-of-deprecated-union branch from ff3226b to 8113be6 Compare March 7, 2025 02:57
@timotheeguerin timotheeguerin added this pull request to the merge queue Mar 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 7, 2025
@joheredi joheredi force-pushed the feature/remove-use-of-deprecated-union branch from e96f48e to f7179e7 Compare March 7, 2025 20:13
@timotheeguerin timotheeguerin enabled auto-merge March 8, 2025 04:42
@timotheeguerin timotheeguerin added this pull request to the merge queue Mar 8, 2025
Merged via the queue into microsoft:main with commit b12b839 Mar 8, 2025
23 checks passed
archerzz pushed a commit to archerzz/typespec that referenced this pull request Mar 10, 2025
…oft#6306)

This change removed the use of the deprecated overload on the JS emitter
and adds support for models in the `$.type.getDiscriminator` typekit

---------

Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
# Conflicts:
#	pnpm-lock.yaml
dmnorc pushed a commit to dmnorc/typespec that referenced this pull request Apr 9, 2025
…oft#6306)

This change removed the use of the deprecated overload on the JS emitter
and adds support for models in the `$.type.getDiscriminator` typekit

---------

Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants