featurehub-io / featurehub-javascript-sdk

Official FeatureHub Javascript, Typescript, React, SolidJS, Node SDKs
MIT License
6 stars 4 forks source link

feat(react-sdk): adds useFeatureHub hook and moves dependencies to peerDependencies #122

Closed thedanchez closed 1 year ago

thedanchez commented 1 year ago

Description

NOTE: This should not be merged until https://github.com/featurehub-io/featurehub-javascript-sdk/pull/121 goes in first!

  1. Adds new useFeatureHub hook and adds deprecation warnings to useFeatureHubClient.
  2. Moves dependencies to peerDependencies in package.json
  3. Adds userKey prop along with deprecation warnings for username prop.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Checklist: