Skip to content

v2.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 30 Apr 00:05
· 24 commits to trunk since this release
fed34f3

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