@cere/sdk-js
TypeScript icon, indicating that this package has built-in type declarations

5.11.1 • Public • Published

SDK-JS

Release notes

vNext

v5.11.1

  • Fix socket io URL for prod environment

v5.11.0

  • Updated URL-s

v5.9.0

  • Updated URL-s

v5.8.0

  • Added isBroadcastEvent option

v5.7.4

  • Deploy DEV

v5.7.3

  • Apply proxy service change.

v5.7.2

  • Updated configs environment

v5.6.0

  • Updated configs for Treats

v5.5.0

  • hasNfts function will check non-custody wallets

v5.4.0

  • Single socket connection extension

v5.3.2

  • Pass token to the template

v5.3.1

  • Added hasNfts method

v5.2.1

  • Updated SDK config for LiveOne ID service

v5.2.0

  • Updated Live One config

v4.3.2

  • Updated permissions

v4.3.0

  • Added sign message func

v4.2.0

  • Added new auth method: TRUSTED_3RD_PARTY

v4.1.1

  • Added support of different ENV-s for NPM lib

v4.0.1

  • Payload type changed to any

v4.0.0

  • New Identity Service API

v3.1.1 (3.1.1-dev and 3.1.1-stage)

  • Updated API endpoints
  • Added auth methods: email, oauth, firebase.

v3.1.0 (3.1.0-dev and 3.1.0-stage)

  • Add onGetUserKeypair API

v3.0.0 (3.0.0-dev and 3.0.0-stage)

  • Add react native platform
  • Change webpack config (see Installation section)
  • Swapped dependency for uuid to react-native-uuid

v2.2.4 (2.2.4-dev and 2.2.4-stage)

  • Add tests, setup coverage threshold, small fixes

v2.2.3 (2.2.3-dev and 2.2.3-stage)

  • Change webpack library name

v2.2.2 (2.2.2-dev and 2.2.2-stage)

  • Added logging to console for thrown Errors
  • Added payload format check

v2.2.1 (2.2.1-dev and 2.2.1-stage)

  • Removed client-sdk-js dependencies
  • Added template action hooks, (dismiss and reward-click)
  • Added unsubscribe functionality for custom events
  • Added data tracking for impression, dismiss and click events to be sent directly to events-service
  • Improved unit test coverage
  • Added github action workflow
  • Add support for substrate keyPair

v2.0.0

  • Update dependencies
  • Add multi-tenancy support (send app_id with event, move services URLs to config, add API to set identity service URL)

v1.0.0

  • First release

Installation

SDK can be installed either as a npm package or a bundle:

via npm

npm install --save @cere/sdk-js
...
import { cereReactNativeSDK } from "@cere/sdk-js/dist/reactNative";
import { cereWebSDK } from '@cere/sdk-js/dist/web';

via bundle

  <script src="https://sdk.dev.cere.io/v4.3.1/web.js"></script>
  <script src="https://sdk.dev.cere.io/v4.3.1/reactNative.js"></script>
...
<script>
    window.CereSDK.web.cereWebSDK(...) // SDK for web
    window.CereSDK.reactNative.cereReactNativeSDK(...) // SDK for React Native
</script>

GUIDE

Readme

Keywords

none

Package Sidebar

Install

npm i @cere/sdk-js

Weekly Downloads

118

Version

5.11.1

License

ISC

Unpacked Size

5.04 MB

Total Files

36

Last publish

Collaborators

  • cere-io