Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/microsoft/typespec into pyt…
Browse files Browse the repository at this point in the history
…hon/addChronus
  • Loading branch information
iscai-msft committed Jan 23, 2025
2 parents 94ea47b + 732db95 commit ac05c52
Show file tree
Hide file tree
Showing 159 changed files with 10,275 additions and 4,830 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/Issue5430-2025-0-23-10-22-11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@typespec/http-specs"
---

Fixed paths in the specs/routes.
7 changes: 7 additions & 0 deletions .chronus/changes/VSCodeExtension-2025-0-15-16-56-20.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- typespec-vscode
---

some enhancement in UI
7 changes: 7 additions & 0 deletions .chronus/changes/collection-is-pageable-2025-0-21-10-53-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@typespec/rest"
---

Updates `CollectionWithNextLink` to support pagination
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: feature
packages:
- "@typespec/compiler"
---

Convert model/tuple expression to value code fix is applied to the entire value.
7 changes: 7 additions & 0 deletions .chronus/changes/perf-optimise-interner-2025-0-10-10-55-50.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@typespec/compiler"
---

Optimize the object interner in the emitter framework
7 changes: 7 additions & 0 deletions .chronus/changes/tsp-openapi3-2024-11-26-14-25-57.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- typespec-vscode
---

Support importing TypeSpec from OpenAPI 3.0 doc
7 changes: 0 additions & 7 deletions .chronus/changes/typegraph-v2-2024-6-1-10-17-30.md

This file was deleted.

34 changes: 34 additions & 0 deletions .chronus/changes/upgrade-deps-jan-2025-2025-0-21-23-21-7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: dependencies
packages:
- "@typespec/bundler"
- "@typespec/compiler"
- "@typespec/eslint-plugin"
- "@typespec/events"
- "@typespec/html-program-viewer"
- "@typespec/http-server-csharp"
- "@typespec/http-server-javascript"
- "@typespec/http-specs"
- "@typespec/http"
- "@typespec/internal-build-utils"
- "@typespec/json-schema"
- "@typespec/library-linter"
- "@typespec/openapi"
- "@typespec/openapi3"
- "@typespec/playground"
- "@typespec/prettier-plugin-typespec"
- "@typespec/protobuf"
- "@typespec/rest"
- "@typespec/spec-api"
- "@typespec/spec-coverage-sdk"
- "@typespec/spector"
- "@typespec/sse"
- "@typespec/streams"
- tmlanguage-generator
- typespec-vscode
- "@typespec/versioning"
- "@typespec/xml"
---

Upgrade dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: internal
packages:
- "@typespec/http"
- "@typespec/openapi"
---

Updated the OpenAPI3 and HTTP libraries to use the new visibility analysis APIs.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@typespec/compiler"
---

Added APIs for getting parameterVisibility and returnTypeVisibility as VisibilityFilter objects.
4 changes: 2 additions & 2 deletions .github/policies/pr.stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ configuration:
- isPullRequest
- isOpen
- isNotLabeledWith:
label: no-recent-activity
label: stale
- noActivitySince:
days: 30
actions:
Expand All @@ -35,7 +35,7 @@ configuration:
- isPullRequest
- isOpen
- hasLabel:
label: no-recent-activity
label: stale
- noActivitySince:
days: 30
actions:
Expand Down
1 change: 1 addition & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ words:
- xplat
- xxsubtype
- yamls
- français
ignorePaths:
- "**/node_modules/**"
- "**/dist/**"
Expand Down
1 change: 1 addition & 0 deletions eng/common/config/area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const AreaPaths: Record<keyof typeof AreaLabels, string[]> = {
eng: ["eng/", ".github/"],
"ui:playground": ["packages/playground/"],
"ui:type-graph-viewer": ["packages/html-program-viewer/"],
spector: ["packages/spector/", "packages/http-specs"],
};

