Skip to content

Releases: spiceai/spice.js

v2.0

30 Apr 00:05
fed34f3
Compare
Choose a tag to compare

Announcing Spice.js v2.0! 🎉

The v2.0 release adds full support for Spice OSS and now connects to localhost by default instead of the Spice Cloud service.

Follow the Spice OSS quickstart to install and run the spice runtime locally, and query data using the Spice.js SDK:

import { SpiceClient } from '@spiceai/spice';

const main = async () => {
  const spiceClient = new SpiceClient();

  const table = await spiceClient.query(
    'SELECT trip_distance, total_amount FROM taxi_trips ORDER BY trip_distance DESC LIMIT 10;'
  );

  console.table(table.toArray());
};

main();

Read the docs to learn more.

Breaking Changes

  • Asset Prices is now deprecated and the Prices() method and types were removed. Asset prices data can continue to be fetched using HTTP clients directly from the Spice cloud service.
  • The SDK now connects to localhost by default (API Key is now optional).

What's Changed

Full Changelog: v1.0.2...v2.0.0

Release v1.0.2

22 Jan 22:13
c57c513
Compare
Choose a tag to compare

What's Changed

  • Don't retry if RESOURCE_EXHAUSTED or CANCELLED error received by @sgrebnov in #124

Full Changelog: v1.0.1...v1.0.2

Release v1.0.1

18 Jan 21:36
b6a74e1
Compare
Choose a tag to compare

Starting from v1.0.1 the SDK implements 3 retry attempts when using Apache Arrow Flight API. This could be configured or disabled using setMaxRetries:

const spiceClient = new SpiceClient('API_KEY');
spiceClient.setMaxRetries(5); // Setting to 0 will disable retries

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.0.1

v1.0.0

23 Oct 00:55
bd1f156
Compare
Choose a tag to compare

Announcing spice.js v1.0.0! 🎉

Spice.ai is now generally available! Read the announcement blog post to see how Spice helps developers to build high-performance, highly-available, data and AI-driven applications.

spice.js is the easiest way to query data in Javascript/Typescript from Spice.ai over a high-performance Apache Arrow connection.

Get started in 3 steps:

  1. Sign up for a free API key at Spice.ai
  2. Download spice.js with npm install @spiceai/spice
  3. Import spice.js, create a client and start querying Spice's built-in live-updating web3 data:
import { SpiceClient } from '@spiceai/spice';
const spiceClient = new SpiceClient('API_KEY');
const table = await spiceClient.query(
  'SELECT number, "timestamp", gas_used FROM eth.recent_blocks LIMIT 10'
);
console.table(table.toArray());

Explore over 100+ built-in, real-time web3 datasets available in Spice.ai!

Have questions or feedback? Contact us

What's Changed

New Contributors

Full Changelog: v0.5.1...v1.0.0

v0.5.1

02 Aug 01:47
7348c96
Compare
Choose a tag to compare

Spice.xyz Node.js SDK v0.5.1

What's Changed

  • fix: handle proto loading in next.js app router by @ewgenius in #86

    spice client was failing to load proto files, when used in next.js app router because of relative path in __dirname

  • Bump @grpc/grpc-js from 1.8.14 to 1.8.21 by @dependabot in #85

  • Bump protobufjs from 7.2.3 to 7.2.4 by @dependabot in #81

  • Bump typescript from 5.0.4 to 5.1.6 by @dependabot in #80

  • Bump semver from 5.7.1 to 5.7.2 by @dependabot in #82

Full Changelog: v0.5.0...v0.5.1

v0.5.0

24 Jun 21:57
6d14f5a
Compare
Choose a tag to compare

For full documentation see docs.spice.xyz.

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

24 Jun 05:12
78eabf4
Compare
Choose a tag to compare

What's Changed

  • Bump @grpc/proto-loader from 0.7.6 to 0.7.7 by @dependabot in #58
  • Add new function and tests for getMultiplePrices() by @Sevenannn in #71

New Contributors

Full Changelog: v0.3.3...v0.4.0

v0.3.3

22 Jun 08:03
a9ca204
Compare
Choose a tag to compare

Spice.xyz Node.js SDK v0.3.3

For full documentation see docs.spice.xyz.

What's Changed

  • Fix: remove extra slashes in api endpoint @ewgenius in #69

Full Changelog: v0.3.2...v0.3.3

v0.3.2

29 Apr 00:09
46fa578
Compare
Choose a tag to compare

Spice.xyz Node.js SDK v0.3.2

This release uses node-fetch to be compatible with Node 16 and upgrades gprc dependencies.

For full documentation see docs.spice.xyz.

What's Changed

Full Changelog: v0.3.1...v0.3.2

v0.3.1

21 Mar 08:08
3bb88ec
Compare
Choose a tag to compare

Spice.xyz Node.js SDK v0.3.1

This release reverts the change to require Node.js 18+ back to Node.js 16.

For full documentation see docs.spice.xyz.

What's Changed

  • Revert upgrade to Node 18 (Node 16 min requirement) by @lukekim in #37
  • Upgrade typescript, jest, ws, and rimraf. by @lukekim in #43

Full Changelog: v0.3.0...v0.3.1