Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Sep 15, 2025

WHAT

  • A refactor from Bun to PNPM
  • Migrated NX from 17.3.0 and pinned to 21.2.1
  • Upgraded esbuild to 0.19.2 to satisfy Nx, removed typedoc-theme-hierarchy because it blocked upgrades, and moved typedoc to 0.28.12 for compatibility with TypeScript 5.8+.
  • Use dotenvx to load .env and run the gen:local-network-context using tsx. Previously Bun would automatically detect and load the .env file.
  • Migrated test to jest

Do not merge this until these are merged

Based off this branch (pnpm migration)

UPDATE 22/09/2025

Do not merge until loading is done or ✅ from @hwrdtm

…typedoc-theme-hierarchy because it blocked upgrades, and moved typedoc to 0.28.12 for compatibility with TypeScript 5.8+.
… minimal module mapping, dotenvx for envs

- Switched Bun TS runner to Node + tsx with dotenvx wrapping for env loading.
- Replaced Bun E2E runner with Jest using a dedicated jest e2e config
- Resolved CJS/ESM breakages by using Babel transfomer for .ts|.js| in Jest.
- Avoided duplicated module resolution: ignored `.nx/` and `dist/` in Jest.
- Prevented hijacking external `@lit-protocol/*` and only map local packages
… minimal module mapping, dotenvx for envs

- Switched Bun TS runner to Node + tsx with dotenvx wrapping for env loading.
- Replaced Bun E2E runner with Jest using a dedicated jest e2e config
- Resolved CJS/ESM breakages by using Babel transfomer for .ts|.js| in Jest.
- Avoided duplicated module resolution: ignored `.nx/` and `dist/` in Jest.
- Prevented hijacking external `@lit-protocol/*` and only map local packages
- ESlint 8.48.0 no longer supported
- @walletconnect/ethereum-provider is unused
- uuidv4 to `crypto.randomUUID()`

`@simplewebauthn/typescript-types` is NOT yet replaced with later types as unsure with side effects, locked-in to a particular version instead.
…s and remove module type; add TypeScript configuration
- remove unused artillery scripts
- and update test command in package.json
- remove unused packages
- Update type definitions to replace deprecated PKPInfo with PKPData across auth and e2e packages.
- Modify Jest configuration to match all spec files in e2e tests.
- Add .e2e to .gitignore for better file management.
- Enhance e2e package structure with new types and utility functions for improved clarity and maintainability.
@Ansonhkg Ansonhkg changed the title Feature/jss 93 refactor bun pnpm [Refactor] [bun > pnpm] Feature/jss 93 refactor bun pnpm Sep 15, 2025
@Ansonhkg Ansonhkg self-assigned this Sep 15, 2025
…ata. This changes are added in #891 and #892 but they are pull in so this PR can build
- moved inline import to top of the file
- migrated to jest syntax
- export utils from e2e and consumed by artillery
- moved artillery as its own package
- migrated script commands
@Ansonhkg Ansonhkg changed the title [Refactor] [bun > pnpm] Feature/jss 93 refactor bun pnpm ⭐️ [Refactor] [bun > pnpm] Feature/jss 93 refactor bun pnpm Sep 15, 2025
Copy link
Collaborator

@glitch003 glitch003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems pretty straightforward - looks good to me

@Ansonhkg Ansonhkg mentioned this pull request Sep 18, 2025
…tocol/js-sdk into feature/jss-107-refactor-move-e2e-and-artillery-into-packages
…ve-e2e-and-artillery-into-packages

Feature/jss 107 refactor move e2e and artillery into packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants