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
- Fix samples in README.md by @sgrebnov in #145
- Remove deprecated Asset Prices API support by @lukekim in #149
- Bump apache-arrow from 14.0.2 to 15.0.2 by @dependabot in #143
- Bump ts-jest from 29.1.1 to 29.1.2 by @dependabot in #131
- Refactor
SpiceClient
to support connection to local spice runtime by @ewgenius in #151 - Version 2.0.0 by @ewgenius in #152
- Fix missing default params by @ewgenius in #153
- Update dependencies by @ewgenius in #154
Full Changelog: v1.0.2...v2.0.0