@azure-tools/rlc-common 0.50.2 → 0.50.3
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/interfaces.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist-esm/interfaces.js.map +1 -1
- package/dist-esm/package.json +1 -1
- package/package.json +1 -1
- package/src/interfaces.ts +6 -0
- package/types/interfaces.d.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @azure-tools/rlc-common@0.50.
|
|
2
|
+
> @azure-tools/rlc-common@0.50.3 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,9 @@
|
|
|
1
|
+
## 0.50.3 (2026-03-11)
|
|
2
|
+
|
|
3
|
+
- [Feature] Add `wrap-non-model-return` option to prevent breaking changes for non-model types. Please refer to [#3805](https://github.com/Azure/autorest.typescript/pull/3805)
|
|
4
|
+
- [Feature] Test generation for modular SDK clients. Please refer to [#3809](https://github.com/Azure/autorest.typescript/pull/3809)
|
|
5
|
+
- [Bugfix] Fix multi-level @Legacy.flattenProperty generates incorrect sample code. Please refer to [#3831](https://github.com/Azure/autorest.typescript/pull/3831)
|
|
6
|
+
|
|
1
7
|
## 0.50.2 (2026-03-09)
|
|
2
8
|
|
|
3
9
|
- [Bugfix] Remove `hasWarpConfigFile` guard — always regenerate `warp.config.yml`. Please refer to [#3825](https://github.com/Azure/autorest.typescript/pull/3825)
|
package/dist/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";;;AA0La,QAAA,2BAA2B,GAAG,CAAC,EAC1C,QAAA,0BAA0B,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";;;AA0La,QAAA,2BAA2B,GAAG,CAAC,EAC1C,QAAA,0BAA0B,GAAG,CAAC,CAAC;AAwGjC,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,kDAAkD;IAClD,gCAAe,CAAA;IACf,qDAAqD;IACrD,kCAAiB,CAAA;IACjB,wDAAwD;IACxD,wCAAuB,CAAA;AACzB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@azure-tools/rlc-common","version":"0.50.
|
|
1
|
+
{"name":"@azure-tools/rlc-common","version":"0.50.3","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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AA0LA,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAC1C,0BAA0B,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AA0LA,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAC1C,0BAA0B,GAAG,CAAC,CAAC;AAwGjC,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,kDAAkD;IAClD,gCAAe,CAAA;IACf,qDAAqD;IACrD,kCAAiB,CAAA;IACjB,wDAAwD;IACxD,wCAAuB,CAAA;AACzB,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB"}
|
package/dist-esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@azure-tools/rlc-common","version":"0.50.
|
|
1
|
+
{"name":"@azure-tools/rlc-common","version":"0.50.3","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/"}
|
package/package.json
CHANGED
package/src/interfaces.ts
CHANGED
|
@@ -261,6 +261,12 @@ export interface RLCOptions {
|
|
|
261
261
|
compatibilityLro?: boolean;
|
|
262
262
|
ignoreNullableOnOptional?: boolean;
|
|
263
263
|
isMultiService?: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* When set to true, non-model return types (arrays, scalars, enums, bytes with binary content type)
|
|
266
|
+
* will be wrapped in an XxxResponse type to maintain backward compatibility with HLC.
|
|
267
|
+
* This option defaults to true for Azure flavor and to false otherwise, unless explicitly set.
|
|
268
|
+
*/
|
|
269
|
+
wrapNonModelReturn?: boolean;
|
|
264
270
|
/**
|
|
265
271
|
* When enabled, every regular (non-LRO, non-paging) operation return type is augmented with a
|
|
266
272
|
* `_response` property containing `rawResponse`, `parsedBody`, and `parsedHeaders`.
|
package/types/interfaces.d.ts
CHANGED
|
@@ -214,6 +214,12 @@ export interface RLCOptions {
|
|
|
214
214
|
compatibilityLro?: boolean;
|
|
215
215
|
ignoreNullableOnOptional?: boolean;
|
|
216
216
|
isMultiService?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* When set to true, non-model return types (arrays, scalars, enums, bytes with binary content type)
|
|
219
|
+
* will be wrapped in an XxxResponse type to maintain backward compatibility with HLC.
|
|
220
|
+
* This option defaults to true for Azure flavor and to false otherwise, unless explicitly set.
|
|
221
|
+
*/
|
|
222
|
+
wrapNonModelReturn?: boolean;
|
|
217
223
|
/**
|
|
218
224
|
* When enabled, every regular (non-LRO, non-paging) operation return type is augmented with a
|
|
219
225
|
* `_response` property containing `rawResponse`, `parsedBody`, and `parsedHeaders`.
|