Bumped the @tbd54566975/dwn-sdk-js package to the latest 0.2.3 version. This allows us to remove the local patch, because the dwn-sdk-js now no longer exports the various level stores behind a named export.
This necessitated the update of the @web5 packages as well, as the changes to the dwn-sdk necessitated changes. They're now all pointing to alpha packages, which has the necessary changes in them. I'll make another task in the backlog to update those once published.
There were two changes that I made to the code:
DWN creation now resolves to a Level interface, instead of a wrapper. Our ExpoLevel implementation already supports this, it just needed to be typed appropriately.
This caused the DWN code to grow a little bit. I pulled it out into it's own dwn feature, so it wouldn't get lost within the identity code. Happy to change this back if we think it's unnecessary.
RecordsRead callsite had to update to now take a filter which contains a recordId, instead of the old way of providing just a recordId
Resolves https://github.com/TBD54566975/web5-wallet/issues/106
Bumped the
@tbd54566975/dwn-sdk-js
package to the latest 0.2.3 version. This allows us to remove the local patch, because the dwn-sdk-js now no longer exports the various level stores behind a named export.This necessitated the update of the
@web5
packages as well, as the changes to the dwn-sdk necessitated changes. They're now all pointing to alpha packages, which has the necessary changes in them. I'll make another task in the backlog to update those once published.There were two changes that I made to the code:
Level
interface, instead of a wrapper. OurExpoLevel
implementation already supports this, it just needed to be typed appropriately.dwn
feature, so it wouldn't get lost within the identity code. Happy to change this back if we think it's unnecessary.filter
which contains arecordId
, instead of the old way of providing just arecordId