Skip to content

Get rid of un-used dependencies #219

@CMCDragonkai

Description

@CMCDragonkai

A few dependencies we should be cleaning prior to merge:

  • conf
  • configstore

These ones are all about configuration? I'm pretty sure we are now using DB for most things, and just plain old JSON for others.

  • crypto-random-string

I'm pretty sure we replaced that with node-forge? And even then that might be replaced with native node in the future. Since mobile version of polykey will require a significant porting plan anyway for the native code.

  • express
  • express-openapi-validator
  • express-session
  • oauth2orize
  • passport
  • passport-http
  • passport-http-bearer
  • passport-oauth2-client-password

HTTP API doesn't yet exist, and we don't want to use express for an HTTP/OAuth API anyway. We would likely build that custom or use fastly.

  • js-yaml

What we are using YAML for??

  • jsonwebtoken

Isn't this replaced by jose?

  • pako

What are we using this for?

  • zxcvbn

We would want this later for password suggestion, but we haven't even built out our schema system... only then can we even use this.

And of course all the associated types for those libraries above.

Thoughts? @DrFacepalm @scottmmorris @joshuakarp

Tasks

  1. - Review above dependencies
  2. - Remove them
  3. - Update the repo

Metadata

Metadata

Labels

procedureAction that must be executed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions