@typespec/http 0.62.0-dev.7 → 0.62.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.
Files changed (2) hide show
  1. package/lib/http.tsp +8 -0
  2. package/package.json +7 -8
package/lib/http.tsp CHANGED
@@ -120,3 +120,11 @@ model HttpPartOptions {
120
120
 
121
121
  @Private.httpPart(Type, Options)
122
122
  model HttpPart<Type, Options extends valueof HttpPartOptions = #{}> {}
123
+
124
+ model Link {
125
+ target: url;
126
+ rel: string;
127
+ attributes?: Record<unknown>;
128
+ }
129
+
130
+ scalar LinkHeader<T extends Record<url> | Link[]> extends string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/http",
3
- "version": "0.62.0-dev.7",
3
+ "version": "0.62.0",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec HTTP protocol binding",
6
6
  "homepage": "https://github.com/microsoft/typespec",
@@ -45,8 +45,8 @@
45
45
  "!dist/test/**"
46
46
  ],
47
47
  "peerDependencies": {
48
- "@typespec/compiler": "~0.61.2 || >=0.62.0-dev <0.62.0",
49
- "@typespec/streams": "~0.61.0 || >=0.62.0-dev <0.62.0"
48
+ "@typespec/compiler": "~0.62.0",
49
+ "@typespec/streams": "~0.62.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "@typespec/streams": {
@@ -55,18 +55,17 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "~22.7.5",
58
- "@typespec/compiler": "~0.61.2 || >=0.62.0-dev <0.62.0",
59
- "@typespec/library-linter": "~0.61.0 || >=0.62.0-dev <0.62.0",
60
- "@typespec/streams": "~0.61.0 || >=0.62.0-dev <0.62.0",
61
58
  "@vitest/coverage-v8": "^2.1.2",
62
59
  "@vitest/ui": "^2.1.2",
63
60
  "c8": "^10.1.2",
64
61
  "rimraf": "~6.0.1",
65
62
  "typescript": "~5.6.3",
66
63
  "vitest": "^2.1.2",
67
- "@typespec/tspd": "~0.46.0"
64
+ "@typespec/compiler": "~0.62.0",
65
+ "@typespec/library-linter": "~0.62.0",
66
+ "@typespec/tspd": "~0.46.0",
67
+ "@typespec/streams": "~0.62.0"
68
68
  },
69
- "dependencies": {},
70
69
  "scripts": {
71
70
  "clean": "rimraf ./dist ./temp",
72
71
  "build": "npm run gen-extern-signature && tsc -p . && npm run lint-typespec-library",