Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@pulumi/query

pulumi1.2mApache-2.00.6.0TypeScript support: included

An simple, relational SDK for querying TypeScript and JavaScript data structures

linq, query, rxjs

readme

Build Status

query.js

query.js makes it easy to write SQL-like queries over JavaScript data structures. It supports Array, Set, Map, and Object, as well as Iterable more generally. Unlike other query libraries, query.js has strong support for Promise, and is considerably easier to understand and write than streaming query models such as RxJS.

Installing

This package is available in JavaScript/TypeScript for use with Node.js. Install it using either npm:

$ npm install @pulumi/query

or yarn:

$ yarn add @pulumi/query

changelog

v0.6.0

Improvements

  • Fix AsyncQueryable#concat interface type to accurately reflect the underlying type of the implementation.

v0.5.0

Improvements

  • Allow xs and ys to be separate types in xs.concat(ys).

v0.4.0

v0.3.0

Improvements

  • Re-declare the global SymbolConstructor with asyncIterator, allowing users targeting ES versions earlier than the 2018 to use this library.
  • Fix issue preventing double-invoke of queries.
  • Fix incorrect groupJoin semantics.
  • Allow from to gracefully handle stray undefined passed as argument.

v0.2.0

Improvements

  • Don't require users to supply es2018.asynciterable to .compilationOptions.libs when compiling against this library.

v0.1.0

Major Changes

  • Add support for nearly all of the LINQ standard query operators. These are implemented using the ECMAScript standard async iterator API.
  • Add tests for all query operators.
  • Implement QueryableIterable, a class wrapping async iterators, and providing "convenience methods" for various operators (e.g., the map in xs.map(x => x)).

Improvements

  • Minor fix in polyfill code for asyncIterable: don't polyfill on objects where the property is readonly.