Skip to content

Conversation

@jharrilim
Copy link

@jharrilim jharrilim commented May 27, 2019

Hi, I am currently in the progress of rewriting this and node-jws in Typescript. I noticed a few lingering issues in node-jws so I figured I'd give it a rewrite. It relies on node-jwa which does not have types included. The aim of this rewrite is to hopefully increase the maintainability and hardiness.

For now the code is nearly one-to-one with the original with a few new runtime assertions. The tests are currently being rewritten to take advantage of jest. The RFC 7515 - Appendix A examples have been rewritten so far and currently pass. The other examples will be converted soon.

Edit: I have removed support for Node versions that are no longer supported in travis.yml as well as added the package-lock.json so that npm ci is usable.

The keys for testing are now permanently added as test fixtures.

Automated documentation can now be done using Typedoc. This should work in tandem with Travis Github Pages deployments.

@grzegorzjudas
Copy link

@jharrilim amazing work!

Do you still have something left to change/rewrite? I could help if so, because I'd also like to have the typings available. Cheers!

@jharrilim
Copy link
Author

Hi there! It has been a while since I touched this, but from what I remember the code should work exactly the same. After a quick glance right now though, I have noticed that a few things are missing from the package.json, which I think might be necessary:

{
  "publishConfig": {
    "access": "public"
  },
  "files": [
    "/lib"
  ]
}

@jharrilim jharrilim changed the title [WIP] Rewrite in Typescript Rewrite in Typescript Oct 20, 2021
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.

2 participants