@typespec/versioning 0.44.0-dev.8 → 0.45.0-dev.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/lib/decorators.tsp +7 -0
- package/package.json +6 -6
package/lib/decorators.tsp
CHANGED
|
@@ -48,6 +48,13 @@ namespace TypeSpec {
|
|
|
48
48
|
*/
|
|
49
49
|
extern dec typeChangedFrom(target: unknown, version: EnumMember, oldType: unknown);
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Identifies when the target type changed.
|
|
53
|
+
* @param version The version that the target type changed in.
|
|
54
|
+
* @param oldType The previous type of the target.
|
|
55
|
+
*/
|
|
56
|
+
extern dec returnTypeChangedFrom(target: Operation, version: EnumMember, oldType: unknown);
|
|
57
|
+
|
|
51
58
|
/**
|
|
52
59
|
* Returns whether the target exists for the given version.
|
|
53
60
|
* @param version The version to check.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/versioning",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for declaring and emitting versioned APIs",
|
|
6
6
|
"homepage": "https://microsoft.github.io/typespec",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"!dist/test/**"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@typespec/compiler": "~0.
|
|
45
|
+
"@typespec/compiler": "~0.44.0 || >=0.45.0-dev <0.45.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/mocha": "~10.0.0",
|
|
49
49
|
"@types/node": "~18.11.9",
|
|
50
|
-
"@typespec/compiler": "~0.
|
|
51
|
-
"@typespec/eslint-config-typespec": "~0.
|
|
52
|
-
"@typespec/library-linter": "~0.
|
|
53
|
-
"@typespec/eslint-plugin": "~0.
|
|
50
|
+
"@typespec/compiler": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
51
|
+
"@typespec/eslint-config-typespec": "~0.7.0 || >=0.8.0-dev <0.8.0",
|
|
52
|
+
"@typespec/library-linter": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
53
|
+
"@typespec/eslint-plugin": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
54
54
|
"eslint": "^8.36.0",
|
|
55
55
|
"mocha": "~10.2.0",
|
|
56
56
|
"mocha-junit-reporter": "~2.2.0",
|