@typespec/versioning 0.54.0-dev.3 → 0.54.0
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/README.md +19 -19
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ Identifies when the target was added.
|
|
|
67
67
|
|
|
68
68
|
##### Target
|
|
69
69
|
|
|
70
|
-
`
|
|
70
|
+
`Model | ModelProperty | Operation | Enum | EnumMember | Union | UnionVariant | Scalar | Interface`
|
|
71
71
|
|
|
72
72
|
##### Parameters
|
|
73
73
|
|
|
@@ -131,7 +131,7 @@ Identifies when the target was removed.
|
|
|
131
131
|
|
|
132
132
|
##### Target
|
|
133
133
|
|
|
134
|
-
`
|
|
134
|
+
`Model | ModelProperty | Operation | Enum | EnumMember | Union | UnionVariant | Scalar | Interface`
|
|
135
135
|
|
|
136
136
|
##### Parameters
|
|
137
137
|
|
|
@@ -166,14 +166,14 @@ Identifies when the target has been renamed.
|
|
|
166
166
|
|
|
167
167
|
##### Target
|
|
168
168
|
|
|
169
|
-
`
|
|
169
|
+
`Model | ModelProperty | Operation | Enum | EnumMember | Union | UnionVariant | Scalar | Interface`
|
|
170
170
|
|
|
171
171
|
##### Parameters
|
|
172
172
|
|
|
173
|
-
| Name | Type
|
|
174
|
-
| ------- |
|
|
175
|
-
| version | `EnumMember`
|
|
176
|
-
| oldName | `valueof
|
|
173
|
+
| Name | Type | Description |
|
|
174
|
+
| ------- | ---------------- | ------------------------------------------- |
|
|
175
|
+
| version | `EnumMember` | The version that the target was renamed in. |
|
|
176
|
+
| oldName | `valueof string` | The previous name of the target. |
|
|
177
177
|
|
|
178
178
|
##### Examples
|
|
179
179
|
|
|
@@ -196,10 +196,10 @@ Identifies when the target type changed.
|
|
|
196
196
|
|
|
197
197
|
##### Parameters
|
|
198
198
|
|
|
199
|
-
| Name | Type
|
|
200
|
-
| ------- |
|
|
201
|
-
| version | `EnumMember`
|
|
202
|
-
| oldType | `
|
|
199
|
+
| Name | Type | Description |
|
|
200
|
+
| ------- | ------------ | -------------------------------------------- |
|
|
201
|
+
| version | `EnumMember` | The version that the target type changed in. |
|
|
202
|
+
| oldType | `unknown` | The previous type of the target. |
|
|
203
203
|
|
|
204
204
|
#### `@typeChangedFrom`
|
|
205
205
|
|
|
@@ -215,10 +215,10 @@ Identifies when the target type changed.
|
|
|
215
215
|
|
|
216
216
|
##### Parameters
|
|
217
217
|
|
|
218
|
-
| Name | Type
|
|
219
|
-
| ------- |
|
|
220
|
-
| version | `EnumMember`
|
|
221
|
-
| oldType | `
|
|
218
|
+
| Name | Type | Description |
|
|
219
|
+
| ------- | ------------ | -------------------------------------------- |
|
|
220
|
+
| version | `EnumMember` | The version that the target type changed in. |
|
|
221
|
+
| oldType | `unknown` | The previous type of the target. |
|
|
222
222
|
|
|
223
223
|
#### `@useDependency`
|
|
224
224
|
|
|
@@ -230,13 +230,13 @@ Identifies that a namespace or a given versioning enum member relies upon a vers
|
|
|
230
230
|
|
|
231
231
|
##### Target
|
|
232
232
|
|
|
233
|
-
`
|
|
233
|
+
`EnumMember | Namespace`
|
|
234
234
|
|
|
235
235
|
##### Parameters
|
|
236
236
|
|
|
237
|
-
| Name | Type
|
|
238
|
-
| -------------- |
|
|
239
|
-
| versionRecords | `
|
|
237
|
+
| Name | Type | Description |
|
|
238
|
+
| -------------- | -------------- | --------------------------------------------------------------------- |
|
|
239
|
+
| versionRecords | `EnumMember[]` | The dependent library version(s) for the target namespace or version. |
|
|
240
240
|
|
|
241
241
|
##### Examples
|
|
242
242
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/versioning",
|
|
3
|
-
"version": "0.54.0
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for declaring and emitting versioned APIs",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -38,14 +38,10 @@
|
|
|
38
38
|
"!dist/test/**"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@typespec/compiler": "~0.
|
|
41
|
+
"@typespec/compiler": "~0.54.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "~18.11.19",
|
|
45
|
-
"@typespec/compiler": "~0.53.1 || >=0.54.0-dev <0.54.0",
|
|
46
|
-
"@typespec/eslint-config-typespec": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
47
|
-
"@typespec/eslint-plugin": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
48
|
-
"@typespec/library-linter": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
49
45
|
"@vitest/coverage-v8": "^1.2.2",
|
|
50
46
|
"@vitest/ui": "^1.2.2",
|
|
51
47
|
"c8": "^9.1.0",
|
|
@@ -53,9 +49,12 @@
|
|
|
53
49
|
"rimraf": "~5.0.5",
|
|
54
50
|
"typescript": "~5.3.3",
|
|
55
51
|
"vitest": "^1.2.2",
|
|
52
|
+
"@typespec/compiler": "~0.54.0",
|
|
53
|
+
"@typespec/eslint-config-typespec": "~0.54.0",
|
|
54
|
+
"@typespec/eslint-plugin": "~0.54.0",
|
|
55
|
+
"@typespec/library-linter": "~0.54.0",
|
|
56
56
|
"@typespec/tspd": "~0.46.0"
|
|
57
57
|
},
|
|
58
|
-
"dependencies": {},
|
|
59
58
|
"scripts": {
|
|
60
59
|
"clean": "rimraf ./dist ./temp",
|
|
61
60
|
"build": "tsc -p . && npm run lint-typespec-library",
|