From 30e6bff1340e1a28a0dd1a7e1ab89f3f2f10fa87 Mon Sep 17 00:00:00 2001 From: Dylan Duan Date: Thu, 15 Aug 2024 11:30:55 +0800 Subject: [PATCH 1/3] refactor: Upgrade ckb-sdk-js to fix esm and commonjs issues --- apps/service/package.json | 3 +- apps/service/src/app.module.ts | 8 +- apps/service/src/app.service.ts | 2 +- apps/service/src/json-rpc/json-rpc.module.ts | 2 +- apps/service/src/json-rpc/json-rpc.server.ts | 6 +- apps/service/src/main.ts | 2 +- apps/service/src/rgbpp/rgbpp.module.ts | 2 +- apps/service/src/utils/json.ts | 2 +- apps/service/tsconfig.json | 5 +- .../{vitest.project.ts => vitest.project.mts} | 0 examples/rgbpp/package.json | 2 +- examples/xudt-on-ckb/package.json | 2 +- packages/btc/package.json | 2 +- packages/ckb/package.json | 6 +- packages/rgbpp/package.json | 2 +- packages/service/package.json | 2 +- pnpm-lock.yaml | 140 +++++------------- tests/rgbpp/package.json | 2 +- 18 files changed, 61 insertions(+), 129 deletions(-) rename apps/service/{vitest.project.ts => vitest.project.mts} (100%) diff --git a/apps/service/package.json b/apps/service/package.json index 7326ccec..17b0f2b5 100644 --- a/apps/service/package.json +++ b/apps/service/package.json @@ -2,7 +2,6 @@ "name": "rgbpp-sdk-service", "version": "0.0.1", "private": true, - "type": "module", "scripts": { "build": "nest build", "format": "prettier --write \"src/**/*.ts\"", @@ -26,7 +25,7 @@ "json-rpc-2.0": "^1.7.0", "lodash": "^4.17.21", "reflect-metadata": "^0.2.0", - "rgbpp": "0.0.0-snap-20240813134030", + "rgbpp": "workspace:*", "rxjs": "^7.8.1", "snakecase-keys": "^8.0.1", "zod": "^3.23.8" diff --git a/apps/service/src/app.module.ts b/apps/service/src/app.module.ts index 9ffc153e..1ecd1756 100644 --- a/apps/service/src/app.module.ts +++ b/apps/service/src/app.module.ts @@ -2,10 +2,10 @@ import { Global, Module } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { BtcAssetsApi } from 'rgbpp/service'; import { BTCTestnetType, Collector } from 'rgbpp/ckb'; -import JsonRpcModule from './json-rpc/json-rpc.module.js'; -import { RgbppModule } from './rgbpp/rgbpp.module.js'; -import { AppService } from './app.service.js'; -import { envSchema } from './env.js'; +import JsonRpcModule from './json-rpc/json-rpc.module'; +import { RgbppModule } from './rgbpp/rgbpp.module'; +import { AppService } from './app.service'; +import { envSchema } from './env'; @Global() @Module({ diff --git a/apps/service/src/app.service.ts b/apps/service/src/app.service.ts index c6daee2e..6d18b670 100644 --- a/apps/service/src/app.service.ts +++ b/apps/service/src/app.service.ts @@ -1,5 +1,5 @@ import { RpcHandler, RpcMethodHandler } from './json-rpc/json-rpc.decorators.js'; -import pkg from '../package.json' with { type: 'json' }; +import pkg from '../package.json'; @RpcHandler() export class AppService { diff --git a/apps/service/src/json-rpc/json-rpc.module.ts b/apps/service/src/json-rpc/json-rpc.module.ts index 133846dc..2c17ac91 100644 --- a/apps/service/src/json-rpc/json-rpc.module.ts +++ b/apps/service/src/json-rpc/json-rpc.module.ts @@ -1,5 +1,5 @@ import { Inject, Logger, Module, OnModuleInit } from '@nestjs/common'; -import { JsonRpcServer } from './json-rpc.server.js'; +import { JsonRpcServer } from './json-rpc.server'; export const JSON_RPC_OPTIONS = '__JSON_RPC_OPTIONS__'; diff --git a/apps/service/src/json-rpc/json-rpc.server.ts b/apps/service/src/json-rpc/json-rpc.server.ts index e7cfa3f7..6234d39e 100644 --- a/apps/service/src/json-rpc/json-rpc.server.ts +++ b/apps/service/src/json-rpc/json-rpc.server.ts @@ -1,9 +1,9 @@ import { Injectable, Logger } from '@nestjs/common'; import { HttpAdapterHost, ModuleRef, ModulesContainer } from '@nestjs/core'; import { JSONRPCServer, SimpleJSONRPCMethod } from 'json-rpc-2.0'; -import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper.js'; -import { JsonRpcMetadataKey, JsonRpcMethodMetadataKey } from './json-rpc.decorators.js'; -import { JsonRpcConfig } from './json-rpc.module.js'; +import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper'; +import { JsonRpcMetadataKey, JsonRpcMethodMetadataKey } from './json-rpc.decorators'; +import { JsonRpcConfig } from './json-rpc.module'; class JsonRpcServerError extends Error { constructor(message: string) { diff --git a/apps/service/src/main.ts b/apps/service/src/main.ts index 4ad947aa..2b0f2c58 100644 --- a/apps/service/src/main.ts +++ b/apps/service/src/main.ts @@ -1,7 +1,7 @@ import { Logger } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify'; -import { AppModule } from './app.module.js'; +import { AppModule } from './app.module'; async function bootstrap() { const logger = new Logger('AppBootstrap'); diff --git a/apps/service/src/rgbpp/rgbpp.module.ts b/apps/service/src/rgbpp/rgbpp.module.ts index 8f32f93a..bdfec8a5 100644 --- a/apps/service/src/rgbpp/rgbpp.module.ts +++ b/apps/service/src/rgbpp/rgbpp.module.ts @@ -1,5 +1,5 @@ import { Module } from '@nestjs/common'; -import { RgbppService } from './rgbpp.service.js'; +import { RgbppService } from './rgbpp.service'; @Module({ imports: [], diff --git a/apps/service/src/utils/json.ts b/apps/service/src/utils/json.ts index 0d6a3f75..34e4d65a 100644 --- a/apps/service/src/utils/json.ts +++ b/apps/service/src/utils/json.ts @@ -1,4 +1,4 @@ -import isPlainObject from 'lodash/isPlainObject.js'; +import isPlainObject from 'lodash/isPlainObject'; export function ensureSafeJson(json: Input): Output { if (!isPlainObject(json) && !Array.isArray(json)) { diff --git a/apps/service/tsconfig.json b/apps/service/tsconfig.json index edd7f278..9f4fe4df 100644 --- a/apps/service/tsconfig.json +++ b/apps/service/tsconfig.json @@ -1,11 +1,10 @@ { "compilerOptions": { - "module": "ESNext", + "module": "NodeNext", "declaration": true, "resolveJsonModule": true, "removeComments": true, - "esModuleInterop": true, - "moduleResolution": "Bundler", + "moduleResolution": "NodeNext", "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, diff --git a/apps/service/vitest.project.ts b/apps/service/vitest.project.mts similarity index 100% rename from apps/service/vitest.project.ts rename to apps/service/vitest.project.mts diff --git a/examples/rgbpp/package.json b/examples/rgbpp/package.json index 2469e8ee..df7c847f 100644 --- a/examples/rgbpp/package.json +++ b/examples/rgbpp/package.json @@ -10,7 +10,7 @@ "lint:fix": "tsc && eslint --fix --ext .js,.ts . && prettier --write '**/*.{js,ts}'" }, "dependencies": { - "@nervosnetwork/ckb-sdk-utils": "0.109.2", + "@nervosnetwork/ckb-sdk-utils": "0.109.3", "rgbpp": "workspace:*" }, "devDependencies": { diff --git a/examples/xudt-on-ckb/package.json b/examples/xudt-on-ckb/package.json index 804a8214..ce92ca42 100644 --- a/examples/xudt-on-ckb/package.json +++ b/examples/xudt-on-ckb/package.json @@ -10,7 +10,7 @@ "lint:fix": "tsc && eslint --fix --ext .ts . && prettier --write '**/*.ts'" }, "dependencies": { - "@nervosnetwork/ckb-sdk-utils": "0.109.2", + "@nervosnetwork/ckb-sdk-utils": "0.109.3", "rgbpp": "workspace:*" }, "devDependencies": { diff --git a/packages/btc/package.json b/packages/btc/package.json index d3f130e7..06b33056 100644 --- a/packages/btc/package.json +++ b/packages/btc/package.json @@ -30,7 +30,7 @@ "dependencies": { "@bitcoinerlab/secp256k1": "^1.1.1", "@ckb-lumos/codec": "0.22.2", - "@nervosnetwork/ckb-types": "0.109.2", + "@nervosnetwork/ckb-types": "0.109.3", "@rgbpp-sdk/ckb": "workspace:^", "@rgbpp-sdk/service": "workspace:^", "bip32": "^4.0.0", diff --git a/packages/ckb/package.json b/packages/ckb/package.json index e29d4f16..5eec42d7 100644 --- a/packages/ckb/package.json +++ b/packages/ckb/package.json @@ -32,9 +32,9 @@ "@ckb-lumos/base": "^0.22.2", "@ckb-lumos/codec": "^0.22.2", "@spore-sdk/core": "^0.2.0-beta.6", - "@nervosnetwork/ckb-sdk-core": "0.109.2", - "@nervosnetwork/ckb-sdk-utils": "0.109.2", - "@nervosnetwork/ckb-types": "0.109.2", + "@nervosnetwork/ckb-sdk-core": "0.109.3", + "@nervosnetwork/ckb-sdk-utils": "0.109.3", + "@nervosnetwork/ckb-types": "0.109.3", "@rgbpp-sdk/service": "workspace:^", "@exact-realty/multipart-parser": "^1.0.13", "axios": "^1.6.8", diff --git a/packages/rgbpp/package.json b/packages/rgbpp/package.json index 96e977d0..44f9930e 100644 --- a/packages/rgbpp/package.json +++ b/packages/rgbpp/package.json @@ -61,7 +61,7 @@ "dependencies": { "@ckb-lumos/base": "^0.22.2", "@ckb-lumos/codec": "^0.22.2", - "@nervosnetwork/ckb-sdk-utils": "0.109.2", + "@nervosnetwork/ckb-sdk-utils": "0.109.3", "@rgbpp-sdk/btc": "workspace:*", "@rgbpp-sdk/ckb": "workspace:*", "@rgbpp-sdk/service": "workspace:*" diff --git a/packages/service/package.json b/packages/service/package.json index 29c49351..b13e96cc 100644 --- a/packages/service/package.json +++ b/packages/service/package.json @@ -30,7 +30,7 @@ "dependencies": { "@ckb-lumos/codec": "0.22.2", "@ckb-lumos/base": "0.22.2", - "@nervosnetwork/ckb-types": "0.109.2", + "@nervosnetwork/ckb-types": "0.109.3", "lodash": "^4.17.21" }, "publishConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8483aa53..2a73ad74 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,8 +78,8 @@ importers: specifier: ^0.2.0 version: 0.2.2 rgbpp: - specifier: 0.0.0-snap-20240813134030 - version: 0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) + specifier: workspace:* + version: link:../../packages/rgbpp rxjs: specifier: ^7.8.1 version: 7.8.1 @@ -139,8 +139,8 @@ importers: examples/rgbpp: dependencies: '@nervosnetwork/ckb-sdk-utils': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 rgbpp: specifier: workspace:* version: link:../../packages/rgbpp @@ -155,8 +155,8 @@ importers: examples/xudt-on-ckb: dependencies: '@nervosnetwork/ckb-sdk-utils': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 rgbpp: specifier: workspace:* version: link:../../packages/rgbpp @@ -177,8 +177,8 @@ importers: specifier: 0.22.2 version: 0.22.2 '@nervosnetwork/ckb-types': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 '@rgbpp-sdk/ckb': specifier: workspace:^ version: link:../ckb @@ -213,14 +213,14 @@ importers: specifier: ^1.0.13 version: 1.0.14 '@nervosnetwork/ckb-sdk-core': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 '@nervosnetwork/ckb-sdk-utils': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 '@nervosnetwork/ckb-types': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 '@rgbpp-sdk/service': specifier: workspace:^ version: link:../service @@ -250,8 +250,8 @@ importers: specifier: ^0.22.2 version: 0.22.2 '@nervosnetwork/ckb-sdk-utils': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 '@rgbpp-sdk/btc': specifier: workspace:* version: link:../btc @@ -281,8 +281,8 @@ importers: specifier: 0.22.2 version: 0.22.2 '@nervosnetwork/ckb-types': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 lodash: specifier: ^4.17.21 version: 4.17.21 @@ -290,8 +290,8 @@ importers: tests/rgbpp: dependencies: '@nervosnetwork/ckb-sdk-utils': - specifier: 0.109.2 - version: 0.109.2 + specifier: 0.109.3 + version: 0.109.3 rgbpp: specifier: workspace:* version: link:../../packages/rgbpp @@ -1034,17 +1034,17 @@ packages: '@manypkg/get-packages@1.1.3': resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} - '@nervosnetwork/ckb-sdk-core@0.109.2': - resolution: {integrity: sha512-56oOneHQCM0IEyNQswCIF8Xs1PXj4TGuBQA6iKfRKvHyXQiEGeVJ1q4FJzVk8dz5tRLguoMYWs6HuXy02bKIVg==} + '@nervosnetwork/ckb-sdk-core@0.109.3': + resolution: {integrity: sha512-YASdkmfvw6eu/q+7X2OTrnshhWb5bVtPPkzaryEfvGrRAhHzh45Q/umyvX3GOBxU5wncdTuptNsWI5A/T2ZjVw==} - '@nervosnetwork/ckb-sdk-rpc@0.109.2': - resolution: {integrity: sha512-6RHLMXIzyV8XKkV19SnYvnRqCs3B3BVHwVFHk6G0Eq71bmKwLjgEoc8pYnXoQK1P4v31ZCvIhdjynSvjh0Jv1w==} + '@nervosnetwork/ckb-sdk-rpc@0.109.3': + resolution: {integrity: sha512-7CHY8S78IvwyawqVaBwTrqUjiNQ31GdovPRuUommtxv6JYetoZEWQuzdcIMipqEGXZT6jIfuAYeKS2mZJWQmCw==} - '@nervosnetwork/ckb-sdk-utils@0.109.2': - resolution: {integrity: sha512-pXgQvQQA2TuXiAmKGvL9kWjXdCsX+qP8HqHSLt6kwrjFe846d4dZxZ5AunpP+xsQNst+L5V7xcvunaBOkTdD6g==} + '@nervosnetwork/ckb-sdk-utils@0.109.3': + resolution: {integrity: sha512-sV3WXlZmd765qtFsXpwl0Bl3hOgGev15Og810acO6iC0cVHEVvv/Uiabd8a2xkqyfziRDI0tfWC0DewOJB28rg==} - '@nervosnetwork/ckb-types@0.109.2': - resolution: {integrity: sha512-NAQbUi+j6tWlUYijvHqWIUwrbawIeAeSlxUQm0wkqSKbtAEoiR4L6RZS7cgn7uH+SMsp78mciXP8gixrfH3rEQ==} + '@nervosnetwork/ckb-types@0.109.3': + resolution: {integrity: sha512-i9EVTXCT0bTLpAQXAoF5zHGLWYCXNE5AP4Zl0Niwl3ZplaVAZHNU6ygsh2O3EGmCFv5qlkoY2DuLmsjysEaNLA==} '@nestjs/cli@10.4.2': resolution: {integrity: sha512-fQexIfLHfp6GUgX+CO4fOg+AEwV5ox/LHotQhyZi9wXUQDyIqS0NTTbumr//62EcX35qV4nU0359nYnuEdzG+A==} @@ -1154,15 +1154,6 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@rgbpp-sdk/btc@0.0.0-snap-20240813134030': - resolution: {integrity: sha512-LLG49/LevH03mcCcB/+f3Wjx+RQhCZ3BQCbvX0bDCMNboH5+R4I6bLMIvofiNfOBkJYYO6NBaJ2AqioaJyIFmg==} - - '@rgbpp-sdk/ckb@0.0.0-snap-20240813134030': - resolution: {integrity: sha512-xa0qeYIRryJDMcKGUXnHXYSb3lmybTk6H8It4h4PNpKQ1DK21tuTeXnC9MeWkFozE8K7qLVlkuVYvwTPn5kh7Q==} - - '@rgbpp-sdk/service@0.0.0-snap-20240813134030': - resolution: {integrity: sha512-qiImHNGhshbO3JXlWW1VbBhY63uELcwhn0+/JnXZt50MF3A+BanTwZT7gZlNhhk9nN4CPiNnaCqGj/iI8FEYOg==} - '@rollup/pluginutils@5.1.0': resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} @@ -3193,9 +3184,6 @@ packages: rfdc@1.4.1: resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} - rgbpp@0.0.0-snap-20240813134030: - resolution: {integrity: sha512-idnzre1ESuiBLzy9c7cHtilb1g7GQY/wTSGpBl9Lv2DRX4F2w3duTRnrPwIX5gMfdaYGueHLzn/Y2xV+3lX42g==} - rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported @@ -4594,32 +4582,32 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 - '@nervosnetwork/ckb-sdk-core@0.109.2': + '@nervosnetwork/ckb-sdk-core@0.109.3': dependencies: - '@nervosnetwork/ckb-sdk-rpc': 0.109.2 - '@nervosnetwork/ckb-sdk-utils': 0.109.2 - '@nervosnetwork/ckb-types': 0.109.2 + '@nervosnetwork/ckb-sdk-rpc': 0.109.3 + '@nervosnetwork/ckb-sdk-utils': 0.109.3 + '@nervosnetwork/ckb-types': 0.109.3 tslib: 2.3.1 transitivePeerDependencies: - debug - '@nervosnetwork/ckb-sdk-rpc@0.109.2': + '@nervosnetwork/ckb-sdk-rpc@0.109.3': dependencies: - '@nervosnetwork/ckb-sdk-utils': 0.109.2 + '@nervosnetwork/ckb-sdk-utils': 0.109.3 axios: 1.6.7 tslib: 2.3.1 transitivePeerDependencies: - debug - '@nervosnetwork/ckb-sdk-utils@0.109.2': + '@nervosnetwork/ckb-sdk-utils@0.109.3': dependencies: - '@nervosnetwork/ckb-types': 0.109.2 + '@nervosnetwork/ckb-types': 0.109.3 bech32: 2.0.0 elliptic: 6.5.4 jsbi: 3.1.3 tslib: 2.3.1 - '@nervosnetwork/ckb-types@0.109.2': {} + '@nervosnetwork/ckb-types@0.109.3': {} '@nestjs/cli@10.4.2(@swc/core@1.7.11)(esbuild@0.23.0)': dependencies: @@ -4746,47 +4734,6 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@rgbpp-sdk/btc@0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5)': - dependencies: - '@bitcoinerlab/secp256k1': 1.1.1 - '@ckb-lumos/codec': 0.22.2 - '@nervosnetwork/ckb-types': 0.109.2 - '@rgbpp-sdk/ckb': 0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) - '@rgbpp-sdk/service': 0.0.0-snap-20240813134030 - bip32: 4.0.0 - bitcoinjs-lib: 6.1.6 - ecpair: 2.1.0 - lodash: 4.17.21 - p-limit: 3.1.0 - transitivePeerDependencies: - - '@ckb-lumos/lumos' - - debug - - '@rgbpp-sdk/ckb@0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21)': - dependencies: - '@ckb-lumos/base': 0.22.2 - '@ckb-lumos/codec': 0.22.2 - '@exact-realty/multipart-parser': 1.0.14 - '@nervosnetwork/ckb-sdk-core': 0.109.2 - '@nervosnetwork/ckb-sdk-utils': 0.109.2 - '@nervosnetwork/ckb-types': 0.109.2 - '@rgbpp-sdk/service': 0.0.0-snap-20240813134030 - '@spore-sdk/core': 0.2.0(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) - axios: 1.7.2 - camelcase-keys: 7.0.2 - js-sha256: 0.11.0 - transitivePeerDependencies: - - '@ckb-lumos/lumos' - - debug - - lodash - - '@rgbpp-sdk/service@0.0.0-snap-20240813134030': - dependencies: - '@ckb-lumos/base': 0.22.2 - '@ckb-lumos/codec': 0.22.2 - '@nervosnetwork/ckb-types': 0.109.2 - lodash: 4.17.21 - '@rollup/pluginutils@5.1.0(rollup@4.19.0)': dependencies: '@types/estree': 1.0.5 @@ -6926,19 +6873,6 @@ snapshots: rfdc@1.4.1: {} - rgbpp@0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21): - dependencies: - '@ckb-lumos/base': 0.22.2 - '@ckb-lumos/codec': 0.22.2 - '@nervosnetwork/ckb-sdk-utils': 0.109.2 - '@rgbpp-sdk/btc': 0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5) - '@rgbpp-sdk/ckb': 0.0.0-snap-20240813134030(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) - '@rgbpp-sdk/service': 0.0.0-snap-20240813134030 - transitivePeerDependencies: - - '@ckb-lumos/lumos' - - debug - - lodash - rimraf@3.0.2: dependencies: glob: 7.2.3 diff --git a/tests/rgbpp/package.json b/tests/rgbpp/package.json index ed976f10..94398d3c 100644 --- a/tests/rgbpp/package.json +++ b/tests/rgbpp/package.json @@ -12,7 +12,7 @@ "integration:spore": "npx tsx shared/prepare-utxo.ts && npx tsx spore/launch/1-prepare-cluster.ts && npx tsx spore/launch/2-create-cluster.ts && npx tsx spore/launch/3-create-spores.ts && npx tsx spore/4-transfer-spore.ts && npx tsx spore/5-leap-spore-to-ckb.ts" }, "dependencies": { - "@nervosnetwork/ckb-sdk-utils": "0.109.2", + "@nervosnetwork/ckb-sdk-utils": "0.109.3", "rgbpp": "workspace:*", "zx": "^8.0.2" }, From 538d7bb3183496450040400f345dee0154799bab Mon Sep 17 00:00:00 2001 From: Dylan Duan Date: Thu, 15 Aug 2024 11:34:43 +0800 Subject: [PATCH 2/3] chore: Add changeset --- .changeset/brown-pugs-cheat.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/brown-pugs-cheat.md diff --git a/.changeset/brown-pugs-cheat.md b/.changeset/brown-pugs-cheat.md new file mode 100644 index 00000000..3898550f --- /dev/null +++ b/.changeset/brown-pugs-cheat.md @@ -0,0 +1,8 @@ +--- +'rgbpp': major +'@rgbpp-sdk/btc': major +'@rgbpp-sdk/ckb': major +'@rgbpp-sdk/service': minor +--- + +refactor: Upgrade ckb-sdk-js to fix esm and commonjs issues From 940221dac80be8fd1a46b6e1587ea7af98cd4fff Mon Sep 17 00:00:00 2001 From: Dylan Duan Date: Thu, 15 Aug 2024 14:07:57 +0800 Subject: [PATCH 3/3] chore: Fix changeset issue --- .changeset/brown-pugs-cheat.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.changeset/brown-pugs-cheat.md b/.changeset/brown-pugs-cheat.md index 3898550f..d8d744be 100644 --- a/.changeset/brown-pugs-cheat.md +++ b/.changeset/brown-pugs-cheat.md @@ -1,7 +1,7 @@ --- -'rgbpp': major -'@rgbpp-sdk/btc': major -'@rgbpp-sdk/ckb': major +'rgbpp': minor +'@rgbpp-sdk/btc': minor +'@rgbpp-sdk/ckb': minor '@rgbpp-sdk/service': minor ---