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

V2 SDK #2137

Draft
wants to merge 102 commits into
base: main
Choose a base branch
from
Draft

V2 SDK #2137

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
c5ca234
setup nx releases separate packages
zaidarain1 Sep 3, 2024
d768185
update yarn.lock
zaidarain1 Sep 3, 2024
706bf70
test commit
zaidarain1 Sep 3, 2024
09a11d6
update release config
zaidarain1 Sep 3, 2024
88d5837
pnpm, tsup migration and fix builds/errors
zaidarain1 Sep 16, 2024
6ec5edc
undo public hoisting for jest types
zaidarain1 Sep 16, 2024
bc666f9
fix broken builds
zaidarain1 Sep 16, 2024
b15a057
migrate workspaces commands from yarn to pnpm
zaidarain1 Sep 16, 2024
3fd51b0
fix syncpack and test command
zaidarain1 Sep 17, 2024
4b59abf
fix examples
zaidarain1 Sep 17, 2024
1266cb1
fix orderbook breaking build
zaidarain1 Sep 17, 2024
d711d81
fix and update syncpack
zaidarain1 Sep 17, 2024
037e218
fix react type error and passport test
zaidarain1 Sep 18, 2024
360c3b8
update playwright configs and fix zkevm tests
zaidarain1 Sep 18, 2024
d249b4f
fix checkout require exports
zaidarain1 Sep 18, 2024
3ef0c5a
install playwright and prepare sdk correctly
zaidarain1 Sep 18, 2024
fe96f56
update playwright install and fix zkevm func tests
zaidarain1 Sep 18, 2024
4879c94
remove setup-node caching
zaidarain1 Sep 18, 2024
aa526a9
use setup-node cache
zaidarain1 Sep 18, 2024
a96a2fe
add main conditional exports to @imtbl/sdk
zaidarain1 Sep 18, 2024
2488fbb
add build step to preparing sdk
zaidarain1 Sep 18, 2024
7e6739c
build examples before testing
zaidarain1 Sep 18, 2024
b41af2b
bump up concurrency and combine examples steps together
zaidarain1 Sep 19, 2024
a6a79e9
retrigger checks
zaidarain1 Sep 19, 2024
532f89b
update lockfile
zaidarain1 Sep 19, 2024
a913a31
set sdk team as codeowners for package.json
zaidarain1 Sep 19, 2024
d19b03f
update publish workflow to nx release, clean up and allow pre publish…
zaidarain1 Sep 20, 2024
f9e6d2d
change workflow trigger
zaidarain1 Sep 20, 2024
e1005e7
change workflow trigger
zaidarain1 Sep 20, 2024
67725e4
fix release syntax error
zaidarain1 Sep 20, 2024
ea1b0dc
fix release syntax error
zaidarain1 Sep 20, 2024
36c1b57
fix major permission check
zaidarain1 Sep 20, 2024
12e21f0
add more conditions for major release
zaidarain1 Sep 20, 2024
678eb74
fix build release command
zaidarain1 Sep 20, 2024
2ac539a
fix build release command
zaidarain1 Sep 20, 2024
cb6a0c0
fix attestations
zaidarain1 Sep 20, 2024
b62da55
fix attestation dirs
zaidarain1 Sep 20, 2024
2c01a0d
set attestation for sdk
zaidarain1 Sep 20, 2024
a93e3b4
ignore node modules for attestations
zaidarain1 Sep 20, 2024
676a04e
specify sdk attestations
zaidarain1 Sep 20, 2024
1ef28f8
update sdk attestions paths
zaidarain1 Sep 20, 2024
04369b8
early return on dry run
zaidarain1 Sep 20, 2024
0173ebd
cleanup publish workflow file
zaidarain1 Sep 20, 2024
e57425b
update pnpm lock
zaidarain1 Sep 23, 2024
45f9501
remove unneeded fallback prepatch for release type
zaidarain1 Sep 23, 2024
c258a27
update lockfile
zaidarain1 Sep 23, 2024
cf09bd3
update lockfile
zaidarain1 Sep 23, 2024
3f307a9
update lockfile
zaidarain1 Sep 24, 2024
9207a1e
fix passport tests
zaidarain1 Sep 25, 2024
494e872
update lock
zaidarain1 Sep 25, 2024
daac246
update lock
zaidarain1 Sep 26, 2024
599b275
fix missing semver dep in checkout
zaidarain1 Sep 26, 2024
87b04be
update lock after rebase
zaidarain1 Sep 26, 2024
ff2cb0d
add semver types
zaidarain1 Sep 26, 2024
d85d1e8
fix playwright webserver commands
zaidarain1 Sep 26, 2024
fa10e45
speed up prepare sdk, examples and tests for local sdk npm emulation
zaidarain1 Sep 27, 2024
d6b753b
update pnpm lock
zaidarain1 Sep 27, 2024
9f68a69
fix func-tests
zaidarain1 Sep 27, 2024
8ad5fde
update checkout build process, update publish process to handle sdk v…
zaidarain1 Oct 2, 2024
e6181f3
update lock
zaidarain1 Oct 2, 2024
3865886
fix node type error
zaidarain1 Oct 2, 2024
a44867d
update lock
zaidarain1 Oct 2, 2024
e9f9fe5
fix react-app-rewired builds
zaidarain1 Oct 2, 2024
9e9b7dc
update dev mode to instant refresh for all packages, support jest lis…
zaidarain1 Oct 3, 2024
bdf9ef8
update lockfile
zaidarain1 Oct 3, 2024
f679005
fix build errors
zaidarain1 Oct 4, 2024
39a8612
install prepared deps correctly
zaidarain1 Oct 4, 2024
091b6d4
fix pr workflow for func tests and prepped deps
zaidarain1 Oct 4, 2024
4c3e693
ignore non-workspace @imtbl deps when prepping deps
zaidarain1 Oct 4, 2024
30f5b7e
cleanup babel from checkout
zaidarain1 Oct 7, 2024
3b55917
update lock
zaidarain1 Oct 7, 2024
5926c08
updatwe lock
zaidarain1 Oct 7, 2024
f6f0a32
Update readmes and contributing docs
zaidarain1 Oct 14, 2024
6fd2c4f
update lock
zaidarain1 Nov 21, 2024
96217b6
update lock and fix missing packages
zaidarain1 Nov 21, 2024
f020631
fix missing dep in example
zaidarain1 Nov 21, 2024
8363cb8
fix yarn commands
zaidarain1 Nov 21, 2024
a506b2a
update lockfile
zaidarain1 Nov 21, 2024
46cbf9a
config changes
zaidarain1 Nov 26, 2024
df7d86a
update lockfile
zaidarain1 Nov 27, 2024
e8f2dbe
update browser bundling and clean up tooling
zaidarain1 Nov 29, 2024
45eb64e
backport change from ethers v6 migration
zaidarain1 Nov 29, 2024
debc217
refine sdk bundling and improve treeshaking
zaidarain1 Dec 3, 2024
78844d4
clean up and fix sdk bundling
zaidarain1 Dec 5, 2024
c1f5285
update lockfile
zaidarain1 Dec 5, 2024
48e6aef
fix syncpack
zaidarain1 Dec 5, 2024
53f1094
fix vite build errors
zaidarain1 Dec 5, 2024
9d3e98d
dedupe mismatching package versions
zaidarain1 Dec 5, 2024
11bf3d8
todo checkout func tests
zaidarain1 Dec 5, 2024
0805a97
todo commerce widgets example test and fix imx func test jest config
zaidarain1 Dec 5, 2024
b1c8fb6
fix contracts example
zaidarain1 Dec 5, 2024
1c3cf4e
fix zkevm func tests jest config
zaidarain1 Dec 5, 2024
9f9dbec
minify bundles and fix load ts urls
zaidarain1 Dec 6, 2024
1df5901
cleanup publish workflow
zaidarain1 Dec 9, 2024
c4ffde2
fix publish workflow
zaidarain1 Dec 9, 2024
798b4d2
update lock
zaidarain1 Jan 30, 2025
ada2748
fix broken example
zaidarain1 Jan 31, 2025
6788a17
use pnpm for playwright
zaidarain1 Jan 31, 2025
3aeda28
Document alpha packages info
zaidarain1 Feb 12, 2025
6d4d101
update yarn references in docs to pnpm
zaidarain1 Feb 13, 2025
2b923f4
fix elliptic critical severity dep
zaidarain1 Feb 13, 2025
5aab313
use workspace sdk for examples
zaidarain1 Feb 13, 2025
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
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
13 changes: 5 additions & 8 deletions .github/actions/setup-playwright/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ 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
Expand All @@ -31,9 +28,9 @@ runs:
- 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
19 changes: 6 additions & 13 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

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

- name: Use Node.js
uses: actions/setup-node@v4
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
7 changes: 4 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### 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:`.
<!-- This will allow for auto-generated changelog entries in Github releases -->
<!-- Valid types: feat, fix, refactor, style, test, docs, build, ops, chore -->
- [ ] 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