Skip to content

Commit 01fd523

Browse files
jnsdlsactions-userMananTankjoaquim-vergesjxom
authored
Beta (#2356)
Signed-off-by: Joaquim Verges <joaquim.verges@gmail.com> Signed-off-by: jxom <jakemoxey@gmail.com> Signed-off-by: greg <gregfromstl@gmail.com> Signed-off-by: Jonas Daniels <jonas.daniels@outlook.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Manan Tank <manantankm@gmail.com> Co-authored-by: Joaquim Verges <joaquim.verges@gmail.com> Co-authored-by: jxom <jakemoxey@gmail.com> Co-authored-by: Nacho Iacovino <50103937+nachoiacovino@users.noreply.github.com> Co-authored-by: greg <gregfromstl@gmail.com> Co-authored-by: Winston Yeo <44563205+ElasticBottle@users.noreply.github.com> Co-authored-by: iketw <121973632+iketw@users.noreply.github.com> Co-authored-by: Winston Yeo <winstonyeo99@yahoo.com> Co-authored-by: Isaac Dubuque <idubuque@umich.edu>
1 parent 6fd7497 commit 01fd523

File tree

1,954 files changed

+134281
-5922
lines changed

Some content is hidden

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

1,954 files changed

+134281
-5922
lines changed

.changeset/config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"baseBranch": "main",
1717
"updateInternalDependencies": "patch",
1818
"ignore": [
19-
"e2e-cra-5",
20-
"e2e-next-13",
21-
"e2e-vite-3",
2219
"bundlers-esbuild",
2320
"bundlers-vite",
2421
"bundlers-webpack",

.changeset/early-donkeys-think.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@thirdweb-dev/cli": patch
3+
---
4+
5+
CLI is now released under `@thirdweb-dev/cli` package name instead of `thirdweb`.
6+
7+
`npx thirdweb` still works like before as it proxies the request to the `@thirdweb-dev/cli` package.

.changeset/wet-ducks-provide.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"thirdweb": major
3+
---
4+
5+
Initial release of v5 of the thirdweb SDK.
6+
7+
For more information please refer to the [documentation](https://portal.thirdweb.com/typescript/v5) and the [migration guide](https://portal.thirdweb.com/typescript/v5/migrate).

.github/workflows/build-test-lint.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build, Lint & Test
1+
name: Build, Lint & Test & Benchmark
22

33
on:
44
push:
@@ -8,6 +8,7 @@ on:
88
# trigger on merge group as well (merge queue)
99
merge_group:
1010
types: [checks_requested]
11+
workflow_dispatch:
1112

1213
concurrency:
1314
group: ${{ github.workflow }}-${{ github.ref }}
@@ -111,12 +112,15 @@ jobs:
111112
path: ./*
112113
key: ${{ github.sha }}-${{ github.run_number }}
113114

115+
- name: Set up foundry
116+
uses: foundry-rs/foundry-toolchain@v1
117+
114118
- run: pnpm test
115119

116120
- name: Upload coverage reports to Codecov
117121
uses: codecov/codecov-action@v3
118122
with:
119-
files: ./packages/sdk/coverage/evm/lcov.info
123+
files: ./packages/sdk/coverage/evm/lcov.info,./packages/thirdweb/coverage/lcov.info
120124

121125
e2e:
122126
timeout-minutes: 15
@@ -155,3 +159,35 @@ jobs:
155159
env:
156160
NODE_OPTIONS: "--max_old_space_size=4096"
157161
CLI_E2E_API_KEY: ${{ secrets.CLI_E2E_API_KEY }}
162+
163+
benchmark:
164+
timeout-minutes: 15
165+
name: "Benchmark"
166+
runs-on: ubuntu-latest-16
167+
needs: build
168+
steps:
169+
- name: Setup node
170+
uses: actions/setup-node@v3
171+
with:
172+
node-version: 20
173+
check-latest: true
174+
175+
- uses: pnpm/action-setup@v2
176+
with:
177+
version: 8
178+
179+
- uses: actions/cache@v3
180+
timeout-minutes: 5
181+
id: restore-build
182+
with:
183+
path: ./*
184+
key: ${{ github.sha }}-${{ github.run_number }}
185+
186+
- name: Set up foundry
187+
uses: foundry-rs/foundry-toolchain@v1
188+
189+
- name: Run benchmarks
190+
uses: CodSpeedHQ/action@v2
191+
with:
192+
token: ${{ secrets.CODSPEED_TOKEN }}
193+
run: "pnpm bench"

.github/workflows/release-alpha.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release Alpha
2+
3+
on:
4+
push:
5+
paths:
6+
- ".changeset/**"
7+
- "packages/**"
8+
branches:
9+
- alpha
10+
11+
env:
12+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
13+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
18+
jobs:
19+
release:
20+
name: Release
21+
timeout-minutes: 30
22+
runs-on: ubuntu-latest-16
23+
steps:
24+
- name: Checkout branch
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup bun
30+
uses: oven-sh/setup-bun@v1
31+
with:
32+
bun-version: 1.0.21
33+
34+
- name: Install
35+
uses: ./.github/composite-actions/install
36+
37+
- name: Build
38+
run: pnpm build
39+
40+
- name: Create @alpha release
41+
run: |
42+
git checkout alpha
43+
pnpm version-packages:alpha
44+
pnpm release:alpha
45+
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-artifacts.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ on:
77
push:
88
branches:
99
- changeset-release/main
10+
- beta
1011

1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.ref }}
14+
# cancel any previous runs if they were started before this one
1315
cancel-in-progress: true
1416

17+
env:
18+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
19+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
20+
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
21+
1522
jobs:
1623
release-artifacts:
1724
timeout-minutes: 15
@@ -59,6 +66,7 @@ jobs:
5966
git add packages/sdk/typedoc/documentation.json.gz
6067
git add packages/storage/typedoc/documentation.json.gz
6168
git add packages/wallets/typedoc/documentation.json.gz
69+
git add packages/thirdweb/typedoc/documentation.json.gz
6270
git add snippets/feature_snippets_react.json
6371
git add snippets/feature_snippets_sdk.json
6472
git add snippets/snippets.json

.github/workflows/release-beta.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release Beta
2+
3+
on:
4+
push:
5+
paths:
6+
- ".changeset/**"
7+
- "packages/**"
8+
branches:
9+
- beta
10+
11+
env:
12+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
13+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
18+
jobs:
19+
release:
20+
name: Release
21+
timeout-minutes: 30
22+
runs-on: ubuntu-latest-16
23+
steps:
24+
- name: Checkout branch
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup bun
30+
uses: oven-sh/setup-bun@v1
31+
with:
32+
bun-version: 1.0.21
33+
34+
- name: Install
35+
uses: ./.github/composite-actions/install
36+
37+
- name: Build
38+
run: pnpm build
39+
40+
- name: Create @beta release
41+
run: |
42+
git checkout beta
43+
pnpm version-packages:beta
44+
pnpm release:beta
45+
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"test": "turbo run test --filter=./packages/*",
1515
"e2e": "turbo run e2e",
1616
"build": "turbo run build --filter=./packages/*",
17+
"bench": "turbo run bench",
1718
"typedoc": "turbo run typedoc",
1819
"generate-snippets": "node ./scripts/generate-snippets/index.mjs",
1920
"build:release": "turbo run build --force --filter=./packages/*",
@@ -27,9 +28,13 @@
2728
"version-packages": "changeset version",
2829
"release": "node ./scripts/pre-release.mjs && changeset publish",
2930
"version-packages:nightly": "node scripts/pre-nightly.mjs && changeset version --snapshot nightly",
30-
"release:nightly": "node ./scripts/pre-release.mjs && changeset publish --tag nightly",
31+
"release:nightly": "node ./scripts/pre-release.mjs && turbo run update-version && turbo run build && changeset publish --tag nightly",
3132
"version-packages:next": "node scripts/pre-nightly.mjs && changeset version --snapshot next",
33+
"version-packages:alpha": "node scripts/pre-nightly.mjs && turbo run update-version && turbo run build && changeset version --snapshot alpha",
34+
"version-packages:beta": "node scripts/pre-nightly.mjs && turbo run update-version && turbo run build && changeset version --snapshot beta",
3235
"release:next": "node ./scripts/pre-release.mjs && changeset publish --tag next",
36+
"release:alpha": "node ./scripts/pre-release.mjs && turbo run update-version && turbo run build && changeset publish --tag alpha",
37+
"release:beta": "node ./scripts/pre-release.mjs && turbo run update-version && turbo run build && changeset publish --tag beta",
3338
"push": "turbo run push --filter=./packages/*",
3439
"hotlink-init": "node ./scripts/hotlink/hotlink-init.mjs",
3540
"hotlink-revert": "node ./scripts/hotlink/hotlink-revert.mjs",
@@ -38,21 +43,47 @@
3843
"packageManager": "pnpm@8.9.0",
3944
"dependencies": {
4045
"@changesets/changelog-github": "^0.5.0",
41-
"@changesets/cli": "^2.26.2",
46+
"@changesets/cli": "^2.27.1",
4247
"@changesets/get-dependents-graph": "^1.3.6",
4348
"@changesets/get-release-plan": "^3.0.17",
4449
"@changesets/parse": "^0.3.16",
45-
"@manypkg/cli": "^0.21.0",
50+
"@manypkg/cli": "^0.21.2",
4651
"@manypkg/get-packages": "^1.1.3",
4752
"@playwright/test": "1.31.2",
48-
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
49-
"@types/node": "^18.17.1",
50-
"eslint": "^8.56.0",
51-
"mocha": "^10.2.0",
52-
"prettier": "^3.1.1",
53-
"turbo": "^1.11.3",
53+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
54+
"@types/node": "^18.19.18",
55+
"eslint": "8.57.0",
56+
"mocha": "^10.3.0",
57+
"prettier": "^3.2.5",
58+
"turbo": "^1.12.4",
5459
"yalc": "1.0.0-pre.53"
5560
},
61+
"_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______": "_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______",
62+
"devDependencies": {
63+
"@codspeed/vitest-plugin": "3.1.0",
64+
"@size-limit/preset-big-lib": "11.1.1",
65+
"@tanstack/eslint-plugin-query": "5.27.7",
66+
"@types/bun": "1.0.10",
67+
"@types/react": "18.2.17",
68+
"@viem/anvil": "0.0.9",
69+
"@vitest/coverage-v8": "1.4.0",
70+
"dotenv-mono": "1.3.14",
71+
"eslint-config-thirdweb": "workspace:*",
72+
"eslint-plugin-better-tree-shaking": "0.0.4",
73+
"eslint-plugin-jsdoc": "48.2.1",
74+
"eslint-plugin-svg-jsx": "^1.2.2",
75+
"ethers5": "npm:ethers@5.7.2",
76+
"ethers6": "npm:ethers@6.11.1",
77+
"knip": "5.1.4",
78+
"mitata": "0.1.11",
79+
"react": "18.2.0",
80+
"rimraf": "5.0.5",
81+
"sharp": "^0.33.3",
82+
"size-limit": "11.1.1",
83+
"typedoc-gen": "workspace:*",
84+
"typescript": "5.3.3",
85+
"vitest": "1.4.0"
86+
},
5687
"manypkg": {
5788
"defaultBranch": "main"
5889
},

packages/cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "thirdweb",
2+
"name": "@thirdweb-dev/cli",
33
"main": "dist/cli/index.js",
44
"version": "0.13.56",
55
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
@@ -72,7 +72,8 @@
7272
"build": "pnpm clean && tsup --env.NODE_ENV production --minify --format cjs --external hardhat --dts-resolve",
7373
"build:watch": "pnpm run build --watch",
7474
"generate-thirdweb-package": "node scripts/generate-thirdweb-package.js",
75-
"e2e": "jest"
75+
"e2e": "jest",
76+
"push": "yalc push"
7677
},
7778
"files": [
7879
"src/",
336 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)