Skip to content

Commit 5ce7d69

Browse files
SDK regeneration
1 parent 264a478 commit 5ce7d69

File tree

998 files changed

+23946
-9002
lines changed

Some content is hidden

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

998 files changed

+23946
-9002
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
uses: actions/checkout@v4
1212

1313
- name: Set up node
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
15+
16+
- name: Install dependencies
17+
run: yarn install
1518

1619
- name: Compile
17-
run: yarn && yarn build
20+
run: yarn build
1821

1922
test:
2023
runs-on: ubuntu-latest
@@ -24,34 +27,42 @@ jobs:
2427
uses: actions/checkout@v4
2528

2629
- name: Set up node
27-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
2831

29-
- name: Compile
30-
run: yarn && yarn test
32+
- name: Install dependencies
33+
run: yarn install
34+
35+
- name: Test
36+
run: yarn test
3137

3238
publish:
3339
needs: [ compile, test ]
3440
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
3541
runs-on: ubuntu-latest
42+
permissions:
43+
id-token: write # Required for OIDC
3644
steps:
3745
- name: Checkout repo
3846
uses: actions/checkout@v4
47+
3948
- name: Set up node
40-
uses: actions/setup-node@v3
49+
uses: actions/setup-node@v4
50+
4151
- name: Install dependencies
4252
run: yarn install
53+
4354
- name: Build
4455
run: yarn build
4556

4657
- name: Publish to npm
4758
run: |
48-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
59+
publish() { # use latest npm to ensure OIDC support
60+
npx -y npm@latest publish "$@"
61+
}
4962
if [[ ${GITHUB_REF} == *alpha* ]]; then
50-
npm publish --access public --tag alpha
63+
publish --access public --tag alpha
5164
elif [[ ${GITHUB_REF} == *beta* ]]; then
52-
npm publish --access public --tag beta
65+
publish --access public --tag beta
5366
else
54-
npm publish --access public
55-
fi
56-
env:
57-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67+
publish --access public
68+
fi

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ tests
55
.github
66
.fernignore
77
.prettierrc.yml
8+
biome.json
89
tsconfig.json
9-
yarn.lock
10+
yarn.lock
11+
pnpm-lock.yaml

.prettierrc.yml

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

biome.json

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

jest.config.mjs

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,29 @@
22
export default {
33
preset: "ts-jest",
44
testEnvironment: "node",
5-
moduleNameMapper: {
6-
"^(\.{1,2}/.*)\.js$": "$1",
7-
},
8-
setupFilesAfterEnv: ["<rootDir>/tests/mock-server/setup.ts"],
5+
projects: [
6+
{
7+
displayName: "unit",
8+
preset: "ts-jest",
9+
testEnvironment: "node",
10+
moduleNameMapper: {
11+
"^(\.{1,2}/.*)\.js$": "$1",
12+
},
13+
roots: ["<rootDir>/tests"],
14+
testPathIgnorePatterns: ["/tests/wire/"],
15+
setupFilesAfterEnv: [],
16+
},
17+
{
18+
displayName: "wire",
19+
preset: "ts-jest",
20+
testEnvironment: "node",
21+
moduleNameMapper: {
22+
"^(\.{1,2}/.*)\.js$": "$1",
23+
},
24+
roots: ["<rootDir>/tests/wire"],
25+
setupFilesAfterEnv: ["<rootDir>/tests/mock-server/setup.ts"],
26+
},
27+
],
28+
workerThreads: false,
29+
passWithNoTests: true,
930
};

package.json

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
22
"name": "webflow-api",
3-
"version": "3.2.2",
3+
"version": "3.3.0",
44
"private": false,
5-
"repository": "https://github.com/webflow/js-webflow-api",
5+
"repository": "github:webflow/js-webflow-api",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {
9-
"format": "prettier . --write --ignore-unknown",
9+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
10+
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
11+
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
12+
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
13+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
14+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
1015
"build": "tsc",
1116
"prepack": "cp -rv dist/. .",
12-
"test": "jest tests/unit --passWithNoTests",
13-
"test:wire": "jest tests/wire --passWithNoTests",
14-
"wire:test": "yarn test:wire"
17+
"test": "jest --config jest.config.mjs",
18+
"test:unit": "jest --selectProjects unit",
19+
"test:wire": "jest --selectProjects wire"
1520
},
1621
"dependencies": {
17-
"url-join": "4.0.1",
18-
"form-data": "^4.0.0",
22+
"form-data": "^4.0.4",
1923
"formdata-node": "^6.0.3",
2024
"node-fetch": "^2.7.0",
21-
"qs": "^6.13.1",
2225
"readable-stream": "^4.5.2",
23-
"js-base64": "3.7.7",
2426
"crypto-browserify": "^3.12.1"
2527
},
2628
"devDependencies": {
27-
"@types/url-join": "4.0.1",
28-
"@types/qs": "^6.9.17",
2929
"@types/node-fetch": "^2.6.12",
3030
"@types/readable-stream": "^4.0.18",
3131
"webpack": "^5.97.1",
@@ -37,17 +37,22 @@
3737
"jest-environment-jsdom": "^29.7.0",
3838
"msw": "2.11.2",
3939
"@types/node": "^18.19.70",
40-
"prettier": "^3.4.2",
4140
"typescript": "~5.7.2",
41+
"@biomejs/biome": "2.3.1",
4242
"jest-fetch-mock": "^3.0.3"
4343
},
4444
"browser": {
4545
"fs": false,
4646
"os": false,
4747
"path": false,
48+
"stream": false,
4849
"crypto": false
4950
},
5051
"packageManager": "[email protected]",
52+
"engines": {
53+
"node": ">=18.0.0"
54+
},
55+
"sideEffects": false,
5156
"resolutions": {
5257
"pbkdf2": "^3.1.3",
5358
"@types/babel__traverse": "7.20.6"

0 commit comments

Comments
 (0)