@azure-tools/rlc-common 0.51.1 → 0.52.0-alpha.20260403.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @azure-tools/rlc-common@0.51.1 build /mnt/vss/_work/1/s/packages/rlc-common
2
+ > @azure-tools/rlc-common@0.52.0 build /mnt/vss/_work/1/s/packages/rlc-common
3
3
  > rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.52.0 (2026-04-03)
2
+
3
+ - [Feature] Support metadata parameters in body models and use methodParameterSegments for accessor paths. Please refer to [#3848](https://github.com/Azure/autorest.typescript/pull/3848)
4
+ - [Feature] Migrate test runner from mocha to vitest v4. Please refer to [#3865](https://github.com/Azure/autorest.typescript/pull/3865)
5
+ - [Feature] Export client options params as type in *Client.ts. Please refer to [#3873](https://github.com/Azure/autorest.typescript/pull/3873)
6
+ - [Bugfix] Fix: wrap LRO non-model response types when wrapNonModelReturn is enabled. Please refer to [#3876](https://github.com/Azure/autorest.typescript/pull/3876)
7
+
1
8
  ## 0.51.1 (2026-03-30)
2
9
 
3
10
  - [Feature] Bump TypeSpec dependencies to latest stable. Please refer to [#3870](https://github.com/Azure/autorest.typescript/pull/3870)
package/dist/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@azure-tools/rlc-common","version":"0.51.1","description":"","type":"commonjs","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"handlebars":"^4.7.7","lodash":"^4.17.21","ts-morph":"^23.0.0"},"devDependencies":{"@types/chai":"^4.3.4","@types/fs-extra":"^8.1.0","@types/lodash":"^4.14.182","@types/mocha":"^10.0.1","@typescript-eslint/eslint-plugin":"^8.18.0","@typescript-eslint/parser":"^8.18.0","chai":"^4.3.7","cross-env":"7.0.3","eslint-plugin-require-extensions":"0.1.3","fs-extra":"^10.0.0","mocha":"^10.2.0","prettier":"^3.1.0","rimraf":"^5.0.10","ts-node":"^10.7.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
1
+ {"name":"@azure-tools/rlc-common","version":"0.52.0","description":"","type":"commonjs","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"vitest run"},"keywords":[],"author":"","license":"ISC","dependencies":{"handlebars":"^4.7.7","lodash":"^4.17.21","ts-morph":"^23.0.0"},"devDependencies":{"@types/fs-extra":"^8.1.0","@types/lodash":"^4.14.182","@typescript-eslint/eslint-plugin":"^8.18.0","@typescript-eslint/parser":"^8.18.0","chai":"^4.3.7","eslint-plugin-require-extensions":"0.1.3","fs-extra":"^10.0.0","prettier":"^3.1.0","rimraf":"^5.0.10","vitest":"^4.1.0","vite":"^6.0.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
@@ -1 +1 @@
1
- {"name":"@azure-tools/rlc-common","version":"0.51.1","description":"","type":"module","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"handlebars":"^4.7.7","lodash":"^4.17.21","ts-morph":"^23.0.0"},"devDependencies":{"@types/chai":"^4.3.4","@types/fs-extra":"^8.1.0","@types/lodash":"^4.14.182","@types/mocha":"^10.0.1","@typescript-eslint/eslint-plugin":"^8.18.0","@typescript-eslint/parser":"^8.18.0","chai":"^4.3.7","cross-env":"7.0.3","eslint-plugin-require-extensions":"0.1.3","fs-extra":"^10.0.0","mocha":"^10.2.0","prettier":"^3.1.0","rimraf":"^5.0.10","ts-node":"^10.7.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
1
+ {"name":"@azure-tools/rlc-common","version":"0.52.0","description":"","type":"module","main":"dist/index.js","module":"dist-esm/index.js","exports":{".":{"types":"./types/index.d.ts","require":"./dist/index.js","import":"./dist-esm/index.js"}},"types":"./types/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","lint:fix":"eslint src --fix --ext .ts","format":"npm run -s prettier -- --write","check-format":"npm run prettier -- --check","prettier":"prettier --config ./.prettierrc \"src/**/*.ts\"","build":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js","build:cjs":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js","build:esm":"rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js","test":"npm run unit-test","unit-test":"vitest run"},"keywords":[],"author":"","license":"ISC","dependencies":{"handlebars":"^4.7.7","lodash":"^4.17.21","ts-morph":"^23.0.0"},"devDependencies":{"@types/fs-extra":"^8.1.0","@types/lodash":"^4.14.182","@typescript-eslint/eslint-plugin":"^8.18.0","@typescript-eslint/parser":"^8.18.0","chai":"^4.3.7","eslint-plugin-require-extensions":"0.1.3","fs-extra":"^10.0.0","prettier":"^3.1.0","rimraf":"^5.0.10","vitest":"^4.1.0","vite":"^6.0.0"},"bugs":{"url":"https://github.com/Azure/autorest.typescript/issues"},"homepage":"https://github.com/Azure/autorest.typescript/tree/main/packages/rlc-common/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/rlc-common",
3
- "version": "0.51.1",
3
+ "version": "0.52.0-alpha.20260403.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,20 +22,17 @@
22
22
  "ts-morph": "^23.0.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/chai": "^4.3.4",
26
25
  "@types/fs-extra": "^8.1.0",
27
26
  "@types/lodash": "^4.14.182",
28
- "@types/mocha": "^10.0.1",
29
27
  "@typescript-eslint/eslint-plugin": "^8.18.0",
30
28
  "@typescript-eslint/parser": "^8.18.0",
31
29
  "chai": "^4.3.7",
32
- "cross-env": "7.0.3",
33
30
  "eslint-plugin-require-extensions": "0.1.3",
34
31
  "fs-extra": "^10.0.0",
35
- "mocha": "^10.2.0",
36
32
  "prettier": "^3.1.0",
37
33
  "rimraf": "^5.0.10",
38
- "ts-node": "^10.7.0"
34
+ "vitest": "^4.1.0",
35
+ "vite": "^6.0.0"
39
36
  },
40
37
  "bugs": {
41
38
  "url": "https://github.com/Azure/autorest.typescript/issues"
@@ -51,6 +48,6 @@
51
48
  "build:cjs": "rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js",
52
49
  "build:esm": "rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js",
53
50
  "test": "npm run unit-test",
54
- "unit-test": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --loader=ts-node/esm --experimental-specifier-resolution=node test/**/*.spec.ts"
51
+ "unit-test": "vitest run"
55
52
  }
56
53
  }
@@ -1,5 +1,5 @@
1
- import { expect } from "chai";
2
- import "mocha";
1
+ import { describe, it, expect } from "vitest";
2
+
3
3
  import {
4
4
  buildRuntimeImports,
5
5
  getImportSpecifier
@@ -1,5 +1,5 @@
1
- import { expect } from "chai";
2
- import "mocha";
1
+ import { describe, it, expect } from "vitest";
2
+
3
3
  import { NameType, normalizeName } from "../../src/helpers/nameUtils.js";
4
4
 
5
5
  describe("#normalizeName", () => {
@@ -1,5 +1,5 @@
1
- import { expect } from "chai";
2
- import "mocha";
1
+ import { describe, it, expect } from "vitest";
2
+
3
3
  import {
4
4
  TypeScriptType,
5
5
  getArrayObjectType,
@@ -1,7 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import "mocha";
4
+
5
+ import { describe, it, expect } from "vitest";
5
6
 
6
7
  import { TestModelConfig, createMockModel } from "./mockHelper.js";
7
8
  import {
@@ -9,8 +10,6 @@ import {
9
10
  updatePackageFile
10
11
  } from "../../src/metadata/buildPackageFile.js";
11
12
 
12
- import { expect } from "chai";
13
-
14
13
  describe("Package file generation", () => {
15
14
  describe("Flavor agnostic config", () => {
16
15
  it("[esm] should create a package file", () => {
@@ -1,11 +1,11 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import "mocha";
4
+
5
+ import { describe, it, expect } from "vitest";
5
6
 
6
7
  import { createMockModel } from "./mockHelper.js";
7
8
  import { buildSnippets } from "../../src/test/buildSnippets.js"
8
- import { expect } from "chai";
9
9
 
10
10
  describe("Snippets file generation", () => {
11
11
  describe("Should generate snippets for modular", () => {
@@ -1,6 +1,7 @@
1
- import { expect } from "chai";
1
+ import { describe, it, expect } from "vitest";
2
+
2
3
  import { buildVitestConfig } from "../../src/metadata/buildVitestConfig.js";
3
- import "mocha";
4
+
4
5
  import { createMockModel } from "./mockHelper.js";
5
6
 
6
7
  describe("vitest.config", () => {
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ include: ["test/**/*.spec.ts"]
6
+ }
7
+ });