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

1

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!

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more