Skip to content

Releases: radio4000/sdk

0.1.3

24 Mar 12:39
2c4bdd6
Compare
Choose a tag to compare

New tests

Added tests for authentication and most CRUD for channels + tracks using the SDK methods.

Possibly the sql test doesn't belong in this repo. Could move this part to supabase repo.

Env vars

Also switched the supabase-client.js to read the config from env variables, but it's commented out for now, because I'm not sure how this integrates with the CI. It worked for build.

That being said, once we cp .env.example .env and uncomment the code it works.

createChannel() now takes an optional userId

... for the channel to be created. If not supplied, we fall back to the session user. If no session user, we throw an error.

0.1.2

01 Nov 18:56
Compare
Choose a tag to compare
0.1.2

0.1.1

31 Oct 21:23
Compare
Choose a tag to compare
0.1.1

0.1.0

31 Oct 20:09
Compare
Choose a tag to compare

This release changes the exports from this module.

See https://radio4000.github.io/sdk/docs/

Full diff 0.0.21...0.1.0

0.0.21

22 Oct 19:00
Compare
Choose a tag to compare

Change argument from id to canEditChannel(slug)

0.0.20

22 Oct 17:45
Compare
Choose a tag to compare

Adds two new methods

canEditChannel(id)
canEditTrack(id)

Both return a promise that resolves as a boolean.

0.0.19

22 Oct 16:30
Compare
Choose a tag to compare
  • fix sdk res to { data: null, error: {code, message}} in case of error

0.0.18

22 Oct 15:39
Compare
Choose a tag to compare

Fix bug with createChannel error handling

0.0.17

22 Oct 15:20
Compare
Choose a tag to compare

Fix bug with firebase slug taken

0.0.16

22 Oct 12:41
Compare
Choose a tag to compare

findChannelTracks(slug) now uses slug instead of id