Rename @azure-tools/autorest-extension-base dependency in m4 to new @autorest/extension-base pkg (#3828)

This commit is contained in:
Timothee Guerin 2021-02-02 08:50:21 -08:00 коммит произвёл GitHub
Родитель e765f8b131
Коммит 7bd18a3917
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
20 изменённых файлов: 40 добавлений и 20 удалений

Просмотреть файл

@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@autorest/codemodel",
"comment": "Removed unused deprecated dependency @azure-tools/autorest-extension-base",
"type": "patch"
}
],
"packageName": "@autorest/codemodel",
"email": "tiguerin@microsoft.com"
}

Просмотреть файл

@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@autorest/modelerfour",
"comment": "Rename @azure-tools/autorest-extension-base dependency to new @autorest/extension-base pkg",
"type": "patch"
}
],
"packageName": "@autorest/modelerfour",
"email": "tiguerin@microsoft.com"
}

Просмотреть файл

@ -57,7 +57,7 @@
"ts-jest": "^26.4.4",
"@azure-tools/codegen": "~2.5.292",
"@azure-tools/codegen-csharp": "~3.0.0",
"@azure-tools/autorest-extension-base": "~3.1.0",
"@autorest/extension-base": "~3.1.0",
"@autorest/codemodel": "~4.14.3",
"@azure-tools/tasks": "~3.0.0",
"@azure-tools/openapi": "~3.0.0",

Просмотреть файл

@ -13,7 +13,7 @@ import {
ImplementationLocation,
DictionarySchema,
} from "@autorest/codemodel";
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
import { values, items, length, Dictionary, refCount, clone } from "@azure-tools/linq";
import { ModelerFourOptions } from "../modeler/modelerfour-options";

Просмотреть файл

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
import { Checker } from "./checker";

Просмотреть файл

@ -1,5 +1,5 @@
import { CodeModel } from "@autorest/codemodel";
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
export class Example {
codeModel: CodeModel;

Просмотреть файл

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
import { Example } from "./example";

Просмотреть файл

@ -13,7 +13,7 @@ import {
ImplementationLocation,
Request,
} from "@autorest/codemodel";
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
import { values, items, length, Dictionary, refCount, clone } from "@azure-tools/linq";
import { ModelerFourOptions } from "../modeler/modelerfour-options";

Просмотреть файл

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
import { Flattener } from "./flattener";

Просмотреть файл

@ -15,7 +15,7 @@ import {
Request,
SchemaContext,
} from "@autorest/codemodel";
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
import { values, items, length, Dictionary, refCount, clone } from "@azure-tools/linq";
import { pascalCase, camelCase } from "@azure-tools/codegen";
import { ModelerFourOptions } from "../modeler/modelerfour-options";

Просмотреть файл

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
import { Grouper } from "./grouper";

Просмотреть файл

@ -1,6 +1,6 @@
require("source-map-support").install();
import { AutoRestExtension } from "@azure-tools/autorest-extension-base";
import { AutoRestExtension } from "@autorest/extension-base";
import { processRequest as modelerfour } from "./modeler/plugin-modelerfour";
import { processRequest as preNamer } from "./prenamer/plugin-prenamer";
import { processRequest as flattener } from "./flattener/plugin-flattener";

Просмотреть файл

@ -1,4 +1,4 @@
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
import * as OpenAPI from "@azure-tools/openapi";
import { values, length, items, ToDictionary, Dictionary } from "@azure-tools/linq";
import {

Просмотреть файл

@ -72,7 +72,7 @@ import {
TimeSchema,
HttpMultipartRequest,
} from "@autorest/codemodel";
import { Session, Channel } from "@azure-tools/autorest-extension-base";
import { Session, Channel } from "@autorest/extension-base";
import { Interpretations, XMSEnum } from "./interpretations";
import { fail, minimum, pascalCase, knownMediaType, KnownMediaType } from "@azure-tools/codegen";
import { ModelerFourOptions } from "./modelerfour-options";
@ -785,7 +785,6 @@ export class ModelerFour {
for (const { key: propertyName, value: propertyDeclaration } of items(schema.properties)) {
const property = this.resolve(propertyDeclaration);
this.use(<OpenAPI.Refable<OpenAPI.Schema>>propertyDeclaration, (pSchemaName, pSchema) => {
const pType = this.processSchema(pSchemaName || `type·for·${propertyName}`, pSchema);
const prop = objectSchema.addProperty(
new Property(

Просмотреть файл

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { deserialize, serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import * as OpenAPI from "@azure-tools/openapi";
import { ModelerFour } from "./modelerfour";
import { codeModelSchema, CodeModel } from "@autorest/codemodel";

Просмотреть файл

@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import { codeModelSchema, CodeModel } from "@autorest/codemodel";
import { PreNamer } from "./prenamer";

Просмотреть файл

@ -17,7 +17,7 @@ import {
SealedChoiceSchema,
PrimitiveSchema,
} from "@autorest/codemodel";
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
import { values, length, Dictionary, items } from "@azure-tools/linq";
import { selectName, Style, Styler } from "@azure-tools/codegen";
import { ModelerFourOptions } from "../modeler/modelerfour-options";

Просмотреть файл

@ -1,4 +1,4 @@
import { Session } from "@azure-tools/autorest-extension-base";
import { Session } from "@autorest/extension-base";
import { values, items, length, Dictionary, refCount, clone, keys } from "@azure-tools/linq";
import {
Model as oai3,
@ -12,7 +12,7 @@ import {
} from "@azure-tools/openapi";
import { serialize } from "@azure-tools/codegen";
import { Host, startSession } from "@azure-tools/autorest-extension-base";
import { Host, startSession } from "@autorest/extension-base";
import { Interpretations } from "../modeler/interpretations";
import { getDiff } from "recursive-diff";

Просмотреть файл

@ -1,6 +1,6 @@
import { readFile } from "@azure-tools/async-io";
import { deserialize, fail } from "@azure-tools/codegen";
import { Session, startSession } from "@azure-tools/autorest-extension-base";
import { Session, startSession } from "@autorest/extension-base";
import { Model } from "@azure-tools/openapi";
export interface TestSessionInput {

Просмотреть файл

@ -51,7 +51,6 @@
"ts-morph": "~4.0.1"
},
"dependencies": {
"@azure-tools/autorest-extension-base": "~3.1.0",
"@azure-tools/codegen": "2.5.290",
"@azure-tools/linq": "~3.1.0",
"js-yaml": "3.13.1"