decentralized-identity / decentralized-identity/web5-js

Remove remaining package.json named exports causing compat issues

Open
#822 0 comments 0 reactions 1 assignee Claimed by @shamilovtim View on GitHub
Dominant language
TypeScript
Stars
142
Forks
56
PR merge metrics
No merged PRs in 30d

Description

The named package.json exports have caused issues with sinon, react native, bundlers, etc. They are easily replaced by simple object exports that namespace grouped functions. Afterwards, consider adding an eslint rule so the project is free of these in the future.

e.g.:

```ts
export const CryptoUtils = {
randomPin,
randomUuid,
randomBytes,
isWebCryptoSupported,
getJoseSignatureAlgorithmFromPublicKey,
checkValidProperty,
checkRequiredProperty
};
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.