Skip to content

Commit

Permalink
bump dependency versions (#811)
Browse files Browse the repository at this point in the history
## Changes
This also updates prettier to the next major version, which caused some
files to be re-formatted.
  • Loading branch information
fjakobs authored Jul 13, 2023
1 parent 26eaf45 commit 7119fd5
Show file tree
Hide file tree
Showing 21 changed files with 845 additions and 676 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"homepage": "https://github.com/databricks/databricks-vscode#readme",
"packageManager": "yarn@3.2.1",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.41.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"conventional-changelog-cli": "^3.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"ts-mockito": "^2.6.1",
"typescript": "~5.0.0"
"typescript": "~5.1.6"
},
"resolutions": {
"json5": "2.2.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/databricks-sdk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@
"ini": "^4.1.1",
"inversify": "^6.0.1",
"reflect-metadata": "^0.1.13",
"semver": "^7.5.1"
"semver": "^7.5.4"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@sinonjs/fake-timers": "^10.2.0",
"@sinonjs/fake-timers": "^10.3.0",
"@types/ini": "^1.3.31",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.5",
"@types/node": "^20.4.2",
"@types/semver": "^7.5.0",
"@types/sinonjs__fake-timers": "^8.1.2",
"@types/tmp": "^0.2.3",
"@types/uuid": "^9.0.1",
"eslint": "^8.41.0",
"@types/uuid": "^9.0.2",
"eslint": "^8.44.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"tmp-promise": "^3.0.3",
"ts-loader": "^9.4.3",
"ts-loader": "^9.4.4",
"ts-mocha": "^10.0.0",
"ts-mockito": "^2.6.1",
"ts-node": "^10.9.1",
"typescript": "~5.0.0",
"typescript": "~5.1.6",
"uuid": "^9.0.0"
},
"nyc": {
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export class ApiClient {
readonly productVersion: ProductVersion;
readonly userAgentExtra: Record<string, string>;

constructor(readonly config: Config, options: ClientOptions = {}) {
constructor(
readonly config: Config,
options: ClientOptions = {}
) {
this.agent =
options.agent ||
new https.Agent({
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/apierr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const transientErrorStringMatches = [
];

export class HttpError extends Error {
constructor(readonly message: string, readonly code: number) {
constructor(
readonly message: string,
readonly code: number
) {
super(message);
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import {Headers, fetch} from "../fetch";
import {OidcEndpoints} from "./oauth/OidcEndpoints";

export class ConfigError extends Error {
constructor(readonly baseMessage: string, readonly config: Config) {
constructor(
readonly baseMessage: string,
readonly config: Config
) {
let msg = baseMessage;
const debugString = config.attributes.debugString();
if (debugString) {
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/config/oauth/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export interface ClientOptions {
}

export class Client {
constructor(private issuer: OidcEndpoints, private options: ClientOptions) {
constructor(
private issuer: OidcEndpoints,
private options: ClientOptions
) {
options.useParams = options.useParams ?? false;
options.useHeader = options.useHeader ?? false;
options.headers = options.headers ?? {};
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ export class Response {
readonly statusText: string;
readonly url: string;

constructor(nodeResponse: http.IncomingMessage, private body: string) {
constructor(
nodeResponse: http.IncomingMessage,
private body: string
) {
this.headers = nodeResponse.headers as Headers;
this.ok =
nodeResponse.statusCode === undefined
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/services/Repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export class RepoError extends Error {}
export class Repo {
private readonly reposApi;

constructor(private readonly client: ApiClient, private details: RepoInfo) {
constructor(
private readonly client: ApiClient,
private details: RepoInfo
) {
this.reposApi = new ReposService(this.client);
}

Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/services/WorkflowRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import {
} from "../apis/jobs";

export class WorkflowRun {
constructor(readonly client: ApiClient, private details: Run) {}
constructor(
readonly client: ApiClient,
private details: Run
) {}

static async fromId(
client: ApiClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import {WorkspaceClient} from "../../WorkspaceClient";
import {ApiError} from "../../apierr";

export class ObjectInfoValidationError extends Error {
constructor(message: string, readonly details: ObjectInfo) {
constructor(
message: string,
readonly details: ObjectInfo
) {
super(message);
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-sdk-js/src/test/IntegrationTestSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import {WorkspaceClient} from "../WorkspaceClient";
export class IntegrationTestSetup {
readonly testRunId: string;

constructor(readonly client: WorkspaceClient, readonly cluster: Cluster) {
constructor(
readonly client: WorkspaceClient,
readonly cluster: Cluster
) {
this.testRunId = uuidv4();
}

Expand Down
6 changes: 3 additions & 3 deletions packages/databricks-vscode-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
},
"devDependencies": {
"@types/vscode": "^1.69.1",
"eslint": "^8.41.0",
"prettier": "^2.8.8",
"typescript": "~5.0.0"
"eslint": "^8.44.0",
"prettier": "^3.0.0",
"typescript": "~5.1.6"
},
"dependencies": {
"@databricks/databricks-sdk": "workspace:^"
Expand Down
42 changes: 21 additions & 21 deletions packages/databricks-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -681,53 +681,53 @@
"dependencies": {
"@databricks/databricks-sdk": "workspace:^",
"@databricks/databricks-vscode-types": "workspace:^",
"@vscode/debugadapter": "^1.59.0",
"@vscode/extension-telemetry": "^0.8.0",
"@vscode/debugadapter": "^1.61.0",
"@vscode/extension-telemetry": "^0.8.1",
"@vscode/webview-ui-toolkit": "^1.2.2",
"ansi-to-html": "^0.7.2",
"bcryptjs": "^2.4.3",
"triple-beam": "^1.3.0",
"winston": "^3.9.0"
"triple-beam": "^1.4.1",
"winston": "^3.10.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@sinonjs/fake-timers": "^10.2.0",
"@sinonjs/fake-timers": "^10.3.0",
"@types/bcryptjs": "^2.4.2",
"@types/chai": "^4.3.5",
"@types/fs-extra": "^11.0.1",
"@types/mocha": "^10.0.1",
"@types/mock-require": "^2.0.1",
"@types/node": "^20.2.5",
"@types/node": "^20.4.2",
"@types/sinonjs__fake-timers": "^8.1.2",
"@types/tmp": "^0.2.3",
"@types/triple-beam": "^1.3.2",
"@types/vscode": "^1.69.1",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.2",
"@wdio/cli": "^8.11.2",
"@wdio/local-runner": "^8.11.2",
"@wdio/mocha-framework": "^8.11.0",
"@wdio/spec-reporter": "^8.11.2",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/test-electron": "^2.3.3",
"@wdio/cli": "^8.12.2",
"@wdio/local-runner": "^8.12.1",
"@wdio/mocha-framework": "^8.12.1",
"@wdio/spec-reporter": "^8.12.2",
"@wdio/types": "^8.10.4",
"chai": "^4.3.7",
"esbuild": "^0.17.19",
"eslint": "^8.41.0",
"esbuild": "^0.18.12",
"eslint": "^8.44.0",
"fs-extra": "^11.1.1",
"glob": "^10.2.6",
"glob": "^10.3.3",
"mocha": "^10.2.0",
"mock-require": "^3.0.3",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"tmp-promise": "^3.0.3",
"ts-mockito": "^2.6.1",
"ts-node": "^10.9.1",
"typescript": "~5.0.0",
"typescript": "~5.1.6",
"vsce": "^2.15.0",
"wdio-video-reporter": "^4.0.2",
"wdio-vscode-service": "patch:wdio-vscode-service@npm:5.1.0#.yarn/patches/wdio-vscode-service-npm-5.1.0-dcb34bb6e9.patch",
"winston": "^3.9.0",
"wdio-video-reporter": "^4.0.3",
"wdio-vscode-service": "^5.2.0",
"winston": "^3.10.0",
"yargs": "^17.7.2"
},
"nyc": {
Expand Down
6 changes: 4 additions & 2 deletions packages/databricks-vscode/resources/webview-ui/job.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down Expand Up @@ -94,7 +94,9 @@
font-family: Menlo, Monaco, "Courier New", monospace;
font-weight: normal;
font-size: 12px;
font-feature-settings: "liga" 0, "calt" 0;
font-feature-settings:
"liga" 0,
"calt" 0;
line-height: 18px;
padding: 8px;
width: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ export abstract class AuthProvider {
}

export class ProfileAuthProvider extends AuthProvider {
constructor(host: URL, private readonly profile: string) {
constructor(
host: URL,
private readonly profile: string
) {
super(host, "profile");
}

Expand Down Expand Up @@ -129,7 +132,10 @@ export class ProfileAuthProvider extends AuthProvider {
}

export class DatabricksCliAuthProvider extends AuthProvider {
constructor(host: URL, readonly databricksPath: string) {
constructor(
host: URL,
readonly databricksPath: string
) {
super(host, "databricks-cli");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export class MetadataService implements Disposable {
private magic!: string;
private _apiClient: ApiClient | undefined;

constructor(apiClient: ApiClient | undefined, private logger: NamedLogger) {
constructor(
apiClient: ApiClient | undefined,
private logger: NamedLogger
) {
this.updateMagic();
this._apiClient = apiClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,9 @@ export class NotebookInitScriptManager implements Disposable {
}
window
.showErrorMessage(
`Cannot verify databricks notebook init script. IPython is not installed in the current environment: ${
(await this.pythonExtension.pythonEnvironment)
?.environment?.name
}`,
`Cannot verify databricks notebook init script. IPython is not installed in the current environment: ${(
await this.pythonExtension.pythonEnvironment
)?.environment?.name}`,
"Install and try again",
"Change environment"
)
Expand Down
5 changes: 3 additions & 2 deletions packages/databricks-vscode/src/run/WorkflowRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ export class WorkflowRunner implements Disposable {
// with the remote repo files
await Promise.race([
this.codeSynchronizer.waitForSyncComplete(),
new Promise<undefined>((resolve) =>
token?.onCancellationRequested(() => resolve(undefined))
new Promise<undefined>(
(resolve) =>
token?.onCancellationRequested(() => resolve(undefined))
),
]);
if (token?.isCancellationRequested) {
Expand Down
5 changes: 4 additions & 1 deletion packages/databricks-vscode/src/sync/SyncDestination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ export class LocalUri extends DatabricksUri<LocalUri> {
}

export class SyncDestinationMapper {
constructor(readonly localUri: LocalUri, readonly remoteUri: RemoteUri) {}
constructor(
readonly localUri: LocalUri,
readonly remoteUri: RemoteUri
) {}
/**
* Maps a local notebook to notebook path used in workflow deifnitions.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/databricks-vscode/src/ui/wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class MultiStepInput {

async showQuickPick<
T extends QuickPickItem,
P extends QuickPickParameters<T>
P extends QuickPickParameters<T>,
>({
title,
step,
Expand Down
Loading

0 comments on commit 7119fd5

Please sign in to comment.