Tonomy-Foundation / Tonomy-ID-SDK

This Software Development Kit is used in Tonomy ID to interact and call with the Antelope blockchain and services. It is also used as the public API for integration by applications to do single sign-on, share credentials and sign transactions.
https://tonomy-id-sdk-tonomy-foundation.vercel.app
Apache License 2.0
5 stars 1 forks source link

Feature/336 upgrade to veramo 2 #396

Open theblockstalk opened 1 month ago

theblockstalk commented 1 month ago
  1. upgraded ALL packages to latest
  2. Jest runs all tests using ESM under
    • typeorm, uuid and ws packages could not be bundled fully with ESM so exceptions were made in jest.config.ts
  3. removed jsdom and jsdom-url package as not needed in latest jest. Added jsdom dependencies in ./test/test.setup.ts and removed jest custom environment
  4. yarn run cli also using ESM bundles
  5. Added new veramo.ts and unit tests. to ensure we are ready for next tasks that depended on this upgrade https://github.com/Tonomy-Foundation/Tonomy-ID-SDK/issues/337 to be ready for https://github.com/Tonomy-Foundation/Tonomy-ID/issues/758
  6. removed did-jwk.ts and upgraded to use did-key.ts instead. this solves https://github.com/Tonomy-Foundation/Tonomy-ID-SDK/issues/316
  7. removed the API and utils builds and conditional exports
  8. removed unused base64.ts helper functions and unit tests
  9. added new CI pipeline to check for latest packages - but it does not block PR merges, just there as a warning to remind developers
  10. upgraded eslint to use the new configuration file and conventions. Also removing and updating config dependency packages
  11. fixed issue with ExternalUser.getIssuer() using the wrong keyManager
  12. fixed all tests to work again
theblockstalk commented 1 month ago

Updated the resolver to use latest libraries and noble curves: https://github.com/Tonomy-Foundation/antelope-did-resolver/pull/15

theblockstalk commented 2 weeks ago

TODO: