diff --git a/core b/core index 115912f9ab..f5d5e10757 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 115912f9abf856ee11002e67ab7e85537f6de24f +Subproject commit f5d5e107579985637a7bd4f8892fb964ff25cf1a diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 534167a692..4405145ad5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -170,7 +170,7 @@ importers: specifier: ^13.0.3 version: 13.0.4(typescript@5.9.3) tsx: - specifier: ^4.19.3 + specifier: ^4.20.5 version: 4.20.6 typescript: specifier: ~5.9.2 @@ -470,6 +470,9 @@ importers: tmlanguage-generator: specifier: workspace:^ version: link:../tmlanguage-generator + tsx: + specifier: ^4.20.5 + version: 4.20.6 typescript: specifier: ~5.9.2 version: 5.9.3 @@ -1072,7 +1075,7 @@ importers: specifier: ^0.3.0 version: 0.3.0 tsx: - specifier: ^4.19.3 + specifier: ^4.20.5 version: 4.20.6 typescript: specifier: ~5.9.2 @@ -2050,6 +2053,9 @@ importers: react-markdown: specifier: ^10.1.0 version: 10.1.0(@types/react@19.2.6)(react@18.3.1) + react-router-dom: + specifier: ^7.9.6 + version: 7.9.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) devDependencies: '@types/react': specifier: ~19.2.2 @@ -2057,6 +2063,9 @@ importers: '@types/react-dom': specifier: ~19.2.2 version: 19.2.3(@types/react@19.2.6) + '@types/react-router-dom': + specifier: ^5.3.3 + version: 5.3.3 '@vitejs/plugin-react': specifier: ~5.1.0 version: 5.1.1(vite@7.2.4(@types/node@24.10.1)(tsx@4.20.6)(yaml@2.8.1)) @@ -2267,7 +2276,7 @@ importers: specifier: ~6.1.2 version: 6.1.2 tsx: - specifier: ^4.19.3 + specifier: ^4.20.5 version: 4.20.6 typescript: specifier: ~5.9.2 @@ -6884,6 +6893,9 @@ packages: '@types/hast@3.0.4': resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} + '@types/history@4.7.11': + resolution: {integrity: sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==} + '@types/http-cache-semantics@4.0.4': resolution: {integrity: sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==} @@ -6970,6 +6982,12 @@ packages: peerDependencies: '@types/react': ^19.2.0 + '@types/react-router-dom@5.3.3': + resolution: {integrity: sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==} + + '@types/react-router@5.1.20': + resolution: {integrity: sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==} + '@types/react@19.2.6': resolution: {integrity: sha512-p/jUvulfgU7oKtj6Xpk8cA2Y1xKTtICGpJYeJXz2YVO2UcvjQgeRMLDGfDeqeRW2Ta+0QNFwcc8X3GH8SxZz6w==} @@ -11927,6 +11945,23 @@ packages: resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} engines: {node: '>=0.10.0'} + react-router-dom@7.9.6: + resolution: {integrity: sha512-2MkC2XSXq6HjGcihnx1s0DBWQETI4mlis4Ux7YTLvP67xnGxCvq+BcCQSO81qQHVUTM1V53tl4iVVaY5sReCOA==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + + react-router@7.9.6: + resolution: {integrity: sha512-Y1tUp8clYRXpfPITyuifmSoE2vncSME18uVLgaqyxh9H35JWpIfzHo+9y3Fzh5odk/jxPW29IgLgzcdwxGqyNA==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + peerDependenciesMeta: + react-dom: + optional: true + react@17.0.2: resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} engines: {node: '>=0.10.0'} @@ -12323,6 +12358,9 @@ packages: resolution: {integrity: sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==} engines: {node: '>= 18'} + set-cookie-parser@2.7.2: + resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} + set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -18992,6 +19030,8 @@ snapshots: dependencies: '@types/unist': 3.0.3 + '@types/history@4.7.11': {} + '@types/http-cache-semantics@4.0.4': {} '@types/http-errors@2.0.5': {} @@ -19071,6 +19111,17 @@ snapshots: dependencies: '@types/react': 19.2.6 + '@types/react-router-dom@5.3.3': + dependencies: + '@types/history': 4.7.11 + '@types/react': 19.2.6 + '@types/react-router': 5.1.20 + + '@types/react-router@5.1.20': + dependencies: + '@types/history': 4.7.11 + '@types/react': 19.2.6 + '@types/react@19.2.6': dependencies: csstype: 3.2.3 @@ -19860,7 +19911,7 @@ snapshots: algoliasearch: 4.25.3 clipanion: 4.0.0-rc.4(typanion@3.14.0) diff: 5.2.0 - ink: 3.2.0(@types/react@19.2.6)(react@17.0.2) + ink: 3.2.0(@types/react@19.2.6)(react@18.3.1) ink-text-input: 4.0.3(ink@3.2.0(@types/react@19.2.6)(react@17.0.2))(react@17.0.2) react: 17.0.2 semver: 7.7.3 @@ -20010,7 +20061,7 @@ snapshots: '@yarnpkg/plugin-git': 3.1.3(@yarnpkg/core@4.5.0(typanion@3.14.0))(typanion@3.14.0) clipanion: 4.0.0-rc.4(typanion@3.14.0) es-toolkit: 1.42.0 - ink: 3.2.0(@types/react@19.2.6)(react@18.3.1) + ink: 3.2.0(@types/react@19.2.6)(react@17.0.2) react: 17.0.2 semver: 7.7.3 tslib: 2.8.1 @@ -25551,6 +25602,20 @@ snapshots: react-refresh@0.18.0: {} + react-router-dom@7.9.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + dependencies: + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-router: 7.9.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + + react-router@7.9.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + dependencies: + cookie: 1.0.2 + react: 18.3.1 + set-cookie-parser: 2.7.2 + optionalDependencies: + react-dom: 18.3.1(react@18.3.1) + react@17.0.2: dependencies: loose-envify: 1.4.0 @@ -26092,6 +26157,8 @@ snapshots: transitivePeerDependencies: - supports-color + set-cookie-parser@2.7.2: {} + set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 diff --git a/website/src/pages/can-i-use/http.astro b/website/src/pages/can-i-use/http.astro index 5641448647..c260ec34c8 100644 --- a/website/src/pages/can-i-use/http.astro +++ b/website/src/pages/can-i-use/http.astro @@ -5,6 +5,7 @@ import { DashboardFromAzureStorage, type CoverageFromAzureStorageOptions, } from "@typespec/spec-dashboard"; +import { scenarioTiers } from "../scenario-tiers.js"; const options: CoverageFromAzureStorageOptions = { storageAccountName: "typespec", containerName: "coverage", @@ -13,7 +14,6 @@ const options: CoverageFromAzureStorageOptions = { "@azure-tools/typespec-python", "@azure-tools/typespec-go", "@azure-typespec/http-client-csharp", - "@azure-tools/typespec-ts-rlc", "@azure-tools/typespec-ts-modular", "@azure-tools/typespec-java", "@azure-tools/typespec-cpp", @@ -33,7 +33,6 @@ const options: CoverageFromAzureStorageOptions = { "@azure-tools/typespec-python", "@azure-tools/typespec-go", "@azure-typespec/http-client-csharp-mgmt", - "@azure-tools/typespec-ts-rlc", "@azure-tools/typespec-ts-modular", "@azure-tools/typespec-java", "@azure-tools/typespec-cpp", @@ -45,6 +44,7 @@ const options: CoverageFromAzureStorageOptions = { packageName: "@typespec/http-specs", }, ], + tiers: scenarioTiers, }; --- diff --git a/website/src/pages/scenario-tiers.ts b/website/src/pages/scenario-tiers.ts new file mode 100644 index 0000000000..177713e7ba --- /dev/null +++ b/website/src/pages/scenario-tiers.ts @@ -0,0 +1,106 @@ +export const scenarioTiers = { + default: "specialized", + tiers: { + core: [ + { + patterns: [ + // Azure Data Plane + "Azure_ClientGenerator_Core_Access_*", + "Azure_ClientGenerator_Core_FlattenProperty_*", + "Azure_ClientGenerator_Core_HierarchyBuilding_*", + "Azure_ClientGenerator_Core_Override_*", + "Azure_ClientGenerator_Core_Usage_*", + "Azure_CLientGeneratorCore_ClientInitialization_*", + "Azure_Core_Basic_*", + "Azure_Core_Lro_*", + "Azure_Core_Model_*", + "Azure_Core_Page_list*", + "Azure_Core_Page_TwoModelsAsPageItem", + "Azure_Core_Scalar_*", + "Azure_Core_Traits_*", + "Azure_Encode_*", + "Azure_Example_*", + "Azure_Payload_*", + "Azure_Versioning_*", + "Client_ClientNamespace", + "Client_Naming_*", + "Client_Overload_*", + "Client_Structure_*", + "Resiliency_*", + // Azure Management Plane + "Azure_ResourceManager_CommonProperties_Error_*", + "Azure_ResourceManager_CommonProperties_ManagedIdentity_*", + "Azure_ResourceManager_LargeHeader_*", + "Azure_ResourceManager_NonResource_*", + "Azure_ResourceManager_OperationTemplates_*", + "Azure_ResourceManager_Resources_*", + // Specs + "Authentication_*", + "Encode_Bytes_*", + "Encode_Datetime_*", + "Encode_Numeric_*", + "Parameters_Basic_*", + "Parameters_BodyOptionality_*", + "Parameters_CollectionFormat_*", + "Parameters_Path_*", + "Parameters_Spread_*", + "Payload_ContentNegotiation_*", + "Payload_MediaType_*", + "Payload_MultiPart_*", + "Payload_Pageable_ServerDrivenPagination_link", + "Routes_fixed", + "Routes_InInterface", + "Routes_PathParameters_annotationOnly", + "Routes_PathParameters_explicit", + "Routes_PathParameters_templateOnly", + "Routes_QueryParameters_annotationOnly", + "Routes_QueryParameters_explicit", + "Routes_QueryParameters_QueryContinuation_Explode_primitive", + "Routes_QueryParameters_QueryContinuation_Standard_array", + "Routes_QueryParameters_QueryContinuation_Standard_record", + "Routes_QueryParameters_templateOnly", + "Serialization_EncodedName_Json_Property_get", + "Serialization_EncodedName_Json_Property_send", + "Server_*", + "SpecialHeaders_*", + "SpecialWords_*", + "Type_Array_*", + "Type_Dictionary_*", + "Type_Enum_*", + "Type_Model_*", + "Type_Property_*", + "Type_Scalar_*", + "Type_Union_EnumsOnly_get", + "Type_Union_EnumsOnly_send", + "Type_Union_FloatsOnly_get", + "Type_Union_FloatsOnly_send", + "Type_Union_IntsOnly_get", + "Type_Union_IntsOnly_send", + "Type_Union_MixedLiterals_get", + "Type_Union_MixedLiterals_send", + "Type_Union_MixedTypes_get", + "Type_Union_MixedTypes_send", + "Type_Union_ModelsOnly_get", + "Type_Union_ModelsOnly_send", + "Type_Union_StringAndArray_get", + "Type_Union_StringAndArray_send", + "Type_Union_StringExtensible_get", + "Type_Union_StringExtensible_send", + "Type_Union_StringExtensibleNamed_get", + "Type_Union_StringExtensibleNamed_send", + "Type_Union_StringsOnly_get", + "Type_Union_StringsOnly_send", + "Versioning_*", + ], + // applies to all emitters + }, + { + patterns: ["Payload_Xml_*"], + emitters: ["@azure-tools/typespec-go"], + }, + ], + specialized: { + patterns: [], + }, + }, +};