Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/connect-react/examples/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
<!-- markdownlint-disable MD024 -->
# Changelog

## [1.1.1] - 2024-12-011

### Changed

- Remove deprecated asynchoronous response handling code.

## [1.1.0] - 2024-12-010

### Changed

- Naming and docs improvements

## [1.0.12] - 2024-12-06

### Added

- Allow passing `before`, `after` pagination cursors for apps, accounts, components endpoints

Check failure on line 20 in packages/sdk/CHANGELOG.md

View workflow job for this annotation

GitHub Actions / test

Line length

packages/sdk/CHANGELOG.md:20:81 MD013/line-length Line length [Expected: 80; Actual: 93] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md013.md

## [1.0.11] - 2024-12-06

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/sdk",
"version": "1.1.0",
"version": "1.1.1",
"description": "Pipedream SDK",
"main": "dist/server/server/index.js",
"module": "dist/server/server/index.js",
Expand Down
24 changes: 0 additions & 24 deletions packages/sdk/src/browser/async.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/sdk/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// operations, like connecting accounts via Pipedream Connect. See the server/
// directory for the server client.

import { BrowserAsyncResponseManager } from "./async.js";
import {
AccountsRequestResponse,
BaseClient,
Expand Down Expand Up @@ -133,7 +132,6 @@ export function createFrontendClient(opts: CreateBrowserClientOpts = {}) {
* A client for interacting with the Pipedream Connect API from the browser.
*/
export class BrowserClient extends BaseClient {
protected override asyncResponseManager: BrowserAsyncResponseManager;
private baseURL: string;
private iframeURL: string;
private iframe?: HTMLIFrameElement;
Expand All @@ -155,10 +153,6 @@ export class BrowserClient extends BaseClient {
this.iframeURL = `${this.baseURL}/_static/connect.html`;
this.tokenCallback = opts.tokenCallback;
this.externalUserId = opts.externalUserId;
this.asyncResponseManager = new BrowserAsyncResponseManager({
apiHost: this.apiHost,
getConnectToken: () => this.token(),
});
}

private async token() {
Expand Down
46 changes: 0 additions & 46 deletions packages/sdk/src/server/async.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/sdk/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import {
Account, BaseClient, type AppInfo, type ConnectTokenResponse,
} from "../shared";
import { ServerAsyncResponseManager } from "./async";
export * from "../shared";

/**
Expand Down Expand Up @@ -137,7 +136,6 @@ export function createBackendClient(opts: BackendClientOpts) {
* A client for interacting with the Pipedream Connect API on the server-side.
*/
export class BackendClient extends BaseClient {
protected override asyncResponseManager: ServerAsyncResponseManager;
private oauthClient: ClientCredentials;
private oauthToken?: AccessToken;
protected projectId: string;
Expand All @@ -155,18 +153,6 @@ export class BackendClient extends BaseClient {
this.projectId = opts.projectId;

this.oauthClient = this.newOauthClient(opts.credentials, this.baseApiUrl);
this.asyncResponseManager = new ServerAsyncResponseManager({
apiHost: this.apiHost,
getOauthToken: async () => {
await this.ensureValidOauthToken();
return this.oauthToken as AccessToken;
},
getProjectId: () => {
if (!this.projectId)
throw "Attempted to connect to websocket without a valid Project id";
return this.projectId;
},
});
}

private ensureValidEnvironment(environment?: string) {
Expand Down
118 changes: 0 additions & 118 deletions packages/sdk/src/shared/async.ts

This file was deleted.

Loading
Loading