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

dev upgrade package #2622

Merged
merged 16 commits into from
Sep 19, 2024
Merged

Conversation

nlyrthiia
Copy link
Contributor

@nlyrthiia nlyrthiia commented Sep 13, 2024

Package and Code Updates

This commit includes updates to package dependencies and several code modifications across the Rooch SDK ecosystem.

Package Updates

@roochnetwork/rooch-sdk

Dependencies Updates:

  • @mysten/bcs from 1.0.2 to 1.0.4
  • @noble/curves from ~1.4.0 to ~1.6.0
  • @noble/hashes from ~1.4.0 to ~1.5.0
  • @scure/bip32 from ^1.3.1 to ^1.5.0
  • @scure/bip39 from ^1.2.1 to ^1.4.0
  • bs58check from 2.1.2 to 4.0.0
  • valibot from ^0.25.0 to ^0.41.0

DevDependencies Updates:

  • @types/tmp from ^0.2.1 to ^0.2.6
  • testcontainers from 10.11.0 to 10.13.1
  • tmp from ^0.2.1 to ^0.2.3
  • ts-retry-promise from ^0.7.0 to ^0.8.1
  • typescript from ^5.3.3 to ^5.4.4
  • vite from ^4.4.4 to ^5.4.4
  • vitest from ^1.6.0 to ^2.0.5
  • wait-on from ^7.0.1 to ^8.0.1

@roochnetwork/bitseed-sdk

Dependencies Updates:

  • @radix-ui/themes from ^2.0.0 to ^3.1.3
  • @tanstack/react-query from ^5.0.0 to ^5.56.2
  • @types/randomstring from ^1.1.11 to ^1.3.0
  • bitcoinjs-lib from ^6.1.5 to ^6.1.6
  • buffer from 5.7.1 to 6.0.3
  • commander from ^10.0.0 to ^12.1.0
  • debug from ^4.3.6 to ^4.3.7
  • randomstring from ^1.2.3 to ^1.3.0
  • react from ^18.2.0 to ^18.3.1
  • react-dom from ^18.2.0 to ^18.3.1

DevDependencies Updates:

  • @babel/core from ^7.23.9 to ^7.25.2
  • @babel/preset-env from ^7.23.9 to ^7.25.4
  • @playwright/experimental-ct-react from ^1.41.2 to ^1.47.0
  • @playwright/test from ^1.41.2 to ^1.47.0
  • @types/jest from ^29.5.12 to ^29.5.13
  • @types/node from ^20.11.19 to ^22.5.4
  • @types/react from ^18.2.15 to ^18.3.5
  • @types/react-dom from ^18.2.7 to ^18.3.0
  • @typescript-eslint/eslint-plugin from ^6.1.0 to ^8.5.0
  • @typescript-eslint/parser from ^6.1.0 to ^8.5.0
  • @vitejs/plugin-react-swc from ^3.3.2 to ^3.7.0
  • testcontainers from ^10.11.0 to ^10.13.1
  • ts-jest from ^29.1.2 to ^29.2.5
  • typescript from 5.1.6 to 5.6.2
  • vite from 5.0.2 to 5.4.4
  • vitest from ^1.6.0 to ^2.1.0

@roochnetwork/rooch-sdk-kit

Dependencies Updates:

  • @vanilla-extract/css from ^1.13.0 to ^1.15.5
  • @vanilla-extract/dynamic from ^2.0.3 to ^2.1.2
  • @vanilla-extract/recipes from ^0.5.0 to ^0.5.5
  • clsx from ^2.0.0 to ^2.1.1
  • zustand from ^4.4.1 to ^4.5.5

DevDependencies Updates:

  • @size-limit/preset-small-lib from ^8.2.6 to ^11.1.5
  • @tanstack/react-query from ^5.0.0 to ^5.56.2
  • @testing-library/dom from ^9.3.1 to ^10.4.0
  • @testing-library/jest-dom from ^5.17.0 to ^6.5.0
  • @testing-library/react from ^14.0.0 to ^16.0.1
  • @testing-library/user-event from ^14.4.3 to ^14.5.2
  • @types/react from ^18.2.15 to ^18.3.5
  • @vanilla-extract/esbuild-plugin from ^2.3.0 to ^2.3.10
  • @vanilla-extract/vite-plugin from ^3.9.0 to ^4.0.15
  • happy-dom from ^14.12.0 to ^15.7.4
  • jsdom from ^23.0.0 to ^25.0.0
  • react from ^18.2.0 to ^18.3.1
  • react-dom from ^18.2.0 to ^18.3.1
  • size-limit from ^8.2.6 to ^11.1.5
  • typescript from ^5.3.3 to ^5.6.2
  • vite from ^4.4.4 to ^5.4.4
  • vitest from ^1.6.0 to ^2.1.0
Removed:
  • @types/testing-library__jest-dom
  • sats-connect

Code Modifications

  1. sdk/typescript/rooch-sdk/src/keypairs/secp256k1/publickey.ts

    • In the buildAddress method, the bech32m.encode function call adds a third parameter, false.
  2. sdk/typescript/rooch-sdk/src/address/bitcoin.ts

    1. The switch statement in the fromBech32Prefix method is simplified:

      • Removed 'BC', 'TB' and duplicate 'bcrt' case options. Because it never enters BC, TB
      • each case now matches only a specific lowercase prefix.
    2. bech32 encoding calls updated:

      • Added false argument to bech32.encode and bech32m.encode calls.
    3. type assertion added:

      • Assignments to this.rawAddress now use the type assertion as \${string}1${string}``.
  3. sdk/typescript/rooch-sdk/src/address/rooch.ts

    1. type assertion in the constructor:

      • The address parameter is asserted to be of type ${string}1${string} in the bech32m.decode() call.
    2. toBech32Address() method update:

      • Added third argument false to bech32m.encode() call.
  4. sdk/typescript/rooch-sdk/src/address/util.ts

    The main changes include:

    1. in the convertToRoochAddressBytes function:

      • Added type assertion as ${string}1${string}tobech32m.decode(input)`` call.
    2. in the isValidRoochAddress function:

      • Also added type assertion as \${string}1${string}`` to the bech32m.decode(input) call.

General

  • Updated packageManager from pnpm@8.6.6 to pnpm@9.10.0

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 1:14am
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 1:14am
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 1:14am

@jolestar jolestar merged commit 14a6856 into rooch-network:main Sep 19, 2024
10 checks passed
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.

3 participants