Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SDK)!: v2 SDK Release #2137

Merged
merged 111 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
414bf3b
setup nx releases separate packages
zaidarain1 Sep 3, 2024
258d8f1
update yarn.lock
zaidarain1 Sep 3, 2024
37591ce
test commit
zaidarain1 Sep 3, 2024
8b19d67
update release config
zaidarain1 Sep 3, 2024
d333246
pnpm, tsup migration and fix builds/errors
zaidarain1 Sep 16, 2024
e4db8dd
undo public hoisting for jest types
zaidarain1 Sep 16, 2024
5a76efe
fix broken builds
zaidarain1 Sep 16, 2024
42296dc
migrate workspaces commands from yarn to pnpm
zaidarain1 Sep 16, 2024
e491380
fix syncpack and test command
zaidarain1 Sep 17, 2024
40be702
fix examples
zaidarain1 Sep 17, 2024
5e11042
fix orderbook breaking build
zaidarain1 Sep 17, 2024
afe2694
fix and update syncpack
zaidarain1 Sep 17, 2024
908c8c8
fix react type error and passport test
zaidarain1 Sep 18, 2024
f4faa29
update playwright configs and fix zkevm tests
zaidarain1 Sep 18, 2024
c4e3f1d
fix checkout require exports
zaidarain1 Sep 18, 2024
fb4e4ce
install playwright and prepare sdk correctly
zaidarain1 Sep 18, 2024
7859c68
update playwright install and fix zkevm func tests
zaidarain1 Sep 18, 2024
d93e0a0
remove setup-node caching
zaidarain1 Sep 18, 2024
b4876d1
use setup-node cache
zaidarain1 Sep 18, 2024
e3cd351
add main conditional exports to @imtbl/sdk
zaidarain1 Sep 18, 2024
92daaa1
add build step to preparing sdk
zaidarain1 Sep 18, 2024
6146751
build examples before testing
zaidarain1 Sep 18, 2024
49c527b
bump up concurrency and combine examples steps together
zaidarain1 Sep 19, 2024
cc83659
retrigger checks
zaidarain1 Sep 19, 2024
fb39abf
update lockfile
zaidarain1 Sep 19, 2024
6aa4247
set sdk team as codeowners for package.json
zaidarain1 Sep 19, 2024
679103d
update publish workflow to nx release, clean up and allow pre publish…
zaidarain1 Sep 20, 2024
641d0ab
change workflow trigger
zaidarain1 Sep 20, 2024
6e646e4
change workflow trigger
zaidarain1 Sep 20, 2024
59ed2db
fix release syntax error
zaidarain1 Sep 20, 2024
ee8eeb3
fix release syntax error
zaidarain1 Sep 20, 2024
99da8d7
fix major permission check
zaidarain1 Sep 20, 2024
571f305
add more conditions for major release
zaidarain1 Sep 20, 2024
97f3639
fix build release command
zaidarain1 Sep 20, 2024
bcbd911
fix build release command
zaidarain1 Sep 20, 2024
7111f49
fix attestations
zaidarain1 Sep 20, 2024
56eaf0f
fix attestation dirs
zaidarain1 Sep 20, 2024
0e41d70
set attestation for sdk
zaidarain1 Sep 20, 2024
ac0d041
ignore node modules for attestations
zaidarain1 Sep 20, 2024
955e8bb
specify sdk attestations
zaidarain1 Sep 20, 2024
0b500b8
update sdk attestions paths
zaidarain1 Sep 20, 2024
6e65aa4
early return on dry run
zaidarain1 Sep 20, 2024
13eb06d
cleanup publish workflow file
zaidarain1 Sep 20, 2024
7a70757
update pnpm lock
zaidarain1 Sep 23, 2024
43b183f
remove unneeded fallback prepatch for release type
zaidarain1 Sep 23, 2024
031168a
update lockfile
zaidarain1 Sep 23, 2024
e60aadf
update lockfile
zaidarain1 Sep 23, 2024
416152e
update lockfile
zaidarain1 Sep 24, 2024
4292ef1
fix passport tests
zaidarain1 Sep 25, 2024
3552e74
update lock
zaidarain1 Sep 25, 2024
5140374
update lock
zaidarain1 Sep 26, 2024
bafc649
fix missing semver dep in checkout
zaidarain1 Sep 26, 2024
eec5014
update lock after rebase
zaidarain1 Sep 26, 2024
98ffccd
add semver types
zaidarain1 Sep 26, 2024
c6c86b0
fix playwright webserver commands
zaidarain1 Sep 26, 2024
3255e0c
speed up prepare sdk, examples and tests for local sdk npm emulation
zaidarain1 Sep 27, 2024
2768ea4
update pnpm lock
zaidarain1 Sep 27, 2024
c259168
fix func-tests
zaidarain1 Sep 27, 2024
d736f98
update checkout build process, update publish process to handle sdk v…
zaidarain1 Oct 2, 2024
5095f89
update lock
zaidarain1 Oct 2, 2024
32bace4
fix node type error
zaidarain1 Oct 2, 2024
ece51e2
update lock
zaidarain1 Oct 2, 2024
cad79da
fix react-app-rewired builds
zaidarain1 Oct 2, 2024
5fa710e
update dev mode to instant refresh for all packages, support jest lis…
zaidarain1 Oct 3, 2024
05ca1b0
update lockfile
zaidarain1 Oct 3, 2024
c435146
fix build errors
zaidarain1 Oct 4, 2024
0a3edd1
install prepared deps correctly
zaidarain1 Oct 4, 2024
38554c1
fix pr workflow for func tests and prepped deps
zaidarain1 Oct 4, 2024
323e019
ignore non-workspace @imtbl deps when prepping deps
zaidarain1 Oct 4, 2024
d1c31d3
cleanup babel from checkout
zaidarain1 Oct 7, 2024
cf967f0
update lock
zaidarain1 Oct 7, 2024
ec3e472
updatwe lock
zaidarain1 Oct 7, 2024
de45c56
Update readmes and contributing docs
zaidarain1 Oct 14, 2024
0072616
update lock
zaidarain1 Nov 21, 2024
60ea1e3
update lock and fix missing packages
zaidarain1 Nov 21, 2024
697565d
fix missing dep in example
zaidarain1 Nov 21, 2024
2252c4e
fix yarn commands
zaidarain1 Nov 21, 2024
b4409bf
update lockfile
zaidarain1 Nov 21, 2024
4cf296e
config changes
zaidarain1 Nov 26, 2024
47d7c52
update lockfile
zaidarain1 Nov 27, 2024
5d7e4bc
update browser bundling and clean up tooling
zaidarain1 Nov 29, 2024
fe53f53
backport change from ethers v6 migration
zaidarain1 Nov 29, 2024
f0bfd36
refine sdk bundling and improve treeshaking
zaidarain1 Dec 3, 2024
474836b
clean up and fix sdk bundling
zaidarain1 Dec 5, 2024
3d0573b
update lockfile
zaidarain1 Dec 5, 2024
1aa962f
fix syncpack
zaidarain1 Dec 5, 2024
94bc286
fix vite build errors
zaidarain1 Dec 5, 2024
fc74db5
dedupe mismatching package versions
zaidarain1 Dec 5, 2024
5456805
todo checkout func tests
zaidarain1 Dec 5, 2024
f4a670e
todo commerce widgets example test and fix imx func test jest config
zaidarain1 Dec 5, 2024
13f0e60
fix contracts example
zaidarain1 Dec 5, 2024
5912d51
fix zkevm func tests jest config
zaidarain1 Dec 5, 2024
54af4e7
minify bundles and fix load ts urls
zaidarain1 Dec 6, 2024
8b1f6fa
cleanup publish workflow
zaidarain1 Dec 9, 2024
6bfd542
fix publish workflow
zaidarain1 Dec 9, 2024
4b0db76
update lock
zaidarain1 Jan 30, 2025
d2ff0cb
fix broken example
zaidarain1 Jan 31, 2025
8ccab45
use pnpm for playwright
zaidarain1 Jan 31, 2025
46e39e1
Document alpha packages info
zaidarain1 Feb 12, 2025
204b724
update yarn references in docs to pnpm
zaidarain1 Feb 13, 2025
7b0b965
fix elliptic critical severity dep
zaidarain1 Feb 13, 2025
f462a8d
use workspace sdk for examples
zaidarain1 Feb 13, 2025
78583dd
feat(sdk): migrate to ethers v6 (#2374)
zaidarain1 Feb 19, 2025
09428c1
override elliptic to 6.6.1
zaidarain1 Feb 19, 2025
9fd0e39
fix openzeppelin contracts vuln
zaidarain1 Feb 19, 2025
38da65d
override only unsafe version of contracts
zaidarain1 Feb 19, 2025
6c72c6b
use correct openzeppelin version
zaidarain1 Feb 19, 2025
6879e5a
use correct openzeppelin version
zaidarain1 Feb 19, 2025
78c7a20
fix dep review
zaidarain1 Feb 19, 2025
5a88d7b
fix dep review
zaidarain1 Feb 19, 2025
53aad63
update all github actions to use commit hash instead of version number
zaidarain1 Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"extends": ["airbnb", "airbnb-typescript"],
"ignorePatterns": [
"jest.config.*",
"rollup.config.*",
"node_modules/",
"dist/",
"**sample-app**/",
"**playground**/",
"*.cjs",
"tests/func-tests/"
"tests/func-tests/",
"tsup.*"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* @immutable/passport
package.json @immutable/passport
.github @immutable/security @immutable/passport
/.husky @immutable/passport
/.nvmrc @immutable/passport
Expand Down
15 changes: 6 additions & 9 deletions .github/actions/setup-playwright/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,30 @@ runs:
- name: Playwright versions in sync check
shell: bash
run: |
versions=$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')
versions=$(pnpm ls -r --json --depth 0 @playwright/test | jq --raw-output '.[] | select(.devDependencies["@playwright/test"]) | .devDependencies["@playwright/test"].version')
unique_versions=$(echo "$versions" | sort | uniq)
if [ $(echo "$unique_versions" | wc -l) -ne 1 ]; then
echo "Playwright versions are not in sync:"
echo "$unique_versions"
exit 1
else
echo "All Playwright versions are in sync."
echo "PLAYWRIGHT_VERSION=$unique_versions" >> $GITHUB_ENV
fi

- name: Get Playwright version
shell: bash
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('playwright/package.json').version)")" >> $GITHUB_ENV


- name: Cache Playwright Browsers
id: cache-playwright-browsers
uses: actions/cache@v4
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ env.PLAYWRIGHT_VERSION }}

- name: Install Playwright with dependencies
shell: bash
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
run: yarn dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install --with-deps
run: pnpm dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install --with-deps

- name: Install Playwright dependencies
shell: bash
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
run: yarn dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install-deps
run: pnpm dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install-deps
23 changes: 8 additions & 15 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
name: "Setup"
description: "Do necessary setup for NX, node, yarn cache and deps install"
description: "Do necessary setup for NX, node, pnpm cache and deps install"

runs:
using: "composite"
steps:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
uses: nrwl/nx-set-shas@e2e6dc8bce4b0387a05eb687735c39c41580b792

- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda

- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
with:
node-version-file: ".nvmrc"
registry-url: https://registry.npmjs.org/
cache: "yarn"

- name: Restore cached node_modules
id: restore-cache-node_modules
uses: actions/cache@v4
with:
path: |
**/node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-build-cache-deps-${{ hashFiles('yarn.lock') }}
cache: "pnpm"

- name: install dependencies
if: steps.restore-cache-node_modules.outputs.cache-hit != 'true'
shell: bash
run: yarn install --immutable
run: pnpm install --frozen-lockfile
10 changes: 6 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Hi👋, please prefix this PR's title with:
<!-- This will give consistant Release changelog to the public -->
- [ ] `breaking-change:` if you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities.
- [ ] `feat:`, `fix:`, `refactor:`, `docs:`, or `chore:`.
### Hi👋, please ensure the PR title follows the below standards:
<!-- This will allow for auto-generated changelog entries in Github releases -->
<!-- Valid types: feat, fix, refactor, style, test, docs, build, ops, chore -->
<!-- refactor, style, test, docs, build, ops, chore types won't be included in changelogs -->
- [ ] PR is titled with conventional commit style naming: `type(scope): message`. For example: `feat(passport): my new feature`
- [ ] If you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities, add a `!` after the `type(scope)`, for example `feat(passport)!: my new breaking feature`

# Summary
<!-- Keep it short. This is publicly viewable as part of the Changelog / Releases. -->
Expand Down
22 changes: 0 additions & 22 deletions .github/scripts/check-team-membership.sh

This file was deleted.

10 changes: 0 additions & 10 deletions .github/scripts/delete-local-tags.sh

This file was deleted.

Loading
Loading