webauthn-open-source / fido2-lib

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
https://webauthn.io
MIT License
407 stars 120 forks source link

Chore: Move to ESM + Drop Node specific code + Add Deno support #80

Closed Hexagon closed 2 years ago

Hexagon commented 2 years ago

Overview

This is a proposed fix to issue #79, with all the necessary changes made. Based on https://github.com/Hexagon/webauthn but ported back to fido2-lib directory structure and code conventions.

Provided on a take-it-or-leave-it basis, if you include it, I'll continue to support fido2-lib, else i will continue the work on hexagon/webauthn as my main interest is Deno support.

Changes

New manual steps before release

New procedure for managing dependencies

Note: Dependencies that can be used by both Node and Deno with the same code base can be bundled, to avoid duplicate code. Such dependencies is placed in /lib/common/tools

Production dependencies

Testing dependencies

If adding or upgrading an external dependency, please make sure to include it in both Node and Deno toolbox.

Comments

Added npm scripts

Dependency changes

Removed npm deps

Updated npm deps

Added npm deps

Bundled dependencies

Hexagon commented 2 years ago

Closing this as a cleaner and way more complete solution is in it's way.