forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate getAssetEmitter and recommend calling
createAssetEmitter
…
…directly (microsoft#3516) fix microsoft#3397 Problem with calling `getAssetEmitter` is it create an asset emitter with the instance of the compiler used in the compilation and not the instance of the compiler defined in the type emitter necessarly. This cause issue with `instanceof` checks which are then not the exact same class as its loaded form different instance of the compiler Calling `createAssetEmitter` solve the issue because it is imported in teh context of the emitter package and will use the emitter package version
- Loading branch information
1 parent
781f2af
commit 4cfb2c2
Showing
5 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
.chronus/changes/deprecate-get-asset-emitter-2024-5-4-16-18-29.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: fix | ||
packages: | ||
- "@typespec/compiler" | ||
--- | ||
|
||
Deprecate getAssetEmitter and recommend calling `createAssetEmitter` directly |
9 changes: 9 additions & 0 deletions
9
.chronus/changes/deprecate-get-asset-emitter-2024-5-4-16-38-47.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: fix | ||
packages: | ||
- "@typespec/json-schema" | ||
- "@typespec/openapi3" | ||
--- | ||
|
||
Fix issue that could result in invalid document generation when running `tsp compile` from another directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters