Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup crypto utils #830

Merged
merged 7 commits into from
Aug 13, 2024

Conversation

shamilovtim
Copy link
Contributor

web5 crypto had a package.json named export which causes pain for different bundlers, mocha, etc. removed it and replaced with a regular esm export.

merge after #713

Copy link

changeset-bot bot commented Aug 9, 2024

🦋 Changeset detected

Latest commit: c8fcc31

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@web5/crypto-aws-kms Patch
@web5/identity-agent Patch
@web5/credentials Patch
@web5/proxy-agent Patch
@web5/user-agent Patch
@web5/crypto Patch
@web5/agent Patch
@web5/dids Patch
@web5/api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@thehenrytsai thehenrytsai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to revert:

fail_on_warnings: true
fail_on_error: true

@shamilovtim shamilovtim merged commit fc234c3 into tshamilov/connect-v2 Aug 13, 2024
@shamilovtim shamilovtim deleted the tshamilov/cleanup-crypto-utils branch August 13, 2024 17:05
shamilovtim added a commit that referenced this pull request Aug 13, 2024
shamilovtim added a commit that referenced this pull request Aug 13, 2024
* add back examples

* add back authServer.js

* add back json-rpc changes

* add back rpcserver

* add back utils

* add back agent exports

* add back ws-rpc-server

* add back auth-api

* add back level.js

* add back crypto randompin

* add back test for randomPin

* simplify request-uri

* make testharness setup a little more readable

* add pollWithTTL

* add abort to pollWithTTL

* add jsdoc to pollWithTTL

* WIP

* fix a couple of docs

* param style nit

* fix signing and migrate kms code to newer agent code

* use the word "claims" rather than payload

* format authServer and update code

* push up latest WIP

* remove dead code

* bump types/node

* cleanup

* fix eslint

* format test file

* format with eslint

* cleanup

* format eslint config

* Update authServer.js

* Update tsconfig.json

* check in wip

* add correct wallet uri

* comment

* updates

* cleanup

* cleanup

* add nearly finished latest wip

* cleanup. add walletUri.

* feedback

* feedback

* feedback

* refactor out nonce

* feedback

* feedback: add better docs for walletUri

* remove unnecessary clientUri

* feedback

* resolve merge conflict

* feedback: client_id should contain the did

* improve comment about walletconnectoptions

* feedback: unabstract nonce creation

* remove unused imports

* feedback: slim down queryparams

* merged lockfile

* clarify comment about the grants

* feedback: fail fast and let users catch errors

* feedback

* push up finalizations

* bump crypto

* examples

* bump sinon

* fix dependabot mess

* try to fix builds

* try to fix builds

* use v9 lockfile

* Revert "try to fix builds"

This reverts commit d63c468.

* Revert "try to fix builds"

This reverts commit 3a58665.

* Create flat-students-compare.md

* fix ci

* fix lockfile

* Revert "fix lockfile"

This reverts commit 775d15a.

* fix lockfile

* cleanup

* fix ci

* Delete authServer.js

* test ci

* fix build order

* fix cve

* fix eslint

* bump lockfile

* feedback

* use dwn server default port

* Update flat-students-compare.md

* Update docs-ci.yml

* Update flat-students-compare.md

* stub globalthis fetch

* Update tests-ci.yml

* fix regex

* cleanup

* cleanup

* add some patch tests

* cleanup some changes

* satisfy codecov patch

* fix codecov bot

* Update tests-ci.yml

* latest

* prettier fmt

* Update wallet-connect.html

* Update codecov.yml

* add wallet connect example. change to portableDid data structure and delegateDid naming.

* add connectedDid

* cleanup example

* cleanup

* Update wallet-connect.html

* add word wrap and viewport sizing

* remove conditional returns in buildOidcUrl

* timeout

* feedback

* Update oidc.ts

* Update connect.ts

* Update connect.ts

* only one did for selection

* feedback

* Update packages/crypto/tests/utils.spec.ts

Co-authored-by: Liran Cohen <[email protected]>

* Update packages/crypto/tests/utils.spec.ts

Co-authored-by: Liran Cohen <[email protected]>

* fix flakes

* Update connect.ts

* Update connect.ts

* run prettier and eslint

* remove corepack

* delegate did should use a did jwk

* client should use a did jwk

* better comments

* Update oidc.ts

* add comments

* Update oidc.ts

* cleanup comments

* add some coverage

* reorganize

* Update web5.spec.ts

* feedback: dont encrypt with the code challenge

* feedback disable code challenge

* clean out todo

* Update connect.spec.ts

* feedback didjwk

* cleanup crypto utils (#830)

* cleanup crypto utils

* changeset

* Update index.ts

* finish: delete package.json utils export

* add docs errors back

* disable rule until typedoc is bumped

* Revert "cleanup crypto utils (#830)"

This reverts commit fc234c3.

* renable typedoc

* Update docs-ci.yml

* update codeowners

* Update CODEOWNERS

---------

Co-authored-by: Liran Cohen <[email protected]>
shamilovtim added a commit that referenced this pull request Aug 13, 2024
* cleanup crypto utils

* changeset

* Update index.ts

* finish: delete package.json utils export
shamilovtim added a commit that referenced this pull request Aug 20, 2024
* cleanup crypto utils (#830)

* cleanup crypto utils

* changeset

* Update index.ts

* finish: delete package.json utils export

* bump dwn server

* fix api bump

* Update utils.ts

* bump dwn server

* maybe fix codecov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants