From 140d6ce4642325433cbf1f749bc043aed34c2624 Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Tue, 11 Jul 2023 16:27:59 -0700 Subject: [PATCH] Prepare typespec publish for July release (#2175) --- ...anonical-repo-casing_2023-06-08-20-20.json | 10 - .../comment-position_2023-06-07-17-16.json | 10 - .../compiler-move-src_2023-06-13-18-45.json | 10 - ...nt-override-model-is_2023-06-28-18-22.json | 10 - .../enum-member-refs_2023-06-29-17-38.json | 10 - ...eature-linter-engine_2023-06-14-21-59.json | 15 - ...eature-remove-mkdirp_2023-06-08-21-54.json | 10 - ...feature-scoped-files_2023-06-12-16-16.json | 10 - ...ature-utf-8-with-bom_2023-06-22-21-54.json | 10 - ...fix-annotation-order_2023-06-20-16-26.json | 10 - .../fix-cli-and-e2e_2023-06-15-22-03.json | 10 - .../fix-f5-validate_2023-06-23-16-47.json | 10 - .../compiler/fix-f5_2023-06-16-16-19.json | 10 - ...format-meta-accessor_2023-06-28-15-30.json | 10 - ...fix-formatting-issue_2023-06-23-17-48.json | 10 - ...terface-circular-ref_2023-06-20-17-03.json | 10 - ...kage-json-read-order_2023-06-08-16-57.json | 10 - .../fix-self-ref-in-dec_2023-06-06-18-59.json | 10 - .../fix-union-unique_2023-07-10-12-44.json | 10 - ...ove-doc-comments-top_2023-06-23-19-13.json | 10 - ...-properties-wrapping_2023-06-19-15-55.json | 10 - .../inittemplateversion_2023-06-30-07-32.json | 10 - .../json-schema-bundle2_2023-06-16-21-24.json | 15 - .../compiler/main_2023-06-13-21-15.json | 10 - .../move-list-decorator_2023-06-20-11-35.json | 20 - .../record-unknown_2023-07-01-18-17.json | 25 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...motheeguerin-patch-1_2023-06-15-02-52.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...rush-pnpm-workspaces_2023-06-16-19-36.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...epos-in-package-json_2023-06-08-18-52.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...-dec-name-resolution_2023-06-21-20-55.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...-properties-wrapping_2023-06-19-16-48.json | 10 - .../nested-body-allow_2023-06-07-20-26.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...v-version-with-patch_2023-06-06-18-27.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...ase-bump-zero-change_2023-06-07-19-57.json | 10 - ...epos-in-package-json_2023-06-08-18-52.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - .../enum-member-refs_2023-06-29-17-38.json | 10 - .../export-json-schema_2023-07-03-19-59.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - .../json-schema/fix-f5_2023-06-16-16-19.json | 10 - ...js-fix-duplicate-def_2023-07-04-21-12.json | 10 - .../json-schema-bundle2_2023-06-16-21-24.json | 10 - .../json-schema-docs_2023-06-24-10-36.json | 10 - ...son-schema-extension_2023-06-14-00-32.json | 10 - ...son-schema-namespace_2023-06-24-07-59.json | 10 - ...on-schema-playground_2023-06-07-18-28.json | 10 - .../json-schema-readme_2023-06-28-19-05.json | 10 - .../json-schema-record_2023-06-16-22-34.json | 10 - .../record-unknown_2023-07-01-18-17.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...ke-decorator-private_2023-06-20-06-09.json | 10 - .../move-list-decorator_2023-06-20-11-35.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...eature-linter-engine_2023-06-14-21-59.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...epos-in-package-json_2023-06-08-18-52.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...-properties-wrapping_2023-06-19-16-48.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...epos-in-package-json_2023-06-08-18-52.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...lude-x-typespec-name_2023-06-26-20-34.json | 10 - .../nested-body-allow_2023-06-07-20-26.json | 10 - ...penapi3-FixEnumIssue_2023-06-12-17-21.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-17-04.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...-properties-wrapping_2023-06-19-16-48.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...-properties-wrapping_2023-06-19-16-48.json | 10 - ...ke-decorator-private_2023-06-15-17-55.json | 10 - .../move-list-decorator_2023-06-20-11-35.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - .../typespec-vs/fix-f5_2023-06-16-16-24.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...anonical-repo-casing_2023-06-08-20-20.json | 10 - ...eature-remove-mkdirp_2023-06-08-21-54.json | 10 - ...sues-empty-statement_2023-06-15-02-39.json | 10 - .../fix-f5_2023-06-16-16-19.json | 10 - ...rush-pnpm-workspaces_2023-06-16-16-59.json | 10 - ...grade-deps-june-2023_2023-06-09-16-10.json | 10 - common/config/rush/pnpm-lock.yaml | 204 +- common/config/rush/version-policies.json | 2 +- e2e/e2e-tests.js | 2 + packages/best-practices/package.json | 8 +- packages/bundler/package.json | 4 +- packages/compiler/CHANGELOG.json | 110 + packages/compiler/CHANGELOG.md | 40 +- packages/compiler/package.json | 8 +- .../eslint-config-typespec/CHANGELOG.json | 12 + packages/eslint-config-typespec/CHANGELOG.md | 17 +- packages/eslint-config-typespec/package.json | 2 +- .../eslint-plugin-typespec/CHANGELOG.json | 12 + packages/eslint-plugin-typespec/CHANGELOG.md | 9 +- packages/eslint-plugin-typespec/package.json | 4 +- packages/html-program-viewer/CHANGELOG.json | 15 + packages/html-program-viewer/CHANGELOG.md | 10 +- packages/html-program-viewer/package.json | 8 +- packages/http/CHANGELOG.json | 18 + packages/http/CHANGELOG.md | 11 +- packages/http/package.json | 12 +- packages/internal-build-utils/CHANGELOG.json | 25 + packages/internal-build-utils/CHANGELOG.md | 27 +- packages/internal-build-utils/package.json | 4 +- packages/json-schema/CHANGELOG.json | 39 + packages/json-schema/CHANGELOG.md | 18 +- packages/json-schema/package.json | 14 +- packages/library-linter/CHANGELOG.json | 12 + packages/library-linter/CHANGELOG.md | 9 +- packages/library-linter/package.json | 8 +- packages/lint/CHANGELOG.json | 18 + packages/lint/CHANGELOG.md | 11 +- packages/lint/package.json | 10 +- packages/migrate/CHANGELOG.json | 12 + packages/migrate/CHANGELOG.md | 9 +- packages/migrate/package.json | 10 +- packages/openapi/CHANGELOG.json | 15 + packages/openapi/CHANGELOG.md | 10 +- packages/openapi/package.json | 20 +- packages/openapi3/CHANGELOG.json | 15 + packages/openapi3/CHANGELOG.md | 10 +- packages/openapi3/package.json | 28 +- packages/playground-website/package.json | 20 +- packages/playground/package.json | 18 +- .../prettier-plugin-typespec/CHANGELOG.json | 12 + .../prettier-plugin-typespec/CHANGELOG.md | 9 +- .../prettier-plugin-typespec/package.json | 6 +- packages/protobuf/CHANGELOG.json | 12 + packages/protobuf/CHANGELOG.md | 13 +- packages/protobuf/package.json | 10 +- packages/ref-doc/package.json | 6 +- packages/rest/CHANGELOG.json | 18 + packages/rest/CHANGELOG.md | 11 +- packages/rest/package.json | 14 +- packages/samples/package.json | 16 +- packages/spec/package.json | 2 +- packages/tmlanguage-generator/CHANGELOG.json | 17 + packages/tmlanguage-generator/CHANGELOG.md | 9 +- packages/tmlanguage-generator/package.json | 4 +- packages/typespec-vs/CHANGELOG.json | 6 + packages/typespec-vs/CHANGELOG.md | 7 +- packages/typespec-vs/package.json | 6 +- packages/typespec-vscode/CHANGELOG.json | 15 + packages/typespec-vscode/CHANGELOG.md | 10 +- packages/typespec-vscode/package.json | 8 +- packages/versioning/CHANGELOG.json | 12 + packages/versioning/CHANGELOG.md | 9 +- packages/versioning/package.json | 12 +- packages/website/package.json | 18 +- .../extending-typespec/linters.md | 185 +- .../configuration/configuration.md | 24 + .../introduction/configuration/tracing.md | 17 +- .../introduction/style-guide.md | 60 +- .../release-notes/release-2023-07-11.md | 92 + .../standard-library/built-in-decorators.md | 19 + .../http/reference/decorators.md | 13 +- .../http/reference/js-api/index.md | 17 +- .../json-schema/reference/data-types.md | 32 + .../json-schema/reference/decorators.md | 293 +++ .../json-schema/reference/emitter.md | 57 + .../json-schema/reference/index.md | 58 + .../reference/js-api/_category_.json | 1 + .../js-api/classes/JsonSchemaEmitter.md | 2051 +++++++++++++++++ .../json-schema/reference/js-api/index.md | 699 ++++++ .../js-api/interfaces/ExtensionRecord.md | 22 + .../interfaces/JSONSchemaEmitterOptions.md | 69 + .../js-api/modules/validatesRawJson.md | 15 + .../openapi3/reference/emitter.md | 7 + .../js-api/classes/InvalidEncodingError.md | 137 ++ .../reference/js-api/classes/TwoLevelMap.md | 6 +- .../reference/js-api/index.md | 136 +- .../js-api/interfaces/AliasStatementNode.md | 2 +- .../AugmentDecoratorStatementNode.md | 2 +- .../js-api/interfaces/BlockComment.md | 9 + .../js-api/interfaces/CompilerHost.md | 4 + .../interfaces/CompilerLocationContext.md | 17 + .../DecoratorDeclarationStatementNode.md | 2 +- .../reference/js-api/interfaces/Diagnostic.md | 2 +- .../js-api/interfaces/EnumStatementNode.md | 2 +- .../js-api/interfaces/FileLibraryMetadata.md | 60 + .../FunctionDeclarationStatementNode.md | 2 +- .../interfaces/InterfaceStatementNode.md | 2 +- .../js-api/interfaces/LibraryInstance.md | 36 + .../interfaces/LibraryLocationContext.md | 24 + .../js-api/interfaces/LinterDefinition.md | 22 + .../reference/js-api/interfaces/LinterRule.md | 100 + .../js-api/interfaces/LinterRuleContext.md | 47 + .../js-api/interfaces/LinterRuleDefinition.md | 69 + .../js-api/interfaces/LinterRuleSet.md | 35 + .../reference/js-api/interfaces/LogInfo.md | 2 +- .../js-api/interfaces/ModelStatementNode.md | 2 +- .../interfaces/ModuleLibraryMetadata.md | 62 + .../interfaces/NamespaceStatementNode.md | 2 +- .../interfaces/OperationStatementNode.md | 2 +- .../reference/js-api/interfaces/Program.md | 19 + .../interfaces/ProjectLocationContext.md | 17 + .../js-api/interfaces/ProjectedProgram.md | 23 + .../interfaces/ProjectionApplication.md | 2 +- .../js-api/interfaces/ProjectionNode.md | 2 +- .../interfaces/ProjectionStatementNode.md | 2 +- .../js-api/interfaces/RekeyableMap.md | 4 +- .../js-api/interfaces/ScalarStatementNode.md | 2 +- .../js-api/interfaces/SymbolTable.md | 2 +- .../interfaces/SyntheticLocationContext.md | 17 + .../js-api/interfaces/TypeSpecLibrary.md | 13 + .../js-api/interfaces/TypeSpecLibraryDef.md | 9 + .../js-api/interfaces/UnionStatementNode.md | 2 +- .../js-api/interfaces/UsingStatementNode.md | 2 +- .../js-api/interfaces/decorators.DocData.md | 2 +- .../reference/js-api/modules/decorators.md | 12 + .../rest/reference/js-api/index.md | 20 + .../version-latest-sidebars.json | 14 + 260 files changed, 5421 insertions(+), 1717 deletions(-) delete mode 100644 common/changes/@typespec/compiler/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/compiler/comment-position_2023-06-07-17-16.json delete mode 100644 common/changes/@typespec/compiler/compiler-move-src_2023-06-13-18-45.json delete mode 100644 common/changes/@typespec/compiler/doc-comment-override-model-is_2023-06-28-18-22.json delete mode 100644 common/changes/@typespec/compiler/enum-member-refs_2023-06-29-17-38.json delete mode 100644 common/changes/@typespec/compiler/feature-linter-engine_2023-06-14-21-59.json delete mode 100644 common/changes/@typespec/compiler/feature-remove-mkdirp_2023-06-08-21-54.json delete mode 100644 common/changes/@typespec/compiler/feature-scoped-files_2023-06-12-16-16.json delete mode 100644 common/changes/@typespec/compiler/feature-utf-8-with-bom_2023-06-22-21-54.json delete mode 100644 common/changes/@typespec/compiler/fix-annotation-order_2023-06-20-16-26.json delete mode 100644 common/changes/@typespec/compiler/fix-cli-and-e2e_2023-06-15-22-03.json delete mode 100644 common/changes/@typespec/compiler/fix-f5-validate_2023-06-23-16-47.json delete mode 100644 common/changes/@typespec/compiler/fix-f5_2023-06-16-16-19.json delete mode 100644 common/changes/@typespec/compiler/fix-formatter-format-meta-accessor_2023-06-28-15-30.json delete mode 100644 common/changes/@typespec/compiler/fix-formatting-issue_2023-06-23-17-48.json delete mode 100644 common/changes/@typespec/compiler/fix-op-in-interface-circular-ref_2023-06-20-17-03.json delete mode 100644 common/changes/@typespec/compiler/fix-package-json-read-order_2023-06-08-16-57.json delete mode 100644 common/changes/@typespec/compiler/fix-self-ref-in-dec_2023-06-06-18-59.json delete mode 100644 common/changes/@typespec/compiler/fix-union-unique_2023-07-10-12-44.json delete mode 100644 common/changes/@typespec/compiler/formatter-move-doc-comments-top_2023-06-23-19-13.json delete mode 100644 common/changes/@typespec/compiler/formatter-properties-wrapping_2023-06-19-15-55.json delete mode 100644 common/changes/@typespec/compiler/inittemplateversion_2023-06-30-07-32.json delete mode 100644 common/changes/@typespec/compiler/json-schema-bundle2_2023-06-16-21-24.json delete mode 100644 common/changes/@typespec/compiler/main_2023-06-13-21-15.json delete mode 100644 common/changes/@typespec/compiler/move-list-decorator_2023-06-20-11-35.json delete mode 100644 common/changes/@typespec/compiler/record-unknown_2023-07-01-18-17.json delete mode 100644 common/changes/@typespec/compiler/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/compiler/timotheeguerin-patch-1_2023-06-15-02-52.json delete mode 100644 common/changes/@typespec/compiler/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/eslint-config-typespec/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/eslint-config-typespec/rush-pnpm-workspaces_2023-06-16-19-36.json delete mode 100644 common/changes/@typespec/eslint-config-typespec/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/eslint-plugin/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/eslint-plugin/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/eslint-plugin/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/html-program-viewer/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/html-program-viewer/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/html-program-viewer/fix-repos-in-package-json_2023-06-08-18-52.json delete mode 100644 common/changes/@typespec/html-program-viewer/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/html-program-viewer/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/http/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/http/docs-header-dec-name-resolution_2023-06-21-20-55.json delete mode 100644 common/changes/@typespec/http/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/http/formatter-properties-wrapping_2023-06-19-16-48.json delete mode 100644 common/changes/@typespec/http/nested-body-allow_2023-06-07-20-26.json delete mode 100644 common/changes/@typespec/http/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/http/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/internal-build-utils/bump-dev-version-with-patch_2023-06-06-18-27.json delete mode 100644 common/changes/@typespec/internal-build-utils/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/internal-build-utils/fix-prerelease-bump-zero-change_2023-06-07-19-57.json delete mode 100644 common/changes/@typespec/internal-build-utils/fix-repos-in-package-json_2023-06-08-18-52.json delete mode 100644 common/changes/@typespec/internal-build-utils/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/internal-build-utils/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/json-schema/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/json-schema/enum-member-refs_2023-06-29-17-38.json delete mode 100644 common/changes/@typespec/json-schema/export-json-schema_2023-07-03-19-59.json delete mode 100644 common/changes/@typespec/json-schema/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/json-schema/fix-f5_2023-06-16-16-19.json delete mode 100644 common/changes/@typespec/json-schema/js-fix-duplicate-def_2023-07-04-21-12.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-bundle2_2023-06-16-21-24.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-docs_2023-06-24-10-36.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-extension_2023-06-14-00-32.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-namespace_2023-06-24-07-59.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-playground_2023-06-07-18-28.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-readme_2023-06-28-19-05.json delete mode 100644 common/changes/@typespec/json-schema/json-schema-record_2023-06-16-22-34.json delete mode 100644 common/changes/@typespec/json-schema/record-unknown_2023-07-01-18-17.json delete mode 100644 common/changes/@typespec/json-schema/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/json-schema/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/library-linter/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/library-linter/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/library-linter/make-decorator-private_2023-06-20-06-09.json delete mode 100644 common/changes/@typespec/library-linter/move-list-decorator_2023-06-20-11-35.json delete mode 100644 common/changes/@typespec/library-linter/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/library-linter/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/lint/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/lint/feature-linter-engine_2023-06-14-21-59.json delete mode 100644 common/changes/@typespec/lint/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/lint/fix-repos-in-package-json_2023-06-08-18-52.json delete mode 100644 common/changes/@typespec/lint/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/lint/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/migrate/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/migrate/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/migrate/formatter-properties-wrapping_2023-06-19-16-48.json delete mode 100644 common/changes/@typespec/migrate/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/migrate/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/openapi/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/openapi/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/openapi/fix-repos-in-package-json_2023-06-08-18-52.json delete mode 100644 common/changes/@typespec/openapi/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/openapi/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/openapi3/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/openapi3/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/openapi3/include-x-typespec-name_2023-06-26-20-34.json delete mode 100644 common/changes/@typespec/openapi3/nested-body-allow_2023-06-07-20-26.json delete mode 100644 common/changes/@typespec/openapi3/openapi3-FixEnumIssue_2023-06-12-17-21.json delete mode 100644 common/changes/@typespec/openapi3/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/openapi3/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/prettier-plugin-typespec/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/prettier-plugin-typespec/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/prettier-plugin-typespec/upgrade-deps-june-2023_2023-06-09-17-04.json delete mode 100644 common/changes/@typespec/protobuf/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/protobuf/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/protobuf/formatter-properties-wrapping_2023-06-19-16-48.json delete mode 100644 common/changes/@typespec/protobuf/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/protobuf/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/rest/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/rest/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/rest/formatter-properties-wrapping_2023-06-19-16-48.json delete mode 100644 common/changes/@typespec/rest/make-decorator-private_2023-06-15-17-55.json delete mode 100644 common/changes/@typespec/rest/move-list-decorator_2023-06-20-11-35.json delete mode 100644 common/changes/@typespec/rest/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/rest/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/@typespec/versioning/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/@typespec/versioning/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/@typespec/versioning/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/@typespec/versioning/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/tmlanguage-generator/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/tmlanguage-generator/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/tmlanguage-generator/upgrade-deps-june-2023_2023-06-09-16-10.json delete mode 100644 common/changes/typespec-vs/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/typespec-vs/fix-f5_2023-06-16-16-24.json delete mode 100644 common/changes/typespec-vs/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/typespec-vscode/canonical-repo-casing_2023-06-08-20-20.json delete mode 100644 common/changes/typespec-vscode/feature-remove-mkdirp_2023-06-08-21-54.json delete mode 100644 common/changes/typespec-vscode/fix-comments-issues-empty-statement_2023-06-15-02-39.json delete mode 100644 common/changes/typespec-vscode/fix-f5_2023-06-16-16-19.json delete mode 100644 common/changes/typespec-vscode/rush-pnpm-workspaces_2023-06-16-16-59.json delete mode 100644 common/changes/typespec-vscode/upgrade-deps-june-2023_2023-06-09-16-10.json create mode 100644 packages/website/versioned_docs/version-latest/release-notes/release-2023-07-11.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/data-types.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/decorators.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/emitter.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/index.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/_category_.json create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/classes/JsonSchemaEmitter.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/index.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/ExtensionRecord.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/JSONSchemaEmitterOptions.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/modules/validatesRawJson.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/InvalidEncodingError.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerLocationContext.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FileLibraryMetadata.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryInstance.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryLocationContext.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterDefinition.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRule.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleContext.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleDefinition.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleSet.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModuleLibraryMetadata.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectLocationContext.md create mode 100644 packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SyntheticLocationContext.md diff --git a/common/changes/@typespec/compiler/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/compiler/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 5945164bd2..0000000000 --- a/common/changes/@typespec/compiler/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/comment-position_2023-06-07-17-16.json b/common/changes/@typespec/compiler/comment-position_2023-06-07-17-16.json deleted file mode 100644 index 238d487010..0000000000 --- a/common/changes/@typespec/compiler/comment-position_2023-06-07-17-16.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix signature help after comment with no closing parenthesis or angle bracket", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/compiler-move-src_2023-06-13-18-45.json b/common/changes/@typespec/compiler/compiler-move-src_2023-06-13-18-45.json deleted file mode 100644 index bcaea969ef..0000000000 --- a/common/changes/@typespec/compiler/compiler-move-src_2023-06-13-18-45.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Internal: Reorganize sources inside `src/` folder", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/doc-comment-override-model-is_2023-06-28-18-22.json b/common/changes/@typespec/compiler/doc-comment-override-model-is_2023-06-28-18-22.json deleted file mode 100644 index 0ebae994f0..0000000000 --- a/common/changes/@typespec/compiler/doc-comment-override-model-is_2023-06-28-18-22.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix: Doc comment `/** */` should override base type doc in `model is` or `op is`", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/enum-member-refs_2023-06-29-17-38.json b/common/changes/@typespec/compiler/enum-member-refs_2023-06-29-17-38.json deleted file mode 100644 index 7e1b2b128a..0000000000 --- a/common/changes/@typespec/compiler/enum-member-refs_2023-06-29-17-38.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: add support for emitting enum member references.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/feature-linter-engine_2023-06-14-21-59.json b/common/changes/@typespec/compiler/feature-linter-engine_2023-06-14-21-59.json deleted file mode 100644 index 10d0e47bcb..0000000000 --- a/common/changes/@typespec/compiler/feature-linter-engine_2023-06-14-21-59.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "**Feature** New built-in linter system. Typespec libraries are able to define linting rules which can be configured in `tspconfig.yaml`. See documentation for configuring a [linter](https://microsoft.github.io/typespec/introduction/configuration#linter---configuring-linters) and [writing a linter](https://microsoft.github.io/typespec/extending-typespec/linters)", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "**Breaking** Minimum version of TypeScript updated to 5.0. TypeSpec is using new features available in TypeScript 5.0 which result in a definition file not parsable by older version. Note that this only affect compiling TypeScript code and is not breaking any JS or TypeSpec code. [See more information on typescript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/)", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/feature-remove-mkdirp_2023-06-08-21-54.json b/common/changes/@typespec/compiler/feature-remove-mkdirp_2023-06-08-21-54.json deleted file mode 100644 index dbe884f3e0..0000000000 --- a/common/changes/@typespec/compiler/feature-remove-mkdirp_2023-06-08-21-54.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/feature-scoped-files_2023-06-12-16-16.json b/common/changes/@typespec/compiler/feature-scoped-files_2023-06-12-16-16.json deleted file mode 100644 index f562285e44..0000000000 --- a/common/changes/@typespec/compiler/feature-scoped-files_2023-06-12-16-16.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Compiler keeps track of the scope where a file is declared(User project, a library or the compiler)", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/feature-utf-8-with-bom_2023-06-22-21-54.json b/common/changes/@typespec/compiler/feature-utf-8-with-bom_2023-06-22-21-54.json deleted file mode 100644 index 27f4fa0cbd..0000000000 --- a/common/changes/@typespec/compiler/feature-utf-8-with-bom_2023-06-22-21-54.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Add support for `UTF-8 with bom` for other files loaded by typespec compiler. `.tsp` files already had support, this make it more available for any library/emitter using the compiler api to load a file.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-annotation-order_2023-06-20-16-26.json b/common/changes/@typespec/compiler/fix-annotation-order_2023-06-20-16-26.json deleted file mode 100644 index 8776879299..0000000000 --- a/common/changes/@typespec/compiler/fix-annotation-order_2023-06-20-16-26.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Allow annotations(Decorators, directives and doc comments) to be specified in any order", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-cli-and-e2e_2023-06-15-22-03.json b/common/changes/@typespec/compiler/fix-cli-and-e2e_2023-06-15-22-03.json deleted file mode 100644 index 7a003e8052..0000000000 --- a/common/changes/@typespec/compiler/fix-cli-and-e2e_2023-06-15-22-03.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix: `entrypoints` folder wasn't included in package causing failure to resolve cli.js", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-f5-validate_2023-06-23-16-47.json b/common/changes/@typespec/compiler/fix-f5-validate_2023-06-23-16-47.json deleted file mode 100644 index 5945164bd2..0000000000 --- a/common/changes/@typespec/compiler/fix-f5-validate_2023-06-23-16-47.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-f5_2023-06-16-16-19.json b/common/changes/@typespec/compiler/fix-f5_2023-06-16-16-19.json deleted file mode 100644 index 5945164bd2..0000000000 --- a/common/changes/@typespec/compiler/fix-f5_2023-06-16-16-19.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-formatter-format-meta-accessor_2023-06-28-15-30.json b/common/changes/@typespec/compiler/fix-formatter-format-meta-accessor_2023-06-28-15-30.json deleted file mode 100644 index 0309e97020..0000000000 --- a/common/changes/@typespec/compiler/fix-formatter-format-meta-accessor_2023-06-28-15-30.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix: Formatter incorrectly formatting `::` to `.`", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-formatting-issue_2023-06-23-17-48.json b/common/changes/@typespec/compiler/fix-formatting-issue_2023-06-23-17-48.json deleted file mode 100644 index d714ec8303..0000000000 --- a/common/changes/@typespec/compiler/fix-formatting-issue_2023-06-23-17-48.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix formatting issue with comment between decorator and scalar or interface", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-op-in-interface-circular-ref_2023-06-20-17-03.json b/common/changes/@typespec/compiler/fix-op-in-interface-circular-ref_2023-06-20-17-03.json deleted file mode 100644 index ce44d19814..0000000000 --- a/common/changes/@typespec/compiler/fix-op-in-interface-circular-ref_2023-06-20-17-03.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix: Stack overflow crash when having circular reference with `op is` inside an interface. ", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-package-json-read-order_2023-06-08-16-57.json b/common/changes/@typespec/compiler/fix-package-json-read-order_2023-06-08-16-57.json deleted file mode 100644 index 627cd1918e..0000000000 --- a/common/changes/@typespec/compiler/fix-package-json-read-order_2023-06-08-16-57.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix IDE issue with squiggles in library code if the library had an entry point named something other than `main.tsp` and a library document was opened after another document that imported the library.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/fix-self-ref-in-dec_2023-06-06-18-59.json b/common/changes/@typespec/compiler/fix-self-ref-in-dec_2023-06-06-18-59.json deleted file mode 100644 index 5a3cee32e1..0000000000 --- a/common/changes/@typespec/compiler/fix-self-ref-in-dec_2023-06-06-18-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix: Referencing decorator target in argument cause stack overflow for enum and union in checker and interface and operations in projection.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/fix-union-unique_2023-07-10-12-44.json b/common/changes/@typespec/compiler/fix-union-unique_2023-07-10-12-44.json deleted file mode 100644 index ef398440c1..0000000000 --- a/common/changes/@typespec/compiler/fix-union-unique_2023-07-10-12-44.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "**Fix** `getTypeName` include namespace prefix for unions as well", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/formatter-move-doc-comments-top_2023-06-23-19-13.json b/common/changes/@typespec/compiler/formatter-move-doc-comments-top_2023-06-23-19-13.json deleted file mode 100644 index dfbd70ce70..0000000000 --- a/common/changes/@typespec/compiler/formatter-move-doc-comments-top_2023-06-23-19-13.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Formatter will now format doc comment above directives and decorators. This only applies to doc comments. Regular line comments and block comments will remain where they are", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/formatter-properties-wrapping_2023-06-19-15-55.json b/common/changes/@typespec/compiler/formatter-properties-wrapping_2023-06-19-15-55.json deleted file mode 100644 index bd88d598d4..0000000000 --- a/common/changes/@typespec/compiler/formatter-properties-wrapping_2023-06-19-15-55.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "**Formatter**: Improve formatting for properties with comments and decorators. A property with a leading decorator on its own line or comment will be wrapped in blank lines.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/inittemplateversion_2023-06-30-07-32.json b/common/changes/@typespec/compiler/inittemplateversion_2023-06-30-07-32.json deleted file mode 100644 index bac3e5f708..0000000000 --- a/common/changes/@typespec/compiler/inittemplateversion_2023-06-30-07-32.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "**Breaking change** Updating tsp init template schema for future extensibility. Older tsp version will fail validation.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/json-schema-bundle2_2023-06-16-21-24.json b/common/changes/@typespec/compiler/json-schema-bundle2_2023-06-16-21-24.json deleted file mode 100644 index 384e0dbcc8..0000000000 --- a/common/changes/@typespec/compiler/json-schema-bundle2_2023-06-16-21-24.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: TypeEmitter can now implement `writeOutput` to customize how to write source files to disk.", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: Source Files and Declarations have a new property `meta` which can store arbitrary metadata about those entities.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/main_2023-06-13-21-15.json b/common/changes/@typespec/compiler/main_2023-06-13-21-15.json deleted file mode 100644 index f20e0fef76..0000000000 --- a/common/changes/@typespec/compiler/main_2023-06-13-21-15.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Add support for new identifier characters from Unicode 15.0", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/move-list-decorator_2023-06-20-11-35.json b/common/changes/@typespec/compiler/move-list-decorator_2023-06-20-11-35.json deleted file mode 100644 index 58db5af62a..0000000000 --- a/common/changes/@typespec/compiler/move-list-decorator_2023-06-20-11-35.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "**Deprecate** `@list` decorator in favor of `@listsResource` in `@typespec/rest`", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "**Deprecate** `isListOperation` function in favor of `isListOperation` in `@typespec/rest`", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "**Deprecate** `getListOperationType` function", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/record-unknown_2023-07-01-18-17.json b/common/changes/@typespec/compiler/record-unknown_2023-07-01-18-17.json deleted file mode 100644 index 6e53b1e67b..0000000000 --- a/common/changes/@typespec/compiler/record-unknown_2023-07-01-18-17.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: Add new `TypeEmitter` methods for scalar instantiation.", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: Fix that context was set incorrectly for some `TypeEmitter` methods, and add missing context methods for model properties, enum members, and union variants.", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: Fix that some context methods were not being passed the expected parameters.", - "type": "none" - }, - { - "packageName": "@typespec/compiler", - "comment": "Emitter Framework: Breaking change: Add support for templates instantiated with types without declared names. In such cases, `TypeEmitter`'s declarationName method may return `undefined`, and so the various `*Instantiation` methods might be called with an undefined name, and `AssetEmitter`'s `emitDeclarationName` method might return undefined.", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} diff --git a/common/changes/@typespec/compiler/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/compiler/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 5945164bd2..0000000000 --- a/common/changes/@typespec/compiler/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/timotheeguerin-patch-1_2023-06-15-02-52.json b/common/changes/@typespec/compiler/timotheeguerin-patch-1_2023-06-15-02-52.json deleted file mode 100644 index b3315e1167..0000000000 --- a/common/changes/@typespec/compiler/timotheeguerin-patch-1_2023-06-15-02-52.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Fix: Wrong path for typescript types for main entrypoint", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/compiler/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/compiler/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index e41aa490ff..0000000000 --- a/common/changes/@typespec/compiler/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/compiler", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/compiler" -} \ No newline at end of file diff --git a/common/changes/@typespec/eslint-config-typespec/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/eslint-config-typespec/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index c81a47c2f4..0000000000 --- a/common/changes/@typespec/eslint-config-typespec/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/eslint-config-typespec", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/eslint-config-typespec" -} \ No newline at end of file diff --git a/common/changes/@typespec/eslint-config-typespec/rush-pnpm-workspaces_2023-06-16-19-36.json b/common/changes/@typespec/eslint-config-typespec/rush-pnpm-workspaces_2023-06-16-19-36.json deleted file mode 100644 index c81a47c2f4..0000000000 --- a/common/changes/@typespec/eslint-config-typespec/rush-pnpm-workspaces_2023-06-16-19-36.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/eslint-config-typespec", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/eslint-config-typespec" -} \ No newline at end of file diff --git a/common/changes/@typespec/eslint-config-typespec/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/eslint-config-typespec/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index c6e6bcdda6..0000000000 --- a/common/changes/@typespec/eslint-config-typespec/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/eslint-config-typespec", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/eslint-config-typespec" -} \ No newline at end of file diff --git a/common/changes/@typespec/eslint-plugin/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/eslint-plugin/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index fff4fcaf90..0000000000 --- a/common/changes/@typespec/eslint-plugin/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/eslint-plugin", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/eslint-plugin" -} \ No newline at end of file diff --git a/common/changes/@typespec/eslint-plugin/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/eslint-plugin/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index fff4fcaf90..0000000000 --- a/common/changes/@typespec/eslint-plugin/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/eslint-plugin", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/eslint-plugin" -} \ No newline at end of file diff --git a/common/changes/@typespec/eslint-plugin/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/eslint-plugin/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 7b1d5ca66a..0000000000 --- a/common/changes/@typespec/eslint-plugin/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/eslint-plugin", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/eslint-plugin" -} \ No newline at end of file diff --git a/common/changes/@typespec/html-program-viewer/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/html-program-viewer/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index ba2766951c..0000000000 --- a/common/changes/@typespec/html-program-viewer/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/html-program-viewer", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/html-program-viewer" -} \ No newline at end of file diff --git a/common/changes/@typespec/html-program-viewer/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/html-program-viewer/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index ba2766951c..0000000000 --- a/common/changes/@typespec/html-program-viewer/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/html-program-viewer", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/html-program-viewer" -} \ No newline at end of file diff --git a/common/changes/@typespec/html-program-viewer/fix-repos-in-package-json_2023-06-08-18-52.json b/common/changes/@typespec/html-program-viewer/fix-repos-in-package-json_2023-06-08-18-52.json deleted file mode 100644 index c2a9874dc0..0000000000 --- a/common/changes/@typespec/html-program-viewer/fix-repos-in-package-json_2023-06-08-18-52.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/html-program-viewer", - "comment": "Fix repo name in package.json", - "type": "none" - } - ], - "packageName": "@typespec/html-program-viewer" -} \ No newline at end of file diff --git a/common/changes/@typespec/html-program-viewer/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/html-program-viewer/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index ba2766951c..0000000000 --- a/common/changes/@typespec/html-program-viewer/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/html-program-viewer", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/html-program-viewer" -} \ No newline at end of file diff --git a/common/changes/@typespec/html-program-viewer/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/html-program-viewer/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index bc51cc6797..0000000000 --- a/common/changes/@typespec/html-program-viewer/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/html-program-viewer", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/html-program-viewer" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/http/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index e59b9bb12e..0000000000 --- a/common/changes/@typespec/http/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/docs-header-dec-name-resolution_2023-06-21-20-55.json b/common/changes/@typespec/http/docs-header-dec-name-resolution_2023-06-21-20-55.json deleted file mode 100644 index be9382ae7c..0000000000 --- a/common/changes/@typespec/http/docs-header-dec-name-resolution_2023-06-21-20-55.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "Add documentation on `@header` auto header name resolution from property name.", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/http/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index e59b9bb12e..0000000000 --- a/common/changes/@typespec/http/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/formatter-properties-wrapping_2023-06-19-16-48.json b/common/changes/@typespec/http/formatter-properties-wrapping_2023-06-19-16-48.json deleted file mode 100644 index e59b9bb12e..0000000000 --- a/common/changes/@typespec/http/formatter-properties-wrapping_2023-06-19-16-48.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/nested-body-allow_2023-06-07-20-26.json b/common/changes/@typespec/http/nested-body-allow_2023-06-07-20-26.json deleted file mode 100644 index 8a040ee649..0000000000 --- a/common/changes/@typespec/http/nested-body-allow_2023-06-07-20-26.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "Support nested `@body`", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/http/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index e59b9bb12e..0000000000 --- a/common/changes/@typespec/http/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/http/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/http/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 8d99808b9a..0000000000 --- a/common/changes/@typespec/http/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/http", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/http" -} \ No newline at end of file diff --git a/common/changes/@typespec/internal-build-utils/bump-dev-version-with-patch_2023-06-06-18-27.json b/common/changes/@typespec/internal-build-utils/bump-dev-version-with-patch_2023-06-06-18-27.json deleted file mode 100644 index b908096524..0000000000 --- a/common/changes/@typespec/internal-build-utils/bump-dev-version-with-patch_2023-06-06-18-27.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/internal-build-utils", - "comment": "Include previous patch number in dev version count to ensure patches get released in the dev versions", - "type": "minor" - } - ], - "packageName": "@typespec/internal-build-utils" -} \ No newline at end of file diff --git a/common/changes/@typespec/internal-build-utils/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/internal-build-utils/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 09d59b43a0..0000000000 --- a/common/changes/@typespec/internal-build-utils/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/internal-build-utils", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/internal-build-utils" -} \ No newline at end of file diff --git a/common/changes/@typespec/internal-build-utils/fix-prerelease-bump-zero-change_2023-06-07-19-57.json b/common/changes/@typespec/internal-build-utils/fix-prerelease-bump-zero-change_2023-06-07-19-57.json deleted file mode 100644 index cbf44308be..0000000000 --- a/common/changes/@typespec/internal-build-utils/fix-prerelease-bump-zero-change_2023-06-07-19-57.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/internal-build-utils", - "comment": "Fix bumping dev version if there is zero changes", - "type": "patch" - } - ], - "packageName": "@typespec/internal-build-utils" -} \ No newline at end of file diff --git a/common/changes/@typespec/internal-build-utils/fix-repos-in-package-json_2023-06-08-18-52.json b/common/changes/@typespec/internal-build-utils/fix-repos-in-package-json_2023-06-08-18-52.json deleted file mode 100644 index 18c6aabeec..0000000000 --- a/common/changes/@typespec/internal-build-utils/fix-repos-in-package-json_2023-06-08-18-52.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/internal-build-utils", - "comment": "Fix repo name in package.json", - "type": "none" - } - ], - "packageName": "@typespec/internal-build-utils" -} \ No newline at end of file diff --git a/common/changes/@typespec/internal-build-utils/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/internal-build-utils/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 09d59b43a0..0000000000 --- a/common/changes/@typespec/internal-build-utils/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/internal-build-utils", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/internal-build-utils" -} \ No newline at end of file diff --git a/common/changes/@typespec/internal-build-utils/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/internal-build-utils/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index de11ab540e..0000000000 --- a/common/changes/@typespec/internal-build-utils/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/internal-build-utils", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/internal-build-utils" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/json-schema/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index c15d89290f..0000000000 --- a/common/changes/@typespec/json-schema/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/enum-member-refs_2023-06-29-17-38.json b/common/changes/@typespec/json-schema/enum-member-refs_2023-06-29-17-38.json deleted file mode 100644 index 96513f3cdf..0000000000 --- a/common/changes/@typespec/json-schema/enum-member-refs_2023-06-29-17-38.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Add support for enum member references.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/export-json-schema_2023-07-03-19-59.json b/common/changes/@typespec/json-schema/export-json-schema_2023-07-03-19-59.json deleted file mode 100644 index dcd15c7a02..0000000000 --- a/common/changes/@typespec/json-schema/export-json-schema_2023-07-03-19-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Export the emitter and related types from the package.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/json-schema/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index c15d89290f..0000000000 --- a/common/changes/@typespec/json-schema/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/fix-f5_2023-06-16-16-19.json b/common/changes/@typespec/json-schema/fix-f5_2023-06-16-16-19.json deleted file mode 100644 index c15d89290f..0000000000 --- a/common/changes/@typespec/json-schema/fix-f5_2023-06-16-16-19.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/js-fix-duplicate-def_2023-07-04-21-12.json b/common/changes/@typespec/json-schema/js-fix-duplicate-def_2023-07-04-21-12.json deleted file mode 100644 index 9a80deaa09..0000000000 --- a/common/changes/@typespec/json-schema/js-fix-duplicate-def_2023-07-04-21-12.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Fix a bug that could result in a schema being bundled more than once.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-bundle2_2023-06-16-21-24.json b/common/changes/@typespec/json-schema/json-schema-bundle2_2023-06-16-21-24.json deleted file mode 100644 index fd5c1bb9fa..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-bundle2_2023-06-16-21-24.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "By default, types that are not marked with @jsonSchema or are within a namespace with @jsonSchema are bundled into the schemas that reference them. Set the `emitAllRefs` option to true to get the previous behavior of emitting all types referenced as JSON Schema.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-docs_2023-06-24-10-36.json b/common/changes/@typespec/json-schema/json-schema-docs_2023-06-24-10-36.json deleted file mode 100644 index c15d89290f..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-docs_2023-06-24-10-36.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-extension_2023-06-14-00-32.json b/common/changes/@typespec/json-schema/json-schema-extension_2023-06-14-00-32.json deleted file mode 100644 index e49ec45d0e..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-extension_2023-06-14-00-32.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Support @extension for adding arbitrary vendor extensions into the output.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-namespace_2023-06-24-07-59.json b/common/changes/@typespec/json-schema/json-schema-namespace_2023-06-24-07-59.json deleted file mode 100644 index f8a62b5129..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-namespace_2023-06-24-07-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Breaking change: the namespace has been corrected to TypeSpec.JsonSchema.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-playground_2023-06-07-18-28.json b/common/changes/@typespec/json-schema/json-schema-playground_2023-06-07-18-28.json deleted file mode 100644 index 6a259147b1..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-playground_2023-06-07-18-28.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Fix: Make sure `$lib` is exported", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-readme_2023-06-28-19-05.json b/common/changes/@typespec/json-schema/json-schema-readme_2023-06-28-19-05.json deleted file mode 100644 index c15d89290f..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-readme_2023-06-28-19-05.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/json-schema-record_2023-06-16-22-34.json b/common/changes/@typespec/json-schema/json-schema-record_2023-06-16-22-34.json deleted file mode 100644 index e73d9b8d31..0000000000 --- a/common/changes/@typespec/json-schema/json-schema-record_2023-06-16-22-34.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Add support for Record", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/record-unknown_2023-07-01-18-17.json b/common/changes/@typespec/json-schema/record-unknown_2023-07-01-18-17.json deleted file mode 100644 index 9f770fd9a3..0000000000 --- a/common/changes/@typespec/json-schema/record-unknown_2023-07-01-18-17.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Support templates instantiated with intrinsic types and type expressions.", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/json-schema/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index c15d89290f..0000000000 --- a/common/changes/@typespec/json-schema/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/json-schema/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/json-schema/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index ba8a19bc50..0000000000 --- a/common/changes/@typespec/json-schema/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/json-schema", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/json-schema" -} \ No newline at end of file diff --git a/common/changes/@typespec/library-linter/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/library-linter/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index f311c1375c..0000000000 --- a/common/changes/@typespec/library-linter/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/library-linter", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/library-linter" -} \ No newline at end of file diff --git a/common/changes/@typespec/library-linter/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/library-linter/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index f311c1375c..0000000000 --- a/common/changes/@typespec/library-linter/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/library-linter", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/library-linter" -} \ No newline at end of file diff --git a/common/changes/@typespec/library-linter/make-decorator-private_2023-06-20-06-09.json b/common/changes/@typespec/library-linter/make-decorator-private_2023-06-20-06-09.json deleted file mode 100644 index f311c1375c..0000000000 --- a/common/changes/@typespec/library-linter/make-decorator-private_2023-06-20-06-09.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/library-linter", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/library-linter" -} \ No newline at end of file diff --git a/common/changes/@typespec/library-linter/move-list-decorator_2023-06-20-11-35.json b/common/changes/@typespec/library-linter/move-list-decorator_2023-06-20-11-35.json deleted file mode 100644 index f311c1375c..0000000000 --- a/common/changes/@typespec/library-linter/move-list-decorator_2023-06-20-11-35.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/library-linter", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/library-linter" -} \ No newline at end of file diff --git a/common/changes/@typespec/library-linter/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/library-linter/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index f311c1375c..0000000000 --- a/common/changes/@typespec/library-linter/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/library-linter", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/library-linter" -} \ No newline at end of file diff --git a/common/changes/@typespec/library-linter/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/library-linter/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 087b6e61be..0000000000 --- a/common/changes/@typespec/library-linter/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/library-linter", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/library-linter" -} \ No newline at end of file diff --git a/common/changes/@typespec/lint/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/lint/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 7ca05a5a8d..0000000000 --- a/common/changes/@typespec/lint/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/lint", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/lint" -} \ No newline at end of file diff --git a/common/changes/@typespec/lint/feature-linter-engine_2023-06-14-21-59.json b/common/changes/@typespec/lint/feature-linter-engine_2023-06-14-21-59.json deleted file mode 100644 index bf3632b7b0..0000000000 --- a/common/changes/@typespec/lint/feature-linter-engine_2023-06-14-21-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/lint", - "comment": "**Deprecation** Package is deprecated in favor of built-in linter system", - "type": "none" - } - ], - "packageName": "@typespec/lint" -} diff --git a/common/changes/@typespec/lint/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/lint/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 7ca05a5a8d..0000000000 --- a/common/changes/@typespec/lint/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/lint", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/lint" -} \ No newline at end of file diff --git a/common/changes/@typespec/lint/fix-repos-in-package-json_2023-06-08-18-52.json b/common/changes/@typespec/lint/fix-repos-in-package-json_2023-06-08-18-52.json deleted file mode 100644 index f95bc0c74c..0000000000 --- a/common/changes/@typespec/lint/fix-repos-in-package-json_2023-06-08-18-52.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/lint", - "comment": "Fix repo name in package.json", - "type": "none" - } - ], - "packageName": "@typespec/lint" -} \ No newline at end of file diff --git a/common/changes/@typespec/lint/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/lint/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 7ca05a5a8d..0000000000 --- a/common/changes/@typespec/lint/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/lint", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/lint" -} \ No newline at end of file diff --git a/common/changes/@typespec/lint/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/lint/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index f2cd01d999..0000000000 --- a/common/changes/@typespec/lint/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/lint", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/lint" -} \ No newline at end of file diff --git a/common/changes/@typespec/migrate/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/migrate/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 1dc1455f96..0000000000 --- a/common/changes/@typespec/migrate/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/migrate", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/migrate" -} \ No newline at end of file diff --git a/common/changes/@typespec/migrate/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/migrate/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 1dc1455f96..0000000000 --- a/common/changes/@typespec/migrate/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/migrate", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/migrate" -} \ No newline at end of file diff --git a/common/changes/@typespec/migrate/formatter-properties-wrapping_2023-06-19-16-48.json b/common/changes/@typespec/migrate/formatter-properties-wrapping_2023-06-19-16-48.json deleted file mode 100644 index 1dc1455f96..0000000000 --- a/common/changes/@typespec/migrate/formatter-properties-wrapping_2023-06-19-16-48.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/migrate", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/migrate" -} \ No newline at end of file diff --git a/common/changes/@typespec/migrate/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/migrate/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 1dc1455f96..0000000000 --- a/common/changes/@typespec/migrate/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/migrate", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/migrate" -} \ No newline at end of file diff --git a/common/changes/@typespec/migrate/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/migrate/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 414da20205..0000000000 --- a/common/changes/@typespec/migrate/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/migrate", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/migrate" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/openapi/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 4697c1be8b..0000000000 --- a/common/changes/@typespec/openapi/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/openapi/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 4697c1be8b..0000000000 --- a/common/changes/@typespec/openapi/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi/fix-repos-in-package-json_2023-06-08-18-52.json b/common/changes/@typespec/openapi/fix-repos-in-package-json_2023-06-08-18-52.json deleted file mode 100644 index 90559bf655..0000000000 --- a/common/changes/@typespec/openapi/fix-repos-in-package-json_2023-06-08-18-52.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi", - "comment": "Fix repo name in package.json", - "type": "none" - } - ], - "packageName": "@typespec/openapi" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/openapi/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 4697c1be8b..0000000000 --- a/common/changes/@typespec/openapi/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/openapi/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 79a51ec896..0000000000 --- a/common/changes/@typespec/openapi/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/openapi" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/openapi3/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index d9a70151de..0000000000 --- a/common/changes/@typespec/openapi3/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/openapi3/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index d9a70151de..0000000000 --- a/common/changes/@typespec/openapi3/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/include-x-typespec-name_2023-06-26-20-34.json b/common/changes/@typespec/openapi3/include-x-typespec-name_2023-06-26-20-34.json deleted file mode 100644 index 79f8578e7a..0000000000 --- a/common/changes/@typespec/openapi3/include-x-typespec-name_2023-06-26-20-34.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "Omitting `x-typespec-name` extension by default from openapi3 output. A new flag `include-x-typespec-name: \"inline-only\" | \"never\"` has been added to get previous behavior.", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/nested-body-allow_2023-06-07-20-26.json b/common/changes/@typespec/openapi3/nested-body-allow_2023-06-07-20-26.json deleted file mode 100644 index d9a70151de..0000000000 --- a/common/changes/@typespec/openapi3/nested-body-allow_2023-06-07-20-26.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/openapi3-FixEnumIssue_2023-06-12-17-21.json b/common/changes/@typespec/openapi3/openapi3-FixEnumIssue_2023-06-12-17-21.json deleted file mode 100644 index d9a70151de..0000000000 --- a/common/changes/@typespec/openapi3/openapi3-FixEnumIssue_2023-06-12-17-21.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/openapi3/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index d9a70151de..0000000000 --- a/common/changes/@typespec/openapi3/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/openapi3/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/openapi3/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 1e50081371..0000000000 --- a/common/changes/@typespec/openapi3/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/openapi3", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/openapi3" -} \ No newline at end of file diff --git a/common/changes/@typespec/prettier-plugin-typespec/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/prettier-plugin-typespec/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 5c09cd79f9..0000000000 --- a/common/changes/@typespec/prettier-plugin-typespec/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/prettier-plugin-typespec", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/prettier-plugin-typespec" -} \ No newline at end of file diff --git a/common/changes/@typespec/prettier-plugin-typespec/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/prettier-plugin-typespec/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 5c09cd79f9..0000000000 --- a/common/changes/@typespec/prettier-plugin-typespec/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/prettier-plugin-typespec", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/prettier-plugin-typespec" -} \ No newline at end of file diff --git a/common/changes/@typespec/prettier-plugin-typespec/upgrade-deps-june-2023_2023-06-09-17-04.json b/common/changes/@typespec/prettier-plugin-typespec/upgrade-deps-june-2023_2023-06-09-17-04.json deleted file mode 100644 index f1c8f58586..0000000000 --- a/common/changes/@typespec/prettier-plugin-typespec/upgrade-deps-june-2023_2023-06-09-17-04.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/prettier-plugin-typespec", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/prettier-plugin-typespec" -} \ No newline at end of file diff --git a/common/changes/@typespec/protobuf/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/protobuf/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 8f48e4e952..0000000000 --- a/common/changes/@typespec/protobuf/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/protobuf", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/protobuf" -} \ No newline at end of file diff --git a/common/changes/@typespec/protobuf/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/protobuf/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 8f48e4e952..0000000000 --- a/common/changes/@typespec/protobuf/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/protobuf", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/protobuf" -} \ No newline at end of file diff --git a/common/changes/@typespec/protobuf/formatter-properties-wrapping_2023-06-19-16-48.json b/common/changes/@typespec/protobuf/formatter-properties-wrapping_2023-06-19-16-48.json deleted file mode 100644 index 8f48e4e952..0000000000 --- a/common/changes/@typespec/protobuf/formatter-properties-wrapping_2023-06-19-16-48.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/protobuf", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/protobuf" -} \ No newline at end of file diff --git a/common/changes/@typespec/protobuf/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/protobuf/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 8f48e4e952..0000000000 --- a/common/changes/@typespec/protobuf/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/protobuf", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/protobuf" -} \ No newline at end of file diff --git a/common/changes/@typespec/protobuf/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/protobuf/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index f8aae2ad20..0000000000 --- a/common/changes/@typespec/protobuf/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/protobuf", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/protobuf" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/rest/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 64135d54e3..0000000000 --- a/common/changes/@typespec/rest/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/rest/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 64135d54e3..0000000000 --- a/common/changes/@typespec/rest/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/formatter-properties-wrapping_2023-06-19-16-48.json b/common/changes/@typespec/rest/formatter-properties-wrapping_2023-06-19-16-48.json deleted file mode 100644 index 64135d54e3..0000000000 --- a/common/changes/@typespec/rest/formatter-properties-wrapping_2023-06-19-16-48.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/make-decorator-private_2023-06-15-17-55.json b/common/changes/@typespec/rest/make-decorator-private_2023-06-15-17-55.json deleted file mode 100644 index 043fc2accb..0000000000 --- a/common/changes/@typespec/rest/make-decorator-private_2023-06-15-17-55.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "Make internal `resourceTypeForKeyParam` decorator private", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/move-list-decorator_2023-06-20-11-35.json b/common/changes/@typespec/rest/move-list-decorator_2023-06-20-11-35.json deleted file mode 100644 index b19e50bc5a..0000000000 --- a/common/changes/@typespec/rest/move-list-decorator_2023-06-20-11-35.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "Add `isListOperation` function migrated from `@typespec/compiler`", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/rest/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 64135d54e3..0000000000 --- a/common/changes/@typespec/rest/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/rest/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/rest/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 88af550a6a..0000000000 --- a/common/changes/@typespec/rest/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/rest", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/rest" -} \ No newline at end of file diff --git a/common/changes/@typespec/versioning/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/@typespec/versioning/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 3c8fd8571b..0000000000 --- a/common/changes/@typespec/versioning/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/versioning", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/versioning" -} \ No newline at end of file diff --git a/common/changes/@typespec/versioning/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/@typespec/versioning/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 3c8fd8571b..0000000000 --- a/common/changes/@typespec/versioning/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/versioning", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/versioning" -} \ No newline at end of file diff --git a/common/changes/@typespec/versioning/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/@typespec/versioning/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 3c8fd8571b..0000000000 --- a/common/changes/@typespec/versioning/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/versioning", - "comment": "", - "type": "none" - } - ], - "packageName": "@typespec/versioning" -} \ No newline at end of file diff --git a/common/changes/@typespec/versioning/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/@typespec/versioning/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 2f2ffb35ce..0000000000 --- a/common/changes/@typespec/versioning/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "@typespec/versioning", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "@typespec/versioning" -} \ No newline at end of file diff --git a/common/changes/tmlanguage-generator/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/tmlanguage-generator/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 01af755722..0000000000 --- a/common/changes/tmlanguage-generator/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "tmlanguage-generator", - "comment": "", - "type": "none" - } - ], - "packageName": "tmlanguage-generator" -} \ No newline at end of file diff --git a/common/changes/tmlanguage-generator/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/tmlanguage-generator/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 01af755722..0000000000 --- a/common/changes/tmlanguage-generator/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "tmlanguage-generator", - "comment": "", - "type": "none" - } - ], - "packageName": "tmlanguage-generator" -} \ No newline at end of file diff --git a/common/changes/tmlanguage-generator/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/tmlanguage-generator/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 0d3e116a63..0000000000 --- a/common/changes/tmlanguage-generator/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "tmlanguage-generator", - "comment": "Update dependencies", - "type": "patch" - } - ], - "packageName": "tmlanguage-generator" -} \ No newline at end of file diff --git a/common/changes/typespec-vs/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/typespec-vs/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index fc3fb4b131..0000000000 --- a/common/changes/typespec-vs/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vs", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vs" -} \ No newline at end of file diff --git a/common/changes/typespec-vs/fix-f5_2023-06-16-16-24.json b/common/changes/typespec-vs/fix-f5_2023-06-16-16-24.json deleted file mode 100644 index fc3fb4b131..0000000000 --- a/common/changes/typespec-vs/fix-f5_2023-06-16-16-24.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vs", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vs" -} \ No newline at end of file diff --git a/common/changes/typespec-vs/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/typespec-vs/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index fc3fb4b131..0000000000 --- a/common/changes/typespec-vs/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vs", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vs" -} \ No newline at end of file diff --git a/common/changes/typespec-vscode/canonical-repo-casing_2023-06-08-20-20.json b/common/changes/typespec-vscode/canonical-repo-casing_2023-06-08-20-20.json deleted file mode 100644 index 4ec67f8df3..0000000000 --- a/common/changes/typespec-vscode/canonical-repo-casing_2023-06-08-20-20.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vscode", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vscode" -} \ No newline at end of file diff --git a/common/changes/typespec-vscode/feature-remove-mkdirp_2023-06-08-21-54.json b/common/changes/typespec-vscode/feature-remove-mkdirp_2023-06-08-21-54.json deleted file mode 100644 index aac38b7ee5..0000000000 --- a/common/changes/typespec-vscode/feature-remove-mkdirp_2023-06-08-21-54.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vscode", - "comment": "Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`.", - "type": "none" - } - ], - "packageName": "typespec-vscode" -} \ No newline at end of file diff --git a/common/changes/typespec-vscode/fix-comments-issues-empty-statement_2023-06-15-02-39.json b/common/changes/typespec-vscode/fix-comments-issues-empty-statement_2023-06-15-02-39.json deleted file mode 100644 index 4ec67f8df3..0000000000 --- a/common/changes/typespec-vscode/fix-comments-issues-empty-statement_2023-06-15-02-39.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vscode", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vscode" -} \ No newline at end of file diff --git a/common/changes/typespec-vscode/fix-f5_2023-06-16-16-19.json b/common/changes/typespec-vscode/fix-f5_2023-06-16-16-19.json deleted file mode 100644 index 4ec67f8df3..0000000000 --- a/common/changes/typespec-vscode/fix-f5_2023-06-16-16-19.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vscode", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vscode" -} \ No newline at end of file diff --git a/common/changes/typespec-vscode/rush-pnpm-workspaces_2023-06-16-16-59.json b/common/changes/typespec-vscode/rush-pnpm-workspaces_2023-06-16-16-59.json deleted file mode 100644 index 4ec67f8df3..0000000000 --- a/common/changes/typespec-vscode/rush-pnpm-workspaces_2023-06-16-16-59.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vscode", - "comment": "", - "type": "none" - } - ], - "packageName": "typespec-vscode" -} \ No newline at end of file diff --git a/common/changes/typespec-vscode/upgrade-deps-june-2023_2023-06-09-16-10.json b/common/changes/typespec-vscode/upgrade-deps-june-2023_2023-06-09-16-10.json deleted file mode 100644 index 0b22183357..0000000000 --- a/common/changes/typespec-vscode/upgrade-deps-june-2023_2023-06-09-16-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "changes": [ - { - "packageName": "typespec-vscode", - "comment": "Update dependencies", - "type": "none" - } - ], - "packageName": "typespec-vscode" -} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 361e96c3d9..8d3affaa4c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -17,13 +17,13 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec c8: specifier: ~8.0.0 @@ -65,7 +65,7 @@ importers: specifier: ~3.0.1 version: 3.0.1(rollup@3.24.0) '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler rollup: specifier: ~3.24.0 @@ -78,7 +78,7 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec c8: specifier: ~8.0.0 @@ -181,10 +181,10 @@ importers: specifier: ~17.0.24 version: 17.0.24 '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils c8: specifier: ~8.0.0 @@ -217,7 +217,7 @@ importers: specifier: ~0.5.19 version: 0.5.19 tmlanguage-generator: - specifier: workspace:~0.4.1 + specifier: workspace:~0.4.2 version: link:../tmlanguage-generator typescript: specifier: ~5.1.3 @@ -278,7 +278,7 @@ importers: specifier: ^5.59.11 version: 5.59.11(eslint@8.42.0)(typescript@5.1.3) '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec c8: specifier: ~8.0.0 @@ -339,10 +339,10 @@ importers: specifier: ~18.2.4 version: 18.2.4 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec c8: specifier: ~8.0.0 @@ -375,16 +375,16 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec '@typespec/library-linter': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../library-linter c8: specifier: ~8.0.0 @@ -430,7 +430,7 @@ importers: specifier: ~17.0.24 version: 17.0.24 '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec c8: specifier: ~8.0.0 @@ -473,19 +473,19 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils '@typespec/library-linter': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../library-linter ajv: specifier: ~8.12.0 @@ -524,10 +524,10 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec c8: specifier: ~8.0.0 @@ -560,13 +560,13 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec c8: specifier: ~8.0.0 @@ -593,7 +593,7 @@ importers: ../../packages/migrate: dependencies: '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/compiler-v0.37': specifier: npm:@cadl-lang/compiler@0.37.0 @@ -645,10 +645,10 @@ importers: specifier: ~17.0.24 version: 17.0.24 '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec c8: specifier: ~8.0.0 @@ -681,22 +681,22 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/library-linter': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../library-linter '@typespec/rest': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../rest c8: specifier: ~8.0.0 @@ -736,28 +736,28 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/library-linter': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../library-linter '@typespec/openapi': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi '@typespec/rest': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../rest '@typespec/versioning': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../versioning c8: specifier: ~8.0.0 @@ -793,28 +793,28 @@ importers: specifier: ~2.0.190 version: 2.0.190(react@18.2.0) '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/html-program-viewer': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../html-program-viewer '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/openapi': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi '@typespec/openapi3': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi3 '@typespec/protobuf': - specifier: workspace:~0.44.0 + specifier: workspace:~0.46.0 version: link:../protobuf '@typespec/rest': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../rest '@typespec/versioning': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../versioning debounce: specifier: ~1.2.1 @@ -884,7 +884,7 @@ importers: specifier: workspace:~0.1.0 version: link:../bundler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@vitejs/plugin-react': specifier: ~4.0.0 @@ -926,34 +926,34 @@ importers: specifier: ^11.11.1 version: 11.11.1(@types/react@18.2.9)(react@18.2.0) '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/html-program-viewer': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../html-program-viewer '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/json-schema': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../json-schema '@typespec/openapi': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi '@typespec/openapi3': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi3 '@typespec/playground': specifier: workspace:~0.44.0 version: link:../playground '@typespec/protobuf': - specifier: workspace:~0.44.0 + specifier: workspace:~0.46.0 version: link:../protobuf '@typespec/rest': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../rest '@typespec/versioning': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../versioning react: specifier: ~18.2.0 @@ -996,7 +996,7 @@ importers: specifier: workspace:~0.1.0 version: link:../bundler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@vitejs/plugin-react': specifier: ~4.0.0 @@ -1051,10 +1051,10 @@ importers: specifier: ~4.0.0 version: 4.0.0(rollup@3.24.0) '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils mocha: specifier: ~10.2.0 @@ -1081,13 +1081,13 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec c8: specifier: ~8.0.0 @@ -1111,7 +1111,7 @@ importers: ../../packages/ref-doc: dependencies: '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler prettier: specifier: ~2.8.7 @@ -1127,7 +1127,7 @@ importers: specifier: 2.6.0 version: 2.6.0 '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec c8: specifier: ~8.0.0 @@ -1166,19 +1166,19 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/library-linter': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../library-linter c8: specifier: ~8.0.0 @@ -1208,29 +1208,29 @@ importers: specifier: workspace:~0.45.0 version: link:../best-practices '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/html-program-viewer': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../html-program-viewer '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/openapi': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi '@typespec/openapi3': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi3 '@typespec/rest': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../rest '@typespec/versioning': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../versioning devDependencies: '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils autorest: specifier: ~3.3.2 @@ -1248,7 +1248,7 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils ecmarkup: specifier: ~12.0.3 @@ -1270,7 +1270,7 @@ importers: specifier: ~3.0.2 version: 3.0.2 '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec eslint: specifier: ^8.42.0 @@ -1285,10 +1285,10 @@ importers: ../../packages/typespec-vs: devDependencies: '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils typespec-vscode: - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../typespec-vscode ../../packages/typespec-vscode: @@ -1309,13 +1309,13 @@ importers: specifier: ~1.53.0 version: 1.53.0 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/internal-build-utils': - specifier: workspace:~0.4.2 + specifier: workspace:~0.46.0 version: link:../internal-build-utils '@vscode/vsce': specifier: ~2.15.0 @@ -1357,16 +1357,16 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/eslint-plugin': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../eslint-plugin-typespec '@typespec/library-linter': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../library-linter c8: specifier: ~8.0.0 @@ -1427,37 +1427,37 @@ importers: specifier: ~18.11.9 version: 18.11.9 '@typespec/compiler': - specifier: workspace:~0.45.2 + specifier: workspace:~0.46.0 version: link:../compiler '@typespec/eslint-config-typespec': - specifier: workspace:~0.7.0 + specifier: workspace:~0.46.0 version: link:../eslint-config-typespec '@typespec/http': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../http '@typespec/json-schema': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../json-schema '@typespec/openapi': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi '@typespec/openapi3': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../openapi3 '@typespec/protobuf': - specifier: workspace:~0.44.0 + specifier: workspace:~0.46.0 version: link:../protobuf '@typespec/ref-doc': specifier: workspace:~0.1.0 version: link:../ref-doc '@typespec/rest': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../rest '@typespec/spec': specifier: workspace:* version: link:../spec '@typespec/versioning': - specifier: workspace:~0.45.0 + specifier: workspace:~0.46.0 version: link:../versioning dotenv: specifier: ~16.1.3 diff --git a/common/config/rush/version-policies.json b/common/config/rush/version-policies.json index 86a0cdd400..5ef5c6e7d4 100644 --- a/common/config/rush/version-policies.json +++ b/common/config/rush/version-policies.json @@ -12,7 +12,7 @@ { "definitionName": "lockStepVersion", "policyName": "typespec", - "version": "0.45.0", + "version": "0.46.0", "nextBump": "minor" } // { diff --git a/e2e/e2e-tests.js b/e2e/e2e-tests.js index 13572fecc9..8a330c9ac7 100644 --- a/e2e/e2e-tests.js +++ b/e2e/e2e-tests.js @@ -52,6 +52,7 @@ function packPackages() { "@typespec/compiler": resolvePackage("typespec-compiler-"), "@typespec/openapi": resolvePackage("typespec-openapi-"), "@typespec/openapi3": resolvePackage("typespec-openapi3-"), + "@typespec/http": resolvePackage("typespec-http-"), "@typespec/rest": resolvePackage("typespec-rest-"), "@typespec/versioning": resolvePackage("typespec-versioning-"), }; @@ -93,6 +94,7 @@ function testBasicCurrentTgz(packages) { name: "@typespec/e2e-test-basic-current", dependencies: { "@typespec/compiler": packages["@typespec/compiler"], + "@typespec/http": packages["@typespec/http"], "@typespec/rest": packages["@typespec/rest"], "@typespec/openapi": packages["@typespec/openapi"], "@typespec/openapi3": packages["@typespec/openapi3"], diff --git a/packages/best-practices/package.json b/packages/best-practices/package.json index 81b6f73d98..07039fae91 100644 --- a/packages/best-practices/package.json +++ b/packages/best-practices/package.json @@ -39,14 +39,14 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/bundler/package.json b/packages/bundler/package.json index 88ef9e02a3..f7a3851e00 100644 --- a/packages/bundler/package.json +++ b/packages/bundler/package.json @@ -38,7 +38,7 @@ "!dist/test/**" ], "dependencies": { - "@typespec/compiler": "workspace:~0.45.2", + "@typespec/compiler": "workspace:~0.46.0", "@rollup/plugin-virtual": "~3.0.1", "@rollup/plugin-commonjs": "~25.0.0", "@rollup/plugin-json": "~6.0.0", @@ -49,7 +49,7 @@ "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/compiler/CHANGELOG.json b/packages/compiler/CHANGELOG.json index b0b20abe6b..d12a01a64d 100644 --- a/packages/compiler/CHANGELOG.json +++ b/packages/compiler/CHANGELOG.json @@ -1,6 +1,116 @@ { "name": "@typespec/compiler", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/compiler_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Fix signature help after comment with no closing parenthesis or angle bracket" + }, + { + "comment": "Internal: Reorganize sources inside `src/` folder" + }, + { + "comment": "Fix: Doc comment `/** */` should override base type doc in `model is` or `op is`" + }, + { + "comment": "Emitter Framework: add support for emitting enum member references." + }, + { + "comment": "**Feature** New built-in linter system. Typespec libraries are able to define linting rules which can be configured in `tspconfig.yaml`. See documentation for configuring a [linter](https://microsoft.github.io/typespec/introduction/configuration#linter---configuring-linters) and [writing a linter](https://microsoft.github.io/typespec/extending-typespec/linters)" + }, + { + "comment": "**Breaking** Minimum version of TypeScript updated to 5.0. TypeSpec is using new features available in TypeScript 5.0 which result in a definition file not parsable by older version. Note that this only affect compiling TypeScript code and is not breaking any JS or TypeSpec code. [See more information on typescript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/)" + }, + { + "comment": "Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`." + }, + { + "comment": "Compiler keeps track of the scope where a file is declared(User project, a library or the compiler)" + }, + { + "comment": "Add support for `UTF-8 with bom` for other files loaded by typespec compiler. `.tsp` files already had support, this make it more available for any library/emitter using the compiler api to load a file." + }, + { + "comment": "Allow annotations(Decorators, directives and doc comments) to be specified in any order" + }, + { + "comment": "Fix: `entrypoints` folder wasn't included in package causing failure to resolve cli.js" + }, + { + "comment": "Fix: Formatter incorrectly formatting `::` to `.`" + }, + { + "comment": "Fix formatting issue with comment between decorator and scalar or interface" + }, + { + "comment": "Fix: Stack overflow crash when having circular reference with `op is` inside an interface. " + }, + { + "comment": "Fix IDE issue with squiggles in library code if the library had an entry point named something other than `main.tsp` and a library document was opened after another document that imported the library." + }, + { + "comment": "Fix: Referencing decorator target in argument cause stack overflow for enum and union in checker and interface and operations in projection." + }, + { + "comment": "**Fix** `getTypeName` include namespace prefix for unions as well" + }, + { + "comment": "Formatter will now format doc comment above directives and decorators. This only applies to doc comments. Regular line comments and block comments will remain where they are" + }, + { + "comment": "**Formatter**: Improve formatting for properties with comments and decorators. A property with a leading decorator on its own line or comment will be wrapped in blank lines." + }, + { + "comment": "**Breaking change** Updating tsp init template schema for future extensibility. Older tsp version will fail validation." + }, + { + "comment": "Emitter Framework: TypeEmitter can now implement `writeOutput` to customize how to write source files to disk." + }, + { + "comment": "Emitter Framework: Source Files and Declarations have a new property `meta` which can store arbitrary metadata about those entities." + }, + { + "comment": "Add support for new identifier characters from Unicode 15.0" + }, + { + "comment": "**Deprecate** `@list` decorator in favor of `@listsResource` in `@typespec/rest`" + }, + { + "comment": "**Deprecate** `isListOperation` function in favor of `isListOperation` in `@typespec/rest`" + }, + { + "comment": "**Deprecate** `getListOperationType` function" + }, + { + "comment": "Emitter Framework: Add new `TypeEmitter` methods for scalar instantiation." + }, + { + "comment": "Emitter Framework: Fix that context was set incorrectly for some `TypeEmitter` methods, and add missing context methods for model properties, enum members, and union variants." + }, + { + "comment": "Emitter Framework: Fix that some context methods were not being passed the expected parameters." + }, + { + "comment": "Emitter Framework: Breaking change: Add support for templates instantiated with types without declared names. In such cases, `TypeEmitter`'s declarationName method may return `undefined`, and so the various `*Instantiation` methods might be called with an undefined name, and `AssetEmitter`'s `emitDeclarationName` method might return undefined." + }, + { + "comment": "Fix: Wrong path for typescript types for main entrypoint" + }, + { + "comment": "Update dependencies" + } + ], + "dependency": [ + { + "comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.1` to `~0.4.2`" + } + ] + } + }, { "version": "0.45.2", "tag": "@typespec/compiler_v0.45.2", diff --git a/packages/compiler/CHANGELOG.md b/packages/compiler/CHANGELOG.md index 8e06009728..81fff7a6c5 100644 --- a/packages/compiler/CHANGELOG.md +++ b/packages/compiler/CHANGELOG.md @@ -1,6 +1,44 @@ # Change Log - @typespec/compiler -This log was last generated on Thu, 15 Jun 2023 17:00:33 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Fix signature help after comment with no closing parenthesis or angle bracket +- Internal: Reorganize sources inside `src/` folder +- Fix: Doc comment `/** */` should override base type doc in `model is` or `op is` +- Emitter Framework: add support for emitting enum member references. +- **Feature** New built-in linter system. Typespec libraries are able to define linting rules which can be configured in `tspconfig.yaml`. See documentation for configuring a [linter](https://microsoft.github.io/typespec/introduction/configuration#linter---configuring-linters) and [writing a linter](https://microsoft.github.io/typespec/extending-typespec/linters) +- **Breaking** Minimum version of TypeScript updated to 5.0. TypeSpec is using new features available in TypeScript 5.0 which result in a definition file not parsable by older version. Note that this only affect compiling TypeScript code and is not breaking any JS or TypeSpec code. [See more information on typescript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/) +- Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`. +- Compiler keeps track of the scope where a file is declared(User project, a library or the compiler) +- Add support for `UTF-8 with bom` for other files loaded by typespec compiler. `.tsp` files already had support, this make it more available for any library/emitter using the compiler api to load a file. +- Allow annotations(Decorators, directives and doc comments) to be specified in any order +- Fix: `entrypoints` folder wasn't included in package causing failure to resolve cli.js +- Fix: Formatter incorrectly formatting `::` to `.` +- Fix formatting issue with comment between decorator and scalar or interface +- Fix: Stack overflow crash when having circular reference with `op is` inside an interface. +- Fix IDE issue with squiggles in library code if the library had an entry point named something other than `main.tsp` and a library document was opened after another document that imported the library. +- Fix: Referencing decorator target in argument cause stack overflow for enum and union in checker and interface and operations in projection. +- **Fix** `getTypeName` include namespace prefix for unions as well +- Formatter will now format doc comment above directives and decorators. This only applies to doc comments. Regular line comments and block comments will remain where they are +- **Formatter**: Improve formatting for properties with comments and decorators. A property with a leading decorator on its own line or comment will be wrapped in blank lines. +- **Breaking change** Updating tsp init template schema for future extensibility. Older tsp version will fail validation. +- Emitter Framework: TypeEmitter can now implement `writeOutput` to customize how to write source files to disk. +- Emitter Framework: Source Files and Declarations have a new property `meta` which can store arbitrary metadata about those entities. +- Add support for new identifier characters from Unicode 15.0 +- **Deprecate** `@list` decorator in favor of `@listsResource` in `@typespec/rest` +- **Deprecate** `isListOperation` function in favor of `isListOperation` in `@typespec/rest` +- **Deprecate** `getListOperationType` function +- Emitter Framework: Add new `TypeEmitter` methods for scalar instantiation. +- Emitter Framework: Fix that context was set incorrectly for some `TypeEmitter` methods, and add missing context methods for model properties, enum members, and union variants. +- Emitter Framework: Fix that some context methods were not being passed the expected parameters. +- Emitter Framework: Breaking change: Add support for templates instantiated with types without declared names. In such cases, `TypeEmitter`'s declarationName method may return `undefined`, and so the various `*Instantiation` methods might be called with an undefined name, and `AssetEmitter`'s `emitDeclarationName` method might return undefined. +- Fix: Wrong path for typescript types for main entrypoint +- Update dependencies ## 0.45.2 Thu, 15 Jun 2023 17:00:33 GMT diff --git a/packages/compiler/package.json b/packages/compiler/package.json index 57adf0afd4..8c4cc9ae7f 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/compiler", - "version": "0.45.2", + "version": "0.46.0", "description": "TypeSpec Compiler Preview", "author": "Microsoft Corporation", "license": "MIT", @@ -98,8 +98,8 @@ "@types/prompts": "~2.4.3", "@types/semver": "^7.3.13", "@types/yargs": "~17.0.24", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/internal-build-utils": "workspace:~0.4.2", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/internal-build-utils": "workspace:~0.46.0", "eslint": "^8.42.0", "grammarkdown": "~3.2.0", "mocha": "~10.2.0", @@ -109,7 +109,7 @@ "prettier-plugin-organize-imports": "~3.2.0", "source-map-support": "~0.5.19", "rimraf": "~5.0.1", - "tmlanguage-generator": "workspace:~0.4.1", + "tmlanguage-generator": "workspace:~0.4.2", "typescript": "~5.1.3", "vscode-oniguruma": "~1.7.0", "vscode-textmate": "~9.0.0", diff --git a/packages/eslint-config-typespec/CHANGELOG.json b/packages/eslint-config-typespec/CHANGELOG.json index 2c53a36c85..642e3dbfd5 100644 --- a/packages/eslint-config-typespec/CHANGELOG.json +++ b/packages/eslint-config-typespec/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/eslint-config-typespec", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/eslint-config-typespec_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.7.0", "tag": "@typespec/eslint-config-typespec_v0.7.0", diff --git a/packages/eslint-config-typespec/CHANGELOG.md b/packages/eslint-config-typespec/CHANGELOG.md index 505501458e..585ae2f785 100644 --- a/packages/eslint-config-typespec/CHANGELOG.md +++ b/packages/eslint-config-typespec/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/eslint-config-typespec -This log was last generated on Wed, 10 May 2023 21:24:00 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.7.0 Wed, 10 May 2023 21:24:00 GMT @@ -20,6 +27,10 @@ Fri, 03 Mar 2023 19:59:17 GMT - Rename to TypeSpec +### Updates + +- Revert back changelog + ## 0.5.0 Wed, 07 Dec 2022 17:21:52 GMT @@ -45,6 +56,10 @@ Thu, 11 Aug 2022 19:05:23 GMT - Add eslint-plugin-mocha +### Updates + +- Upgrade to TS4.7 + ## 0.3.0 Thu, 31 Mar 2022 17:10:49 GMT diff --git a/packages/eslint-config-typespec/package.json b/packages/eslint-config-typespec/package.json index c6daec8358..42481e6891 100644 --- a/packages/eslint-config-typespec/package.json +++ b/packages/eslint-config-typespec/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/eslint-config-typespec", - "version": "0.7.0", + "version": "0.46.0", "description": "ESLint config for typespec packages", "main": "index.js", "repository": { diff --git a/packages/eslint-plugin-typespec/CHANGELOG.json b/packages/eslint-plugin-typespec/CHANGELOG.json index 13bdcb6ccd..fbc817c6b0 100644 --- a/packages/eslint-plugin-typespec/CHANGELOG.json +++ b/packages/eslint-plugin-typespec/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/eslint-plugin", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/eslint-plugin_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/eslint-plugin_v0.45.0", diff --git a/packages/eslint-plugin-typespec/CHANGELOG.md b/packages/eslint-plugin-typespec/CHANGELOG.md index 50cd0f0de6..56699ba283 100644 --- a/packages/eslint-plugin-typespec/CHANGELOG.md +++ b/packages/eslint-plugin-typespec/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/eslint-plugin -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/eslint-plugin-typespec/package.json b/packages/eslint-plugin-typespec/package.json index 9c7a029c9c..94d06df30e 100644 --- a/packages/eslint-plugin-typespec/package.json +++ b/packages/eslint-plugin-typespec/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/eslint-plugin", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "Eslint plugin providing set of rules to be used in the JS/TS code of TypeSpec libraries", "homepage": "https://microsoft.github.io/typespec", @@ -41,7 +41,7 @@ "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "@typescript-eslint/parser": "^5.59.11", "eslint": "^8.42.0", "mocha": "~10.2.0", diff --git a/packages/html-program-viewer/CHANGELOG.json b/packages/html-program-viewer/CHANGELOG.json index a74f769b1a..133e293fc3 100644 --- a/packages/html-program-viewer/CHANGELOG.json +++ b/packages/html-program-viewer/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@typespec/html-program-viewer", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/html-program-viewer_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Fix repo name in package.json" + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/html-program-viewer_v0.45.0", diff --git a/packages/html-program-viewer/CHANGELOG.md b/packages/html-program-viewer/CHANGELOG.md index f1e50ae8a1..6c5af8b07d 100644 --- a/packages/html-program-viewer/CHANGELOG.md +++ b/packages/html-program-viewer/CHANGELOG.md @@ -1,6 +1,14 @@ # Change Log - @typespec/html-program-viewer -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Fix repo name in package.json +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/html-program-viewer/package.json b/packages/html-program-viewer/package.json index 79fb42dbf1..bec14513ce 100644 --- a/packages/html-program-viewer/package.json +++ b/packages/html-program-viewer/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/html-program-viewer", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library for emitting an html view of the program.", "homepage": "https://microsoft.github.io/typespec", @@ -51,7 +51,7 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "dependencies": { "prettier": "~2.8.7", @@ -66,8 +66,8 @@ "@types/prettier": "2.6.0", "@types/react": "~18.2.9", "@types/react-dom": "~18.2.4", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "@babel/core": "^7.0.0", "eslint": "^8.42.0", "mocha": "~10.2.0", diff --git a/packages/http/CHANGELOG.json b/packages/http/CHANGELOG.json index 9159b9510d..b847fe4f79 100644 --- a/packages/http/CHANGELOG.json +++ b/packages/http/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@typespec/http", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/http_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Add documentation on `@header` auto header name resolution from property name." + }, + { + "comment": "Support nested `@body`" + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/http_v0.45.0", diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index 3ad102a79c..c56ee97989 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log - @typespec/http -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Add documentation on `@header` auto header name resolution from property name. +- Support nested `@body` +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/http/package.json b/packages/http/package.json index dc1d63a1fc..24b1c2c93c 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/http", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec HTTP protocol binding", "homepage": "https://github.com/microsoft/typespec", @@ -52,15 +52,15 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/library-linter": "workspace:~0.45.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/library-linter": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/internal-build-utils/CHANGELOG.json b/packages/internal-build-utils/CHANGELOG.json index f5ed6eb237..fe31898a15 100644 --- a/packages/internal-build-utils/CHANGELOG.json +++ b/packages/internal-build-utils/CHANGELOG.json @@ -1,6 +1,31 @@ { "name": "@typespec/internal-build-utils", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/internal-build-utils_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "minor": [ + { + "comment": "Include previous patch number in dev version count to ensure patches get released in the dev versions" + } + ], + "patch": [ + { + "comment": "Fix bumping dev version if there is zero changes" + } + ], + "none": [ + { + "comment": "Fix repo name in package.json" + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.4.2", "tag": "@typespec/internal-build-utils_v0.4.2", diff --git a/packages/internal-build-utils/CHANGELOG.md b/packages/internal-build-utils/CHANGELOG.md index d96d8b0f51..02366da0ae 100644 --- a/packages/internal-build-utils/CHANGELOG.md +++ b/packages/internal-build-utils/CHANGELOG.md @@ -1,6 +1,22 @@ # Change Log - @typespec/internal-build-utils -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Minor changes + +- Include previous patch number in dev version count to ensure patches get released in the dev versions + +### Patches + +- Fix bumping dev version if there is zero changes + +### Updates + +- Fix repo name in package.json +- Update dependencies ## 0.4.2 Tue, 06 Jun 2023 22:44:16 GMT @@ -24,6 +40,11 @@ Fri, 03 Mar 2023 19:59:17 GMT - Rename to TypeSpec +### Updates + +- Revert back changelog +- Update homepage link + ## 0.3.3 Fri, 13 Jan 2023 00:05:26 GMT @@ -57,6 +78,10 @@ Mon, 13 Jun 2022 23:42:28 GMT - Improve logging of dotnet errors - Fix prerelease publishing for packages with no changes. +### Updates + +- Upgrade to TS4.7 + ## 0.2.0 Fri, 06 May 2022 17:19:57 GMT diff --git a/packages/internal-build-utils/package.json b/packages/internal-build-utils/package.json index c4087946bc..55c82121fa 100644 --- a/packages/internal-build-utils/package.json +++ b/packages/internal-build-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/internal-build-utils", - "version": "0.4.2", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "Internal library to TypeSpec providing helpers to build.", "homepage": "https://microsoft.github.io/typespec", @@ -47,7 +47,7 @@ "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", "@types/yargs": "~17.0.24", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/json-schema/CHANGELOG.json b/packages/json-schema/CHANGELOG.json index e5d18671ec..caf09ab668 100644 --- a/packages/json-schema/CHANGELOG.json +++ b/packages/json-schema/CHANGELOG.json @@ -1,6 +1,45 @@ { "name": "@typespec/json-schema", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/json-schema_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Add support for enum member references." + }, + { + "comment": "Export the emitter and related types from the package." + }, + { + "comment": "Fix a bug that could result in a schema being bundled more than once." + }, + { + "comment": "By default, types that are not marked with @jsonSchema or are within a namespace with @jsonSchema are bundled into the schemas that reference them. Set the `emitAllRefs` option to true to get the previous behavior of emitting all types referenced as JSON Schema." + }, + { + "comment": "Support @extension for adding arbitrary vendor extensions into the output." + }, + { + "comment": "Breaking change: the namespace has been corrected to TypeSpec.JsonSchema." + }, + { + "comment": "Fix: Make sure `$lib` is exported" + }, + { + "comment": "Add support for Record" + }, + { + "comment": "Support templates instantiated with intrinsic types and type expressions." + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/json-schema_v0.45.0", diff --git a/packages/json-schema/CHANGELOG.md b/packages/json-schema/CHANGELOG.md index 3c71cbe36c..5729fc0f64 100644 --- a/packages/json-schema/CHANGELOG.md +++ b/packages/json-schema/CHANGELOG.md @@ -1,6 +1,22 @@ # Change Log - @typespec/json-schema -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Add support for enum member references. +- Export the emitter and related types from the package. +- Fix a bug that could result in a schema being bundled more than once. +- By default, types that are not marked with @jsonSchema or are within a namespace with @jsonSchema are bundled into the schemas that reference them. Set the `emitAllRefs` option to true to get the previous behavior of emitting all types referenced as JSON Schema. +- Support @extension for adding arbitrary vendor extensions into the output. +- Breaking change: the namespace has been corrected to TypeSpec.JsonSchema. +- Fix: Make sure `$lib` is exported +- Add support for Record +- Support templates instantiated with intrinsic types and type expressions. +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/json-schema/package.json b/packages/json-schema/package.json index 8a848877a8..a60e4035f8 100644 --- a/packages/json-schema/package.json +++ b/packages/json-schema/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/json-schema", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library for emitting TypeSpec to JSON Schema and converting JSON Schema to TypeSpec", "homepage": "https://github.com/microsoft/typespec", @@ -42,15 +42,15 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/library-linter": "workspace:~0.45.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/library-linter": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", @@ -60,7 +60,7 @@ "typescript": "~5.1.3", "ajv": "~8.12.0", "@types/js-yaml": "~4.0.1", - "@typespec/internal-build-utils": "workspace:~0.4.2", + "@typespec/internal-build-utils": "workspace:~0.46.0", "js-yaml": "~4.1.0", "ajv-formats": "~2.1.1" }, diff --git a/packages/library-linter/CHANGELOG.json b/packages/library-linter/CHANGELOG.json index d58c47bda2..736b9b4128 100644 --- a/packages/library-linter/CHANGELOG.json +++ b/packages/library-linter/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/library-linter", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/library-linter_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/library-linter_v0.45.0", diff --git a/packages/library-linter/CHANGELOG.md b/packages/library-linter/CHANGELOG.md index 5c908f93dd..ea027e49de 100644 --- a/packages/library-linter/CHANGELOG.md +++ b/packages/library-linter/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/library-linter -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/library-linter/package.json b/packages/library-linter/package.json index 6634b0529f..baafab3bf6 100644 --- a/packages/library-linter/package.json +++ b/packages/library-linter/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/library-linter", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library for linting another library.", "homepage": "https://microsoft.github.io/typespec", @@ -51,13 +51,13 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/lint/CHANGELOG.json b/packages/lint/CHANGELOG.json index c6f36c0b46..bcae053fbc 100644 --- a/packages/lint/CHANGELOG.json +++ b/packages/lint/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@typespec/lint", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/lint_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "**Deprecation** Package is deprecated in favor of built-in linter system" + }, + { + "comment": "Fix repo name in package.json" + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/lint_v0.45.0", diff --git a/packages/lint/CHANGELOG.md b/packages/lint/CHANGELOG.md index 59e3466671..0c9b731bf6 100644 --- a/packages/lint/CHANGELOG.md +++ b/packages/lint/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log - @typespec/lint -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- **Deprecation** Package is deprecated in favor of built-in linter system +- Fix repo name in package.json +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/lint/package.json b/packages/lint/package.json index 3360b8c44d..439bb06089 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/lint", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "**DEPRECATED** Use typespec built-in linter.", "homepage": "https://microsoft.github.io/typespec", @@ -50,14 +50,14 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/migrate/CHANGELOG.json b/packages/migrate/CHANGELOG.json index 7c786f36ae..86a4d8760a 100644 --- a/packages/migrate/CHANGELOG.json +++ b/packages/migrate/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/migrate", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/migrate_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/migrate_v0.45.0", diff --git a/packages/migrate/CHANGELOG.md b/packages/migrate/CHANGELOG.md index c3c0033dba..0b6775f75f 100644 --- a/packages/migrate/CHANGELOG.md +++ b/packages/migrate/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/migrate -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/migrate/package.json b/packages/migrate/package.json index 95d069c939..16b13774e1 100644 --- a/packages/migrate/package.json +++ b/packages/migrate/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/migrate", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "Migration tool for typespec.", "homepage": "https://microsoft.github.io/typespec", @@ -38,7 +38,7 @@ "!dist/test/**" ], "dependencies": { - "@typespec/compiler": "workspace:~0.45.2", + "@typespec/compiler": "workspace:~0.46.0", "@typespec/compiler-v0.37": "npm:@cadl-lang/compiler@0.37.0", "@typespec/compiler-v0.38": "npm:@cadl-lang/compiler@0.38.5", "@typespec/compiler-v0.40": "npm:@cadl-lang/compiler@0.40.0", @@ -57,9 +57,9 @@ "@types/prettier": "2.6.0", "@types/semver": "^7.3.13", "@types/yargs": "~17.0.24", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "c8": "~8.0.0", "eslint": "^8.42.0", "mocha": "~10.2.0", diff --git a/packages/openapi/CHANGELOG.json b/packages/openapi/CHANGELOG.json index 1845a162f8..30ed85e007 100644 --- a/packages/openapi/CHANGELOG.json +++ b/packages/openapi/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@typespec/openapi", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/openapi_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Fix repo name in package.json" + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/openapi_v0.45.0", diff --git a/packages/openapi/CHANGELOG.md b/packages/openapi/CHANGELOG.md index 8b0206a078..da840e0c56 100644 --- a/packages/openapi/CHANGELOG.md +++ b/packages/openapi/CHANGELOG.md @@ -1,6 +1,14 @@ # Change Log - @typespec/openapi -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Fix repo name in package.json +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/openapi/package.json b/packages/openapi/package.json index 9baeb1c251..c1c5083893 100644 --- a/packages/openapi/package.json +++ b/packages/openapi/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/openapi", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library providing OpenAPI concepts", "homepage": "https://microsoft.github.io/typespec", @@ -52,19 +52,19 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0" + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/library-linter": "workspace:~0.45.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/library-linter": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/openapi3/CHANGELOG.json b/packages/openapi3/CHANGELOG.json index 1ad1f9e758..f0b2154b76 100644 --- a/packages/openapi3/CHANGELOG.json +++ b/packages/openapi3/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@typespec/openapi3", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/openapi3_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Omitting `x-typespec-name` extension by default from openapi3 output. A new flag `include-x-typespec-name: \"inline-only\" | \"never\"` has been added to get previous behavior." + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/openapi3_v0.45.0", diff --git a/packages/openapi3/CHANGELOG.md b/packages/openapi3/CHANGELOG.md index c41fabd4de..39780a10c5 100644 --- a/packages/openapi3/CHANGELOG.md +++ b/packages/openapi3/CHANGELOG.md @@ -1,6 +1,14 @@ # Change Log - @typespec/openapi3 -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Omitting `x-typespec-name` extension by default from openapi3 output. A new flag `include-x-typespec-name: "inline-only" | "never"` has been added to get previous behavior. +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/openapi3/package.json b/packages/openapi3/package.json index 3ab980091b..b6375cfc87 100644 --- a/packages/openapi3/package.json +++ b/packages/openapi3/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/openapi3", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding", "homepage": "https://microsoft.github.io/typespec", @@ -55,24 +55,24 @@ "js-yaml": "~4.1.0" }, "peerDependencies": { - "@typespec/versioning": "workspace:~0.45.0", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/openapi": "workspace:~0.45.0" + "@typespec/versioning": "workspace:~0.46.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/openapi": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", "@types/js-yaml": "~4.0.1", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/openapi": "workspace:~0.45.0", - "@typespec/versioning": "workspace:~0.45.0", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/library-linter": "workspace:~0.45.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/openapi": "workspace:~0.46.0", + "@typespec/versioning": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/library-linter": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/playground-website/package.json b/packages/playground-website/package.json index 1d48bd1fd2..43542c64e9 100644 --- a/packages/playground-website/package.json +++ b/packages/playground-website/package.json @@ -42,15 +42,15 @@ ], "dependencies": { "@typespec/playground": "workspace:~0.44.0", - "@typespec/versioning": "workspace:~0.45.0", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/openapi3": "workspace:~0.45.0", - "@typespec/json-schema": "workspace:~0.45.0", - "@typespec/openapi": "workspace:~0.45.0", - "@typespec/protobuf": "workspace:~0.44.0", - "@typespec/html-program-viewer": "workspace:~0.45.0", + "@typespec/versioning": "workspace:~0.46.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/openapi3": "workspace:~0.46.0", + "@typespec/json-schema": "workspace:~0.46.0", + "@typespec/openapi": "workspace:~0.46.0", + "@typespec/protobuf": "workspace:~0.46.0", + "@typespec/html-program-viewer": "workspace:~0.46.0", "@emotion/react": "^11.11.1", "react-dom": "~18.2.0", "react": "~18.2.0" @@ -67,7 +67,7 @@ "@types/swagger-ui-react": "^4.11.0", "@types/swagger-ui": "~3.52.0", "@typespec/bundler": "workspace:~0.1.0", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "@vitejs/plugin-react": "~4.0.0", "c8": "~8.0.0", "cross-env": "~7.0.3", diff --git a/packages/playground/package.json b/packages/playground/package.json index 2f10f9915b..298c58a4fc 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -51,14 +51,14 @@ "@emotion/react": "^11.11.1", "@fluentui/react-components": "~9.21.0", "@fluentui/react-icons": "~2.0.190", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/html-program-viewer": "workspace:~0.45.0", - "@typespec/http": "workspace:~0.45.0", - "@typespec/openapi": "workspace:~0.45.0", - "@typespec/openapi3": "workspace:~0.45.0", - "@typespec/protobuf": "workspace:~0.44.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/versioning": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/html-program-viewer": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/openapi": "workspace:~0.46.0", + "@typespec/openapi3": "workspace:~0.46.0", + "@typespec/protobuf": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/versioning": "workspace:~0.46.0", "debounce": "~1.2.1", "lzutf8": "0.6.3", "monaco-editor": "~0.39.0", @@ -83,7 +83,7 @@ "@types/swagger-ui-react": "^4.11.0", "@types/swagger-ui": "~3.52.0", "@typespec/bundler": "workspace:~0.1.0", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "@vitejs/plugin-react": "~4.0.0", "c8": "~8.0.0", "cross-env": "~7.0.3", diff --git a/packages/prettier-plugin-typespec/CHANGELOG.json b/packages/prettier-plugin-typespec/CHANGELOG.json index f2d572ee15..b4b3df7770 100644 --- a/packages/prettier-plugin-typespec/CHANGELOG.json +++ b/packages/prettier-plugin-typespec/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/prettier-plugin-typespec", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/prettier-plugin-typespec_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/prettier-plugin-typespec_v0.45.0", diff --git a/packages/prettier-plugin-typespec/CHANGELOG.md b/packages/prettier-plugin-typespec/CHANGELOG.md index c9e0eb6d9c..d61be0e6ba 100644 --- a/packages/prettier-plugin-typespec/CHANGELOG.md +++ b/packages/prettier-plugin-typespec/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/prettier-plugin-typespec -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/prettier-plugin-typespec/package.json b/packages/prettier-plugin-typespec/package.json index 32481cc40d..96d8219494 100644 --- a/packages/prettier-plugin-typespec/package.json +++ b/packages/prettier-plugin-typespec/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/prettier-plugin-typespec", - "version": "0.45.0", + "version": "0.46.0", "description": "", "main": "dist/index.js", "scripts": { @@ -15,8 +15,8 @@ "prettier": "~2.8.7" }, "devDependencies": { - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/internal-build-utils": "workspace:~0.4.2", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/internal-build-utils": "workspace:~0.46.0", "@rollup/plugin-commonjs": "~25.0.0", "@rollup/plugin-json": "~6.0.0", "@rollup/plugin-node-resolve": "~15.1.0", diff --git a/packages/protobuf/CHANGELOG.json b/packages/protobuf/CHANGELOG.json index 57ce376f4b..ea1b676c0b 100644 --- a/packages/protobuf/CHANGELOG.json +++ b/packages/protobuf/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/protobuf", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/protobuf_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.44.0", "tag": "@typespec/protobuf_v0.44.0", diff --git a/packages/protobuf/CHANGELOG.md b/packages/protobuf/CHANGELOG.md index 5e440b00b3..3619b4df75 100644 --- a/packages/protobuf/CHANGELOG.md +++ b/packages/protobuf/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/protobuf -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.44.0 Tue, 06 Jun 2023 22:44:16 GMT @@ -14,6 +21,10 @@ Tue, 06 Jun 2023 22:44:16 GMT - Update decorators signature to use `{}` instead of object +### Updates + +- Fixed a test harness issue requiring unnecessary re-recording of protobuf tests. + ## 0.43.1 Wed, 10 May 2023 21:24:00 GMT diff --git a/packages/protobuf/package.json b/packages/protobuf/package.json index 9d0738f839..663015424b 100644 --- a/packages/protobuf/package.json +++ b/packages/protobuf/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/protobuf", - "version": "0.44.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library and emitter for Protobuf (gRPC)", "homepage": "https://github.com/microsoft/typespec", @@ -31,12 +31,12 @@ "lint:fix": "eslint . --fix --ext .ts" }, "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", "c8": "~8.0.0", diff --git a/packages/ref-doc/package.json b/packages/ref-doc/package.json index 09598d1d7b..11234abd24 100644 --- a/packages/ref-doc/package.json +++ b/packages/ref-doc/package.json @@ -51,12 +51,12 @@ "!dist/test/**" ], "dependencies": { - "@typespec/compiler": "workspace:~0.45.2", + "@typespec/compiler": "workspace:~0.46.0", "prettier": "~2.8.7" }, "devDependencies": { - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", "@types/prettier": "2.6.0", diff --git a/packages/rest/CHANGELOG.json b/packages/rest/CHANGELOG.json index eee6b67450..7fa79e475c 100644 --- a/packages/rest/CHANGELOG.json +++ b/packages/rest/CHANGELOG.json @@ -1,6 +1,24 @@ { "name": "@typespec/rest", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/rest_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Make internal `resourceTypeForKeyParam` decorator private" + }, + { + "comment": "Add `isListOperation` function migrated from `@typespec/compiler`" + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/rest_v0.45.0", diff --git a/packages/rest/CHANGELOG.md b/packages/rest/CHANGELOG.md index 1ee2a71925..4b326487bd 100644 --- a/packages/rest/CHANGELOG.md +++ b/packages/rest/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log - @typespec/rest -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Make internal `resourceTypeForKeyParam` decorator private +- Add `isListOperation` function migrated from `@typespec/compiler` +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/rest/package.json b/packages/rest/package.json index 65143f986c..65969c5b7b 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/rest", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec REST protocol binding", "homepage": "https://microsoft.github.io/typespec", @@ -52,16 +52,16 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/library-linter": "workspace:~0.45.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/library-linter": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/samples/package.json b/packages/samples/package.json index 2832259e07..24f0603d79 100644 --- a/packages/samples/package.json +++ b/packages/samples/package.json @@ -34,17 +34,17 @@ "!dist/test/**" ], "dependencies": { - "@typespec/versioning": "workspace:~0.45.0", + "@typespec/versioning": "workspace:~0.46.0", "@typespec/best-practices": "workspace:~0.45.0", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/openapi": "workspace:~0.45.0", - "@typespec/openapi3": "workspace:~0.45.0", - "@typespec/html-program-viewer": "workspace:~0.45.0" + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/openapi": "workspace:~0.46.0", + "@typespec/openapi3": "workspace:~0.46.0", + "@typespec/html-program-viewer": "workspace:~0.46.0" }, "devDependencies": { - "@typespec/internal-build-utils": "workspace:~0.4.2", + "@typespec/internal-build-utils": "workspace:~0.46.0", "autorest": "~3.3.2", "rimraf": "~5.0.1", "typescript": "~5.1.3" diff --git a/packages/spec/package.json b/packages/spec/package.json index 162353c11f..f7279d8444 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -22,6 +22,6 @@ "devDependencies": { "@types/node": "~18.11.9", "ecmarkup": "~12.0.3", - "@typespec/internal-build-utils": "workspace:~0.4.2" + "@typespec/internal-build-utils": "workspace:~0.46.0" } } diff --git a/packages/tmlanguage-generator/CHANGELOG.json b/packages/tmlanguage-generator/CHANGELOG.json index 6df860cca1..bbbd483a94 100644 --- a/packages/tmlanguage-generator/CHANGELOG.json +++ b/packages/tmlanguage-generator/CHANGELOG.json @@ -1,6 +1,23 @@ { "name": "tmlanguage-generator", "entries": [ + { + "version": "0.4.2", + "tag": "tmlanguage-generator_v0.4.2", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "dependency": [ + { + "comment": "Dependency @typespec/eslint-config-typespec version bump from workspace:~0.7.0 to workspace:~0.46.0." + } + ], + "patch": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.4.1", "tag": "tmlanguage-generator_v0.4.1", diff --git a/packages/tmlanguage-generator/CHANGELOG.md b/packages/tmlanguage-generator/CHANGELOG.md index faddce154d..89eec00816 100644 --- a/packages/tmlanguage-generator/CHANGELOG.md +++ b/packages/tmlanguage-generator/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - tmlanguage-generator -This log was last generated on Wed, 10 May 2023 21:24:00 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.4.2 +Tue, 11 Jul 2023 22:06:00 GMT + +### Patches + +- Update dependencies ## 0.4.1 Wed, 10 May 2023 21:24:00 GMT diff --git a/packages/tmlanguage-generator/package.json b/packages/tmlanguage-generator/package.json index e927e2d8fa..d367ef8955 100644 --- a/packages/tmlanguage-generator/package.json +++ b/packages/tmlanguage-generator/package.json @@ -1,6 +1,6 @@ { "name": "tmlanguage-generator", - "version": "0.4.1", + "version": "0.4.2", "author": "Microsoft Corporation", "description": "Helper library to generate TextMate syntax highlighting tmLanguage files.", "homepage": "https://github.com/microsoft/typespec/tree/master/packages/tmlanguage-generator", @@ -39,7 +39,7 @@ "devDependencies": { "@types/node": "~18.11.9", "@types/plist": "~3.0.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "eslint": "^8.42.0", "rimraf": "~5.0.1", "typescript": "~5.1.3" diff --git a/packages/typespec-vs/CHANGELOG.json b/packages/typespec-vs/CHANGELOG.json index 3379929f3c..c7de53d88c 100644 --- a/packages/typespec-vs/CHANGELOG.json +++ b/packages/typespec-vs/CHANGELOG.json @@ -1,6 +1,12 @@ { "name": "typespec-vs", "entries": [ + { + "version": "0.46.0", + "tag": "typespec-vs_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": {} + }, { "version": "0.45.0", "tag": "typespec-vs_v0.45.0", diff --git a/packages/typespec-vs/CHANGELOG.md b/packages/typespec-vs/CHANGELOG.md index d6e0587fc2..9364fa6a0e 100644 --- a/packages/typespec-vs/CHANGELOG.md +++ b/packages/typespec-vs/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log - typespec-vs -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +_Version update only_ ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/typespec-vs/package.json b/packages/typespec-vs/package.json index bd2705758b..77af06f1f1 100644 --- a/packages/typespec-vs/package.json +++ b/packages/typespec-vs/package.json @@ -1,7 +1,7 @@ { "name": "typespec-vs", "author": "Microsoft Corporation", - "version": "0.45.0", + "version": "0.46.0", "description": "TypeSpec Language Support for Visual Studio", "homepage": "https://microsoft.github.io/typespec", "readme": "https://github.com/microsoft/typespec/blob/master/README.md", @@ -27,7 +27,7 @@ "build": "node scripts/build.js" }, "devDependencies": { - "typespec-vscode": "workspace:~0.45.0", - "@typespec/internal-build-utils": "workspace:~0.4.2" + "typespec-vscode": "workspace:~0.46.0", + "@typespec/internal-build-utils": "workspace:~0.46.0" } } diff --git a/packages/typespec-vscode/CHANGELOG.json b/packages/typespec-vscode/CHANGELOG.json index e9794bb6f9..11ff6d53ed 100644 --- a/packages/typespec-vscode/CHANGELOG.json +++ b/packages/typespec-vscode/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "typespec-vscode", "entries": [ + { + "version": "0.46.0", + "tag": "typespec-vscode_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`." + }, + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "typespec-vscode_v0.45.0", diff --git a/packages/typespec-vscode/CHANGELOG.md b/packages/typespec-vscode/CHANGELOG.md index 28eb2540b8..b30a77aedd 100644 --- a/packages/typespec-vscode/CHANGELOG.md +++ b/packages/typespec-vscode/CHANGELOG.md @@ -1,6 +1,14 @@ # Change Log - typespec-vscode -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`. +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/typespec-vscode/package.json b/packages/typespec-vscode/package.json index d69ccc58f8..d05518206c 100644 --- a/packages/typespec-vscode/package.json +++ b/packages/typespec-vscode/package.json @@ -1,6 +1,6 @@ { "name": "typespec-vscode", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec Language Support for VS Code", "homepage": "https://microsoft.github.io/typespec", @@ -120,9 +120,9 @@ "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", "@types/vscode": "~1.53.0", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/internal-build-utils": "workspace:~0.4.2", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/internal-build-utils": "workspace:~0.46.0", "eslint": "^8.42.0", "c8": "~8.0.0", "mocha": "~10.2.0", diff --git a/packages/versioning/CHANGELOG.json b/packages/versioning/CHANGELOG.json index a534573103..7a26241587 100644 --- a/packages/versioning/CHANGELOG.json +++ b/packages/versioning/CHANGELOG.json @@ -1,6 +1,18 @@ { "name": "@typespec/versioning", "entries": [ + { + "version": "0.46.0", + "tag": "@typespec/versioning_v0.46.0", + "date": "Tue, 11 Jul 2023 22:06:00 GMT", + "comments": { + "none": [ + { + "comment": "Update dependencies" + } + ] + } + }, { "version": "0.45.0", "tag": "@typespec/versioning_v0.45.0", diff --git a/packages/versioning/CHANGELOG.md b/packages/versioning/CHANGELOG.md index 8a965613f5..a5f749fbf3 100644 --- a/packages/versioning/CHANGELOG.md +++ b/packages/versioning/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log - @typespec/versioning -This log was last generated on Tue, 06 Jun 2023 22:44:16 GMT and should not be manually modified. +This log was last generated on Tue, 11 Jul 2023 22:06:00 GMT and should not be manually modified. + +## 0.46.0 +Tue, 11 Jul 2023 22:06:00 GMT + +### Updates + +- Update dependencies ## 0.45.0 Tue, 06 Jun 2023 22:44:16 GMT diff --git a/packages/versioning/package.json b/packages/versioning/package.json index c90dac42db..69a982699e 100644 --- a/packages/versioning/package.json +++ b/packages/versioning/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/versioning", - "version": "0.45.0", + "version": "0.46.0", "author": "Microsoft Corporation", "description": "TypeSpec library for declaring and emitting versioned APIs", "homepage": "https://microsoft.github.io/typespec", @@ -52,15 +52,15 @@ "!dist/test/**" ], "peerDependencies": { - "@typespec/compiler": "workspace:~0.45.2" + "@typespec/compiler": "workspace:~0.46.0" }, "devDependencies": { "@types/mocha": "~10.0.1", "@types/node": "~18.11.9", - "@typespec/compiler": "workspace:~0.45.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", - "@typespec/library-linter": "workspace:~0.45.0", - "@typespec/eslint-plugin": "workspace:~0.45.0", + "@typespec/compiler": "workspace:~0.46.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", + "@typespec/library-linter": "workspace:~0.46.0", + "@typespec/eslint-plugin": "workspace:~0.46.0", "eslint": "^8.42.0", "mocha": "~10.2.0", "mocha-junit-reporter": "~2.2.0", diff --git a/packages/website/package.json b/packages/website/package.json index ed72f65b34..fb37a8d0e9 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -31,16 +31,16 @@ "react-dom": "^17.0.2" }, "devDependencies": { - "@typespec/compiler": "workspace:~0.45.2", + "@typespec/compiler": "workspace:~0.46.0", "@typespec/ref-doc": "workspace:~0.1.0", "@typespec/spec": "workspace:*", - "@typespec/http": "workspace:~0.45.0", - "@typespec/rest": "workspace:~0.45.0", - "@typespec/openapi": "workspace:~0.45.0", - "@typespec/openapi3": "workspace:~0.45.0", - "@typespec/protobuf": "workspace:~0.44.0", - "@typespec/versioning": "workspace:~0.45.0", - "@typespec/json-schema": "workspace:~0.45.0", + "@typespec/http": "workspace:~0.46.0", + "@typespec/rest": "workspace:~0.46.0", + "@typespec/openapi": "workspace:~0.46.0", + "@typespec/openapi3": "workspace:~0.46.0", + "@typespec/protobuf": "workspace:~0.46.0", + "@typespec/versioning": "workspace:~0.46.0", + "@typespec/json-schema": "workspace:~0.46.0", "@docusaurus/module-type-aliases": "^2.2.0", "@docusaurus/types": "^2.2.0", "@tsconfig/docusaurus": "^1.0.5", @@ -50,7 +50,7 @@ "playwright": "~1.32.2", "mermaid": "~9.1.6", "mdx-mermaid": "1.3.2", - "@typespec/eslint-config-typespec": "workspace:~0.7.0", + "@typespec/eslint-config-typespec": "workspace:~0.46.0", "eslint": "^8.42.0", "rimraf": "~5.0.1", "dotenv": "~16.1.3" diff --git a/packages/website/versioned_docs/version-latest/extending-typespec/linters.md b/packages/website/versioned_docs/version-latest/extending-typespec/linters.md index d43938a3dd..3799c4d070 100644 --- a/packages/website/versioned_docs/version-latest/extending-typespec/linters.md +++ b/packages/website/versioned_docs/version-latest/extending-typespec/linters.md @@ -9,33 +9,54 @@ title: Linters TypeSpec library can probide a `$onValidate` hook which can be used to validate the typespec program is valid in the eye of your library. -A linter on the other hand might be a validation that is more optional, the program is correct but there could be some improvements. For example requiring documentation on every type. This is not something that is needed to represent the typespec program but without it the end user experience might suffer. +A linter on the other hand might be a validation that is optional, the program is correct but there could be some improvements. For example requiring documentation on every type. This is not something that is needed to represent the typespec program but without it the end user experience might suffer. +Linters need to be explicitly enabled. `$onValidate` will be run automatically if that library is imported. ## Writing a linter -There is no built-in concept of linter into TypeSpec, there is however a library `@typespec/lint` that lets a library define its linting rules and hooks on to the `onValidate`. +See examples in `packages/best-practices`. -### 1. Install the `@typespec/lint` package - -```bash -npm install @typespec/lint -``` - -### 2. Define the rules +### 1. Define a rules ```ts -import { createRule } from "@typespec/lint"; +import { createLinterRule } from "@typespec/compiler"; import { reportDiagnostic } from "../lib.js"; -export const modelDocRule = createRule({ +export const requiredDocRule = createLinterRule({ name: "no-model-doc", - create({ program }) { + severity: "warning", + // Short description of what this linter rule does. To be used for generated summary of a linter. + description: "Enforce documentation on models.", + messages: { + default: `Must be documented.`, + // Different messages can be provided + models: `Models must be documented.`, + + // Message can be parameterized + enums: paramMessage`Enum ${"enumName"} must be documented.`, + }, + create(context) { return { + operation: (op) => { + if (!getDoc(context.program, op)) { + context.reportDiagnostic({ + target: model, + }); + } + }, model: (model) => { - if (!getDoc(program, model)) { - reportDiagnostic(program, { - // Note 1 - code: "no-model-doc", + if (!getDoc(context.program, model)) { + context.reportDiagnostic({ + messageId: "models", + target: model, + }); + } + }, + enums: (type) => { + if (!getDoc(context.program, type)) { + context.reportDiagnostic({ + messageId: "enums", + format: {enumName: type.name} target: model, }); } @@ -45,98 +66,94 @@ export const modelDocRule = createRule({ }); ``` -Note 1: `code` refers to they key of a diagnostic defined when you `createTypeSpecLibrary` [See](./basics.md#4-create-libts) +#### Don'ts -### Register the rules - - - -`$lib` refer to the value of `createTypeSpecLibrary` [See](./basics.md#4-create-libts) +- ❌ Do not call `program.reportDiagnostic` or your library `reportDiagnostic` helper directly in a linter rule ```ts -import { $lib } from "../lib.js"; -import { modelDocRule } from "./rules/model-doc.js"; - -// Get the instance of the linter for your library -const linter = getLinter($lib); - -linter.registerRule(modelDocRule); -``` - -Or multiple rules at once - -```ts -linter.registerRules([modelDocRule, interfaceDocRule]); -``` - -When registering a rule, its name will be prefixed by the library named defined in `$lib`. - -### Enable the rules - -Rules are by default just registered but not enabled. This allows a library to provide a set of linting rules for other libraries to use or a user to enable. +// ❌ Bad +program.reportDiagnostic({ + code: "other-code", + target, +}); +// ❌ Bad +reportDiagnostic(program, { + code: "other-code", + target, +}); -```ts -// Note: The rule ID here needs to be the fully qualified rule name prefixed with the -// `/` prefix and it cannot be a rule provided by another library. -linter.enableRule("my-library/no-model-doc"); +// ✅ Good +context.reportDiagnostic({ + target, +}); ``` -Alternatively rules can be automatically enabled when registered. - -```ts -// With single registration -linter.registerRule(modelDocRule, { autoEnable: true }); - -// With multi registration -linter.registerRules([modelDocRule, interfaceDocRule], { autoEnable: true }); -``` +### Register the rules -### Register the linter hook + -The lint library still depends on `$onValidate` to run. For that each library providing a linter should call `linter.lintOnValidate(program);` to ensure that the linter will be run. +When defining your `$lib` with `createTypeSpecLibrary`([See](./basics.md#4-create-libts)) an additional entry for `linter` can be provided ```ts -export function $onValidate(program: Program) { - // Optional if you want to automatically enable your rules. - linter.autoEnableRules(); - - // Alternatively enable rules explicitly. - // Note: The rule IDs here needs to be the fully qualified rule names with the - // `/` prefix and they cannot be rules provided by other libraries. - linter.enableRules(["/", "/]); - - linter.lintOnValidate(program); -} +// Import the rule defined previously +import { requiredDocRule } from "./rules/required-doc.rule.js"; + +export const $lib = createTypeSpecLibrary({ + name: "@typespec/my-linter", + diagnostics: {}, + linter: { + // Include all the rules your linter is defining here. + rules: [requiredDocRule], + + // Optionally a linter can provide a set of rulesets + ruleSets: { + recommended: { + // (optional) A ruleset takes a map of rules to explicitly enable + enable: { [`@typespec/my-linter:${requiredDocRule.name}`]: true }, + + // (optional) A rule set can extend another rule set + extends: ["@typespec/best-practices:recommended"], + + // (optional) A rule set can disable a rule enabled in a ruleset it extended. + disable: { + "`@typespec/best-practices:no-a": "This doesn't apply in this ruleset.", + }, + }, + }, + }, +}); ``` -This will not run the linter right here, it will just add a new callback to the onValidate list giving time for all linters to register their rules. +When referencing a rule or ruleset(in `enable`, `extends`, `disable`) the rule or rule set id must be used which in this format: `:` ## Testing a linter To test linter rule an rule tester is provided letting you test a specific rule without enabling the others. -First you'll want to create an instance of the rule tester using `createRuleTester` passing it the rule that is being tested. +First you'll want to create an instance of the rule tester using `createLinterRuleTester` passing it the rule that is being tested. You can then provide different test checking the rule pass or fails. ```ts -import { createRuleTester } from "@typespec/lint/testing"; -import { noFooModelRule } from "./no-foo-model.js"; +import { createLinterRuleTester, RuleTester, createTestRunner } from "@typespec/compiler/testing"; +import { requiredDocRule } from "./rules/required-doc.rule.js"; -let ruleTester: RuleTester; +describe("required-doc rule", () => { + let ruleTester: RuleTester; -beforeEach(() => { - const runner = createTestRunner(); - ruleTester = createRuleTester(runner, noFooModelRule); -}); + beforeEach(() => { + const runner = createTestRunner(); + ruleTester = createLinterRuleTester(runner, requiredDocRule, "@typespec/my-linter"); + }); -it("emit diagnostics when using model named foo", () => { - ruleTester.expect(`model Foo {}`).toEmitDiagnostic({ - code: "my-library/no-foo-model", - message: "Cannot name a model with 'Foo'", + it("emit diagnostics when using model named foo", async () => { + await ruleTester.expect(`model Foo {}`).toEmitDiagnostics({ + code: "@typespec/my-linter:no-foo-model", + message: "Cannot name a model with 'Foo'", + }); }); -}); -it("should be valid to use other names", () => { - ruleTester.expect(`model Bar {}`).toBeValid(); + it("should be valid to use other names", async () => { + await ruleTester.expect(`model Bar {}`).toBeValid(); + }); }); ``` diff --git a/packages/website/versioned_docs/version-latest/introduction/configuration/configuration.md b/packages/website/versioned_docs/version-latest/introduction/configuration/configuration.md index 3b19d4110a..ed062b2f6d 100644 --- a/packages/website/versioned_docs/version-latest/introduction/configuration/configuration.md +++ b/packages/website/versioned_docs/version-latest/introduction/configuration/configuration.md @@ -36,6 +36,13 @@ model TypeSpecProjectSchema { imports?: string; emit?: string[]; options?: Record; + linter?: LinterConfig; +} + +model LinterConfig { + extends?: RuleRef[]; + enable?: Record; + disable?: Record; } ``` @@ -182,6 +189,7 @@ options: | `imports` | `--import` | Additional imports to include | | `emit` | `--emit` | Emitter configuration | | `options` | `--option` or `--options` | Emitter configuration | +| `linter` | | Linter configuration | ### `output-dir` - Configure the default output dir @@ -301,6 +309,22 @@ Default: `{output-dir}/{emitter-name}` See [output directory configuration for mode details](#output-directory-configuration) +### `linter` - Configuring linters + +Configure which linter rules should be enabled in this repository. Referencing to a rule or ruleset must be using their id which is in this format `:` + +```yaml +linter: + extends: # Extend `recommended` ruleset from @typespec/best-practices library + - "@typespec/best-practices:recommended" + + enable: # Explicitly enable some rules + "@typespec/best-practices:no-x": true + + disable: # Disable some rules defined in one of the ruleset extended. + "@typespec/best-practices:no-y": "This rule cannot be applied in this project because X" +``` + ## Emitter control cli flags ### `--no-emit` diff --git a/packages/website/versioned_docs/version-latest/introduction/configuration/tracing.md b/packages/website/versioned_docs/version-latest/introduction/configuration/tracing.md index b6877c8b84..3536f687f7 100644 --- a/packages/website/versioned_docs/version-latest/introduction/configuration/tracing.md +++ b/packages/website/versioned_docs/version-latest/introduction/configuration/tracing.md @@ -58,12 +58,17 @@ Using: This is a list of the trace area used in the compiler -| Area | Description | -| --------------------------- | -------------------------------------------------------------------- | -| `compiler.options` | Log the resolved compiler options | -| `import-resolution.library` | Information related to the resolution of import libraries | -| `projection.log` | Debug information logged by the `log()` function used in projections | -| `bind.js` | Information when binding JS files | +| Area | Description | +| ------------------------------ | -------------------------------------------------------------------- | +| `compiler.options` | Log the resolved compiler options | +| `import-resolution.library` | Information related to the resolution of import libraries | +| `projection.log` | Debug information logged by the `log()` function used in projections | +| `bind.js` | Information when binding JS files | +| `linter.register-library` | Information that a library rules will be loaded | +| `linter.register-library.rule` | Information about a rule that is being registered | +| `linter.extend-rule-set.start` | Information about a ruleset it is about to extend | +| `linter.extend-rule-set.end` | Information about rules enabled after extending a ruleset | +| `linter.lint` | Start the lint process and show information of all the rules enabled | ## Tracing in TypeSpec library diff --git a/packages/website/versioned_docs/version-latest/introduction/style-guide.md b/packages/website/versioned_docs/version-latest/introduction/style-guide.md index 76e5a63ef3..535ff59433 100644 --- a/packages/website/versioned_docs/version-latest/introduction/style-guide.md +++ b/packages/website/versioned_docs/version-latest/introduction/style-guide.md @@ -98,7 +98,7 @@ model Pet { model Cat extends Pet {} ``` -- Place no space between an operation/decorator/function name and the parmaeter list +- Place no space between an operation/decorator/function name and the parameter list ```typespec @@ -159,3 +159,61 @@ alias foo = [1, 2, 3]; ``` - Avoid trailing spaces at the end of lines. + +### Model layout + +- Properties should hug each other unless it has decorators or comments + + +```tsp +// bad +model Foo { + one: string; + two: string; + tree: string; +} + +// good +model Foo { + one: string; + two: string; + tree: string; +} +``` + +- Wrap properties in new lines if it has leading comments or decorators + + +```tsp +// bad +model Foo { + one: string; + @doc("Foo") + two: string; + // line comment + tree: string; + /** + * Block comment + */ + four: string; + five: string; +} + +// good +model Foo { + one: string; + + @doc("Foo") + two: string; + + // line comment + tree: string; + + /** + * Block comment + */ + four: string; + + five: string; +} +``` diff --git a/packages/website/versioned_docs/version-latest/release-notes/release-2023-07-11.md b/packages/website/versioned_docs/version-latest/release-notes/release-2023-07-11.md new file mode 100644 index 0000000000..f59cd4be2d --- /dev/null +++ b/packages/website/versioned_docs/version-latest/release-notes/release-2023-07-11.md @@ -0,0 +1,92 @@ +--- +title: July 2023 +--- + +# Release Notes July 2023 (2023-07-11) + +:::danger +This release contains **breaking changes** +::: + +## New Features + +### `@typespec/compiler` and core language + +- New built-in linter system. Typespec libraries are able to define linting rules which can be configured in `tspconfig.yaml`. See documentation for [configuring a linter](https://microsoft.github.io/typespec/introduction/configuration#linter---configuring-linters) and [writing a linter](https://microsoft.github.io/typespec/extending-typespec/linters) +- Allow decorators, directives and doc comments to be specified in any order +- Format doc comments above decorators and directives +- Improve formatting for properties with comments and decorators +- Support for new Unicode 15.0 identifier characters + +### Emitter framework + +- Add `writeOutput` to TypeEmitter for additional customization in writing generated files +- Add `meta` property to source files and declarations to store arbitrary metadata +- Add support for emitting enum member references +- Add new `TypeEmitter` methods for scalar instantiation + +### `@typespec/http` library + +- Add documentation on automatic header name resolution from property name for `@header` decorator + +### `@typespec/json-schema` emitter + +- Support `@extension` for adding arbitrary vendor extensions into the output +- Add support for `Record` +- Support templates instantiated with intrinsic types and type expressions +- Export emitter and related types from the npm package +- By default, types that are not marked with `@jsonSchema` or are within a namespace with `@jsonSchema` are bundled into the schemas that reference them. Set the `emitAllRefs` option to true to get the previous behavior of emitting all types referenced as JSON Schema + +### `@typespec/openapi3` emitter + +- Omit `x-typespec-name` extension by default from openapi3 output. A new configuration and command line option `include-x-typespec-name: \"inline-only\" | \"never\"` has been added to get previous behavior + +### `@typespec/rest` library + +- Add `isListOperation` function migrated from `@typespec/compiler` + +## Bug Fixes + +### `@typespec/compiler` and core language bug fixes + +- Add support for `UTF-8 with bom` for other files loaded by typespec compiler. `.tsp` files already had support, this make it more available for any library/emitter using the compiler api to load a file. +- Fix signature help after comment with no closing parenthesis or angle bracket +- Doc comment `/** */` should override base type doc in `model is` or `op is` +- Formatter incorrectly formatting `::` to `.` +- Fix formatting issue with comment between decorator and scalar or interface +- Fix stack overflow when a circular reference with `op is` exists inside an interface. +- Clean up handling of non-standard entrypoints in language server +- Fix stack overflow when referencing decorator target in checker and projections + +### `@typespec/openapi3` emitter bug fixes + +- OpenAPI emitters: treat union namespaces like namespaces for other types + +### Emitter framework bug fixes + +- Fix that some context methods were not being passed the expected parameters +- Fix that context was set incorrectly for some `TypeEmitter` methods, and add missing context methods for model properties, enum members, and union variants + +### `@typespec/json-schema` emitter bug fixes + +- Fix a bug that could result in a schema being bundled more than once + +## Breaking Changes + +### For Specification Authors + +- Update tsp init template schema for future extensibility. Older tsp version will fail validation when trying to initialize a project with a new template definition. +- Json Schema Emitter: the namespace has been corrected to TypeSpec.JsonSchema. Update any using statements from `JsonSchema` to `TypeSpec.JsonSchema`, and any references from `JsonSchema.[Type]` to `TypeSpec.JsonSchema.[Type]`. + +### For Emitters and Libraries + +- Minimum version of TypeScript updated to 5.0. TypeSpec is using new features available in TypeScript 5.0 which result in a definition file not parsable by older version. Note that this only affect compiling TypeScript code and is not breaking any JS or TypeSpec code. [See more information on typescript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/) +- Emitter Framework: Add support for templates instantiated with types without declared names. In such cases, `TypeEmitter`'s declarationName method may return `undefined`, and so the various `*Instantiation` methods might be called with an undefined name, and `AssetEmitter`'s `emitDeclarationName` method might return undefined. +- Make internal `@resourceTypeForKeyParam` decorator in `@typespec/rest` library private + +## Deprecations + +- `@list` decorator from TypeSpec core is deprecated. Use `@listsResource` from `@typespec/http` instead +- `isListOperation` function from TypeSpec core is deprecated. Use `isListOperation` from `@typespec/http` instead +- `getListOperationType` from TypeSpec core is deprecated +- `@typespec/linter` Package is deprecated in favor of built-in linter system diff --git a/packages/website/versioned_docs/version-latest/standard-library/built-in-decorators.md b/packages/website/versioned_docs/version-latest/standard-library/built-in-decorators.md index e6e61a4dd7..2d4b0f02fa 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/built-in-decorators.md +++ b/packages/website/versioned_docs/version-latest/standard-library/built-in-decorators.md @@ -305,6 +305,25 @@ Invalid, ``` +### `@list` {#@list} + +Mark this operation as a `list` operation for resource types. + +```typespec +@list(listedType?: Model) +``` + +#### Target + +`Operation` + +#### Parameters +| Name | Type | Description | +|------|------|-------------| +| listedType | `Model` | Optional type of the items in the list. | + + + ### `@maxItems` {#@maxItems} Specify the maximum number of items this array should have. diff --git a/packages/website/versioned_docs/version-latest/standard-library/http/reference/decorators.md b/packages/website/versioned_docs/version-latest/standard-library/http/reference/decorators.md index 5093859823..76f04c5b8a 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/http/reference/decorators.md +++ b/packages/website/versioned_docs/version-latest/standard-library/http/reference/decorators.md @@ -111,9 +111,9 @@ Specify this property is to be sent or received as an http header. #### Parameters -| Name | Type | Description | -| ------------------- | --------------------------------------------- | ------------------------------------------------------------------ | -| headerNameOrOptions | `union string \| TypeSpec.Http.HeaderOptions` | Optional name of the header when sent over http or header options. | +| Name | Type | Description | +| ------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| headerNameOrOptions | `union string \| TypeSpec.Http.HeaderOptions` | Optional name of the header when sent over http or header options.
By default the header name will be the property name converted from camelCase to camel-case. (e.g. `eTag` -> `e-tag`) | #### Examples @@ -122,6 +122,13 @@ op read(@header accept: string): {@header("E-Tag") eTag: string}; op create(@header({name: "X-Color", format: "csv"}) colors: string[]): void; ``` +##### Implicit header name + +```typespec +op read(): {@header eTag: string}; // headerName: e-tag +op read(): {@header contentType: string}; // headerName: content-type +``` + ### `@includeInapplicableMetadataInPayload` {#@TypeSpec.Http.includeInapplicableMetadataInPayload} Specify if inapplicable metadata should be included in the payload for the given entity. diff --git a/packages/website/versioned_docs/version-latest/standard-library/http/reference/js-api/index.md b/packages/website/versioned_docs/version-latest/standard-library/http/reference/js-api/index.md index 5ee4bbd8ff..d9a929013e 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/http/reference/js-api/index.md +++ b/packages/website/versioned_docs/version-latest/standard-library/http/reference/js-api/index.md @@ -617,20 +617,21 @@ ___ ### gatherMetadata -▸ **gatherMetadata**(`program`, `diagnostics`, `type`, `visibility`, `isMetadataCallback?`): `Set`<`ModelProperty`\> +▸ **gatherMetadata**(`program`, `diagnostics`, `type`, `visibility`, `isMetadataCallback?`, `rootMapOut?`): `Set`<`ModelProperty`\> Walks the given type and collects all applicable metadata and `@body` properties recursively. #### Parameters -| Name | Type | Default value | -| :------ | :------ | :------ | -| `program` | `Program` | `undefined` | -| `diagnostics` | `DiagnosticCollector` | `undefined` | -| `type` | `Type` | `undefined` | -| `visibility` | [`Visibility`](enums/Visibility.md) | `undefined` | -| `isMetadataCallback` | (`program`: `Program`, `property`: `ModelProperty`) => `boolean` | `isMetadata` | +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `program` | `Program` | `undefined` | - | +| `diagnostics` | `DiagnosticCollector` | `undefined` | - | +| `type` | `Type` | `undefined` | - | +| `visibility` | [`Visibility`](enums/Visibility.md) | `undefined` | - | +| `isMetadataCallback` | (`program`: `Program`, `property`: `ModelProperty`) => `boolean` | `isMetadata` | Determines if a property is metadata. A property is defined to be metadata if it is marked `@header`, `@query`, `@path`, or `@statusCode`. | +| `rootMapOut?` | `Map`<`ModelProperty`, `ModelProperty`\> | `undefined` | If provided, the map will be populated to link nested metadata properties to their root properties. | #### Returns diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/data-types.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/data-types.md new file mode 100644 index 0000000000..e07738cf02 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/data-types.md @@ -0,0 +1,32 @@ +--- +title: "Data types" +toc_min_heading_level: 2 +toc_max_heading_level: 3 +--- + +# Data types + +## TypeSpec.JsonSchema + +### `Json` {#TypeSpec.JsonSchema.Json} + +Specify that the provided template argument should be emitted as raw JSON or YAML +as opposed to a schema. Use in combination with the + +```typespec +model TypeSpec.JsonSchema.Json +``` + +#### Template Parameters + +| Name | Description | +| ---- | ------------------------------- | +| T | the type to convert to raw JSON | + +### `Format` {#TypeSpec.JsonSchema.Format} + +Well-known JSON Schema formats. + +```typespec +enum TypeSpec.JsonSchema.Format +``` diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/decorators.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/decorators.md new file mode 100644 index 0000000000..d039d2027f --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/decorators.md @@ -0,0 +1,293 @@ +--- +title: "Decorators" +toc_min_heading_level: 2 +toc_max_heading_level: 3 +--- + +# Decorators + +## TypeSpec.JsonSchema + +### `@baseUri` {#@TypeSpec.JsonSchema.baseUri} + +Set the base URI for any schemas emitted from types within this namespace. + +```typespec +@TypeSpec.JsonSchema.baseUri(baseUri: valueof string) +``` + +#### Target + +`Namespace` + +#### Parameters + +| Name | Type | Description | +| ------- | ----------------------- | ------------------------------------------------------------------------ | +| baseUri | `valueof scalar string` | the base URI. Schema IDs inside this namespace are relative to this URI. | + +### `@contains` {#@TypeSpec.JsonSchema.contains} + +Specify that the array must contain at least one instance of the provided type. +Use `@minContains` and `@maxContains` to customize how many instances to expect. + +```typespec +@TypeSpec.JsonSchema.contains(value: unknown) +``` + +#### Target + +`union unknown[] | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | --------------------- | -------------------------------- | +| value | `(intrinsic) unknown` | The type the array must contain. | + +### `@contentEncoding` {#@TypeSpec.JsonSchema.contentEncoding} + +Specify the encoding used for the contents of a string. + +```typespec +@TypeSpec.JsonSchema.contentEncoding(value: valueof string) +``` + +#### Target + +`union string | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ----------------------- | ----------- | +| value | `valueof scalar string` |
| + +### `@contentMediaType` {#@TypeSpec.JsonSchema.contentMediaType} + +Specify the content type of content stored in a string. + +```typespec +@TypeSpec.JsonSchema.contentMediaType(value: valueof string) +``` + +#### Target + +`union string | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ----------------------- | ------------------------------------- | +| value | `valueof scalar string` | the media type of the string contents | + +### `@contentSchema` {#@TypeSpec.JsonSchema.contentSchema} + +Specify the schema for the contents of a string when interpreted according to the content's +media type and encoding. + +```typespec +@TypeSpec.JsonSchema.contentSchema(value: unknown) +``` + +#### Target + +`union string | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | --------------------- | --------------------------------- | +| value | `(intrinsic) unknown` | the schema of the string contents | + +### `@extension` {#@TypeSpec.JsonSchema.extension} + +Specify a custom property to add to the emitted schema. Useful for adding custom keywords +and other vendor-specific extensions. The value will be converted to a schema unless the parameter +is wrapped in the `Json` template. For example, `@extension("x-schema", { x: "value" })` will +emit a JSON schema value for `x-schema`, whereas `@extension("x-schema", Json<{x: "value"}>)` will +emit the raw JSON code `{x: "value"}`. + +```typespec +@TypeSpec.JsonSchema.extension(key: valueof string, value: unknown) +``` + +#### Target + +`(intrinsic) unknown` + +#### Parameters + +| Name | Type | Description | +| ----- | ----------------------- | ------------------------------------------------------------------------------------ | +| key | `valueof scalar string` | the name of the keyword of vendor extension, e.g. `x-custom`. | +| value | `(intrinsic) unknown` | the value of the keyword. Will be converted to a schema unless wrapped in `Json`. | + +### `@id` {#@TypeSpec.JsonSchema.id} + +Specify the JSON Schema id. If this model or a parent namespace has a base URI, +the provided ID will be relative to that base URI. + +By default, the id will be constructed based on the declaration's name. + +```typespec +@TypeSpec.JsonSchema.id(id: valueof string) +``` + +#### Target + +`(intrinsic) unknown` + +#### Parameters + +| Name | Type | Description | +| ---- | ----------------------- | ----------------------------------------------- | +| id | `valueof scalar string` | the id of the JSON schema for this declaration. | + +### `@jsonSchema` {#@TypeSpec.JsonSchema.jsonSchema} + +Add to namespaces to emit models within that namespace to JSON schema. +Add to another declaration to emit that declaration to JSON schema. + +Optionally, for namespaces, you can provide a baseUri, and for other declarations, +you can provide the id. + +```typespec +@TypeSpec.JsonSchema.jsonSchema(baseUri?: valueof string) +``` + +#### Target + +`(intrinsic) unknown` + +#### Parameters + +| Name | Type | Description | +| ------- | ----------------------- | --------------------------------------------------- | +| baseUri | `valueof scalar string` | Schema IDs are interpreted as relative to this URI. | + +### `@maxContains` {#@TypeSpec.JsonSchema.maxContains} + +Specify that the array must contain at most some number of the types provided +by the contains decorator. + +```typespec +@TypeSpec.JsonSchema.maxContains(value: valueof int32) +``` + +#### Target + +`union unknown[] | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ---------------------- | ------------------------------------------------------ | +| value | `valueof scalar int32` | The maximum number of instances the array must contain | + +### `@maxProperties` {#@TypeSpec.JsonSchema.maxProperties} + +Specify the maximum number of properties this object can have. + +```typespec +@TypeSpec.JsonSchema.maxProperties(value: valueof int32) +``` + +#### Target + +`union Record | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ---------------------- | ------------------------------------------------------ | +| value | `valueof scalar int32` | The maximum number of properties this object can have. | + +### `@minContains` {#@TypeSpec.JsonSchema.minContains} + +Specify that the array must contain at least some number of the types provided +by the contains decorator. + +```typespec +@TypeSpec.JsonSchema.minContains(value: valueof int32) +``` + +#### Target + +`union unknown[] | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ---------------------- | ------------------------------------------------------ | +| value | `valueof scalar int32` | The minimum number of instances the array must contain | + +### `@minProperties` {#@TypeSpec.JsonSchema.minProperties} + +Specify the minimum number of properties this object can have. + +```typespec +@TypeSpec.JsonSchema.minProperties(value: valueof int32) +``` + +#### Target + +`union Record | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ---------------------- | ------------------------------------------------------ | +| value | `valueof scalar int32` | The minimum number of properties this object can have. | + +### `@multipleOf` {#@TypeSpec.JsonSchema.multipleOf} + +Specify that the numeric type must be a multiple of some numeric value. + +```typespec +@TypeSpec.JsonSchema.multipleOf(value: valueof numeric) +``` + +#### Target + +`union numeric | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ------------------------ | -------------------------------------------------- | +| value | `valueof scalar numeric` | The numeric type must be a multiple of this value. | + +### `@prefixItems` {#@TypeSpec.JsonSchema.prefixItems} + +Specify that the target array must begin with the provided types. + +```typespec +@TypeSpec.JsonSchema.prefixItems(value: unknown[]) +``` + +#### Target + +`union unknown[] | ModelProperty` + +#### Parameters + +| Name | Type | Description | +| ----- | ----------------- | --------------------------------------------------------------------------- | +| value | `model unknown[]` | a tuple containing the types that must be present at the start of the array | + +### `@uniqueItems` {#@TypeSpec.JsonSchema.uniqueItems} + +Specify that every item in the array must be unique. + +```typespec +@TypeSpec.JsonSchema.uniqueItems +``` + +#### Target + +`union unknown[] | ModelProperty` + +#### Parameters + +None diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/emitter.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/emitter.md new file mode 100644 index 0000000000..0fde819793 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/emitter.md @@ -0,0 +1,57 @@ +--- +title: "Emitter usage" +toc_min_heading_level: 2 +toc_max_heading_level: 3 +--- + +# Emitter usage + +## Usage + +1. Via the command line + +```bash +tsp compile . --emit=@typespec/json-schema +``` + +2. Via the config + +```yaml +emit: + - "@typespec/json-schema" +``` + +## Emitter options + +### `file-type` + +**Type:** `"yaml" | "json"` + +Serialize the schema as either yaml or json. + +### `int64-strategy` + +**Type:** `"string" | "number"` + +How to handle 64 bit integers on the wire. Options are: + +- string: serialize as a string (widely interoperable) +- number: serialize as a number (not widely interoperable) + +### `bundleId` + +**Type:** `string` + +When provided, bundle all the schemas into a single json schema document with schemas under $defs. The provided id is the id of the root document and is also used for the file name. + +### `emitAllModels` + +**Type:** `boolean` + +When true, emit all model declarations to JSON Schema without requiring the @jsonSchema decorator. + +### `emitAllRefs` + +**Type:** `boolean` + +When true, emit all references as json schema files, even if the referenced type does not have the `@jsonSchema` decorator or is not within a namespace with the `@jsonSchema` decorator. diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/index.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/index.md new file mode 100644 index 0000000000..d405fb8e02 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/index.md @@ -0,0 +1,58 @@ +--- +title: Overview +sidebar_position: 0 +toc_min_heading_level: 2 +toc_max_heading_level: 3 +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +TypeSpec library for emitting TypeSpec to JSON Schema and converting JSON Schema to TypeSpec + +## Install + + + + +```bash +npm install @typespec/json-schema +``` + + + + +```bash +npm install --save-peer @typespec/json-schema +``` + + + + +### Emitter usage + +[See documentation](./emitter.md) + +## TypeSpec.JsonSchema + +### Decorators + +- [`@baseUri`](./decorators.md#@TypeSpec.JsonSchema.baseUri) +- [`@contains`](./decorators.md#@TypeSpec.JsonSchema.contains) +- [`@contentEncoding`](./decorators.md#@TypeSpec.JsonSchema.contentEncoding) +- [`@contentMediaType`](./decorators.md#@TypeSpec.JsonSchema.contentMediaType) +- [`@contentSchema`](./decorators.md#@TypeSpec.JsonSchema.contentSchema) +- [`@extension`](./decorators.md#@TypeSpec.JsonSchema.extension) +- [`@id`](./decorators.md#@TypeSpec.JsonSchema.id) +- [`@jsonSchema`](./decorators.md#@TypeSpec.JsonSchema.jsonSchema) +- [`@maxContains`](./decorators.md#@TypeSpec.JsonSchema.maxContains) +- [`@maxProperties`](./decorators.md#@TypeSpec.JsonSchema.maxProperties) +- [`@minContains`](./decorators.md#@TypeSpec.JsonSchema.minContains) +- [`@minProperties`](./decorators.md#@TypeSpec.JsonSchema.minProperties) +- [`@multipleOf`](./decorators.md#@TypeSpec.JsonSchema.multipleOf) +- [`@prefixItems`](./decorators.md#@TypeSpec.JsonSchema.prefixItems) +- [`@uniqueItems`](./decorators.md#@TypeSpec.JsonSchema.uniqueItems) + +### Models + +- [`Json`](./data-types.md#TypeSpec.JsonSchema.Json) diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/_category_.json b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/_category_.json new file mode 100644 index 0000000000..eb101a8378 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/_category_.json @@ -0,0 +1 @@ +{"label":"JS Api","link":{"type":"doc","id":"index"}} \ No newline at end of file diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/classes/JsonSchemaEmitter.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/classes/JsonSchemaEmitter.md new file mode 100644 index 0000000000..6c711bc944 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/classes/JsonSchemaEmitter.md @@ -0,0 +1,2051 @@ +[JS Api](../index.md) / JsonSchemaEmitter + +# Class: JsonSchemaEmitter + +## Hierarchy + +- `TypeEmitter`<`Record`<`string`, `any`\>, [`JSONSchemaEmitterOptions`](../interfaces/JSONSchemaEmitterOptions.md)\> + + ↳ **`JsonSchemaEmitter`** + +## Table of contents + +### Constructors + +- [constructor](JsonSchemaEmitter.md#constructor) + +### Properties + +- [#refToDecl](JsonSchemaEmitter.md##reftodecl) +- [#seenIds](JsonSchemaEmitter.md##seenids) +- [#typeForSourceFile](JsonSchemaEmitter.md##typeforsourcefile) +- [emitter](JsonSchemaEmitter.md#emitter) + +### Methods + +- [#applyConstraints](JsonSchemaEmitter.md##applyconstraints) +- [#checkForDuplicateId](JsonSchemaEmitter.md##checkforduplicateid) +- [#createDeclaration](JsonSchemaEmitter.md##createdeclaration) +- [#fileExtension](JsonSchemaEmitter.md##fileextension) +- [#getCurrentSourceFile](JsonSchemaEmitter.md##getcurrentsourcefile) +- [#getDeclId](JsonSchemaEmitter.md##getdeclid) +- [#isStdType](JsonSchemaEmitter.md##isstdtype) +- [#newFileScope](JsonSchemaEmitter.md##newfilescope) +- [#requiredModelProperties](JsonSchemaEmitter.md##requiredmodelproperties) +- [#scalarBuiltinBaseType](JsonSchemaEmitter.md##scalarbuiltinbasetype) +- [arrayDeclaration](JsonSchemaEmitter.md#arraydeclaration) +- [arrayDeclarationContext](JsonSchemaEmitter.md#arraydeclarationcontext) +- [arrayDeclarationReferenceContext](JsonSchemaEmitter.md#arraydeclarationreferencecontext) +- [arrayLiteral](JsonSchemaEmitter.md#arrayliteral) +- [arrayLiteralContext](JsonSchemaEmitter.md#arrayliteralcontext) +- [arrayLiteralReferenceContext](JsonSchemaEmitter.md#arrayliteralreferencecontext) +- [booleanLiteral](JsonSchemaEmitter.md#booleanliteral) +- [booleanLiteralContext](JsonSchemaEmitter.md#booleanliteralcontext) +- [declarationName](JsonSchemaEmitter.md#declarationname) +- [enumDeclaration](JsonSchemaEmitter.md#enumdeclaration) +- [enumDeclarationContext](JsonSchemaEmitter.md#enumdeclarationcontext) +- [enumMember](JsonSchemaEmitter.md#enummember) +- [enumMemberContext](JsonSchemaEmitter.md#enummembercontext) +- [enumMemberReference](JsonSchemaEmitter.md#enummemberreference) +- [enumMembers](JsonSchemaEmitter.md#enummembers) +- [enumMembersContext](JsonSchemaEmitter.md#enummemberscontext) +- [interfaceDeclaration](JsonSchemaEmitter.md#interfacedeclaration) +- [interfaceDeclarationContext](JsonSchemaEmitter.md#interfacedeclarationcontext) +- [interfaceDeclarationOperations](JsonSchemaEmitter.md#interfacedeclarationoperations) +- [interfaceDeclarationReferenceContext](JsonSchemaEmitter.md#interfacedeclarationreferencecontext) +- [interfaceOperationDeclaration](JsonSchemaEmitter.md#interfaceoperationdeclaration) +- [interfaceOperationDeclarationContext](JsonSchemaEmitter.md#interfaceoperationdeclarationcontext) +- [interfaceOperationDeclarationReferenceContext](JsonSchemaEmitter.md#interfaceoperationdeclarationreferencecontext) +- [intrinsic](JsonSchemaEmitter.md#intrinsic) +- [intrinsicContext](JsonSchemaEmitter.md#intrinsiccontext) +- [modelDeclaration](JsonSchemaEmitter.md#modeldeclaration) +- [modelDeclarationContext](JsonSchemaEmitter.md#modeldeclarationcontext) +- [modelDeclarationReferenceContext](JsonSchemaEmitter.md#modeldeclarationreferencecontext) +- [modelInstantiation](JsonSchemaEmitter.md#modelinstantiation) +- [modelInstantiationContext](JsonSchemaEmitter.md#modelinstantiationcontext) +- [modelInstantiationReferenceContext](JsonSchemaEmitter.md#modelinstantiationreferencecontext) +- [modelLiteral](JsonSchemaEmitter.md#modelliteral) +- [modelLiteralContext](JsonSchemaEmitter.md#modelliteralcontext) +- [modelLiteralReferenceContext](JsonSchemaEmitter.md#modelliteralreferencecontext) +- [modelProperties](JsonSchemaEmitter.md#modelproperties) +- [modelPropertiesContext](JsonSchemaEmitter.md#modelpropertiescontext) +- [modelPropertiesReferenceContext](JsonSchemaEmitter.md#modelpropertiesreferencecontext) +- [modelPropertyLiteral](JsonSchemaEmitter.md#modelpropertyliteral) +- [modelPropertyLiteralContext](JsonSchemaEmitter.md#modelpropertyliteralcontext) +- [modelPropertyLiteralReferenceContext](JsonSchemaEmitter.md#modelpropertyliteralreferencecontext) +- [modelPropertyReference](JsonSchemaEmitter.md#modelpropertyreference) +- [namespace](JsonSchemaEmitter.md#namespace) +- [namespaceContext](JsonSchemaEmitter.md#namespacecontext) +- [namespaceReferenceContext](JsonSchemaEmitter.md#namespacereferencecontext) +- [numericLiteral](JsonSchemaEmitter.md#numericliteral) +- [numericLiteralContext](JsonSchemaEmitter.md#numericliteralcontext) +- [operationDeclaration](JsonSchemaEmitter.md#operationdeclaration) +- [operationDeclarationContext](JsonSchemaEmitter.md#operationdeclarationcontext) +- [operationDeclarationReferenceContext](JsonSchemaEmitter.md#operationdeclarationreferencecontext) +- [operationParameters](JsonSchemaEmitter.md#operationparameters) +- [operationParametersContext](JsonSchemaEmitter.md#operationparameterscontext) +- [operationParametersReferenceContext](JsonSchemaEmitter.md#operationparametersreferencecontext) +- [operationReturnType](JsonSchemaEmitter.md#operationreturntype) +- [operationReturnTypeContext](JsonSchemaEmitter.md#operationreturntypecontext) +- [operationReturnTypeReferenceContext](JsonSchemaEmitter.md#operationreturntypereferencecontext) +- [programContext](JsonSchemaEmitter.md#programcontext) +- [reference](JsonSchemaEmitter.md#reference) +- [scalarDeclaration](JsonSchemaEmitter.md#scalardeclaration) +- [scalarDeclarationContext](JsonSchemaEmitter.md#scalardeclarationcontext) +- [scalarInstantiation](JsonSchemaEmitter.md#scalarinstantiation) +- [scalarInstantiationContext](JsonSchemaEmitter.md#scalarinstantiationcontext) +- [sourceFile](JsonSchemaEmitter.md#sourcefile) +- [stringLiteral](JsonSchemaEmitter.md#stringliteral) +- [stringLiteralContext](JsonSchemaEmitter.md#stringliteralcontext) +- [tupleLiteral](JsonSchemaEmitter.md#tupleliteral) +- [tupleLiteralContext](JsonSchemaEmitter.md#tupleliteralcontext) +- [tupleLiteralReferenceContext](JsonSchemaEmitter.md#tupleliteralreferencecontext) +- [tupleLiteralValues](JsonSchemaEmitter.md#tupleliteralvalues) +- [unionDeclaration](JsonSchemaEmitter.md#uniondeclaration) +- [unionDeclarationContext](JsonSchemaEmitter.md#uniondeclarationcontext) +- [unionDeclarationReferenceContext](JsonSchemaEmitter.md#uniondeclarationreferencecontext) +- [unionInstantiation](JsonSchemaEmitter.md#unioninstantiation) +- [unionInstantiationContext](JsonSchemaEmitter.md#unioninstantiationcontext) +- [unionInstantiationReferenceContext](JsonSchemaEmitter.md#unioninstantiationreferencecontext) +- [unionLiteral](JsonSchemaEmitter.md#unionliteral) +- [unionLiteralContext](JsonSchemaEmitter.md#unionliteralcontext) +- [unionLiteralReferenceContext](JsonSchemaEmitter.md#unionliteralreferencecontext) +- [unionVariant](JsonSchemaEmitter.md#unionvariant) +- [unionVariantContext](JsonSchemaEmitter.md#unionvariantcontext) +- [unionVariantReferenceContext](JsonSchemaEmitter.md#unionvariantreferencecontext) +- [unionVariants](JsonSchemaEmitter.md#unionvariants) +- [unionVariantsContext](JsonSchemaEmitter.md#unionvariantscontext) +- [unionVariantsReferenceContext](JsonSchemaEmitter.md#unionvariantsreferencecontext) +- [writeOutput](JsonSchemaEmitter.md#writeoutput) + +## Constructors + +### constructor + +• **new JsonSchemaEmitter**(`emitter`) + +Constructs a TypeEmitter. Do not use this constructor directly, instead +call `createAssetEmitter` on the emitter context object. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `emitter` | `AssetEmitter`<`Record`<`string`, `any`\>, [`JSONSchemaEmitterOptions`](../interfaces/JSONSchemaEmitterOptions.md)\> | The asset emitter | + +#### Inherited from + +TypeEmitter, JSONSchemaEmitterOptions\>.constructor + +## Properties + +### #refToDecl + +• `Private` **#refToDecl**: `Map`<`string`, `Declaration`<`Record`<`string`, `unknown`\>\>\> + +___ + +### #seenIds + +• `Private` **#seenIds**: `Set`<`unknown`\> + +___ + +### #typeForSourceFile + +• `Private` **#typeForSourceFile**: `Map`<`SourceFile`<`any`\>, [`JsonSchemaDeclaration`](../index.md#jsonschemadeclaration)\> + +___ + +### emitter + +• `Protected` **emitter**: `AssetEmitter`<`Record`<`string`, `any`\>, [`JSONSchemaEmitterOptions`](../interfaces/JSONSchemaEmitterOptions.md)\> + +#### Inherited from + +TypeEmitter.emitter + +## Methods + +### #applyConstraints + +▸ `Private` **#applyConstraints**(`type`, `schema`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | `Model` \| `ModelProperty` \| `Scalar` \| `Enum` \| `Union` | +| `schema` | `ObjectBuilder`<`unknown`\> | + +#### Returns + +`void` + +___ + +### #checkForDuplicateId + +▸ `Private` **#checkForDuplicateId**(`id`): `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `id` | `string` | + +#### Returns + +`string` + +___ + +### #createDeclaration + +▸ `Private` **#createDeclaration**(`type`, `name`, `schema`): `Declaration`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | [`JsonSchemaDeclaration`](../index.md#jsonschemadeclaration) | +| `name` | `string` | +| `schema` | `ObjectBuilder`<`unknown`\> | + +#### Returns + +`Declaration`<`Record`<`string`, `any`\>\> + +___ + +### #fileExtension + +▸ `Private` **#fileExtension**(): ``"json"`` \| ``"yaml"`` + +#### Returns + +``"json"`` \| ``"yaml"`` + +___ + +### #getCurrentSourceFile + +▸ `Private` **#getCurrentSourceFile**(): `SourceFile`<`object`\> + +#### Returns + +`SourceFile`<`object`\> + +___ + +### #getDeclId + +▸ `Private` **#getDeclId**(`type`, `name`): `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | [`JsonSchemaDeclaration`](../index.md#jsonschemadeclaration) | +| `name` | `string` | + +#### Returns + +`string` + +___ + +### #isStdType + +▸ `Private` **#isStdType**(`type`): `boolean` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | `Type` | + +#### Returns + +`boolean` + +___ + +### #newFileScope + +▸ `Private` **#newFileScope**(`type`): `Object` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | [`JsonSchemaDeclaration`](../index.md#jsonschemadeclaration) | + +#### Returns + +`Object` + +| Name | Type | +| :------ | :------ | +| `scope` | `Scope`<`Record`<`string`, `any`\>\> | + +___ + +### #requiredModelProperties + +▸ `Private` **#requiredModelProperties**(`model`): `undefined` \| `string`[] + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`undefined` \| `string`[] + +___ + +### #scalarBuiltinBaseType + +▸ `Private` **#scalarBuiltinBaseType**(`scalar`): ``null`` \| `Scalar` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `scalar` | `Scalar` | + +#### Returns + +``null`` \| `Scalar` + +___ + +### arrayDeclaration + +▸ **arrayDeclaration**(`array`, `name`, `elementType`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `array` | `Model` | +| `name` | `string` | +| `elementType` | `Type` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.arrayDeclaration + +___ + +### arrayDeclarationContext + +▸ **arrayDeclarationContext**(`array`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `array` | `Model` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.arrayDeclarationContext + +___ + +### arrayDeclarationReferenceContext + +▸ **arrayDeclarationReferenceContext**(`array`, `name`, `elementType`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `array` | `Model` | +| `name` | `string` | +| `elementType` | `Type` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.arrayDeclarationReferenceContext + +___ + +### arrayLiteral + +▸ **arrayLiteral**(`array`, `elementType`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `array` | `Model` | +| `elementType` | `Type` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.arrayLiteral + +___ + +### arrayLiteralContext + +▸ **arrayLiteralContext**(`array`, `elementType`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `array` | `Model` | +| `elementType` | `Type` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.arrayLiteralContext + +___ + +### arrayLiteralReferenceContext + +▸ **arrayLiteralReferenceContext**(`array`, `elementType`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `array` | `Model` | +| `elementType` | `Type` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.arrayLiteralReferenceContext + +___ + +### booleanLiteral + +▸ **booleanLiteral**(`boolean`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `boolean` | `BooleanLiteral` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.booleanLiteral + +___ + +### booleanLiteralContext + +▸ **booleanLiteralContext**(`boolean`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `boolean` | `BooleanLiteral` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.booleanLiteralContext + +___ + +### declarationName + +▸ **declarationName**(`declarationType`): `undefined` \| `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `declarationType` | `TypeSpecDeclaration` | + +#### Returns + +`undefined` \| `string` + +#### Inherited from + +TypeEmitter.declarationName + +___ + +### enumDeclaration + +▸ **enumDeclaration**(`en`, `name`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `en` | `Enum` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.enumDeclaration + +___ + +### enumDeclarationContext + +▸ **enumDeclarationContext**(`en`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `en` | `Enum` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.enumDeclarationContext + +___ + +### enumMember + +▸ **enumMember**(`member`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `member` | `EnumMember` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.enumMember + +___ + +### enumMemberContext + +▸ **enumMemberContext**(`member`): `Object` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `member` | `EnumMember` | + +#### Returns + +`Object` + +#### Inherited from + +TypeEmitter.enumMemberContext + +___ + +### enumMemberReference + +▸ **enumMemberReference**(`member`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `member` | `EnumMember` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Overrides + +TypeEmitter.enumMemberReference + +___ + +### enumMembers + +▸ **enumMembers**(`en`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `en` | `Enum` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.enumMembers + +___ + +### enumMembersContext + +▸ **enumMembersContext**(`en`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `en` | `Enum` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.enumMembersContext + +___ + +### interfaceDeclaration + +▸ **interfaceDeclaration**(`iface`, `name`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `iface` | `Interface` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.interfaceDeclaration + +___ + +### interfaceDeclarationContext + +▸ **interfaceDeclarationContext**(`iface`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `iface` | `Interface` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.interfaceDeclarationContext + +___ + +### interfaceDeclarationOperations + +▸ **interfaceDeclarationOperations**(`iface`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `iface` | `Interface` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.interfaceDeclarationOperations + +___ + +### interfaceDeclarationReferenceContext + +▸ **interfaceDeclarationReferenceContext**(`iface`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `iface` | `Interface` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.interfaceDeclarationReferenceContext + +___ + +### interfaceOperationDeclaration + +▸ **interfaceOperationDeclaration**(`operation`, `name`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.interfaceOperationDeclaration + +___ + +### interfaceOperationDeclarationContext + +▸ **interfaceOperationDeclarationContext**(`operation`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.interfaceOperationDeclarationContext + +___ + +### interfaceOperationDeclarationReferenceContext + +▸ **interfaceOperationDeclarationReferenceContext**(`operation`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.interfaceOperationDeclarationReferenceContext + +___ + +### intrinsic + +▸ **intrinsic**(`intrinsic`, `name`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `intrinsic` | `IntrinsicType` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.intrinsic + +___ + +### intrinsicContext + +▸ **intrinsicContext**(`intrinsic`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `intrinsic` | `IntrinsicType` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.intrinsicContext + +___ + +### modelDeclaration + +▸ **modelDeclaration**(`model`, `name`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.modelDeclaration + +___ + +### modelDeclarationContext + +▸ **modelDeclarationContext**(`model`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.modelDeclarationContext + +___ + +### modelDeclarationReferenceContext + +▸ **modelDeclarationReferenceContext**(`model`, `name`): `Context` + +Set reference context for a model declaration. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelDeclarationReferenceContext + +___ + +### modelInstantiation + +▸ **modelInstantiation**(`model`, `name`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | +| `name` | `undefined` \| `string` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Overrides + +TypeEmitter.modelInstantiation + +___ + +### modelInstantiationContext + +▸ **modelInstantiationContext**(`model`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | +| `name` | `undefined` \| `string` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.modelInstantiationContext + +___ + +### modelInstantiationReferenceContext + +▸ **modelInstantiationReferenceContext**(`model`, `name`): `Context` + +Set reference context for a model declaration. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | +| `name` | `undefined` \| `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelInstantiationReferenceContext + +___ + +### modelLiteral + +▸ **modelLiteral**(`model`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.modelLiteral + +___ + +### modelLiteralContext + +▸ **modelLiteralContext**(`model`): `Context` + +Set lexical context for a model literal. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelLiteralContext + +___ + +### modelLiteralReferenceContext + +▸ **modelLiteralReferenceContext**(`model`): `Context` + +Set reference context for a model literal. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelLiteralReferenceContext + +___ + +### modelProperties + +▸ **modelProperties**(`model`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.modelProperties + +___ + +### modelPropertiesContext + +▸ **modelPropertiesContext**(`model`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelPropertiesContext + +___ + +### modelPropertiesReferenceContext + +▸ **modelPropertiesReferenceContext**(`model`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `model` | `Model` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelPropertiesReferenceContext + +___ + +### modelPropertyLiteral + +▸ **modelPropertyLiteral**(`property`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `property` | `ModelProperty` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.modelPropertyLiteral + +___ + +### modelPropertyLiteralContext + +▸ **modelPropertyLiteralContext**(`property`): `Context` + +Set lexical context for a property of a model. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `property` | `ModelProperty` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelPropertyLiteralContext + +___ + +### modelPropertyLiteralReferenceContext + +▸ **modelPropertyLiteralReferenceContext**(`property`): `Context` + +Set reference context for a property of a model. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `property` | `ModelProperty` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.modelPropertyLiteralReferenceContext + +___ + +### modelPropertyReference + +▸ **modelPropertyReference**(`property`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `property` | `ModelProperty` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.modelPropertyReference + +___ + +### namespace + +▸ **namespace**(`namespace`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +Emit a namespace + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `namespace` | `Namespace` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +Emitter output + +#### Inherited from + +TypeEmitter.namespace + +___ + +### namespaceContext + +▸ **namespaceContext**(`namespace`): `Context` + +Set lexical context for a namespace + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `namespace` | `Namespace` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.namespaceContext + +___ + +### namespaceReferenceContext + +▸ **namespaceReferenceContext**(`namespace`): `Context` + +Set reference context for a namespace. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `namespace` | `Namespace` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.namespaceReferenceContext + +___ + +### numericLiteral + +▸ **numericLiteral**(`number`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `number` | `NumericLiteral` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.numericLiteral + +___ + +### numericLiteralContext + +▸ **numericLiteralContext**(`number`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `number` | `NumericLiteral` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.numericLiteralContext + +___ + +### operationDeclaration + +▸ **operationDeclaration**(`operation`, `name`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.operationDeclaration + +___ + +### operationDeclarationContext + +▸ **operationDeclarationContext**(`operation`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.operationDeclarationContext + +___ + +### operationDeclarationReferenceContext + +▸ **operationDeclarationReferenceContext**(`operation`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.operationDeclarationReferenceContext + +___ + +### operationParameters + +▸ **operationParameters**(`operation`, `parameters`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `parameters` | `Model` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.operationParameters + +___ + +### operationParametersContext + +▸ **operationParametersContext**(`operation`, `parameters`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `parameters` | `Model` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.operationParametersContext + +___ + +### operationParametersReferenceContext + +▸ **operationParametersReferenceContext**(`operation`, `parameters`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `parameters` | `Model` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.operationParametersReferenceContext + +___ + +### operationReturnType + +▸ **operationReturnType**(`operation`, `returnType`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `returnType` | `Type` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.operationReturnType + +___ + +### operationReturnTypeContext + +▸ **operationReturnTypeContext**(`operation`, `returnType`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `returnType` | `Type` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.operationReturnTypeContext + +___ + +### operationReturnTypeReferenceContext + +▸ **operationReturnTypeReferenceContext**(`operation`, `returnType`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `operation` | `Operation` | +| `returnType` | `Type` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.operationReturnTypeReferenceContext + +___ + +### programContext + +▸ **programContext**(`program`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.programContext + +___ + +### reference + +▸ **reference**(`targetDeclaration`, `pathUp`, `pathDown`, `commonScope`): `object` \| `EmitEntity`<`Record`<`string`, `unknown`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `targetDeclaration` | `Declaration`<`Record`<`string`, `unknown`\>\> | +| `pathUp` | `Scope`<`Record`<`string`, `unknown`\>\>[] | +| `pathDown` | `Scope`<`Record`<`string`, `unknown`\>\>[] | +| `commonScope` | ``null`` \| `Scope`<`Record`<`string`, `unknown`\>\> | + +#### Returns + +`object` \| `EmitEntity`<`Record`<`string`, `unknown`\>\> + +#### Overrides + +TypeEmitter.reference + +___ + +### scalarDeclaration + +▸ **scalarDeclaration**(`scalar`, `name`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `scalar` | `Scalar` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.scalarDeclaration + +___ + +### scalarDeclarationContext + +▸ **scalarDeclarationContext**(`scalar`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `scalar` | `Scalar` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.scalarDeclarationContext + +___ + +### scalarInstantiation + +▸ **scalarInstantiation**(`scalar`, `name`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `scalar` | `Scalar` | +| `name` | `undefined` \| `string` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.scalarInstantiation + +___ + +### scalarInstantiationContext + +▸ **scalarInstantiationContext**(`scalar`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `scalar` | `Scalar` | +| `name` | `undefined` \| `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.scalarInstantiationContext + +___ + +### sourceFile + +▸ **sourceFile**(`sourceFile`): `EmittedSourceFile` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `sourceFile` | `SourceFile`<`object`\> | + +#### Returns + +`EmittedSourceFile` + +#### Overrides + +TypeEmitter.sourceFile + +___ + +### stringLiteral + +▸ **stringLiteral**(`string`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `string` | `StringLiteral` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.stringLiteral + +___ + +### stringLiteralContext + +▸ **stringLiteralContext**(`string`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `string` | `StringLiteral` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.stringLiteralContext + +___ + +### tupleLiteral + +▸ **tupleLiteral**(`tuple`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tuple` | `Tuple` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.tupleLiteral + +___ + +### tupleLiteralContext + +▸ **tupleLiteralContext**(`tuple`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tuple` | `Tuple` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.tupleLiteralContext + +___ + +### tupleLiteralReferenceContext + +▸ **tupleLiteralReferenceContext**(`tuple`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tuple` | `Tuple` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.tupleLiteralReferenceContext + +___ + +### tupleLiteralValues + +▸ **tupleLiteralValues**(`tuple`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tuple` | `Tuple` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.tupleLiteralValues + +___ + +### unionDeclaration + +▸ **unionDeclaration**(`union`, `name`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.unionDeclaration + +___ + +### unionDeclarationContext + +▸ **unionDeclarationContext**(`union`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`Context` + +#### Overrides + +TypeEmitter.unionDeclarationContext + +___ + +### unionDeclarationReferenceContext + +▸ **unionDeclarationReferenceContext**(`union`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionDeclarationReferenceContext + +___ + +### unionInstantiation + +▸ **unionInstantiation**(`union`, `name`): `EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | +| `name` | `string` | + +#### Returns + +`EmitterOutput`<`Record`<`string`, `any`\>\> + +#### Inherited from + +TypeEmitter.unionInstantiation + +___ + +### unionInstantiationContext + +▸ **unionInstantiationContext**(`union`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionInstantiationContext + +___ + +### unionInstantiationReferenceContext + +▸ **unionInstantiationReferenceContext**(`union`, `name`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | +| `name` | `string` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionInstantiationReferenceContext + +___ + +### unionLiteral + +▸ **unionLiteral**(`union`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.unionLiteral + +___ + +### unionLiteralContext + +▸ **unionLiteralContext**(`union`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionLiteralContext + +___ + +### unionLiteralReferenceContext + +▸ **unionLiteralReferenceContext**(`union`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionLiteralReferenceContext + +___ + +### unionVariant + +▸ **unionVariant**(`variant`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `variant` | `UnionVariant` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.unionVariant + +___ + +### unionVariantContext + +▸ **unionVariantContext**(`union`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionVariantContext + +___ + +### unionVariantReferenceContext + +▸ **unionVariantReferenceContext**(`union`): `Context` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionVariantReferenceContext + +___ + +### unionVariants + +▸ **unionVariants**(`union`): `EmitterOutput`<`object`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `union` | `Union` | + +#### Returns + +`EmitterOutput`<`object`\> + +#### Overrides + +TypeEmitter.unionVariants + +___ + +### unionVariantsContext + +▸ **unionVariantsContext**(): `Context` + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionVariantsContext + +___ + +### unionVariantsReferenceContext + +▸ **unionVariantsReferenceContext**(): `Context` + +#### Returns + +`Context` + +#### Inherited from + +TypeEmitter.unionVariantsReferenceContext + +___ + +### writeOutput + +▸ **writeOutput**(`sourceFiles`): `Promise`<`void`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `sourceFiles` | `SourceFile`<`Record`<`string`, `any`\>\>[] | + +#### Returns + +`Promise`<`void`\> + +#### Overrides + +TypeEmitter.writeOutput diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/index.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/index.md new file mode 100644 index 0000000000..50d608f4aa --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/index.md @@ -0,0 +1,699 @@ +JS Api + +# JS Api + +## Table of contents + +### Namespaces + +- [$validatesRawJson](modules/validatesRawJson.md) + +### Classes + +- [JsonSchemaEmitter](classes/JsonSchemaEmitter.md) + +### Interfaces + +- [ExtensionRecord](interfaces/ExtensionRecord.md) +- [JSONSchemaEmitterOptions](interfaces/JSONSchemaEmitterOptions.md) + +### Type Aliases + +- [JsonSchemaDeclaration](index.md#jsonschemadeclaration) + +### Variables + +- [$lib](index.md#$lib) +- [EmitterOptionsSchema](index.md#emitteroptionsschema) +- [namespace](index.md#namespace) + +### Functions + +- [$baseUri](index.md#$baseuri) +- [$contains](index.md#$contains) +- [$contentEncoding](index.md#$contentencoding) +- [$contentMediaType](index.md#$contentmediatype) +- [$contentSchema](index.md#$contentschema) +- [$extension](index.md#$extension) +- [$id](index.md#$id) +- [$jsonSchema](index.md#$jsonschema) +- [$maxContains](index.md#$maxcontains) +- [$maxProperties](index.md#$maxproperties) +- [$minContains](index.md#$mincontains) +- [$minProperties](index.md#$minproperties) +- [$multipleOf](index.md#$multipleof) +- [$onEmit](index.md#$onemit) +- [$prefixItems](index.md#$prefixitems) +- [$uniqueItems](index.md#$uniqueitems) +- [$validatesRawJson](index.md#$validatesrawjson) +- [findBaseUri](index.md#findbaseuri) +- [getBaseUri](index.md#getbaseuri) +- [getContains](index.md#getcontains) +- [getContentEncoding](index.md#getcontentencoding) +- [getContentMediaType](index.md#getcontentmediatype) +- [getContentSchema](index.md#getcontentschema) +- [getExtensions](index.md#getextensions) +- [getId](index.md#getid) +- [getJsonSchema](index.md#getjsonschema) +- [getJsonSchemaTypes](index.md#getjsonschematypes) +- [getMaxContains](index.md#getmaxcontains) +- [getMaxProperties](index.md#getmaxproperties) +- [getMinContains](index.md#getmincontains) +- [getMinProperties](index.md#getminproperties) +- [getMultipleOf](index.md#getmultipleof) +- [getPrefixItems](index.md#getprefixitems) +- [getUniqueItems](index.md#getuniqueitems) +- [isJsonSchemaDeclaration](index.md#isjsonschemadeclaration) + +## Type Aliases + +### JsonSchemaDeclaration + +Ƭ **JsonSchemaDeclaration**: `Model` \| `Union` \| `Enum` \| `Scalar` + +## Variables + +### $lib + +• `Const` **$lib**: `TypeSpecLibrary`<{ `[code: string]`: `DiagnosticMessages`; }, [`JSONSchemaEmitterOptions`](interfaces/JSONSchemaEmitterOptions.md)\> + +___ + +### EmitterOptionsSchema + +• `Const` **EmitterOptionsSchema**: `JSONSchemaType`<[`JSONSchemaEmitterOptions`](interfaces/JSONSchemaEmitterOptions.md)\> + +___ + +### namespace + +• `Const` **namespace**: ``"TypeSpec.JsonSchema"`` + +## Functions + +### $baseUri + +▸ **$baseUri**(`context`, `target`, `baseUri`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Namespace` | +| `baseUri` | `string` | + +#### Returns + +`void` + +___ + +### $contains + +▸ **$contains**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | +| `value` | `Type` | + +#### Returns + +`void` + +___ + +### $contentEncoding + +▸ **$contentEncoding**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `ModelProperty` \| `StringLiteral` | +| `value` | `string` | + +#### Returns + +`void` + +___ + +### $contentMediaType + +▸ **$contentMediaType**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `ModelProperty` \| `StringLiteral` | +| `value` | `string` | + +#### Returns + +`void` + +___ + +### $contentSchema + +▸ **$contentSchema**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `ModelProperty` \| `StringLiteral` | +| `value` | `Type` | + +#### Returns + +`void` + +___ + +### $extension + +▸ **$extension**(`context`, `target`, `key`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Type` | +| `key` | `string` | +| `value` | `Type` | + +#### Returns + +`void` + +___ + +### $id + +▸ **$id**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `Scalar` \| `Enum` \| `Union` | +| `value` | `string` | + +#### Returns + +`void` + +___ + +### $jsonSchema + +▸ **$jsonSchema**(`context`, `target`, `baseUriOrId?`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Namespace` \| [`JsonSchemaDeclaration`](index.md#jsonschemadeclaration) | +| `baseUriOrId?` | `string` | + +#### Returns + +`void` + +___ + +### $maxContains + +▸ **$maxContains**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | +| `value` | `number` | + +#### Returns + +`void` + +___ + +### $maxProperties + +▸ **$maxProperties**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | +| `value` | `number` | + +#### Returns + +`void` + +___ + +### $minContains + +▸ **$minContains**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | +| `value` | `number` | + +#### Returns + +`void` + +___ + +### $minProperties + +▸ **$minProperties**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | +| `value` | `number` | + +#### Returns + +`void` + +___ + +### $multipleOf + +▸ **$multipleOf**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` | +| `value` | `number` | + +#### Returns + +`void` + +___ + +### $onEmit + +▸ **$onEmit**(`context`): `Promise`<`void`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `EmitContext`<[`JSONSchemaEmitterOptions`](interfaces/JSONSchemaEmitterOptions.md)\> | + +#### Returns + +`Promise`<`void`\> + +___ + +### $prefixItems + +▸ **$prefixItems**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | +| `value` | `Tuple` | + +#### Returns + +`void` + +___ + +### $uniqueItems + +▸ **$uniqueItems**(`context`, `target`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` \| `ModelProperty` | + +#### Returns + +`void` + +___ + +### $validatesRawJson + +▸ **$validatesRawJson**(`context`, `target`, `value`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | `DecoratorContext` | +| `target` | `Model` | +| `value` | `Type` | + +#### Returns + +`void` + +___ + +### findBaseUri + +▸ **findBaseUri**(`program`, `target`): `string` \| `undefined` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Namespace` \| [`JsonSchemaDeclaration`](index.md#jsonschemadeclaration) | + +#### Returns + +`string` \| `undefined` + +___ + +### getBaseUri + +▸ **getBaseUri**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getContains + +▸ **getContains**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getContentEncoding + +▸ **getContentEncoding**(`program`, `target`): `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`string` + +___ + +### getContentMediaType + +▸ **getContentMediaType**(`program`, `target`): `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`string` + +___ + +### getContentSchema + +▸ **getContentSchema**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getExtensions + +▸ **getExtensions**(`program`, `target`): [`ExtensionRecord`](interfaces/ExtensionRecord.md)[] + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +[`ExtensionRecord`](interfaces/ExtensionRecord.md)[] + +___ + +### getId + +▸ **getId**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getJsonSchema + +▸ **getJsonSchema**(`program`, `target`): `boolean` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`boolean` + +___ + +### getJsonSchemaTypes + +▸ **getJsonSchemaTypes**(`program`): (`Namespace` \| `Model`)[] + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | + +#### Returns + +(`Namespace` \| `Model`)[] + +___ + +### getMaxContains + +▸ **getMaxContains**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getMaxProperties + +▸ **getMaxProperties**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getMinContains + +▸ **getMinContains**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getMinProperties + +▸ **getMinProperties**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getMultipleOf + +▸ **getMultipleOf**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### getPrefixItems + +▸ **getPrefixItems**(`program`, `target`): `Tuple` \| `undefined` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`Tuple` \| `undefined` + +___ + +### getUniqueItems + +▸ **getUniqueItems**(`program`, `target`): `any` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | `Type` | + +#### Returns + +`any` + +___ + +### isJsonSchemaDeclaration + +▸ **isJsonSchemaDeclaration**(`program`, `target`): `boolean` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | `Program` | +| `target` | [`JsonSchemaDeclaration`](index.md#jsonschemadeclaration) | + +#### Returns + +`boolean` diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/ExtensionRecord.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/ExtensionRecord.md new file mode 100644 index 0000000000..39d2e562b3 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/ExtensionRecord.md @@ -0,0 +1,22 @@ +[JS Api](../index.md) / ExtensionRecord + +# Interface: ExtensionRecord + +## Table of contents + +### Properties + +- [key](ExtensionRecord.md#key) +- [value](ExtensionRecord.md#value) + +## Properties + +### key + +• **key**: `string` + +___ + +### value + +• **value**: `Type` diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/JSONSchemaEmitterOptions.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/JSONSchemaEmitterOptions.md new file mode 100644 index 0000000000..b94557a1b7 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/interfaces/JSONSchemaEmitterOptions.md @@ -0,0 +1,69 @@ +[JS Api](../index.md) / JSONSchemaEmitterOptions + +# Interface: JSONSchemaEmitterOptions + +## Table of contents + +### Properties + +- [bundleId](JSONSchemaEmitterOptions.md#bundleid) +- [emitAllModels](JSONSchemaEmitterOptions.md#emitallmodels) +- [emitAllRefs](JSONSchemaEmitterOptions.md#emitallrefs) +- [file-type](JSONSchemaEmitterOptions.md#file-type) +- [int64-strategy](JSONSchemaEmitterOptions.md#int64-strategy) + +## Properties + +### bundleId + +• `Optional` **bundleId**: `string` + +When provided, bundle all the schemas into a single json schema document +with schemas under $defs. The provided id is the id of the root document +and is also used for the file name. + +___ + +### emitAllModels + +• `Optional` **emitAllModels**: `boolean` + +When true, emit all model declarations to JSON Schema without requiring +the + +**`Json Schema`** + +decorator. + +___ + +### emitAllRefs + +• `Optional` **emitAllRefs**: `boolean` + +When true, emit all references as json schema files, even if the referenced +type does not have the `@jsonSchema` decorator or is not within a namespace +with the `@jsonSchema` decorator. + +___ + +### file-type + +• `Optional` **file-type**: `FileType` + +Serialize the schema as either yaml or json. + +**`Default`** + +yaml, it not specified infer from the `output-file` extension + +___ + +### int64-strategy + +• `Optional` **int64-strategy**: `Int64Strategy` + +How to handle 64 bit integers on the wire. Options are: + +* string: serialize as a string (widely interoperable) +* number: serialize as a number (not widely interoperable) diff --git a/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/modules/validatesRawJson.md b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/modules/validatesRawJson.md new file mode 100644 index 0000000000..eddedd446b --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/json-schema/reference/js-api/modules/validatesRawJson.md @@ -0,0 +1,15 @@ +[JS Api](../index.md) / $validatesRawJson + +# Namespace: $validatesRawJson + +## Table of contents + +### Variables + +- [namespace](validatesRawJson.md#namespace) + +## Variables + +### namespace + +• **namespace**: `string` diff --git a/packages/website/versioned_docs/version-latest/standard-library/openapi3/reference/emitter.md b/packages/website/versioned_docs/version-latest/standard-library/openapi3/reference/emitter.md index 98e4694a4b..5a859c607a 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/openapi3/reference/emitter.md +++ b/packages/website/versioned_docs/version-latest/standard-library/openapi3/reference/emitter.md @@ -74,3 +74,10 @@ Set the newline character for emitting files. Omit unreachable types. By default all types declared under the service namespace will be included. With this flag on only types references in an operation will be emitted. + +### `include-x-typespec-name` + +**Type:** `"inline-only" | "never"` + +If the generated openapi types should have the `x-typespec-name` extension set with the name of the TypeSpec type that created it. +This extension is meant for debugging and should not be depended on. diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/InvalidEncodingError.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/InvalidEncodingError.md new file mode 100644 index 0000000000..464b8e0ab5 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/InvalidEncodingError.md @@ -0,0 +1,137 @@ +[JS Api](../index.md) / InvalidEncodingError + +# Class: InvalidEncodingError + +## Hierarchy + +- `Error` + + ↳ **`InvalidEncodingError`** + +## Table of contents + +### Constructors + +- [constructor](InvalidEncodingError.md#constructor) + +### Properties + +- [message](InvalidEncodingError.md#message) +- [name](InvalidEncodingError.md#name) +- [stack](InvalidEncodingError.md#stack) +- [prepareStackTrace](InvalidEncodingError.md#preparestacktrace) +- [stackTraceLimit](InvalidEncodingError.md#stacktracelimit) + +### Methods + +- [captureStackTrace](InvalidEncodingError.md#capturestacktrace) + +## Constructors + +### constructor + +• **new InvalidEncodingError**(`encoding`) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `encoding` | `string` | + +#### Overrides + +Error.constructor + +## Properties + +### message + +• **message**: `string` + +#### Inherited from + +Error.message + +___ + +### name + +• **name**: `string` + +#### Inherited from + +Error.name + +___ + +### stack + +• `Optional` **stack**: `string` + +#### Inherited from + +Error.stack + +___ + +### prepareStackTrace + +▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` + +#### Type declaration + +▸ (`err`, `stackTraces`): `any` + +Optional override for formatting stack traces + +**`See`** + +https://v8.dev/docs/stack-trace-api#customizing-stack-traces + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `Error` | +| `stackTraces` | `CallSite`[] | + +##### Returns + +`any` + +#### Inherited from + +Error.prepareStackTrace + +___ + +### stackTraceLimit + +▪ `Static` **stackTraceLimit**: `number` + +#### Inherited from + +Error.stackTraceLimit + +## Methods + +### captureStackTrace + +▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` + +Create .stack property on a target object + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `targetObject` | `object` | +| `constructorOpt?` | `Function` | + +#### Returns + +`void` + +#### Inherited from + +Error.captureStackTrace diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/TwoLevelMap.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/TwoLevelMap.md index 603695e8d9..1c21f1a4bc 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/TwoLevelMap.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/classes/TwoLevelMap.md @@ -98,7 +98,7 @@ Map\>.constructor #### Inherited from -Map.\_\_@toStringTag@35 +Map.[toStringTag] ___ @@ -118,7 +118,7 @@ ___ #### Inherited from -Map.\_\_@species@612 +Map.[species] ## Methods @@ -134,7 +134,7 @@ Returns an iterable of entries in the map. #### Inherited from -Map.\_\_@iterator@95 +Map.[iterator] ___ diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/index.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/index.md index 622d4691f3..113c8b2fd0 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/index.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/index.md @@ -119,6 +119,7 @@ JS Api - [DuplicateTracker](classes/DuplicateTracker.md) - [EventEmitter](classes/EventEmitter.md) +- [InvalidEncodingError](classes/InvalidEncodingError.md) - [ProjectionError](classes/ProjectionError.md) - [Queue](classes/Queue.md) - [ResolveModuleError](classes/ResolveModuleError.md) @@ -139,6 +140,7 @@ JS Api - [CallableMessage](interfaces/CallableMessage.md) - [Checker](interfaces/Checker.md) - [CompilerHost](interfaces/CompilerHost.md) +- [CompilerLocationContext](interfaces/CompilerLocationContext.md) - [DeclarationNode](interfaces/DeclarationNode.md) - [DecoratedType](interfaces/DecoratedType.md) - [Decorator](interfaces/Decorator.md) @@ -177,6 +179,7 @@ JS Api - [EnumStatementNode](interfaces/EnumStatementNode.md) - [ErrorType](interfaces/ErrorType.md) - [ExternKeywordNode](interfaces/ExternKeywordNode.md) +- [FileLibraryMetadata](interfaces/FileLibraryMetadata.md) - [FunctionDeclarationStatementNode](interfaces/FunctionDeclarationStatementNode.md) - [FunctionParameter](interfaces/FunctionParameter.md) - [FunctionParameterNode](interfaces/FunctionParameterNode.md) @@ -191,8 +194,15 @@ JS Api - [InvalidStatementNode](interfaces/InvalidStatementNode.md) - [JSONSchemaValidator](interfaces/JSONSchemaValidator.md) - [JsSourceFileNode](interfaces/JsSourceFileNode.md) +- [LibraryInstance](interfaces/LibraryInstance.md) +- [LibraryLocationContext](interfaces/LibraryLocationContext.md) - [LineAndCharacter](interfaces/LineAndCharacter.md) - [LineComment](interfaces/LineComment.md) +- [LinterDefinition](interfaces/LinterDefinition.md) +- [LinterRule](interfaces/LinterRule.md) +- [LinterRuleContext](interfaces/LinterRuleContext.md) +- [LinterRuleDefinition](interfaces/LinterRuleDefinition.md) +- [LinterRuleSet](interfaces/LinterRuleSet.md) - [ListOperationOptions](interfaces/ListOperationOptions.md) - [LogInfo](interfaces/LogInfo.md) - [LogSink](interfaces/LogSink.md) @@ -204,6 +214,7 @@ JS Api - [ModelPropertyNode](interfaces/ModelPropertyNode.md) - [ModelSpreadPropertyNode](interfaces/ModelSpreadPropertyNode.md) - [ModelStatementNode](interfaces/ModelStatementNode.md) +- [ModuleLibraryMetadata](interfaces/ModuleLibraryMetadata.md) - [Namespace](interfaces/Namespace.md) - [NamespaceNavigationOptions](interfaces/NamespaceNavigationOptions.md) - [NamespaceStatementNode](interfaces/NamespaceStatementNode.md) @@ -222,6 +233,7 @@ JS Api - [ParseOptions](interfaces/ParseOptions.md) - [ProcessedLog](interfaces/ProcessedLog.md) - [Program](interfaces/Program.md) +- [ProjectLocationContext](interfaces/ProjectLocationContext.md) - [ProjectedNameView](interfaces/ProjectedNameView.md) - [ProjectedProgram](interfaces/ProjectedProgram.md) - [Projection](interfaces/Projection.md) @@ -281,6 +293,7 @@ JS Api - [Sym](interfaces/Sym.md) - [SymbolLinks](interfaces/SymbolLinks.md) - [SymbolTable](interfaces/SymbolTable.md) +- [SyntheticLocationContext](interfaces/SyntheticLocationContext.md) - [TemplateDeclarationNode](interfaces/TemplateDeclarationNode.md) - [TemplateParameter](interfaces/TemplateParameter.md) - [TemplateParameterDeclarationNode](interfaces/TemplateParameterDeclarationNode.md) @@ -344,8 +357,13 @@ JS Api - [InferredTypeSpecValue](index.md#inferredtypespecvalue) - [IntrinsicScalarName](index.md#intrinsicscalarname) - [JSONSchemaType](index.md#jsonschematype) +- [LibraryMetadata](index.md#librarymetadata) +- [LinterRuleDiagnosticFormat](index.md#linterrulediagnosticformat) +- [LinterRuleDiagnosticReport](index.md#linterrulediagnosticreport) +- [LinterRuleDiagnosticReportWithoutTarget](index.md#linterrulediagnosticreportwithouttarget) - [LiteralNode](index.md#literalnode) - [LiteralType](index.md#literaltype) +- [LocationContext](index.md#locationcontext) - [LogLevel](index.md#loglevel) - [MarshalledValue](index.md#marshalledvalue) - [MemberContainerNode](index.md#membercontainernode) @@ -364,6 +382,7 @@ JS Api - [ProjectionExpression](index.md#projectionexpression) - [ProjectionStatementItem](index.md#projectionstatementitem) - [ReferenceExpression](index.md#referenceexpression) +- [RuleRef](index.md#ruleref) - [ScopeNode](index.md#scopenode) - [SemanticNodeListener](index.md#semanticnodelistener) - [SourceFileKind](index.md#sourcefilekind) @@ -410,6 +429,7 @@ JS Api - [createDiagnosticCreator](index.md#creatediagnosticcreator) - [createProjectedNameProgram](index.md#createprojectednameprogram) - [createRekeyableMap](index.md#createrekeyablemap) +- [createRule](index.md#createrule) - [createScanner](index.md#createscanner) - [createServer](index.md#createserver) - [createSourceFile](index.md#createsourcefile) @@ -432,6 +452,7 @@ JS Api - [getFirstAncestor](index.md#getfirstancestor) - [getFullyQualifiedSymbolName](index.md#getfullyqualifiedsymbolname) - [getIdentifierContext](index.md#getidentifiercontext) +- [getLocationContext](index.md#getlocationcontext) - [getNamespaceFullName](index.md#getnamespacefullname) - [getNodeAtPosition](index.md#getnodeatposition) - [getNormalizedAbsolutePath](index.md#getnormalizedabsolutepath) @@ -1373,6 +1394,51 @@ ___ ___ +### LibraryMetadata + +Ƭ **LibraryMetadata**: [`FileLibraryMetadata`](interfaces/FileLibraryMetadata.md) \| [`ModuleLibraryMetadata`](interfaces/ModuleLibraryMetadata.md) + +___ + +### LinterRuleDiagnosticFormat + +Ƭ **LinterRuleDiagnosticFormat**<`T`, `M`\>: `T`[`M`] extends [`CallableMessage`](interfaces/CallableMessage.md) ? { `format`: `Record`<`A`[`number`], `string`\> } : `Record`<`string`, `unknown`\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | extends [`DiagnosticMessages`](interfaces/DiagnosticMessages.md) | +| `M` | extends keyof `T` = ``"default"`` | + +___ + +### LinterRuleDiagnosticReport + +Ƭ **LinterRuleDiagnosticReport**<`T`, `M`\>: [`LinterRuleDiagnosticReportWithoutTarget`](index.md#linterrulediagnosticreportwithouttarget)<`T`, `M`\> & { `target`: [`DiagnosticTarget`](index.md#diagnostictarget) \| typeof [`NoTarget`](index.md#notarget) } + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | extends [`DiagnosticMessages`](interfaces/DiagnosticMessages.md) | +| `M` | extends keyof `T` = ``"default"`` | + +___ + +### LinterRuleDiagnosticReportWithoutTarget + +Ƭ **LinterRuleDiagnosticReportWithoutTarget**<`T`, `M`\>: { `messageId?`: `M` } & [`LinterRuleDiagnosticFormat`](index.md#linterrulediagnosticformat)<`T`, `M`\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | extends [`DiagnosticMessages`](interfaces/DiagnosticMessages.md) | +| `M` | extends keyof `T` = ``"default"`` | + +___ + ### LiteralNode Ƭ **LiteralNode**: [`StringLiteralNode`](interfaces/StringLiteralNode.md) \| [`NumericLiteralNode`](interfaces/NumericLiteralNode.md) \| [`BooleanLiteralNode`](interfaces/BooleanLiteralNode.md) @@ -1385,6 +1451,18 @@ ___ ___ +### LocationContext + +Ƭ **LocationContext**: [`ProjectLocationContext`](interfaces/ProjectLocationContext.md) \| [`CompilerLocationContext`](interfaces/CompilerLocationContext.md) \| [`SyntheticLocationContext`](interfaces/SyntheticLocationContext.md) \| [`LibraryLocationContext`](interfaces/LibraryLocationContext.md) + +Represent a location context in the mind of the compiler. This can be: +- the user project +- a library +- the compiler(standard library) +- virtual + +___ + ### LogLevel Ƭ **LogLevel**: ``"trace"`` \| ``"warning"`` \| ``"error"`` @@ -1537,6 +1615,14 @@ ___ ___ +### RuleRef + +Ƭ **RuleRef**: \`${string}/${string}\` + +Reference to a rule. In this format `:` + +___ + ### ScopeNode Ƭ **ScopeNode**: [`NamespaceStatementNode`](interfaces/NamespaceStatementNode.md) \| [`ModelStatementNode`](interfaces/ModelStatementNode.md) \| [`InterfaceStatementNode`](interfaces/InterfaceStatementNode.md) \| [`AliasStatementNode`](interfaces/AliasStatementNode.md) \| [`TypeSpecScriptNode`](interfaces/TypeSpecScriptNode.md) \| [`JsSourceFileNode`](interfaces/JsSourceFileNode.md) \| [`ProjectionLambdaExpressionNode`](interfaces/ProjectionLambdaExpressionNode.md) \| [`ProjectionNode`](interfaces/ProjectionNode.md) @@ -1754,7 +1840,7 @@ Assert that the input type has one of the kinds provided | Name | Type | | :------ | :------ | -| `TKind` | extends (``"Model"`` \| ``"ModelProperty"`` \| ``"Scalar"`` \| ``"Interface"`` \| ``"Enum"`` \| ``"EnumMember"`` \| ``"TemplateParameter"`` \| ``"Namespace"`` \| ``"Operation"`` \| ``"String"`` \| ``"Number"`` \| ``"Boolean"`` \| ``"Tuple"`` \| ``"Union"`` \| ``"UnionVariant"`` \| ``"Intrinsic"`` \| ``"Function"`` \| ``"Decorator"`` \| ``"FunctionParameter"`` \| ``"Object"`` \| ``"Projection"``)[] | +| `TKind` | extends (``"Model"`` \| ``"Scalar"`` \| ``"Interface"`` \| ``"Enum"`` \| ``"Operation"`` \| ``"Union"`` \| ``"Intrinsic"`` \| ``"ModelProperty"`` \| ``"EnumMember"`` \| ``"TemplateParameter"`` \| ``"Namespace"`` \| ``"String"`` \| ``"Number"`` \| ``"Boolean"`` \| ``"Tuple"`` \| ``"UnionVariant"`` \| ``"Function"`` \| ``"Decorator"`` \| ``"FunctionParameter"`` \| ``"Object"`` \| ``"Projection"``)[] | #### Parameters @@ -2039,6 +2125,31 @@ ___ ___ +### createRule + +▸ **createRule**<`N`, `T`\>(`definition`): [`LinterRuleDefinition`](interfaces/LinterRuleDefinition.md)<`N`, `T`\> + +Create a new linter rule. + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `N` | extends `string` | +| `T` | extends [`DiagnosticMessages`](interfaces/DiagnosticMessages.md) | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `definition` | [`LinterRuleDefinition`](interfaces/LinterRuleDefinition.md)<`N`, `T`\> | + +#### Returns + +[`LinterRuleDefinition`](interfaces/LinterRuleDefinition.md)<`N`, `T`\> + +___ + ### createScanner ▸ **createScanner**(`source`, `diagnosticHandler`): [`Scanner`](interfaces/Scanner.md) @@ -2515,6 +2626,23 @@ ___ ___ +### getLocationContext + +▸ **getLocationContext**(`program`, `type`): [`LocationContext`](index.md#locationcontext) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `program` | [`Program`](interfaces/Program.md) | +| `type` | [`DiagnosticTarget`](index.md#diagnostictarget) | + +#### Returns + +[`LocationContext`](index.md#locationcontext) + +___ + ### getNamespaceFullName ▸ **getNamespaceFullName**(`type`, `options?`): `string` @@ -2884,7 +3012,7 @@ ___ | Name | Type | | :------ | :------ | -| `target` | `undefined` \| [`DiagnosticTarget`](index.md#diagnostictarget) \| typeof [`NoTarget`](index.md#notarget) | +| `target` | `undefined` \| typeof [`NoTarget`](index.md#notarget) \| [`DiagnosticTarget`](index.md#diagnostictarget) | #### Returns @@ -3784,7 +3912,7 @@ Report a deprecated diagnostic. | :------ | :------ | :------ | | `program` | [`Program`](interfaces/Program.md) | TypeSpec Program. | | `message` | `string` | Message describing the deprecation. | -| `target` | [`DiagnosticTarget`](index.md#diagnostictarget) \| typeof [`NoTarget`](index.md#notarget) | Target of the deprecation. | +| `target` | typeof [`NoTarget`](index.md#notarget) \| [`DiagnosticTarget`](index.md#diagnostictarget) | Target of the deprecation. | #### Returns @@ -4050,7 +4178,7 @@ createDecoratorDefinition#validate instead. | Name | Type | | :------ | :------ | -| `K` | extends ``"Model"`` \| ``"ModelProperty"`` \| ``"Scalar"`` \| ``"Interface"`` \| ``"Enum"`` \| ``"EnumMember"`` \| ``"TemplateParameter"`` \| ``"Namespace"`` \| ``"Operation"`` \| ``"String"`` \| ``"Number"`` \| ``"Boolean"`` \| ``"Tuple"`` \| ``"Union"`` \| ``"UnionVariant"`` \| ``"Intrinsic"`` \| ``"Function"`` \| ``"Decorator"`` \| ``"FunctionParameter"`` \| ``"Object"`` \| ``"Projection"`` | +| `K` | extends ``"Model"`` \| ``"Scalar"`` \| ``"Interface"`` \| ``"Enum"`` \| ``"Operation"`` \| ``"Union"`` \| ``"Intrinsic"`` \| ``"ModelProperty"`` \| ``"EnumMember"`` \| ``"TemplateParameter"`` \| ``"Namespace"`` \| ``"String"`` \| ``"Number"`` \| ``"Boolean"`` \| ``"Tuple"`` \| ``"UnionVariant"`` \| ``"Function"`` \| ``"Decorator"`` \| ``"FunctionParameter"`` \| ``"Object"`` \| ``"Projection"`` | #### Parameters diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AliasStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AliasStatementNode.md index c69b1acd33..2dffdb47ad 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AliasStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AliasStatementNode.md @@ -106,7 +106,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AugmentDecoratorStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AugmentDecoratorStatementNode.md index 5ff22319c8..6b69d1c242 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AugmentDecoratorStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/AugmentDecoratorStatementNode.md @@ -87,7 +87,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/BlockComment.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/BlockComment.md index bc0c35cc3f..12bc1d2f4d 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/BlockComment.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/BlockComment.md @@ -14,6 +14,7 @@ - [end](BlockComment.md#end) - [kind](BlockComment.md#kind) +- [parsedAsDocs](BlockComment.md#parsedasdocs) - [pos](BlockComment.md#pos) ## Properties @@ -37,6 +38,14 @@ ___ ___ +### parsedAsDocs + +• `Optional` `Readonly` **parsedAsDocs**: `boolean` + +If that comment was parsed as a doc comment. If parserOptions.docs=false this will always be false. + +___ + ### pos • `Readonly` **pos**: `number` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerHost.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerHost.md index ad054a3bea..414c1d071c 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerHost.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerHost.md @@ -168,6 +168,8 @@ ___ ▸ **readFile**(`path`): `Promise`<[`SourceFile`](SourceFile.md)\> +read a utf-8 or utf-8 with bom encoded file + #### Parameters | Name | Type | @@ -184,6 +186,8 @@ ___ ▸ **readUrl**(`url`): `Promise`<[`SourceFile`](SourceFile.md)\> +read a file at the given url. + #### Parameters | Name | Type | diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerLocationContext.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerLocationContext.md new file mode 100644 index 0000000000..658a4a9cfc --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/CompilerLocationContext.md @@ -0,0 +1,17 @@ +[JS Api](../index.md) / CompilerLocationContext + +# Interface: CompilerLocationContext + +Built-in + +## Table of contents + +### Properties + +- [type](CompilerLocationContext.md#type) + +## Properties + +### type + +• **type**: ``"compiler"`` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/DecoratorDeclarationStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/DecoratorDeclarationStatementNode.md index 2665d7d862..0377837e29 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/DecoratorDeclarationStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/DecoratorDeclarationStatementNode.md @@ -123,7 +123,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Diagnostic.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Diagnostic.md index ee9073e89b..1434b02e3c 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Diagnostic.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Diagnostic.md @@ -33,4 +33,4 @@ ___ ### target -• **target**: [`DiagnosticTarget`](../index.md#diagnostictarget) \| typeof [`NoTarget`](../index.md#notarget) +• **target**: typeof [`NoTarget`](../index.md#notarget) \| [`DiagnosticTarget`](../index.md#diagnostictarget) diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/EnumStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/EnumStatementNode.md index a21b931ca4..962c32280d 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/EnumStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/EnumStatementNode.md @@ -105,7 +105,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FileLibraryMetadata.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FileLibraryMetadata.md new file mode 100644 index 0000000000..3cd1a46585 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FileLibraryMetadata.md @@ -0,0 +1,60 @@ +[JS Api](../index.md) / FileLibraryMetadata + +# Interface: FileLibraryMetadata + +## Hierarchy + +- `LibraryMetadataBase` + + ↳ **`FileLibraryMetadata`** + +## Table of contents + +### Properties + +- [bugs](FileLibraryMetadata.md#bugs) +- [homepage](FileLibraryMetadata.md#homepage) +- [name](FileLibraryMetadata.md#name) +- [type](FileLibraryMetadata.md#type) + +## Properties + +### bugs + +• `Optional` **bugs**: `Object` + +#### Type declaration + +| Name | Type | Description | +| :------ | :------ | :------ | +| `url?` | `string` | Url where to file bugs for this library. | + +#### Inherited from + +LibraryMetadataBase.bugs + +___ + +### homepage + +• `Optional` **homepage**: `string` + +Library homepage. + +#### Inherited from + +LibraryMetadataBase.homepage + +___ + +### name + +• `Optional` **name**: `string` + +Library name as specified in the package.json or in exported $lib. + +___ + +### type + +• **type**: ``"file"`` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FunctionDeclarationStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FunctionDeclarationStatementNode.md index 2bb1ae7bb0..050af43045 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FunctionDeclarationStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/FunctionDeclarationStatementNode.md @@ -121,7 +121,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/InterfaceStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/InterfaceStatementNode.md index 6137dab1fd..7033b4c98b 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/InterfaceStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/InterfaceStatementNode.md @@ -126,7 +126,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryInstance.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryInstance.md new file mode 100644 index 0000000000..c31d56abf8 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryInstance.md @@ -0,0 +1,36 @@ +[JS Api](../index.md) / LibraryInstance + +# Interface: LibraryInstance + +## Table of contents + +### Properties + +- [definition](LibraryInstance.md#definition) +- [entrypoint](LibraryInstance.md#entrypoint) +- [metadata](LibraryInstance.md#metadata) +- [module](LibraryInstance.md#module) + +## Properties + +### definition + +• `Optional` **definition**: [`TypeSpecLibrary`](TypeSpecLibrary.md)<`any`, `Record`<`string`, `never`\>\> + +___ + +### entrypoint + +• **entrypoint**: `undefined` \| [`JsSourceFileNode`](JsSourceFileNode.md) + +___ + +### metadata + +• **metadata**: [`LibraryMetadata`](../index.md#librarymetadata) + +___ + +### module + +• **module**: [`ModuleResolutionResult`](../index.md#moduleresolutionresult) diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryLocationContext.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryLocationContext.md new file mode 100644 index 0000000000..bf23639748 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LibraryLocationContext.md @@ -0,0 +1,24 @@ +[JS Api](../index.md) / LibraryLocationContext + +# Interface: LibraryLocationContext + +Defined in a library. + +## Table of contents + +### Properties + +- [metadata](LibraryLocationContext.md#metadata) +- [type](LibraryLocationContext.md#type) + +## Properties + +### metadata + +• **metadata**: [`ModuleLibraryMetadata`](ModuleLibraryMetadata.md) + +___ + +### type + +• **type**: ``"library"`` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterDefinition.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterDefinition.md new file mode 100644 index 0000000000..925a643095 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterDefinition.md @@ -0,0 +1,22 @@ +[JS Api](../index.md) / LinterDefinition + +# Interface: LinterDefinition + +## Table of contents + +### Properties + +- [ruleSets](LinterDefinition.md#rulesets) +- [rules](LinterDefinition.md#rules) + +## Properties + +### ruleSets + +• `Optional` **ruleSets**: `Record`<`string`, [`LinterRuleSet`](LinterRuleSet.md)\> + +___ + +### rules + +• **rules**: [`LinterRuleDefinition`](LinterRuleDefinition.md)<`string`, [`DiagnosticMessages`](DiagnosticMessages.md)\>[] diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRule.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRule.md new file mode 100644 index 0000000000..7e4c4eb90e --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRule.md @@ -0,0 +1,100 @@ +[JS Api](../index.md) / LinterRule + +# Interface: LinterRule + +Resolved instance of a linter rule that will run. + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `N` | extends `string` | +| `DM` | extends [`DiagnosticMessages`](DiagnosticMessages.md) | + +## Hierarchy + +- [`LinterRuleDefinition`](LinterRuleDefinition.md)<`N`, `DM`\> + + ↳ **`LinterRule`** + +## Table of contents + +### Properties + +- [description](LinterRule.md#description) +- [id](LinterRule.md#id) +- [messages](LinterRule.md#messages) +- [name](LinterRule.md#name) +- [severity](LinterRule.md#severity) + +### Methods + +- [create](LinterRule.md#create) + +## Properties + +### description + +• **description**: `string` + +#### Inherited from + +[LinterRuleDefinition](LinterRuleDefinition.md).[description](LinterRuleDefinition.md#description) + +___ + +### id + +• **id**: `string` + +Expanded rule id in format `:` + +___ + +### messages + +• **messages**: `DM` + +#### Inherited from + +[LinterRuleDefinition](LinterRuleDefinition.md).[messages](LinterRuleDefinition.md#messages) + +___ + +### name + +• **name**: `N` + +#### Inherited from + +[LinterRuleDefinition](LinterRuleDefinition.md).[name](LinterRuleDefinition.md#name) + +___ + +### severity + +• **severity**: ``"warning"`` + +#### Inherited from + +[LinterRuleDefinition](LinterRuleDefinition.md).[severity](LinterRuleDefinition.md#severity) + +## Methods + +### create + +▸ **create**(`context`): [`SemanticNodeListener`](../index.md#semanticnodelistener) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | [`LinterRuleContext`](LinterRuleContext.md)<`DM`\> | + +#### Returns + +[`SemanticNodeListener`](../index.md#semanticnodelistener) + +#### Inherited from + +[LinterRuleDefinition](LinterRuleDefinition.md).[create](LinterRuleDefinition.md#create) diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleContext.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleContext.md new file mode 100644 index 0000000000..3456ad6be7 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleContext.md @@ -0,0 +1,47 @@ +[JS Api](../index.md) / LinterRuleContext + +# Interface: LinterRuleContext + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `DM` | extends [`DiagnosticMessages`](DiagnosticMessages.md) | + +## Table of contents + +### Properties + +- [program](LinterRuleContext.md#program) + +### Methods + +- [reportDiagnostic](LinterRuleContext.md#reportdiagnostic) + +## Properties + +### program + +• `Readonly` **program**: [`Program`](Program.md) + +## Methods + +### reportDiagnostic + +▸ **reportDiagnostic**<`M`\>(`diag`): `void` + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `M` | extends `string` \| `number` \| `symbol` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `diag` | [`LinterRuleDiagnosticReport`](../index.md#linterrulediagnosticreport)<`DM`, `M`\> | + +#### Returns + +`void` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleDefinition.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleDefinition.md new file mode 100644 index 0000000000..0c61b6c791 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleDefinition.md @@ -0,0 +1,69 @@ +[JS Api](../index.md) / LinterRuleDefinition + +# Interface: LinterRuleDefinition + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `N` | extends `string` | +| `DM` | extends [`DiagnosticMessages`](DiagnosticMessages.md) | + +## Hierarchy + +- **`LinterRuleDefinition`** + + ↳ [`LinterRule`](LinterRule.md) + +## Table of contents + +### Properties + +- [description](LinterRuleDefinition.md#description) +- [messages](LinterRuleDefinition.md#messages) +- [name](LinterRuleDefinition.md#name) +- [severity](LinterRuleDefinition.md#severity) + +### Methods + +- [create](LinterRuleDefinition.md#create) + +## Properties + +### description + +• **description**: `string` + +___ + +### messages + +• **messages**: `DM` + +___ + +### name + +• **name**: `N` + +___ + +### severity + +• **severity**: ``"warning"`` + +## Methods + +### create + +▸ **create**(`context`): [`SemanticNodeListener`](../index.md#semanticnodelistener) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `context` | [`LinterRuleContext`](LinterRuleContext.md)<`DM`\> | + +#### Returns + +[`SemanticNodeListener`](../index.md#semanticnodelistener) diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleSet.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleSet.md new file mode 100644 index 0000000000..46bd47c674 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LinterRuleSet.md @@ -0,0 +1,35 @@ +[JS Api](../index.md) / LinterRuleSet + +# Interface: LinterRuleSet + +## Table of contents + +### Properties + +- [disable](LinterRuleSet.md#disable) +- [enable](LinterRuleSet.md#enable) +- [extends](LinterRuleSet.md#extends) + +## Properties + +### disable + +• `Optional` **disable**: `Record`<\`${string}/${string}\`, `string`\> + +Rules to disable. A rule CANNOT be in enable and disable map. + +___ + +### enable + +• `Optional` **enable**: `Record`<\`${string}/${string}\`, `boolean`\> + +Rules to enable/configure + +___ + +### extends + +• `Optional` **extends**: \`${string}/${string}\`[] + +Other ruleset this ruleset extends diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LogInfo.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LogInfo.md index 06b872ff61..af373dbfb4 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LogInfo.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/LogInfo.md @@ -33,4 +33,4 @@ ___ ### target -• `Optional` **target**: [`DiagnosticTarget`](../index.md#diagnostictarget) \| typeof [`NoTarget`](../index.md#notarget) +• `Optional` **target**: typeof [`NoTarget`](../index.md#notarget) \| [`DiagnosticTarget`](../index.md#diagnostictarget) diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModelStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModelStatementNode.md index 3c5cd0ac98..35aaf3db1a 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModelStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModelStatementNode.md @@ -127,7 +127,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModuleLibraryMetadata.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModuleLibraryMetadata.md new file mode 100644 index 0000000000..0c21b7b0fe --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ModuleLibraryMetadata.md @@ -0,0 +1,62 @@ +[JS Api](../index.md) / ModuleLibraryMetadata + +# Interface: ModuleLibraryMetadata + +Data for a library. Either loaded via a node_modules package or a standalone js file + +## Hierarchy + +- `LibraryMetadataBase` + + ↳ **`ModuleLibraryMetadata`** + +## Table of contents + +### Properties + +- [bugs](ModuleLibraryMetadata.md#bugs) +- [homepage](ModuleLibraryMetadata.md#homepage) +- [name](ModuleLibraryMetadata.md#name) +- [type](ModuleLibraryMetadata.md#type) + +## Properties + +### bugs + +• `Optional` **bugs**: `Object` + +#### Type declaration + +| Name | Type | Description | +| :------ | :------ | :------ | +| `url?` | `string` | Url where to file bugs for this library. | + +#### Inherited from + +LibraryMetadataBase.bugs + +___ + +### homepage + +• `Optional` **homepage**: `string` + +Library homepage. + +#### Inherited from + +LibraryMetadataBase.homepage + +___ + +### name + +• **name**: `string` + +Library name as specified in the package.json or in exported $lib. + +___ + +### type + +• **type**: ``"module"`` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/NamespaceStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/NamespaceStatementNode.md index a51599cc79..eda4db887d 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/NamespaceStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/NamespaceStatementNode.md @@ -106,7 +106,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/OperationStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/OperationStatementNode.md index 0f69709f41..bdcb123e9b 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/OperationStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/OperationStatementNode.md @@ -113,7 +113,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`InterfaceStatementNode`](InterfaceStatementNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`InterfaceStatementNode`](InterfaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Program.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Program.md index e4e630a18e..9a801d3af5 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Program.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/Program.md @@ -30,6 +30,7 @@ - [getGlobalNamespaceType](Program.md#getglobalnamespacetype) - [getOption](Program.md#getoption) +- [getSourceFileLocationContext](Program.md#getsourcefilelocationcontext) - [hasError](Program.md#haserror) - [loadTypeSpecScript](Program.md#loadtypespecscript) - [onValidate](Program.md#onvalidate) @@ -151,6 +152,24 @@ ___ ___ +### getSourceFileLocationContext + +▸ **getSourceFileLocationContext**(`sourceFile`): [`LocationContext`](../index.md#locationcontext) + +Return location context of the given source file. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `sourceFile` | [`SourceFile`](SourceFile.md) | + +#### Returns + +[`LocationContext`](../index.md#locationcontext) + +___ + ### hasError ▸ **hasError**(): `boolean` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectLocationContext.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectLocationContext.md new file mode 100644 index 0000000000..42d2e673e7 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectLocationContext.md @@ -0,0 +1,17 @@ +[JS Api](../index.md) / ProjectLocationContext + +# Interface: ProjectLocationContext + +Defined in the user project. + +## Table of contents + +### Properties + +- [type](ProjectLocationContext.md#type) + +## Properties + +### type + +• **type**: ``"project"`` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectedProgram.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectedProgram.md index 467c2b1bca..5e3b5c96a9 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectedProgram.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectedProgram.md @@ -31,6 +31,7 @@ - [getGlobalNamespaceType](ProjectedProgram.md#getglobalnamespacetype) - [getOption](ProjectedProgram.md#getoption) +- [getSourceFileLocationContext](ProjectedProgram.md#getsourcefilelocationcontext) - [hasError](ProjectedProgram.md#haserror) - [loadTypeSpecScript](ProjectedProgram.md#loadtypespecscript) - [onValidate](ProjectedProgram.md#onvalidate) @@ -218,6 +219,28 @@ ___ ___ +### getSourceFileLocationContext + +▸ **getSourceFileLocationContext**(`sourceFile`): [`LocationContext`](../index.md#locationcontext) + +Return location context of the given source file. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `sourceFile` | [`SourceFile`](SourceFile.md) | + +#### Returns + +[`LocationContext`](../index.md#locationcontext) + +#### Inherited from + +[Program](Program.md).[getSourceFileLocationContext](Program.md#getsourcefilelocationcontext) + +___ + ### hasError ▸ **hasError**(): `boolean` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionApplication.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionApplication.md index a27f28c3b6..f311d412ae 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionApplication.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionApplication.md @@ -21,7 +21,7 @@ ___ ### direction -• `Optional` **direction**: ``"from"`` \| ``"to"`` +• `Optional` **direction**: ``"to"`` \| ``"from"`` ___ diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionNode.md index af64df2c9d..cee4cb3262 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionNode.md @@ -37,7 +37,7 @@ ___ ### direction -• `Readonly` **direction**: ``"from"`` \| ``"to"`` \| ``"pre_to"`` \| ``"pre_from"`` \| ``""`` +• `Readonly` **direction**: ``"to"`` \| ``"from"`` \| ``"pre_to"`` \| ``"pre_from"`` \| ``""`` ___ diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionStatementNode.md index f1f2e1f494..0bf165c4a6 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ProjectionStatementNode.md @@ -103,7 +103,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/RekeyableMap.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/RekeyableMap.md index 9563802b66..3aa701562f 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/RekeyableMap.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/RekeyableMap.md @@ -46,7 +46,7 @@ A map where keys can be changed without changing enumeration order. #### Inherited from -Map.\_\_@toStringTag@35 +Map.[toStringTag] ___ @@ -72,7 +72,7 @@ Returns an iterable of entries in the map. #### Inherited from -Map.\_\_@iterator@95 +Map.[iterator] ___ diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ScalarStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ScalarStatementNode.md index c5f1ffef7e..f80bc1fc61 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ScalarStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/ScalarStatementNode.md @@ -119,7 +119,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SymbolTable.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SymbolTable.md index 3d722965d5..01a7788307 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SymbolTable.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SymbolTable.md @@ -57,7 +57,7 @@ Returns an iterable of entries in the map. #### Inherited from -ReadonlyMap.\_\_@iterator@95 +ReadonlyMap.[iterator] ___ diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SyntheticLocationContext.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SyntheticLocationContext.md new file mode 100644 index 0000000000..7a2883c3d9 --- /dev/null +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/SyntheticLocationContext.md @@ -0,0 +1,17 @@ +[JS Api](../index.md) / SyntheticLocationContext + +# Interface: SyntheticLocationContext + +Refer to a type that was not declared in a file + +## Table of contents + +### Properties + +- [type](SyntheticLocationContext.md#type) + +## Properties + +### type + +• **type**: ``"synthetic"`` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibrary.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibrary.md index 2ad716d18e..cf5831a48c 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibrary.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibrary.md @@ -24,6 +24,7 @@ Definition of a TypeSpec library - [diagnostics](TypeSpecLibrary.md#diagnostics) - [emitter](TypeSpecLibrary.md#emitter) - [emitterOptionValidator](TypeSpecLibrary.md#emitteroptionvalidator) +- [linter](TypeSpecLibrary.md#linter) - [name](TypeSpecLibrary.md#name) - [requireImports](TypeSpecLibrary.md#requireimports) @@ -74,6 +75,18 @@ JSON Schema validator for emitter options ___ +### linter + +• `Optional` `Readonly` **linter**: [`LinterDefinition`](LinterDefinition.md) + +Configuration if library is providing linting rules/rulesets. + +#### Inherited from + +[TypeSpecLibraryDef](TypeSpecLibraryDef.md).[linter](TypeSpecLibraryDef.md#linter) + +___ + ### name • `Readonly` **name**: `string` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibraryDef.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibraryDef.md index bd548a2333..c8800bd498 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibraryDef.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/TypeSpecLibraryDef.md @@ -23,6 +23,7 @@ Definition of a TypeSpec library - [diagnostics](TypeSpecLibraryDef.md#diagnostics) - [emitter](TypeSpecLibraryDef.md#emitter) +- [linter](TypeSpecLibraryDef.md#linter) - [name](TypeSpecLibraryDef.md#name) - [requireImports](TypeSpecLibraryDef.md#requireimports) @@ -50,6 +51,14 @@ Emitter configuration if library is an emitter. ___ +### linter + +• `Optional` `Readonly` **linter**: [`LinterDefinition`](LinterDefinition.md) + +Configuration if library is providing linting rules/rulesets. + +___ + ### name • `Readonly` **name**: `string` diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UnionStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UnionStatementNode.md index c78bf8df7e..c6490badc6 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UnionStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UnionStatementNode.md @@ -119,7 +119,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UsingStatementNode.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UsingStatementNode.md index 8b7dabcba0..666eef2bb2 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UsingStatementNode.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/UsingStatementNode.md @@ -85,7 +85,7 @@ ___ ### parent -• `Optional` `Readonly` **parent**: [`NamespaceStatementNode`](NamespaceStatementNode.md) \| [`TypeSpecScriptNode`](TypeSpecScriptNode.md) +• `Optional` `Readonly` **parent**: [`TypeSpecScriptNode`](TypeSpecScriptNode.md) \| [`NamespaceStatementNode`](NamespaceStatementNode.md) #### Overrides diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/decorators.DocData.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/decorators.DocData.md index a847915435..c85336e2a6 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/decorators.DocData.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/interfaces/decorators.DocData.md @@ -15,7 +15,7 @@ ### source -• **source**: ``"@doc"`` \| ``"comment"`` +• **source**: ``"comment"`` \| ``"@doc"`` How was the doc set. - `@doc` means the `@doc` decorator was used diff --git a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/modules/decorators.md b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/modules/decorators.md index c90880decf..0af32b39f8 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/modules/decorators.md +++ b/packages/website/versioned_docs/version-latest/standard-library/reference/js-api/modules/decorators.md @@ -428,6 +428,10 @@ ___ ▸ **$list**(`context`, `target`, `listedType?`): `void` +**`Deprecated`** + +Use the `listsResource` decorator in `@typespec/rest` instead. + #### Parameters | Name | Type | @@ -1095,6 +1099,10 @@ ___ ▸ **getListOperationType**(`program`, `target`): [`Model`](../interfaces/Model.md) \| `undefined` +**`Deprecated`** + +This function is unused and will be removed in a future release. + #### Parameters | Name | Type | @@ -1532,6 +1540,10 @@ ___ ▸ **isListOperation**(`program`, `target`): `boolean` +**`Deprecated`** + +Use `isListOperation` in `@typespec/rest` instead. + #### Parameters | Name | Type | diff --git a/packages/website/versioned_docs/version-latest/standard-library/rest/reference/js-api/index.md b/packages/website/versioned_docs/version-latest/standard-library/rest/reference/js-api/index.md index e656244262..2078646370 100644 --- a/packages/website/versioned_docs/version-latest/standard-library/rest/reference/js-api/index.md +++ b/packages/website/versioned_docs/version-latest/standard-library/rest/reference/js-api/index.md @@ -55,6 +55,7 @@ JS Api - [getResourceTypeKey](index.md#getresourcetypekey) - [getSegment](index.md#getsegment) - [isAutoRoute](index.md#isautoroute) +- [isListOperation](index.md#islistoperation) - [setResourceOperation](index.md#setresourceoperation) - [setResourceTypeKey](index.md#setresourcetypekey) @@ -699,6 +700,25 @@ ___ ___ +### isListOperation + +▸ **isListOperation**(`program`, `target`): `boolean` + +Returns `true` if the given operation is marked as a list operation. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `program` | `Program` | the TypeSpec program | +| `target` | `Operation` | the target operation | + +#### Returns + +`boolean` + +___ + ### setResourceOperation ▸ **setResourceOperation**(`context`, `entity`, `resourceType`, `operation`): `void` diff --git a/packages/website/versioned_sidebars/version-latest-sidebars.json b/packages/website/versioned_sidebars/version-latest-sidebars.json index d777f201db..8277f1daff 100644 --- a/packages/website/versioned_sidebars/version-latest-sidebars.json +++ b/packages/website/versioned_sidebars/version-latest-sidebars.json @@ -79,6 +79,20 @@ "standard-library/http/operations" ] }, + { + "type": "category", + "label": "JSON Schema", + "link": { + "type": "doc", + "id": "standard-library/json-schema/reference/index" + }, + "items": [ + { + "type": "autogenerated", + "dirName": "standard-library/json-schema/reference" + } + ] + }, { "type": "category", "label": "Rest",