# dApp SDKの版ごとの変化

> dApp SDKの0.18.0から1.8.0までのリリースが、walletの探し方と呼び出しとメッセージの署名に何を足し、何を直し、InjectedAdapterのエクスポートを外したかを追います。

- URL: https://cardene.dev/diagrams/canton-dapp-sdk-releases
- 公開日: 2026-11-24
- 更新日: 2026-11-24
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Wallet GatewayとdApp SDK](https://cardene.dev/diagrams/canton-wallet-gateway-dapp-versions.md): Wallet GatewayとdApp SDKのリリースが、署名と認証とwalletの探し方に何を足し、何を直し、どのメソッドとエクスポートを外したかを、章の中の3つの図解で追います。

dApp SDKは、dAppがwalletとつなぐためのSDKで、利用者が選んだwalletとCIP-0103のプロバイダーのプロトコルで話します。
今の使い方は、章「dApp SDK」の頁が見ています。

https://cardene.dev/diagrams/canton-ext-dapp-sdk

この頁は、dApp SDKの0.18.0から1.8.0までのリリースノートを追います。
リリースノートは、`@canton-network/dapp-sdk`の版ごとの記録で、版ごとの頁への一覧を持ちます。
0.17.2以前の版は、この頁の範囲に入れません。
一覧は、今は1.8.0より後の1.9.0と1.10.0も載せますが、この頁は1.8.0までを追います。

## 0.18.0から0.21.1は呼び出しの戻り値と結果を返すメソッドを足した

0.18.0から0.21.1は、2026年1月8日から2月3日に出ました。
`prepareExecute`は、Damlのコマンドを準備し、利用者のwalletで承認と署名を求め、トランザクションを台帳へ送るメソッドです。
`prepareExecuteAndWait`は、同じ引数をとる別のメソッドで、`PrepareExecuteAndWaitResult`を返します。

| 版 | 日付 | 足した物 | 直した物 |
|---|---|---|---|
| 0.18.0 | 1月8日 | なし | 検証済みのゲートウェイの扱いをより信頼できる形に直し、著作権のヘッダーを2026に更新した |
| 0.19.0 | 1月15日 | `prepareExecute`がnullを返すようにし、同期のエラーの時に無効にしたwalletを保存するようにした | なし |
| 0.20.0 | 1月22日 | なし | dAppのプロバイダーに`prepareExecuteAndWait`を足した |
| 0.21.1 | 2月3日 | なし | `wallet-gateway-remote`でdAppのUIをポップアップのウィンドウに出すよう直した |

0.18.0と0.19.0と0.20.0は、依存の更新も並べています。
0.21.1は、依存を上げていません。

## 0.22.0から0.26.0はdiscoveryと複数のプロバイダーを足した

0.22.0から0.26.0は、2026年3月2日から4月16日に出ました。
`additionalProperties`は、OpenRPCの仕様に含まれるオブジェクトのJSON Schemaで、決めていない欄を許すかを決める欄です。

:::details JSON
JSONは、データを文字で表すための形式で、Webのプログラムどうしのデータのやり取りに広く使われています。
:::

| 版 | 日付 | 足した物 | 直した物 |
|---|---|---|---|
| 0.22.0 | 3月2日 | 新しいdiscoveryを入れ、プロバイダーのインターフェースを良くし、dAppのメソッドの名前をCIP-0103に沿って改めた | dapp、dapp-remote、user、signingのOpenRPCの仕様で`additionalProperties`を無効にした |
| 0.23.0 | 3月10日 | discoveryのUIを良くした | なし |
| 0.23.1 | 3月11日 | なし | `core-splice-provider`と`core-provider-dapp`で複数のリスナーを許すよう直した |
| 0.24.0 | 3月14日 | 同期の中でwalletを割り当て直す機能を足した | `prepareExecuteAndWait`の既定のタイムアウトを延ばした |
| 0.25.0 | 4月2日 | グローバルなポップアップ、接続したプロバイダーを取得できる機能、複数のプロバイダーへの対応を足し、dAppのLedger APIのスキーマを更新した | SDKのコントローラーの欠けたメソッドを足した |
| 0.26.0 | 4月16日 | `core-wallet-ui-components`のwalletを選ぶ画面をより頑丈にし、CIP-0103の`connected`と`isConnected`を足した | なし |

0.22.0は、依存に`core-wallet-discovery`の0.2.0と`core-provider-dapp`の0.2.0を新しく載せました。
0.25.0は、依存に`core-rpc-transport`の0.11.0を新しく載せました。

## 1.1.0から1.3.0はWalletConnectとメッセージの署名を足した

1.1.0から1.3.0は、2026年4月24日から6月29日に出ました。
WalletConnectは、モバイルや機器をまたぐwalletを、dAppにつなぎます。

| 版 | 日付 | 足した物か外した物 | 直した物 |
|---|---|---|---|
| 1.1.0 | 4月24日 | SDKのdiscoveryを良くし、WalletConnectとの統合を足した | アダプターの一覧が空になる問題を直した |
| 1.2.0 | 5月27日 | プロバイダーのネームスペースを走査して探す対応を外し、`signMessage`を最初から最後まで通して使えるようにし、WalletConnectの上でSign-In-With-Cantonを足した | `JsCommands`を`Commands`に改名し、新しいリポジトリに合わせて`package.json`を直した |
| 1.3.0 | 6月29日 | 勧めるwalletの拡張機能の一覧を表示するようにした | 公開する全てのパッケージにnpmのメタデータのhomepageとbugsを足した |

1.1.0は、`core-wallet-dapp-remote-rpc-client`などの8つの依存を、全て1.1.0に揃えました。
1.3.0のリリースノートに載る変更へのリンクは、`canton-network/wallet`のリポジトリを指します。

## 1.4.0から1.8.0は依存を上げ、版だけを揃え、エラーの扱いを足した

1.4.0から1.8.0は、2026年7月8日から10月12日に出ました。
1.6.0と1.7.1は、他のプロジェクトと版を揃えるために`@canton-network/dapp-sdk`の版だけを上げた物で、コードの変更はありません。

| 版 | 日付 | 変えた物 |
|---|---|---|
| 1.4.0 | 7月8日 | 依存の更新だけで、`core-wallet-ui-components`を1.10.0に上げた |
| 1.5.0 | 8月10日 | 依存の更新だけで、`core-wallet-ui-components`を1.12.0に上げた |
| 1.5.1 | 8月13日 | `core-wallet-ui-components`を1.12.1に上げただけ |
| 1.6.0 | 9月4日 | 版を揃えるために版だけを上げた。コードの変更はない |
| 1.7.0 | 9月9日 | 依存の更新だけで、`core-wallet-ui-components`を1.14.0に上げた |
| 1.7.1 | 9月10日 | 版を揃えるために版だけを上げた。コードの変更はない |
| 1.8.0 | 10月12日 | `wallet-gateway-remote`で入力のパラメータのスキーマを検証し、remoteのwalletのエラーをdApp SDKが`JsonRpcError`として投げるようにし、dApp SDKの版を取得できるようにした。`core-types`にCIP-0103のエラーコードを足し、依存の版をpnpmのカタログで管理するようにした。`core-wallet-ui-components`を1.16.0に上げた |

pnpmのカタログは、依存の版を1か所で決める仕組みです。

## 各版が上げた依存はプロバイダーとwalletの部品の版から追える

各版のリリースノートは、更新した`core-*`の依存の版を全て並べます。
次の表は、プロバイダーの部品の`core-splice-provider`と`core-provider-dapp`と、walletを見つける部品の`core-wallet-discovery`と、画面の部品の`core-wallet-ui-components`の更新先です。
表に無い`core-*`の依存は、版ごとのリリースノートが並べます。

| 版 | `core-wallet-ui-components` | `core-wallet-discovery` | `core-splice-provider` | `core-provider-dapp` |
|---|---|---|---|---|
| 0.18.0 | 0.18.1 | なし | 0.18.1 | なし |
| 0.19.0 | 0.20.0 | なし | 0.20.0 | なし |
| 0.20.0 | 0.21.0 | なし | 0.21.0 | なし |
| 0.22.0 | 0.25.0 | 0.2.0 | 0.26.0 | 0.2.0 |
| 0.23.0 | 0.26.0 | 0.3.0 | 0.27.0 | 0.3.0 |
| 0.23.1 | なし | 0.3.1 | 0.27.1 | 0.3.1 |
| 0.24.0 | 0.27.0 | 0.4.0 | 0.28.0 | 0.4.0 |
| 0.25.0 | 0.31.0 | 0.8.0 | 0.32.0 | 0.8.0 |
| 0.26.0 | 0.33.0 | 0.10.0 | 0.34.0 | 0.10.0 |
| 1.1.0 | 1.1.0 | 1.1.0 | 1.1.0 | 1.1.0 |
| 1.2.0 | 1.4.0 | 1.3.2 | 1.3.2 | 1.3.2 |
| 1.3.0 | 1.9.0 | 1.7.0 | 1.7.0 | 1.7.0 |
| 1.4.0 | 1.10.0 | 1.8.0 | 1.8.0 | 1.8.0 |
| 1.5.0 | 1.12.0 | 1.10.0 | 1.10.0 | 1.10.0 |
| 1.5.1 | 1.12.1 | なし | なし | なし |
| 1.7.0 | 1.14.0 | 1.12.0 | 1.12.0 | 1.12.0 |
| 1.8.0 | 1.16.0 | 1.14.0 | 1.14.0 | 1.14.0 |

0.18.0と0.19.0と0.20.0は、`core-wallet-dapp-remote-rpc-client`と`core-wallet-dapp-rpc-client`と`core-types`も上げました。
1.8.0は、`core-rpc-errors`を1.13.0に上げました。

## 外れたInjectedAdapterのエクスポートは1.1.0まで使えた

`InjectedAdapter`は、dApp SDKのクラスです。
TypeScript参照の履歴では、追加された版が1.1.0で、エクスポートが1.2.0で外れました。
最後に使えた版は1.1.0で、クラスの記述は履歴の参照のために残ります。
1.2.0は、プロバイダーのネームスペースを走査して探す対応も外した版です。

## 図Aはwalletを探す仕組みと呼び出しとメッセージの署名の追加を分ける

図Aは、0.19.0から1.8.0までに足した物を、walletを探す仕組みと、トランザクションの呼び出しと、メッセージの署名とエラーの3つの枝に分けます。
段ごとに、枝を1つ足すか、葉を1つか2つ足します。
葉の名前の初めに、足した版を書きます。

```dragon
mind dApp SDKが足した物
step 足した物の3つの枝
  say dApp SDKが足した物を、walletを探す仕組みと、トランザクションの呼び出しと、メッセージの署名とエラーに分けます。
  idea root as "dApp SDKの追加" [color: slate]
  source CantonのdApp SDKのリリースノート [url: https://docs.canton.network/integrations/release-notes/dapp-sdk]

step walletを探す仕組みの枝
  say walletを探す仕組みでは、0.22.0が新しいdiscoveryを入れました。
  idea find as "walletを探す仕組み" of root [color: blue]
  idea discovery as "0.22.0の新しいdiscovery" of find [color: blue]
  source CantonのdApp SDK 0.22.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-22-0]

step discoveryのUIとWalletConnect
  say 0.23.0がdiscoveryのUIを良くし、1.1.0がWalletConnectとの統合を足しました。
  idea ui as "0.23.0のdiscoveryのUI" of find [color: blue]
  idea wc as "1.1.0のWalletConnectとの統合" of find [color: blue]
  source CantonのdApp SDK 0.23.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-23-0]
  source CantonのdApp SDK 1.1.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-1-0]

step トランザクションの呼び出しの枝
  say トランザクションの呼び出しでは、0.19.0が戻り値をnullにしました。
  idea call as "呼び出し" of root [color: blue]
  idea nullreturn as "0.19.0の戻り値がnull" of call [color: blue]
  source CantonのdApp SDK 0.19.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-19-0]

step 結果を返す呼び出しとタイムアウト
  say 0.20.0が結果を返す呼び出しを足し、0.24.0がその呼び出しの既定のタイムアウトを延ばしました。
  idea wait as "0.20.0の結果を返す呼び出し" of call [color: blue]
  idea timeout as "0.24.0の既定のタイムアウトの延長" of call [color: blue]
  source CantonのdApp SDK 0.20.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-20-0]
  source CantonのdApp SDK 0.24.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-24-0]

step メッセージの署名とエラーの枝
  say メッセージの署名とエラーでは、1.2.0が署名を最初から最後まで通して使えるようにしました。
  idea sign as "署名とエラー" of root [color: blue]
  idea message as "1.2.0の署名を通す" of sign [color: blue]
  source CantonのdApp SDK 1.2.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-2-0]

step walletのエラーとエラーコード
  say 1.8.0が、remoteのwalletのエラーをSDKがJSON-RPCエラーとして投げるようにし、CIP-0103のエラーコードを足しました。
  idea thrown as "1.8.0のwalletのエラーをJSON-RPCエラーで投げる" of sign [color: blue]
  idea codes as "1.8.0のCIP-0103のエラーコード" of sign [color: blue]
  source CantonのdApp SDK 1.8.0 [url: https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-8-0]
```

## 図BはInjectedAdapterのエクスポートが外れるまでを追う

図Bは、`InjectedAdapter`のエクスポートが、あった状態から、なくなった状態になるまでを追います。
段は2つで、1.1.0のエクスポートと、1.2.0の取り外しです。
クラスの記述は、取り外し後も履歴の参照のために残ります。

```dragon
state InjectedAdapterのエクスポートの状態
box usable as エクスポートあり [note: 1.1.0, color: blue, icon: check]
box removed as エクスポートなし [note: 1.2.0から。記述は参照に残る, color: slate, icon: card]

step 1.1.0で追加される
  say まず、InjectedAdapterは、TypeScript参照の履歴で追加された版が1.1.0で、エクスポートされていました。
  start -> usable: 追加 [tag: 1.1.0]
  source CantonのdApp SDKのTypeScript参照 [url: https://docs.canton.network/reference/typescript/dapp-sdk]

step 1.2.0で外れる
  say 次に、版1.2.0でエクスポートが外れ、最後に使えた版は1.1.0です。クラスの記述は、履歴の参照のために参照の頁に残ります。
  usable -> removed: 取り外し [tag: 1.2.0]
  source CantonのdApp SDKのTypeScript参照 [url: https://docs.canton.network/reference/typescript/dapp-sdk]
```

## 出典

https://docs.canton.network/integrations/release-notes/dapp-sdk

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-18-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-19-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-20-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-21-1

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-22-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-23-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-23-1

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-24-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-25-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/0-26-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-1-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-2-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-3-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-4-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-5-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-5-1

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-6-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-7-0

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-7-1

https://docs.canton.network/integrations/release-notes/dapp-sdk-releases/1-8-0

https://docs.canton.network/reference/typescript/dapp-sdk
