@azure-tools/typespec-azure-core 0.70.0-dev.0 → 0.70.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.
@@ -1,3 +1,4 @@
1
1
  import { TypeSpecTestLibrary } from "@typespec/compiler/testing";
2
+ /** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
2
3
  export declare const AzureCoreTestLibrary: TypeSpecTestLibrary;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGpB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,oBAAoB,EAAE,mBAGjC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGpB,MAAM,4BAA4B,CAAC;AAEpC,+EAA+E;AAE/E,eAAO,MAAM,oBAAoB,EAAE,mBAGjC,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { createTestLibrary, findTestPackageRoot, } from "@typespec/compiler/testing";
2
+ /** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
3
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
4
  export const AzureCoreTestLibrary = createTestLibrary({
3
5
  name: "@azure-tools/typespec-azure-core",
4
6
  packageRoot: await findTestPackageRoot(import.meta.url),
5
7
  });
8
+ /* eslint-enable @typescript-eslint/no-deprecated */
6
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAwB,iBAAiB,CAAC;IACzE,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,MAAM,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AAEpC,+EAA+E;AAC/E,qDAAqD;AACrD,MAAM,CAAC,MAAM,oBAAoB,GAAwB,iBAAiB,CAAC;IACzE,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,MAAM,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC;AACH,oDAAoD"}
package/lib/auth.tsp CHANGED
@@ -42,5 +42,7 @@ model AadOauth2Auth<
42
42
  * Azure API Key Authentication using the "Ocp-Apim-Subscription-Key" hea
43
43
  */
44
44
  @doc("Azure API Key Authentication")
45
- model AzureApiKeyAuthentication
46
- is TypeSpec.Http.ApiKeyAuth<ApiKeyLocation.header, "Ocp-Apim-Subscription-Key">;
45
+ model AzureApiKeyAuthentication is TypeSpec.Http.ApiKeyAuth<
46
+ ApiKeyLocation.header,
47
+ "Ocp-Apim-Subscription-Key"
48
+ >;
@@ -156,7 +156,6 @@ interface ResourceOperations<
156
156
  * @template Traits Object describing the traits of the operation.
157
157
  */
158
158
  #suppress "@typespec/http/deprecated-implicit-optionality" "Legacy"
159
- #suppress "@typespec/http/deprecated-implicit-optionality" "Legacy"
160
159
  @Foundations.Private.ensureVerb("ResourceCreateOrUpdate", "PATCH")
161
160
  @createsOrUpdatesResource(Resource)
162
161
  @parameterVisibility(Lifecycle.Create, Lifecycle.Update)
@@ -194,7 +193,6 @@ interface ResourceOperations<
194
193
  * @template Traits Object describing the traits of the operation.
195
194
  */
196
195
  #suppress "@typespec/http/deprecated-implicit-optionality" "Legacy"
197
- #suppress "@typespec/http/deprecated-implicit-optionality" "Legacy"
198
196
  @Foundations.Private.ensureVerb("LongRunningResourceCreateOrUpdate", "PATCH")
199
197
  @createsOrUpdatesResource(Resource)
200
198
  @parameterVisibility(Lifecycle.Create, Lifecycle.Update)
package/lib/traits.tsp CHANGED
@@ -74,8 +74,10 @@ model QueryParametersTrait<Parameters extends Model, Contexts = unknown> {
74
74
  * @template Parameters Object describing the query parameters.
75
75
  */
76
76
  @trait
77
- model ListQueryParametersTrait<Parameters extends Model>
78
- is QueryParametersTrait<Parameters, TraitContext.List>;
77
+ model ListQueryParametersTrait<Parameters extends Model> is QueryParametersTrait<
78
+ Parameters,
79
+ TraitContext.List
80
+ >;
79
81
 
80
82
  /**
81
83
  * Declares a trait that is applied as a request header parameter.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-core",
3
- "version": "0.70.0-dev.0",
3
+ "version": "0.70.0",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Core library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",
@@ -47,26 +47,25 @@
47
47
  "!dist/test/**"
48
48
  ],
49
49
  "peerDependencies": {
50
- "@typespec/compiler": "^1.13.0",
51
- "@typespec/http": "^1.13.0",
52
- "@typespec/rest": "^0.83.0 || >=0.84.0-dev <0.84.0"
50
+ "@typespec/http": "^1.14.0",
51
+ "@typespec/compiler": "^1.14.0",
52
+ "@typespec/rest": "^0.84.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@types/node": "^25.5.2",
56
- "@typespec/compiler": "^1.13.0",
57
- "@typespec/http": "^1.13.0",
58
- "@typespec/library-linter": "^0.83.0 || >=0.84.0-dev <0.84.0",
59
- "@typespec/openapi": "^1.13.0",
60
- "@typespec/rest": "^0.83.0 || >=0.84.0-dev <0.84.0",
61
- "@typespec/tspd": "^0.75.0 || >=0.76.0-dev <0.76.0",
62
- "@typespec/versioning": "^0.83.0 || >=0.84.0-dev <0.84.0",
55
+ "@types/node": "^26.0.0",
63
56
  "@vitest/coverage-v8": "^4.1.3",
64
57
  "@vitest/ui": "^4.1.3",
65
58
  "rimraf": "^6.1.3",
66
59
  "typescript": "~6.0.2",
67
- "vitest": "^4.1.3"
60
+ "vitest": "^4.1.3",
61
+ "@typespec/compiler": "^1.14.0",
62
+ "@typespec/http": "^1.14.0",
63
+ "@typespec/library-linter": "^0.84.0",
64
+ "@typespec/openapi": "^1.14.0",
65
+ "@typespec/rest": "^0.84.0",
66
+ "@typespec/tspd": "^0.76.0",
67
+ "@typespec/versioning": "^0.84.0"
68
68
  },
69
- "dependencies": {},
70
69
  "scripts": {
71
70
  "clean": "rimraf ./dist ./temp",
72
71
  "build": "pnpm run gen-extern-signature && tsc -p tsconfig.build.json && pnpm run lint-typespec-library",
@@ -77,8 +76,8 @@
77
76
  "test:watch": "vitest -w",
78
77
  "test:ui": "vitest --ui",
79
78
  "test:ci": "vitest run --coverage --reporter=junit --reporter=default",
80
- "lint": "eslint . --max-warnings=0",
81
- "lint:fix": "eslint . --fix ",
79
+ "lint": "oxlint . --deny-warnings",
80
+ "lint:fix": "oxlint . --fix",
82
81
  "regen-docs": "tspd doc . --enable-experimental --llmstxt --output-dir ../../website/src/content/docs/docs/libraries/azure-core/reference"
83
82
  }
84
83
  }