Releases: themost-framework/client
Releases · themost-framework/client
2.16.3
What's Changed
- bump @themost/test by @kbarbounakis in #24
- bump @themost/query to 2.13.1 by @kbarbounakis in #25
- bump @themost/test to 2.9.0 by @kbarbounakis in #26
Full Changelog: 2.16.0...2.16.3
2.16.0
2.15.0
2.14.3
What's Changed
- Define EdmSchema annotations by @kbarbounakis in #17
- use classes option to generate classes instead of interfaces by @kbarbounakis in #21
Full Changelog: 2.14.1...2.14.3
2.14.1
2.14.0
2.13.0
What's Changed
- Create test.yml by @kbarbounakis in #15
- create image with chromium by @kbarbounakis in #16
- use superagent instead of axios by @kbarbounakis in #18
Full Changelog: 2.12.0...2.13.0
2.12.0
What's Changed
- Use cross platform service by @kbarbounakis in #14
@themost/client@2.12.0
implements a cross environment data service for using @themost/client
across different environments like node.js or browser.
import { BasicDataContext } from '@themost/client/common';
const context = new BasicDataContext("http://localhost:8080/api/", {
useResponseConversion: true
});
const items = await context
.model("Products")
.asQueryable()
.select(({ id, name, category, model, price }) => ({
id,
name,
category,
model,
price,
}))
.where((x: { price: number, category: string }) => {
return x.price > 500 && x.category === "Laptops";
})
.orderByDescending((x: { price: number, category: string }) => x.price)
.take(10).getItems();
Full Changelog: 2.11.0...2.12.0