Skip to content

Commit 07aa16c

Browse files
SDK regeneration
1 parent 5d9e40d commit 07aa16c

File tree

407 files changed

+3881
-6229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+3881
-6229
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,16 @@ jobs:
1313
- name: Set up node
1414
uses: actions/setup-node@v3
1515

16-
- name: Compile
17-
run: yarn && yarn build
18-
19-
test:
20-
runs-on: ubuntu-latest
21-
22-
steps:
23-
- name: Checkout repo
24-
uses: actions/checkout@v4
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
2518

26-
- name: Set up node
27-
uses: actions/setup-node@v3
19+
- name: Install dependencies
20+
run: pnpm install
2821

2922
- name: Compile
30-
run: yarn && yarn test
23+
run: pnpm build
3124

32-
publish:
33-
needs:
34-
- compile
35-
- test
36-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
25+
test:
3726
runs-on: ubuntu-latest
3827

3928
steps:
@@ -42,12 +31,12 @@ jobs:
4231

4332
- name: Set up node
4433
uses: actions/setup-node@v3
34+
35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
37+
4538
- name: Install dependencies
46-
run: yarn install --frozen-lockfile --non-interactive
47-
48-
- name: Build
49-
run: yarn build
50-
- name: Set up NPM authentication
51-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
52-
- name: Publish
53-
run: npm publish --access public --no-git-tag-version --tag latest
39+
run: pnpm install
40+
41+
- name: Test
42+
run: pnpm test

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tests
44
.gitignore
55
.github
66
.fernignore
7-
.prettierrc.yml
7+
biome.json
88
tsconfig.json
99
yarn.lock
1010
pnpm-lock.yaml

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@ Instantiate and use the client with the following:
2727
```typescript
2828
import { PipedreamClient } from "@pipedream/sdk";
2929

30-
const client = new PipedreamClient({
31-
clientId: "YOUR_CLIENT_ID",
32-
clientSecret: "YOUR_CLIENT_SECRET",
33-
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
34-
projectId: "YOUR_PROJECT_ID",
35-
});
30+
const client = new PipedreamClient({ clientId: "YOUR_CLIENT_ID", clientSecret: "YOUR_CLIENT_SECRET", projectEnvironment: "YOUR_PROJECT_ENVIRONMENT", projectId: "YOUR_PROJECT_ID" });
3631
await client.actions.run({
3732
id: "id",
38-
externalUserId: "external_user_id",
33+
externalUserId: "external_user_id"
3934
});
4035
```
4136

@@ -86,7 +81,6 @@ const stream: ReadableStream<Uint8Array> = response.stream();
8681
// If you want to check if the response body has been used, you can use the following property.
8782
const bodyUsed = response.bodyUsed;
8883
```
89-
9084
<details>
9185
<summary>Save binary response to a file</summary>
9286

@@ -469,19 +463,14 @@ List endpoints are paginated. The SDK provides an iterator so that you can simpl
469463
```typescript
470464
import { PipedreamClient } from "@pipedream/sdk";
471465