/**
Expand Down
4 changes: 4 additions & 0 deletions eng/common/config/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export const AreaLabels = defineLabels({
color: "967200",
description: "Issue for Java service emitter",
},
spector: {
color: "65bfff",
description: "Issues related to spector and the spec sets",
},
eng: {
color: "65bfff",
description: "",
Expand Down
20 changes: 20 additions & 0 deletions eng/tsp-core/pipelines/jobs/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ jobs:
env:
NPM_AUTH_TOKEN: $(azure-sdk-npm-token)
- pwsh: |
$publishSummary = Get-Content "./publish-summary.json" | ConvertFrom-Json
if ($publishSummary.packages.'@typespec/http-specs'.published -eq $true) {
Write-Output "Setting PublishHttpSpecs variable to true."
Write-Host "##vso[task.setvariable variable=PublishHttpSpecs]true"
} else {
Write-Output "Setting PublishHttpSpecs variable to false."
Write-Host "##vso[task.setvariable variable=PublishHttpSpecs]false"
}
displayName: "Check if @typespec/http-specs was published"
- task: AzureCLI@2
displayName: Upload scenario manifest
condition: eq(variables['PublishHttpSpecs'], 'true')
inputs:
azureSubscription: "TypeSpec Storage"
scriptType: "bash"
scriptLocation: "inlineScript"
inlineScript: "pnpm upload-manifest"

- ${{ if eq(parameters.publishGithubRelease, true) }}:
- script: |
echo "Publish summary:"
Expand Down
16 changes: 4 additions & 12 deletions eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ extends:
- script: docker push $(imageName) --all-tags
displayName: "Push"

- stage: publish_manifest
displayName: Manifest
- stage: validate_manifest
displayName: Validate Manifest
dependsOn: build
jobs:
- job: publish_manifest
displayName: Publish Manifest
- job: validate_manifest
displayName: Validate Manifest
pool:
name: $(WINDOWSPOOL)
image: $(WINDOWSVMIMAGE)
Expand All @@ -198,11 +198,3 @@ extends:

- script: pnpm run validate-mock-apis --debug
displayName: Validate mock apis

- task: AzureCLI@2
displayName: Upload scenario manifest
inputs:
azureSubscription: "TypeSpec Storage"
scriptType: "bash"
scriptLocation: "inlineScript"
inlineScript: "pnpm upload-manifest"
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "pnpm build:all && pnpm check:eng && pnpm gen-compiler-extern-signature",
"build:all": "pnpm -r --workspace-concurrency=Infinity --aggregate-output --reporter=append-only build",
"build:all": "pnpm -r --workspace-concurrency=Infinity build",
"check:eng": "tsc -p ./tsconfig.eng.json --noEmit",
"setup:min": "pnpm install && pnpm --filter \"@typespec/prettier-plugin-typespec...\" run build",
"check-version-mismatch": "syncpack list-mismatches",
Expand Down Expand Up @@ -40,38 +40,38 @@
"upload-manifest": "pnpm -r --filter=@typespec/http-specs run upload-manifest"
},
"devDependencies": {
"@chronus/chronus": "^0.13.0",
"@chronus/github": "^0.4.4",
"@eslint/js": "^9.15.0",
"@microsoft/api-extractor": "^7.47.11",
"@octokit/core": "^6.1.2",
"@chronus/chronus": "^0.14.0",
"@chronus/github": "^0.4.5",
"@eslint/js": "^9.18.0",
"@microsoft/api-extractor": "^7.49.1",
"@octokit/core": "^6.1.3",
"@octokit/plugin-paginate-graphql": "^5.2.4",
"@octokit/plugin-rest-endpoint-methods": "^13.2.6",
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@types/micromatch": "^4.0.9",
"@types/node": "~22.7.9",
"@vitest/coverage-v8": "^2.1.5",
"c8": "^10.1.2",
"cspell": "^8.16.0",
"eslint": "^9.15.0",
"@types/node": "~22.10.7",
"@vitest/coverage-v8": "^3.0.3",
"c8": "^10.1.3",
"cspell": "^8.17.2",
"eslint": "^9.18.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react-hooks": "5.1.0-rc-fb9a90fa48-20240614",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-vitest": "^0.5.4",
"micromatch": "^4.0.8",
"picocolors": "~1.1.1",
"playwright": "^1.49.0",
"prettier": "~3.3.3",
"playwright": "^1.49.1",
"prettier": "~3.4.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-organize-imports": "~4.1.0",
"rimraf": "~6.0.1",
"syncpack": "^13.0.0",
"tsx": "^4.19.2",
"typescript": "~5.6.3",
"typescript-eslint": "^8.15.0",
"vitest": "^2.1.5",
"yaml": "~2.5.1"
"typescript": "~5.7.3",
"typescript-eslint": "^8.21.0",
"vitest": "^3.0.3",
"yaml": "~2.7.0"
},
"syncpack": {
"dependencyTypes": [
Expand Down
12 changes: 6 additions & 6 deletions packages/astro-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
},
"devDependencies": {
"@types/react": "~18.3.11",
"astro": "^4.16.18"
"astro": "^5.1.8"
},
"peerDependencies": {
"astro": "^4.16.18"
"astro": "^5.1.8"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/starlight": "^0.29.0",
"@expressive-code/core": "^0.38.3",
"@astrojs/starlight": "^0.31.1",
"@expressive-code/core": "^0.40.1",
"@typespec/playground": "workspace:~",
"astro-expressive-code": "^0.38.3",
"astro-expressive-code": "^0.40.1",
"react": "~18.3.1",
"typescript": "~5.6.3"
"typescript": "~5.7.3"
}
}
12 changes: 6 additions & 6 deletions packages/best-practices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"@typespec/compiler": "workspace:~"
},
"devDependencies": {
"@types/node": "~22.7.9",
"@types/node": "~22.10.7",
"@typespec/compiler": "workspace:~",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/ui": "^2.1.2",
"c8": "^10.1.2",
"@vitest/coverage-v8": "^3.0.3",
"@vitest/ui": "^3.0.3",
"c8": "^10.1.3",
"rimraf": "~6.0.1",
"typescript": "~5.6.3",
"vitest": "^2.1.5"
"typescript": "~5.7.3",
"vitest": "^3.0.3"
}
}
16 changes: 8 additions & 8 deletions packages/bundle-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@
"!dist/test/**"
],
"dependencies": {
"@azure/identity": "~4.4.1",
"@azure/storage-blob": "~12.25.0",
"@azure/identity": "~4.6.0",
"@azure/storage-blob": "~12.26.0",
"@pnpm/find-workspace-packages": "^6.0.9",
"@typespec/bundler": "workspace:~",
"json5": "^2.2.3",
"picocolors": "~1.1.1",
"semver": "^7.6.3"
},
"devDependencies": {
"@types/node": "~22.7.9",
"@types/node": "~22.10.7",
"@types/semver": "^7.5.8",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/ui": "^2.1.2",
"c8": "^10.1.2",
"@vitest/coverage-v8": "^3.0.3",
"@vitest/ui": "^3.0.3",
"c8": "^10.1.3",
"rimraf": "~6.0.1",
"typescript": "~5.6.3",
"vitest": "^2.1.5"
"typescript": "~5.7.3",
"vitest": "^3.0.3"
}
}
20 changes: 10 additions & 10 deletions packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@
],
"dependencies": {
"@rollup/plugin-alias": "~5.1.1",
"@rollup/plugin-commonjs": "~28.0.0",
"@rollup/plugin-commonjs": "~28.0.2",
"@rollup/plugin-json": "~6.1.0",
"@rollup/plugin-multi-entry": "~6.0.1",
"@rollup/plugin-node-resolve": "~15.3.0",
"@rollup/plugin-node-resolve": "~16.0.0",
"@rollup/plugin-virtual": "~3.0.2",
"@typespec/compiler": "workspace:~",
"picocolors": "~1.1.1",
"rollup": "~4.24.0",
"rollup": "~4.31.0",
"yargs": "~17.7.2"
},
"devDependencies": {
"@types/node": "~22.7.9",
"@types/node": "~22.10.7",
"@types/yargs": "~17.0.33",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/ui": "^2.1.2",
"c8": "^10.1.2",
"@vitest/coverage-v8": "^3.0.3",
"@vitest/ui": "^3.0.3",
"c8": "^10.1.3",
"rimraf": "~6.0.1",
"typescript": "~5.6.3",
"vite": "^5.4.8",
"vitest": "^2.1.5"
"typescript": "~5.7.3",
"vite": "^6.0.11",
"vitest": "^3.0.3"
}
}
Loading

0 comments on commit ac05c52

Please sign in to comment.