typespec-typescript-emitter 1.3.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -17
- package/package.json +1 -1
- package/test/helpers/wrapper.ts +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
## [2.0.1](https://github.com/crowbait/typespec-typescript-emitter/compare/v1.3.0...v2.0.1) (2025-11-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# [1.3.0](https://github.com/crowbait/typespec-typescript-emitter/compare/v2.0.0...v1.3.0) (2025-11-30)
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
### Bug Fixes
|
|
@@ -36,19 +40,3 @@
|
|
|
36
40
|
|
|
37
41
|
|
|
38
42
|
|
|
39
|
-
## [1.1.1](https://github.com/crowbait/typespec-typescript-emitter/compare/v1.1.0...v1.1.1) (2025-09-26)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Bug Fixes
|
|
43
|
-
|
|
44
|
-
* routed typemap respects visibility modifiers ([13c0a45](https://github.com/crowbait/typespec-typescript-emitter/commit/13c0a45f38b949a36ad2e8b6c40a1829ff3b54da))
|
|
45
|
-
* routed-typemap handling of multiple verbs on same path ([f33e6d9](https://github.com/crowbait/typespec-typescript-emitter/commit/f33e6d94d78523206813ab4191feee29cb6c3b2e))
|
|
46
|
-
* routes / routed typemap emitters now resolve ops inside interfaces ([21504bc](https://github.com/crowbait/typespec-typescript-emitter/commit/21504bc74cc4f77aeac1f1bcb4e52a42917d9146))
|
|
47
|
-
* thorough resolution of nested types in typemap ([95af299](https://github.com/crowbait/typespec-typescript-emitter/commit/95af299b662dbcba0d21b56aa8ebe2f91c6e6e92))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
# [1.1.0](https://github.com/crowbait/typespec-typescript-emitter/compare/v1.0.0...v1.1.0) (2025-05-23)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typespec-typescript-emitter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A TypeSpec library providing an emitter that generates TypeScript types and a structured routes object for robust importing",
|
|
5
5
|
"homepage": "https://github.com/crowbait/typespec-typescript-emitter#readme",
|
|
6
6
|
"bugs": "https://github.com/crowbait/typespec-typescript-emitter/issues",
|
package/test/helpers/wrapper.ts
CHANGED
|
@@ -44,14 +44,18 @@ export const expectEmit = <T extends string | Record<Filename, string>>(
|
|
|
44
44
|
console.error(
|
|
45
45
|
`${outFilename!} not found in ${Object.keys(result[0].outputs)}`,
|
|
46
46
|
);
|
|
47
|
-
expect(result[0].outputs[outFilename!].trim()).toBe(
|
|
47
|
+
expect(result[0].outputs[outFilename!].replaceAll("\r", "").trim()).toBe(
|
|
48
|
+
target.replaceAll("\r", "").trim(),
|
|
49
|
+
);
|
|
48
50
|
} else {
|
|
49
51
|
for (const t of Object.entries(target)) {
|
|
50
52
|
expect(
|
|
51
53
|
(
|
|
52
|
-
await result[0].program.host.readFile(
|
|
54
|
+
await result[0].program.host.readFile(
|
|
55
|
+
resolveVirtualPath(t[0]).replaceAll("\r", "").trim(),
|
|
56
|
+
)
|
|
53
57
|
).text.trim(),
|
|
54
|
-
).toBe(t[1].trim());
|
|
58
|
+
).toBe(t[1].replaceAll("\r", "").trim());
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
});
|