From b5fd1df98771ed4b3dcb3b009dfe24cd57f3a894 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Wed, 28 Aug 2019 12:57:56 -0700 Subject: [PATCH] update eslint,plugins --- .default-eslintrc.yaml | 8 +- common/scripts/sync-versions.js | 64 ++--- libraries/.library-template/package.json | 6 +- libraries/async-io/package.json | 12 +- .../lib/extension-base.ts | 270 +++++++++--------- .../autorest-extension-base/package.json | 8 +- libraries/codegen-csharp/package.json | 12 +- libraries/codegen-csharp/statements/catch.ts | 1 - libraries/codegen/package.json | 12 +- libraries/codemodel-v3/package.json | 14 +- libraries/datastore/package.json | 16 +- libraries/deduplication/package.json | 22 +- libraries/eventing/package.json | 10 +- libraries/extension/package.json | 14 +- libraries/linq/package.json | 8 +- libraries/oai2-to-oai3/package.json | 14 +- libraries/object-comparison/package.json | 8 +- libraries/openapi/package.json | 10 +- libraries/tasks/package.json | 8 +- libraries/uri/package.json | 14 +- package.json | 2 +- 21 files changed, 268 insertions(+), 265 deletions(-) diff --git a/.default-eslintrc.yaml b/.default-eslintrc.yaml index b6f07e7..43d7c0b 100644 --- a/.default-eslintrc.yaml +++ b/.default-eslintrc.yaml @@ -25,9 +25,13 @@ rules: "@typescript-eslint/no-parameter-properties": 'off' "@typescript-eslint/no-angle-bracket-type-assertion" : 'off' "require-atomic-updates" : 'off' + '@typescript-eslint/consistent-type-assertions' : + - error + - assertionStyle: 'angle-bracket' + "@typescript-eslint/array-type": - - 1 - - generic + - error + - default: generic indent: - warn - 2 diff --git a/common/scripts/sync-versions.js b/common/scripts/sync-versions.js index ec239f7..6c88401 100644 --- a/common/scripts/sync-versions.js +++ b/common/scripts/sync-versions.js @@ -1,54 +1,54 @@ var fs = require('fs'); function read(filename) { - const txt =fs.readFileSync(filename, 'utf8') - .replace(/\r/gm, '') - .replace(/\n/gm, '«') - .replace(/\/\*.*?\*\//gm,'') - .replace(/«/gm, '\n') - .replace(/\s+\/\/.*/g, ''); - return JSON.parse( txt); + const txt = fs.readFileSync(filename, 'utf8') + .replace(/\r/gm, '') + .replace(/\n/gm, '«') + .replace(/\/\*.*?\*\//gm, '') + .replace(/«/gm, '\n') + .replace(/\s+\/\/.*/g, ''); + return JSON.parse(txt); } function versionToInt(ver) { - let v = ver.replace(/[^\d\.]/g,'').split('.').slice(0,3); - while( v.length < 3) { + let v = ver.replace(/[^\d\.]/g, '').split('.').slice(0, 3); + while (v.length < 3) { v.unshift(0); } - let n = 0 ; - for( let i =0; i< v.length;i++ ) { - n = n + ((2**(i*16))*parseInt(v[v.length-1 - i])) + let n = 0; + for (let i = 0; i < v.length; i++) { + n = n + ((2 ** (i * 16)) * parseInt(v[v.length - 1 - i])) } return n; } -const rush =read(`${__dirname}/../../rush.json`); +const rush = read(`${__dirname}/../../rush.json`); const pjs = {}; // load all the projects -for( const each of rush.projects ) { +for (const each of rush.projects) { const packageName = each.packageName; const projectFolder = each.projectFolder; pjs[packageName] = require(`${__dirname}/../../${projectFolder}/package.json`); } // verify that peer dependencies are the same version as they are building. -for( const pj of Object.getOwnPropertyNames(pjs) ){ +for (const pj of Object.getOwnPropertyNames(pjs)) { const each = pjs[pj]; - for( const dep in each.dependencies ) { + for (const dep in each.dependencies) { const ref = pjs[dep]; - if( ref ) { - each.dependencies[dep] = `^${ref.version}`; + if (ref) { + each.dependencies[dep] = `~${ref.version}`; } } } function recordDeps(dependencies) { - for( const packageName in dependencies ) { + for (const packageName in dependencies) { const packageVersion = dependencies[packageName]; - if( packageList[packageName] ) { + if (packageList[packageName]) { // same version? - if( packageList[packageName] === packageVersion ) { + if (packageList[packageName] === packageVersion) { continue; } @@ -56,12 +56,12 @@ function recordDeps(dependencies) { const v = versionToInt(packageVersion); - if( v === 0) { + if (v === 0) { console.error(`Unparsed version ${packageName}:${packageVersion}`); process.exit(1); } const v2 = versionToInt(packageList[packageName]); - if( v > v2 ) { + if (v > v2) { packageList[packageName] = packageVersion; } } else { @@ -69,9 +69,9 @@ function recordDeps(dependencies) { } } } -function fixDeps(pj,dependencies) { - for( const packageName in dependencies ) { - if( dependencies[packageName] !== packageList[packageName] ) { +function fixDeps(pj, dependencies) { + for (const packageName in dependencies) { + if (dependencies[packageName] !== packageList[packageName]) { console.log(`updating ${pj}:${packageName} from '${dependencies[packageName]}' to '${packageList[packageName]}'`) dependencies[packageName] = packageList[packageName]; } @@ -80,23 +80,23 @@ function fixDeps(pj,dependencies) { const packageList = {}; // now compare to see if someone has an exnternal package with different version // than everyone else. -for( const pj of Object.getOwnPropertyNames(pjs) ){ +for (const pj of Object.getOwnPropertyNames(pjs)) { const each = pjs[pj]; recordDeps(each.dependencies); recordDeps(each.devDependencies); } -for( const pj of Object.getOwnPropertyNames(pjs) ){ +for (const pj of Object.getOwnPropertyNames(pjs)) { const each = pjs[pj]; - fixDeps(pj,each.dependencies); - fixDeps(pj,each.devDependencies); + fixDeps(pj, each.dependencies); + fixDeps(pj, each.devDependencies); } // write out the results. -for( const each of rush.projects ) { +for (const each of rush.projects) { const packageName = each.packageName; const projectFolder = each.projectFolder; - fs.writeFileSync(`${__dirname}/../../${projectFolder}/package.json`, JSON.stringify(pjs[packageName], null, 2 )); + fs.writeFileSync(`${__dirname}/../../${projectFolder}/package.json`, JSON.stringify(pjs[packageName], null, 2)); } console.log("project.json files updated"); \ No newline at end of file diff --git a/libraries/.library-template/package.json b/libraries/.library-template/package.json index 5293660..54b4e1a 100644 --- a/libraries/.library-template/package.json +++ b/libraries/.library-template/package.json @@ -1,7 +1,7 @@ { "name": "@azure/library-template", "private": true, - "version": "2.1.0", + "version": "1.0.0", "description": "template project to copy/paste as for a new library in perks", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -14,8 +14,8 @@ }, "scripts": { "build": "tsc -p .", - "watch": "tsc -p . --watch", - "eslint-fix" : "eslint . --fix --ext .ts", + "watch": "tsc -p . --watch", + "eslint-fix": "eslint . --fix --ext .ts", "set-version": "node -e \"let pkg = require('./package.json'); require('child_process').exec('git rev-list --parents HEAD --count --full-history .', (o,stdout) => { const v = pkg.version.split('.'); v[v.length-1] = (parseInt(stdout.trim()) -1); const orig=JSON.stringify(pkg,null,2); pkg.version = v.join('.'); const delta = JSON.stringify(pkg,null,2 ); if( orig !== delta) require('fs').writeFileSync('./package.json',delta)})\"", "reset-version": "node -e \"let pkg = require('./package.json'); const v = pkg.version.split('.'); v[v.length-1] = 0; const orig=JSON.stringify(pkg,null,2); pkg.version = v.join('.'); const delta = JSON.stringify(pkg,null,2 ); if( orig !== delta) require('fs').writeFileSync('./package.json',delta)\"", "prepare": "npm run build", diff --git a/libraries/async-io/package.json b/libraries/async-io/package.json index 32bb8a6..e5e1589 100644 --- a/libraries/async-io/package.json +++ b/libraries/async-io/package.json @@ -1,6 +1,6 @@ { "name": "@azure/async-io", - "version": "2.1.0", + "version": "3.0.0", "description": "Asynchronous IO (for Azure Open Source Projects)", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -46,12 +46,12 @@ "@types/node": "10.12.19", "mocha": "5.2.0", "typescript": "~3.5.3", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0" + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2" }, "dependencies": { - "@azure/tasks": "^2.1.0", - "proper-lockfile": "^2.0.1" + "@azure/tasks": "~3.0.0", + "proper-lockfile": "~2.0.1" } } \ No newline at end of file diff --git a/libraries/autorest-extension-base/lib/extension-base.ts b/libraries/autorest-extension-base/lib/extension-base.ts index c57488c..4703241 100644 --- a/libraries/autorest-extension-base/lib/extension-base.ts +++ b/libraries/autorest-extension-base/lib/extension-base.ts @@ -1,135 +1,135 @@ -import { - createMessageConnection, Logger, - RequestType0, RequestType1, RequestType2, - NotificationType2, NotificationType4 -} from 'vscode-jsonrpc'; -import { Readable } from 'stream'; -import { Mapping, Message, RawSourceMap, Channel } from './types'; -import { basename, dirname } from 'path'; - -namespace IAutoRestPluginTarget_Types { - export const GetPluginNames = new RequestType0, Error, void>('GetPluginNames'); - export const Process = new RequestType2('Process'); -} -interface IAutoRestPluginTarget { - GetPluginNames(): Promise>; - Process(pluginName: string, sessionId: string): Promise; -} - -namespace IAutoRestPluginInitiator_Types { - export const ReadFile = new RequestType2('ReadFile'); - export const GetValue = new RequestType2('GetValue'); - export const ListInputs = new RequestType2, Error, void>('ListInputs'); - export const ProtectFiles = new NotificationType2('ProtectFiles'); - export const WriteFile = new NotificationType4 | RawSourceMap | undefined, void>('WriteFile'); - export const Message = new NotificationType2('Message'); -} - -export interface IAutoRestPluginInitiator { - ReadFile(filename: string): Promise; - GetValue(key: string): Promise; - ListInputs(artifactType?: string): Promise>; - ProtectFiles(path: string): Promise; - WriteFile(filename: string, content: string, sourceMap?: Array | RawSourceMap, artifactType?: string): void; - Message(message: Message): void; - UpdateConfigurationFile(filename: string, content: string): void; - GetConfigurationFile(filename: string): Promise; -} - -export type AutoRestPluginHandler = (initiator: IAutoRestPluginInitiator) => Promise; - -export class AutoRestExtension { - private readonly plugins: { [name: string]: AutoRestPluginHandler } = {}; - - public Add(name: string, handler: AutoRestPluginHandler): void { - this.plugins[name] = handler; - } - - public async Run(input: NodeJS.ReadableStream = process.stdin, output: NodeJS.WritableStream = process.stdout): Promise { - // connection setup - const channel = createMessageConnection( - input, - output, - { - error(message) { console.error('error: ', message); }, - info(message) { console.error('info: ', message); }, - log(message) { console.error('log: ', message); }, - warn(message) { console.error('warn: ', message); } - } - ); - - channel.onRequest(IAutoRestPluginTarget_Types.GetPluginNames, async () => Object.keys(this.plugins)); - channel.onRequest(IAutoRestPluginTarget_Types.Process, async (pluginName: string, sessionId: string) => { - try { - const handler = this.plugins[pluginName]; - if (!handler) { - throw new Error(`Plugin host could not find requested plugin '${pluginName}'.`); - } - await handler({ - async ProtectFiles(path: string): Promise { - channel.sendNotification(IAutoRestPluginInitiator_Types.ProtectFiles, sessionId, path); - }, - UpdateConfigurationFile(filename: string, content: string): void { - channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, { Channel: Channel.Configuration, Key: [filename], Text: content }); - }, - async GetConfigurationFile(filename: string): Promise { - const configurations = await channel.sendRequest(IAutoRestPluginInitiator_Types.GetValue, sessionId, 'configurationFiles'); - - const filenames = Object.getOwnPropertyNames(configurations); - if (filenames.length > 0) { - const basePath = dirname(filenames[0]); - for (const configFile of filenames) { - if (configFile.startsWith(basePath) && filename === basename(configFile)) { - return configurations[configFile]; - } - } - } - return ''; - }, - async ReadFile(filename: string): Promise { - return await channel.sendRequest(IAutoRestPluginInitiator_Types.ReadFile, sessionId, filename); - }, - async GetValue(key: string): Promise { - return await channel.sendRequest(IAutoRestPluginInitiator_Types.GetValue, sessionId, key); - }, - async ListInputs(artifactType?: string): Promise> { - return await channel.sendRequest(IAutoRestPluginInitiator_Types.ListInputs, sessionId, artifactType); - }, - WriteFile(filename: string, content: string, sourceMap?: Array | RawSourceMap, artifactType?: string): void { - if (artifactType) { - channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, { - Channel: Channel.File, - Details: { - content: content, - type: artifactType, - uri: filename, - sourceMap: sourceMap - }, - Text: content, - Key: [artifactType, filename] - }); - } else { - channel.sendNotification(IAutoRestPluginInitiator_Types.WriteFile, sessionId, filename, content, sourceMap); - } - }, - - Message(message: Message): void { - channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, message); - } - }); - return true; - } catch (e) { - console.error(`PLUGIN FAILURE: ${e.message}, ${e.stack}, ${JSON.stringify(e, null, 2)}`); - channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, { - Channel: 'fatal' as any, - Text: '' + e, - Details: e - }); - return false; - } - }); - - // activate - channel.listen(); - } -} +import { + createMessageConnection, Logger, + RequestType0, RequestType1, RequestType2, + NotificationType2, NotificationType4 +} from 'vscode-jsonrpc'; +import { Readable } from 'stream'; +import { Mapping, Message, RawSourceMap, Channel } from './types'; +import { basename, dirname } from 'path'; + +namespace IAutoRestPluginTargetTypes { + export const GetPluginNames = new RequestType0, Error, void>('GetPluginNames'); + export const Process = new RequestType2('Process'); +} +interface IAutoRestPluginTarget { + GetPluginNames(): Promise>; + Process(pluginName: string, sessionId: string): Promise; +} + +namespace IAutoRestPluginInitiatorTypes { + export const ReadFile = new RequestType2('ReadFile'); + export const GetValue = new RequestType2('GetValue'); + export const ListInputs = new RequestType2, Error, void>('ListInputs'); + export const ProtectFiles = new NotificationType2('ProtectFiles'); + export const WriteFile = new NotificationType4 | RawSourceMap | undefined, void>('WriteFile'); + export const Message = new NotificationType2('Message'); +} + +export interface IAutoRestPluginInitiator { + ReadFile(filename: string): Promise; + GetValue(key: string): Promise; + ListInputs(artifactType?: string): Promise>; + ProtectFiles(path: string): Promise; + WriteFile(filename: string, content: string, sourceMap?: Array | RawSourceMap, artifactType?: string): void; + Message(message: Message): void; + UpdateConfigurationFile(filename: string, content: string): void; + GetConfigurationFile(filename: string): Promise; +} + +export type AutoRestPluginHandler = (initiator: IAutoRestPluginInitiator) => Promise; + +export class AutoRestExtension { + private readonly plugins: { [name: string]: AutoRestPluginHandler } = {}; + + public Add(name: string, handler: AutoRestPluginHandler): void { + this.plugins[name] = handler; + } + + public async Run(input: NodeJS.ReadableStream = process.stdin, output: NodeJS.WritableStream = process.stdout): Promise { + // connection setup + const channel = createMessageConnection( + input, + output, + { + error(message) { console.error('error: ', message); }, + info(message) { console.error('info: ', message); }, + log(message) { console.error('log: ', message); }, + warn(message) { console.error('warn: ', message); } + } + ); + + channel.onRequest(IAutoRestPluginTargetTypes.GetPluginNames, async () => Object.keys(this.plugins)); + channel.onRequest(IAutoRestPluginTargetTypes.Process, async (pluginName: string, sessionId: string) => { + try { + const handler = this.plugins[pluginName]; + if (!handler) { + throw new Error(`Plugin host could not find requested plugin '${pluginName}'.`); + } + await handler({ + async ProtectFiles(path: string): Promise { + channel.sendNotification(IAutoRestPluginInitiatorTypes.ProtectFiles, sessionId, path); + }, + UpdateConfigurationFile(filename: string, content: string): void { + channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, { Channel: Channel.Configuration, Key: [filename], Text: content }); + }, + async GetConfigurationFile(filename: string): Promise { + const configurations = await channel.sendRequest(IAutoRestPluginInitiatorTypes.GetValue, sessionId, 'configurationFiles'); + + const filenames = Object.getOwnPropertyNames(configurations); + if (filenames.length > 0) { + const basePath = dirname(filenames[0]); + for (const configFile of filenames) { + if (configFile.startsWith(basePath) && filename === basename(configFile)) { + return configurations[configFile]; + } + } + } + return ''; + }, + async ReadFile(filename: string): Promise { + return await channel.sendRequest(IAutoRestPluginInitiatorTypes.ReadFile, sessionId, filename); + }, + async GetValue(key: string): Promise { + return await channel.sendRequest(IAutoRestPluginInitiatorTypes.GetValue, sessionId, key); + }, + async ListInputs(artifactType?: string): Promise> { + return await channel.sendRequest(IAutoRestPluginInitiatorTypes.ListInputs, sessionId, artifactType); + }, + WriteFile(filename: string, content: string, sourceMap?: Array | RawSourceMap, artifactType?: string): void { + if (artifactType) { + channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, { + Channel: Channel.File, + Details: { + content: content, + type: artifactType, + uri: filename, + sourceMap: sourceMap + }, + Text: content, + Key: [artifactType, filename] + }); + } else { + channel.sendNotification(IAutoRestPluginInitiatorTypes.WriteFile, sessionId, filename, content, sourceMap); + } + }, + + Message(message: Message): void { + channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, message); + } + }); + return true; + } catch (e) { + console.error(`PLUGIN FAILURE: ${e.message}, ${e.stack}, ${JSON.stringify(e, null, 2)}`); + channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, { + Channel: 'fatal', + Text: '' + e, + Details: e + }); + return false; + } + }); + + // activate + channel.listen(); + } +} diff --git a/libraries/autorest-extension-base/package.json b/libraries/autorest-extension-base/package.json index 5782658..f54e79c 100644 --- a/libraries/autorest-extension-base/package.json +++ b/libraries/autorest-extension-base/package.json @@ -1,6 +1,6 @@ { "name": "@azure/autorest-extension-base", - "version": "2.0.0", + "version": "3.0.0", "description": "Library for creating AutoRest extensions", "main": "dist/exports.js", "scripts": { @@ -30,9 +30,9 @@ "devDependencies": { "@types/node": "10.12.19", "typescript": "~3.5.3", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0" + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2" }, "dependencies": { "vscode-jsonrpc": "^3.5.0" diff --git a/libraries/codegen-csharp/package.json b/libraries/codegen-csharp/package.json index f518932..25a1ba1 100644 --- a/libraries/codegen-csharp/package.json +++ b/libraries/codegen-csharp/package.json @@ -1,6 +1,6 @@ { "name": "@azure/codegen-csharp", - "version": "2.0.0", + "version": "3.0.0", "description": "AutoRest code generator base classes for CSharp#", "directories": { "doc": "docs" @@ -36,13 +36,13 @@ "@types/node": "10.12.19", "mocha": "5.2.0", "mocha-typescript": "1.1.17", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "@azure/codegen": "^1.0.0", - "@azure/linq": "^2.1.0" + "@azure/codegen": "~2.0.0", + "@azure/linq": "~3.0.0" } } \ No newline at end of file diff --git a/libraries/codegen-csharp/statements/catch.ts b/libraries/codegen-csharp/statements/catch.ts index 5e9a8fe..77ee701 100644 --- a/libraries/codegen-csharp/statements/catch.ts +++ b/libraries/codegen-csharp/statements/catch.ts @@ -8,7 +8,6 @@ import { Expression } from '../expression'; import { Parameter } from '../parameter'; import { StatementPossibilities, Statements } from './statement'; - export class CatchStatement extends Statements { public when?: Expression; diff --git a/libraries/codegen/package.json b/libraries/codegen/package.json index 5aed8c1..2772805 100644 --- a/libraries/codegen/package.json +++ b/libraries/codegen/package.json @@ -1,6 +1,6 @@ { "name": "@azure/codegen", - "version": "1.0.0", + "version": "2.0.0", "description": "Autorest Code generator common and base classes", "directories": { "doc": "docs" @@ -37,14 +37,14 @@ "mocha": "5.2.0", "mocha-typescript": "1.1.17", "typescript": "~3.5.3", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "@types/semver": "5.5.0" }, "dependencies": { - "@azure/async-io": "^2.1.0", - "@azure/linq": "^2.1.0", + "@azure/async-io": "~3.0.0", + "@azure/linq": "~3.0.0", "js-yaml": "3.13.1", "semver": "^5.5.1", "safe-eval": "^0.3.0" diff --git a/libraries/codemodel-v3/package.json b/libraries/codemodel-v3/package.json index b2ac6a1..701bd31 100644 --- a/libraries/codemodel-v3/package.json +++ b/libraries/codemodel-v3/package.json @@ -1,6 +1,6 @@ { "name": "@azure/autorest.codemodel-v3", - "version": "2.0.0", + "version": "3.0.0", "description": "AutoRest code model library", "directories": { "doc": "docs" @@ -36,14 +36,14 @@ "@types/node": "10.12.19", "mocha": "5.2.0", "mocha-typescript": "1.1.17", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "@azure/autorest-extension-base": "^2.0.0", - "@azure/codegen": "^1.0.0", - "@azure/linq": "^2.1.0" + "@azure/autorest-extension-base": "~3.0.0", + "@azure/codegen": "~2.0.0", + "@azure/linq": "~3.0.0" } } \ No newline at end of file diff --git a/libraries/datastore/package.json b/libraries/datastore/package.json index c496964..f4cc942 100644 --- a/libraries/datastore/package.json +++ b/libraries/datastore/package.json @@ -1,6 +1,6 @@ { "name": "@azure/datastore", - "version": "3.0.0", + "version": "4.0.0", "description": "Virtualized Filesystem with parsing and sourcemaps (AutoRest)", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -47,16 +47,16 @@ "@types/jsonpath": "^0.2.0", "@types/source-map": "0.5.0", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "@azure/tasks": "^2.1.0", - "@azure/uri": "^2.1.0", - "@azure/linq": "^2.1.0", - "@azure/codegen": "^1.0.0", + "@azure/tasks": "~3.0.0", + "@azure/uri": "~3.0.0", + "@azure/linq": "~3.0.0", + "@azure/codegen": "~2.0.0", "jsonpath": "1.0.0", "safe-eval": "^0.3.0", "source-map": "0.5.6", diff --git a/libraries/deduplication/package.json b/libraries/deduplication/package.json index 7d91e9f..2472408 100644 --- a/libraries/deduplication/package.json +++ b/libraries/deduplication/package.json @@ -1,6 +1,6 @@ { "name": "@azure/deduplication", - "version": "2.0.0", + "version": "3.0.0", "description": "Deduplication of elements in OpenAPI 3 documents", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -46,18 +46,18 @@ "@types/node": "10.12.19", "mocha": "5.2.0", "typescript": "~3.5.3", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", - "@azure/async-io": "^2.1.0" + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", + "@azure/async-io": "~3.0.0" }, "dependencies": { - "@azure/datastore": "^3.0.0", - "@azure/linq": "^2.1.0", - "@azure/tasks": "^2.1.0", - "@azure/object-comparison": "^2.1.0", - "@azure/openapi": "^2.1.0", - "@azure/codegen": "^1.0.0", + "@azure/datastore": "~4.0.0", + "@azure/linq": "~3.0.0", + "@azure/tasks": "~3.0.0", + "@azure/object-comparison": "~3.0.0", + "@azure/openapi": "~3.0.0", + "@azure/codegen": "~2.0.0", "compare-versions": "^3.4.0" } } \ No newline at end of file diff --git a/libraries/eventing/package.json b/libraries/eventing/package.json index 1d850b2..6e8c82d 100644 --- a/libraries/eventing/package.json +++ b/libraries/eventing/package.json @@ -1,6 +1,6 @@ { "name": "@azure/eventing", - "version": "2.1.0", + "version": "3.0.0", "description": "Typescript-based eventing framework (for Azure Open Source Projects)", "engines": { "node": ">=7.10.0" @@ -44,12 +44,12 @@ "@types/node": "10.12.19", "@types/mocha": "5.2.5", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "@azure/tasks": "^2.1.0" + "@azure/tasks": "~3.0.0" } } \ No newline at end of file diff --git a/libraries/extension/package.json b/libraries/extension/package.json index 04de67e..8f17be5 100644 --- a/libraries/extension/package.json +++ b/libraries/extension/package.json @@ -1,6 +1,6 @@ { "name": "@azure/extension", - "version": "2.2.0", + "version": "3.0.0", "description": "Yarn-Based extension aquisition (for Azure Open Source Projects)", "engines": { "node": ">=7.10.0" @@ -49,15 +49,15 @@ "@types/mocha": "5.2.5", "@types/semver": "5.5.0", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "@azure/async-io": "^2.1.0", - "@azure/eventing": "^2.1.0", - "@azure/tasks": "^2.1.0", + "@azure/async-io": "~3.0.0", + "@azure/eventing": "~3.0.0", + "@azure/tasks": "~3.0.0", "npm-package-arg": "6.1.0", "semver": "^5.5.1", "pacote": "9.2.3" diff --git a/libraries/linq/package.json b/libraries/linq/package.json index e6fb8e6..0e63cc3 100644 --- a/libraries/linq/package.json +++ b/libraries/linq/package.json @@ -1,6 +1,6 @@ { "name": "@azure/linq", - "version": "2.1.0", + "version": "3.0.0", "description": "LINQ-like functionality for Typescript.", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -45,9 +45,9 @@ "@types/mocha": "5.2.5", "@types/node": "10.12.19", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": {} diff --git a/libraries/oai2-to-oai3/package.json b/libraries/oai2-to-oai3/package.json index dd6f03d..0158453 100644 --- a/libraries/oai2-to-oai3/package.json +++ b/libraries/oai2-to-oai3/package.json @@ -1,6 +1,6 @@ { "name": "@azure/oai2-to-oai3", - "version": "3.0.0", + "version": "4.0.0", "description": "OpenAPI2 to OpenAPI3 conversion library that maintains souremaps for use with AutoRest", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -47,16 +47,16 @@ "@types/js-yaml": "3.12.1", "mocha": "5.2.0", "typescript": "~3.5.3", - "@azure/async-io": "^2.1.0", + "@azure/async-io": "~3.0.0", "source-map-support": "0.5.9", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "@types/source-map": "0.5.0" }, "dependencies": { - "@azure/datastore": "^3.0.0", - "@azure/openapi": "^2.1.0", + "@azure/datastore": "~4.0.0", + "@azure/openapi": "~3.0.0", "source-map": "0.5.6" } } \ No newline at end of file diff --git a/libraries/object-comparison/package.json b/libraries/object-comparison/package.json index a716f3c..51ad0f9 100644 --- a/libraries/object-comparison/package.json +++ b/libraries/object-comparison/package.json @@ -1,6 +1,6 @@ { "name": "@azure/object-comparison", - "version": "2.1.0", + "version": "3.0.0", "description": "Library to compare objects", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -45,9 +45,9 @@ "@types/mocha": "5.2.5", "@types/node": "10.12.19", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": {} diff --git a/libraries/openapi/package.json b/libraries/openapi/package.json index f258101..907f9ae 100644 --- a/libraries/openapi/package.json +++ b/libraries/openapi/package.json @@ -1,6 +1,6 @@ { "name": "@azure/openapi", - "version": "2.1.0", + "version": "3.0.0", "description": "OpenAPI common code for Azure Tools.", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -45,12 +45,12 @@ "@types/mocha": "5.2.5", "@types/node": "10.12.19", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "@azure/linq": "^2.1.0" + "@azure/linq": "~3.0.0" } } \ No newline at end of file diff --git a/libraries/tasks/package.json b/libraries/tasks/package.json index cd5e891..543fe92 100644 --- a/libraries/tasks/package.json +++ b/libraries/tasks/package.json @@ -1,6 +1,6 @@ { "name": "@azure/tasks", - "version": "2.1.0", + "version": "3.0.0", "description": "Async tasks for Azure Open Source Projects", "engines": { "node": ">=7.10.0" @@ -45,9 +45,9 @@ "mocha": "5.2.0", "mocha-typescript": "1.1.17", "typescript": "~3.5.3", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "source-map-support": "0.5.9" }, "dependencies": {} diff --git a/libraries/uri/package.json b/libraries/uri/package.json index 0cd0be9..c633591 100644 --- a/libraries/uri/package.json +++ b/libraries/uri/package.json @@ -1,6 +1,6 @@ { "name": "@azure/uri", - "version": "2.1.0", + "version": "3.0.0", "description": "Common URI handling code.", "main": "./dist/main.js", "typings": "./dist/main.d.ts", @@ -45,15 +45,15 @@ "@types/mocha": "5.2.5", "@types/node": "10.12.19", "mocha": "5.2.0", - "@typescript-eslint/eslint-plugin": "^1.13.0", - "@typescript-eslint/parser": "^1.13.0", - "eslint": "^6.1.0", + "@typescript-eslint/eslint-plugin": "~2.0.0", + "@typescript-eslint/parser": "~2.0.0", + "eslint": "~6.2.2", "typescript": "~3.5.3" }, "dependencies": { - "get-uri": "^2.0.2", - "urijs": "^1.19.1", + "get-uri": "~2.0.2", + "urijs": "~1.19.1", "file-url": "2.0.2", - "@azure/async-io": "^2.1.0" + "@azure/async-io": "~3.0.0" } } \ No newline at end of file diff --git a/package.json b/package.json index b6b718a..c583f4f 100644 --- a/package.json +++ b/package.json @@ -7,4 +7,4 @@ "prepare": "(pwsh -v || npm --silent run show-error) && pwsh -noprofile ./.scripts/verify-install.ps1", "show-error": "echo ====== &echo ====== & echo ====== & echo REQUIRED: Install PowerShell-core 6.1 or greater (see readme.md) & echo ====== & echo ====== & echo ====== & exit 1" } -} +} \ No newline at end of file