@livepeer/react@0.2.0
github-actions
released this
16 Aug 15:57
·
493 commits
to main
since this release
Minor Changes
-
#1
6a8c1f5
Thanks @0xcadams! - The@livepeer/react
package is now comprised of three main groups:- client: the React-specific LPMS provider wrapped with
react-query
for query caching/persistence to storage - context: React Context for providing the client to React hooks
- hooks: functions to write/read from Livepeer Media Server (LPMS) providers and the Livepeer protocol smart contracts
Client
+ import { createReactClient } from '@livepeer/react'; + import type { CreateReactClientConfig } from '@livepeer/react';
Context
+ import { Context, LivepeerConfig, useClient } from '@livepeer/react'; + import type { LivepeerConfigProps } from '@livepeer/react';
Hooks
+ import { + useAsset, + useBondingManager, + useController, + useCreateAsset, + useCreateStream, + useL1Migrator, + useL2Migrator, + useLivepeerToken, + useLivepeerTokenFaucet, + useLPMSProvider, + useMerkleSnapshot, + useMinter, + usePollCreator, + useRoundsManager, + useServiceRegistry, + useStream, + useStreamSession, + useStreamSessions, + useTicketBroker, + useUpdateAsset, + useUpdateStream, + } from '@livepeer/react';
- client: the React-specific LPMS provider wrapped with
Patch Changes
- Updated dependencies [
ebd1587
]:- livepeer@0.2.0