DEV Community

Cover image for New Release of ReductStore JavaScript SDK v1.3.0
Alexey Timin for ReductStore

Posted on • Originally published at reduct.store

New Release of ReductStore JavaScript SDK v1.3.0

Hey everyone,

we are pleased to announce the release of version 1.3.0 of the ReductStore SDK for JavaScript. This version supports the new features of ReductStore v1.3, including labels and content type.

Now you can write a record with MIME type and labels to ReductStore:

const client = new Client("https://play.reduct.store");

const bucket = await client.getOrCreateBucket("bucket");

const record = await bucket.beginWrite("entry-1", {
    contentType:"text/plain", 
    labels: {type:"example"}
})

await record.write("Some text");
Enter fullscreen mode Exit fullscreen mode

You can use labels to store meta information about records. For example, if it's an image with detected objects, you can store bounding boxes and confidence levels for each object. You can also use labels to filter data in queries:

for await (const record of bucket.query("entry-name", startTimestamp, stopTimestamp, 
    {include: {label1: "value1", label2: "value2"}})) {
  console.log(record.labels)
}
Enter fullscreen mode Exit fullscreen mode

With these new features, you can more easily organize and filter your data, making it easier to find the information you
need. We encourage you to upgrade to this latest version of the SDK and start taking advantage of these new
capabilities:

npm i reduct-js
Enter fullscreen mode Exit fullscreen mode

We hope you enjoy the new features and improvements in this release, and as always, we welcome your feedback and
suggestions for future updates. Don't hesitate to reach out in Discord
or by opening a discussion on GitHub.

Thanks for using ReductStore!

Top comments (0)