Skip to content

Commit 6444b05

Browse files
authored
Merge branch 'main' into l0lawrence-emitter-diff
2 parents e93b921 + dc88474 commit 6444b05

289 files changed

Lines changed: 23402 additions & 21485 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
changeKind: feature
3+
packages:
4+
- "@typespec/compiler"
5+
---
6+
7+
Add `setAutoDecorator` API to programmatically apply an `auto` decorator to a target, mirroring what the synthesized `auto dec` implementation does when the decorator is written in source. This lets emitters and mutators mark synthetic types without reaching into the program state map directly.
8+
9+
```ts
10+
import { setAutoDecorator } from "@typespec/compiler";
11+
12+
setAutoDecorator(program, "MyLib.myFlag", target);
13+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@typespec/compiler"
5+
---
6+
7+
Remove redundant top-level `describe` wrappers from tests
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@typespec/http"
5+
- "@typespec/json-schema"
6+
- "@typespec/rest"
7+
- "@typespec/versioning"
8+
- "@typespec/openapi"
9+
- "@typespec/sse"
10+
- "@typespec/emitter-framework"
11+
- "@typespec/http-server-csharp"
12+
- "@typespec/spec-api"
13+
- "@typespec/http-server-js"
14+
- "@typespec/asset-emitter"
15+
- "@typespec/internal-build-utils"
16+
- "@typespec/html-program-viewer"
17+
- "@typespec/streams"
18+
- "@typespec/library-linter"
19+
- "@typespec/bundler"
20+
- "@typespec/playground"
21+
- "@typespec/spector"
22+
- "@typespec/prettier-plugin-typespec"
23+
- "@typespec/samples"
24+
- "@typespec/spec-dashboard"
25+
- "@typespec/tspd"
26+
- "typespec-vscode"
27+
- "@typespec/protobuf"
28+
---
29+
30+
Remove redundant top-level `describe` wrappers from tests per the documented test conventions.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
changeKind: deprecation
3+
packages:
4+
- "@typespec/compiler"
5+
---
6+
7+
`tsp code install` and `tsp vs install` now install the editor extensions from the marketplace instead of downloading the `typespec-vscode`/`typespec-vs` npm packages. `tsp code install` delegates to `code --install-extension microsoft.typespec-vscode`, and `tsp vs install` downloads the latest vsix from the Visual Studio Marketplace.
8+
9+
The `tsp code` and `tsp vs` commands (`install`/`uninstall`) are now deprecated. They keep working but emit a deprecation warning; install and manage the extensions directly from the marketplace instead.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/compiler"
5+
---
6+
7+
Warn on duplicate `#suppress` directives on the same node.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
changeKind: deprecation
3+
packages:
4+
- "@typespec/compiler"
5+
- "@typespec/http"
6+
- "@typespec/rest"
7+
- "@typespec/versioning"
8+
- "@typespec/json-schema"
9+
- "@typespec/xml"
10+
- "@typespec/events"
11+
- "@typespec/sse"
12+
- "@typespec/streams"
13+
- "@typespec/html-program-viewer"
14+
- "@typespec/library-linter"
15+
- "@typespec/emitter-framework"
16+
- "@typespec/http-client-js"
17+
- "@typespec/http-client"
18+
- "@typespec/http-server-js"
19+
- "@typespec/openapi"
20+
- "@typespec/openapi3"
21+
---
22+
23+
Deprecate old testing framework (`createTestHost`, `createTestRunner`, `createTestWrapper`, `createTestLibrary`, `BasicTestRunner`, `TypeSpecTestLibrary`, etc.). Use `createTester` from `@typespec/compiler/testing` instead.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/compiler"
5+
---
6+
7+
Fix directory entrypoint resolution ignoring `package.json` `tspMain` when a `tspconfig.yaml` with `kind: project` is present but does not specify an `entrypoint`. The resolution order is now: explicit config `entrypoint`, then `package.json` `tspMain`, then `main.tsp`.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/compiler"
5+
---
6+
7+
Fix compiler feature flags (e.g. `auto-decorators`) not being enabled for library code. A library can now opt into a feature via its own `tspconfig.yaml` `features`, enabling it only for that library's source files without requiring the consuming project to enable it.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Clarify docstrings in the generated `_MyMutableMapping` base class in `_model_base.py` so they no longer use the ambiguous `D` placeholder (e.g. `Remove all items from D.` is now `Remove all items from the dictionary.`)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Fix crash when generating with `models-mode=none`. Options passed to the `OptionsDict` constructor are now normalized through the same validation/transform path as `__setitem__`, so `models-mode=none` is correctly treated as falsy and a modelless client is produced instead of crashing.

0 commit comments

Comments
 (0)