472-
const client = new PipedreamClient({
473-
clientId: "YOUR_CLIENT_ID",
474-
clientSecret: "YOUR_CLIENT_SECRET",
475-
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
476-
projectId: "YOUR_PROJECT_ID",
477-
});
466+
const client = new PipedreamClient({ clientId: "YOUR_CLIENT_ID", clientSecret: "YOUR_CLIENT_SECRET", projectEnvironment: "YOUR_PROJECT_ENVIRONMENT", projectId: "YOUR_PROJECT_ID" });
478467
const response = await client.apps.list({
479468
after: "after",
480469
before: "before",
481470
limit: 1,
482471
q: "q",
483472
sortKey: "name",
484-
sortDirection: "asc",
473+
sortDirection: "asc"
485474
});
486475
for await (const item of response) {
487476
console.log(item);
@@ -494,7 +483,7 @@ let page = await client.apps.list({
494483
limit: 1,
495484
q: "q",
496485
sortKey: "name",
497-
sortDirection: "asc",
486+
sortDirection: "asc"
498487
});
499488
while (page.hasNextPage()) {
500489
page = page.getNextPage();
@@ -583,8 +572,11 @@ console.log(rawResponse.headers['X-My-Header']);
583572

584573
### Runtime Compatibility
585574

575+
586576
The SDK works in the following runtimes:
587577

578+
579+
588580
- Node.js 18+
589581
- Vercel
590582
- Cloudflare Workers
@@ -614,4 +606,4 @@ otherwise they would be overwritten upon the next generated release. Feel free t
614606
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
615607
an issue first to discuss with us!
616608

617-
On the other hand, contributions to the README are always very welcome!
609+
On the other hand, contributions to the README are always very welcome!

biome.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3+
"root": true,
4+
"vcs": {
5+
"enabled": false
6+
},
7+
"files": {
8+
"ignoreUnknown": true,
9+
"includes": [
10+
"./**",
11+
"!dist",
12+
"!lib",
13+
"!*.tsbuildinfo",
14+
"!_tmp_*",
15+
"!*.tmp",
16+
"!.tmp/",
17+
"!*.log",
18+
"!.DS_Store",
19+
"!Thumbs.db"
20+
]
21+
},
22+
"formatter": {
23+
"enabled": true,
24+
"indentStyle": "space",
25+
"indentWidth": 4,
26+
"lineWidth": 120
27+
},
28+
"javascript": {
29+
"formatter": {
30+
"quoteStyle": "double"
31+
}
32+
},
33+
"assist": {
34+
"enabled": true,
35+
"actions": {
36+
"source": {
37+
"organizeImports": "on"
38+
}
39+
}
40+
},
41+
"linter": {
42+
"rules": {
43+
"style": {
44+
"useNodejsImportProtocol": "off"
45+
},
46+
"suspicious": {
47+
"noAssignInExpressions": "warn",
48+
"noUselessEscapeInString": {
49+
"level": "warn",
50+
"fix": "none",
51+
"options": {}
52+
},
53+
"noThenProperty": "warn",
54+
"useIterableCallbackReturn": "warn",
55+
"noShadowRestrictedNames": "warn",
56+
"noTsIgnore": {
57+
"level": "warn",
58+
"fix": "none",
59+
"options": {}
60+
},
61+
"noConfusingVoidType": {
62+
"level": "warn",
63+
"fix": "none",
64+
"options": {}
65+
}
66+
}
67+
}
68+
}
69+
}

jest.config.mjs

Lines changed: 0 additions & 42 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.0.13",
3+
"version": "2.0.14",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",
@@ -10,11 +10,6 @@
1010
"exports": {
1111
".": {
1212
"types": "./dist/cjs/index.d.ts",
13-
"browser": {
14-
"types": "./dist/esm/browser/index.d.mts",
15-
"import": "./dist/esm/browser/index.mjs",
16-
"default": "./dist/esm/browser/index.mjs"
17-
},
1813
"import": {
1914
"types": "./dist/esm/index.d.mts",
2015
"default": "./dist/esm/index.mjs"
@@ -25,18 +20,6 @@
2520
},
2621
"default": "./dist/cjs/index.js"
2722
},
28-
"./browser": {
29-
"types": "./dist/esm/browser/index.d.mts",
30-
"import": {
31-
"types": "./dist/esm/browser/index.d.mts",
32-
"default": "./dist/esm/browser/index.mjs"
33-
},
34-
"require": {
35-
"types": "./dist/cjs/browser/index.d.ts",
36-
"default": "./dist/cjs/browser/index.js"
37-
},
38-
"default": "./dist/esm/browser/index.mjs"
39-
},
4023
"./serialization": {
4124
"types": "./dist/cjs/serialization/index.d.ts",
4225
"import": {
@@ -49,18 +32,6 @@
4932
},
5033
"default": "./dist/cjs/serialization/index.js"
5134
},
52-
"./server": {
53-
"types": "./dist/cjs/index.d.ts",
54-
"import": {
55-
"types": "./dist/esm/index.d.mts",
56-
"default": "./dist/esm/index.mjs"
57-
},
58-
"require": {
59-
"types": "./dist/cjs/index.d.ts",
60-
"default": "./dist/cjs/index.js"
61-
},
62-
"default": "./dist/cjs/index.js"
63-
},
6435
"./package.json": "./package.json"
6536
},
6637
"files": [
@@ -70,37 +41,32 @@
7041
"LICENSE"
7142
],
7243
"scripts": {
73-
"format": "prettier . --write --ignore-unknown",
74-
"build": "yarn build:cjs && yarn build:esm",
44+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
45+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
46+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
47+
"build": "pnpm build:cjs && pnpm build:esm",
7548
"build:cjs": "tsc --project ./tsconfig.cjs.json",
7649
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
77-
"test": "jest --config jest.config.mjs",
78-
"test:unit": "jest --selectProjects unit",
79-
"test:browser": "jest --selectProjects browser",
80-
"test:wire": "jest --selectProjects wire"
50+
"test": "vitest",
51+
"test:unit": "vitest --project unit",
52+
"test:wire": "vitest --project wire"
8153
},
8254
"devDependencies": {
83-
"@jest/globals": "^29.7.0",
84-
"@types/jest": "^29.5.14",
85-
"@types/node": "^18.19.70",
86-
"jest": "^29.7.0",
87-
"jest-environment-jsdom": "^29.7.0",
88-
"msw": "^2.8.4",
89-
"prettier": "^3.4.2",
90-
"ts-jest": "^29.3.4",
55+
"webpack": "^5.97.1",
9156
"ts-loader": "^9.5.1",
92-
"typescript": "~5.7.2",
93-
"webpack": "^5.97.1"
57+
"vitest": "^3.2.4",
58+
"msw": "2.11.2",
59+
"@types/node": "^18.19.70",
60+
"@biomejs/biome": "2.2.5",
61+
"typescript": "~5.7.2"
9462
},
9563
"browser": {
96-
"./dist/cjs/wrapper/utils/getBaseUrl.js": "./dist/cjs/wrapper/utils/getBaseUrl.browser.js",
97-
"./dist/esm/wrapper/utils/getBaseUrl.mjs": "./dist/esm/wrapper/utils/getBaseUrl.browser.mjs",
9864
"fs": false,
9965
"os": false,
10066
"path": false,
10167
"stream": false
10268
},
103-
"packageManager": "yarn@1.22.22",
69+
"packageManager": "pnpm@10.14.0",
10470
"engines": {
10571
"node": ">=18.0.0"
10672
},

0 commit comments

Comments
 (0)