3.0.1 • Published 3 days ago

ronin v3.0.1

Weekly downloads
308
License
Apache-2.0
Repository
github
Last release
3 days ago

RONIN Client

Tests Install Size

This package allows for querying data from RONIN with ease.

Setup

First, install the package with a package manager of your choice:

# Bun
bun add ronin

# npm
npm install ronin

Next, create a new app token on the RONIN dashboard (under "Apps" in the sidebar), and add it as a environment variable named RONIN_TOKEN to your project.

Afterward, you can start invoking RONIN from anywhere in your code:

import { get } from 'ronin';

const posts = await get.posts();

That's it! 🎉

You can now start inserting records with the RONIN query syntax, or add them on the RONIN dashboard. Everything you can do with the RONIN client, you can also do on the dashboard (creating records, retrieving them, filtering them, updating them, etc).

Contributing

We would be excited to welcome your suggestions for the RONIN client!

To start contributing code, first make sure you have Bun installed, which is a JavaScript runtime.

Next, clone the repo and install its dependencies:

bun install

Once that's done, link the package to make it available to all of your local projects:

bun link

Inside your project, you can then run the following command, which is like bun add ronin or npm install ronin, except that it doesn't install ronin from npm, but instead uses your local clone of the package:

bun link ronin

If your project is not yet compatible with Bun, feel free to replace all of the occurances of the word bun in the commands above with npm instead.

You will just need to make sure that, once you create a pull request on the current repo, it will not contain a package-lock.json file, which is usually generated by npm. Instead, we're using the bun.lockb file for this purpose (locking sub dependencies to a certain version).

Developing

In order to be compatible with a wide range of projects, the source code of the client repo needs to be compiled (transpiled) whenever you make changes to it. To automate this, you can keep this command running in your terminal:

bun run dev

Whenever you make a change to the source code, it will then automatically be transpiled again.

Running Tests

The RONIN client has 100% test coverage, which means that every single line of code is tested automatically, to ensure that any change to the source code doesn't cause a regression.

Before you create a pull request on the client repo, it is therefore advised to run those tests in order to ensure everything works as expected:

# Run all tests
bun test

# Alternatively, run a single test
bun test -t 'your test name'
2.1.3

4 days ago

3.0.1

4 days ago

3.0.0

4 days ago

2.1.1

8 days ago

2.1.0

14 days ago

2.0.29-beta.8

14 days ago

2.0.29-beta.7

14 days ago

2.0.32

14 days ago

2.0.29-beta.6

15 days ago

2.0.29-beta.5

15 days ago

2.0.29-beta.4

15 days ago

2.0.31

15 days ago

2.0.29-beta.3

16 days ago

2.0.29-beta.2

16 days ago

2.0.30

16 days ago

2.0.29

17 days ago

2.0.29-beta.1

18 days ago

2.0.29-beta.0

21 days ago

2.0.26

22 days ago

2.0.27

22 days ago

2.0.24

22 days ago

2.0.25

22 days ago

2.0.23

23 days ago

2.0.28

22 days ago

2.0.22

24 days ago

2.0.21

24 days ago

2.0.19

2 months ago

2.0.20

2 months ago

2.0.18

3 months ago

2.0.16

4 months ago

2.0.17

4 months ago

2.0.15

4 months ago

2.0.14

4 months ago

2.0.13

4 months ago

2.0.12

5 months ago

2.0.11

5 months ago

2.0.10

5 months ago

2.0.9

5 months ago

2.0.5

6 months ago

2.0.7

5 months ago

2.0.6

6 months ago

2.0.8

5 months ago

1.0.62

7 months ago

1.0.61

7 months ago

1.0.60

7 months ago

1.0.64

7 months ago

1.0.63

7 months ago

1.0.59

7 months ago

1.0.58

7 months ago

2.0.3

7 months ago

2.0.2

7 months ago

2.0.4

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.0.38

11 months ago

1.0.40

11 months ago

1.0.44

9 months ago

1.0.43

9 months ago

1.0.42

9 months ago

1.0.41

10 months ago

1.0.48

9 months ago

1.0.47

9 months ago

1.0.46

9 months ago

1.0.45

9 months ago

1.0.49

8 months ago

1.0.51

8 months ago

1.0.50

8 months ago

1.0.55

8 months ago

1.0.54

8 months ago

1.0.53

8 months ago

1.0.52

8 months ago

1.0.57

8 months ago

1.0.56

8 months ago

1.0.37

12 months ago

1.0.36

12 months ago

1.0.19

1 year ago

1.0.2

1 year ago

1.0.18

1 year ago

1.0.1

1 year ago

1.0.17

1 year ago

1.0.0

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.26

12 months ago

1.0.25

12 months ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.29

12 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.33

12 months ago

1.0.32

12 months ago

1.0.31

12 months ago

1.0.30

12 months ago

1.0.35

12 months ago

1.0.34

12 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

0.3.11

9 years ago

0.3.10

9 years ago

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago

0.0.0

10 years ago