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

[Cleanup] Compiler old deprecation removal #6231

Merged
merged 23 commits into from
Mar 5, 2025

Conversation

allenjzhang
Copy link
Member

@allenjzhang allenjzhang commented Mar 3, 2025

Removing old deprecated items including:

  • @deprecated decorator
  • @service versions support
  • CLI configuration value output-path
  • JsAPI functions
    • stringTemplateToString
    • unsafe_useStateMap and unsafe_useStateSet
    • CadlLanguageConfiguration and cadlMain support

Not included Projection removal & Visibility cleanup.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 4, 2025

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/json-schema
  • @typespec/playground
  • typespec-vscode
Show changes

@typespec/compiler - breaking ✏️

Remove deprecated items:,> - @deprecated decorator, use #deprecated directive instead,> ,> diff lang=tsp,> - @deprecated("Message"),> + #deprecated "Message",> ,> ,> - @service versions support. Either migrate to @OpenAPI.info or the versioning library,> ,> diff lang=tsp,> - @service({version: "1.0"}),> + @service,> + @OpenAPI.info(#{version: "1.0"}),> ,> ,> - CLI configuration value output-path, use output-dir instead.,> ,> - Support for cadlMain in package.json. Migrate to exports["."].tsp instead.,> ,> diff lang=json,> - "cadlMain": "lib/main.tsp",,> + "exports": {,> + ".": {,> + "tsp": "lib/main.tsp",> + },> + },> ,> ,> - Compiling .cadl files, use .tsp instead.,> ,> - Javascript functions and typescript types:,> - stringTemplateToString,> - CadlLanguageConfiguration,> - CadlPrettierPlugin,> - NodePackage -> PackageJson,> - CadlValue -> TypeSpecValue,> - createCadlLibrary -> createTypeSpecLibrary,> - setCadlNamespace -> setTypeSpecNamespace,> - CadlLibrary -> TypeSpecLibrary,> - SyntaxKind.CadlScript -> SyntaxKind.TypeSpecScript,> - isCadlValueTypeOf -> isTypeSpecValueTypeOf,> - cadlTypeToJson -> typespecTypeToJson,> - checkFormatCadl -> checkFormatTypeSpec,> - cadlVersion -> typespecVersion,> - CadlManifest -> TypeSpecManifest

@typespec/json-schema - internal ✏️

@typespec/playground - internal ✏️

typespec-vscode - internal ✏️

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 4, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@allenjzhang allenjzhang linked an issue Mar 4, 2025 that may be closed by this pull request
@timotheeguerin timotheeguerin enabled auto-merge March 5, 2025 19:02
@timotheeguerin timotheeguerin requested a review from lirenhe as a code owner March 5, 2025 19:38
@timotheeguerin timotheeguerin added this pull request to the merge queue Mar 5, 2025
Merged via the queue into microsoft:main with commit 6a7c4ce Mar 5, 2025
23 checks passed
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.

Remove deprecations for 1.0
3 participants