Changelog for the collections adaptor
@openfn/language-collections
0.7.1
Patch Changes
- Fixed some small issues in the docs
0.7.0
Minor Changes
c95ccba: BREAKING: Pass state into the keygen function on
set()
. This allows state to be used to calculate keys.When calling
collections.set(collection, keygen, values)
, the keygen function signature has changed from(value, index) => key
to(value, state, index) => key
.
Patch Changes
- cdb01db: Better error handling if the keygen function is invalid
0.6.2
Patch Changes
- Expose mock agent for unit tests
0.6.1
Patch Changes
12d634c: Fix an issue where reference values for setting a single item were not resolved, eg:
collections.set('my-collection', 'some-key', state => state.data);
0.6.0
Minor Changes
- Various stability fixes
Patch Changes
39fb894: Allow a single key to be set to an array value
ad9fca2: Throw if insufficient arguments passed to set()
29a6ce0: Throw a nice error if the collection does not exist
26aa57c: Fix an issue where requesting a single key that does not exist throws an error, as in:
collections.get('my-collection', 'some-item')
Note that this requires Lightning v2.10.5+
0.5.2
Patch Changes
- Fix an issue where sometimes the JSON stream would skip tokens and result in a smaller payload being returned
0.5.1
Patch Changes
- set() will now upsert items in batches of 1000
0.5.0
Minor Changes
- b73b063: - Added pagination support
- Removed
updated_*
time filters
- Removed
0.4.0
Minor Changes
- Fixed support for delete
0.3.0
Minor Changes
- 1e472ed: Update new GET request structure Fix streaming API
Patch Changes
- 32e5a03: Fix an issue where the query object isn't getting sent to the server
0.2.0
Minor Changes
- f4deb81: Updates to latest spec
0.1.0
Initial experiemntal release, with collections.get
, collections.each
,
collections.remove
and collections.set