Skip to content

Releases: ginkgobioworks/curious-js

Add JSON Serialization

19 Sep 23:52
@myw myw
Compare
Choose a tag to compare

Non-breaking changes

  • Exposed the CuriousObject class to consumers as CuriousObjects.defaultType
  • Added object method toJSON to CuriousObject, which allows JSON.stringify to correctly
    serialize them
  • Added static method fromJSON to CuriousObject, which allows easier parsing from strings into
    CuriousObject instances

New camel-casing features

02 Jul 04:29
@myw myw
Compare
Choose a tag to compare

Non-breaking changes

  • Added a camelCase flag to the CuriousClient constructor, which makes the objects constructed from the Curious query have camel-cased properties and relationships, rather than snake-cased ones: i.e. foo_bar becomes fooBar. This is a convenience for style and legibility, since most javascript applications use camel-cased property names as well: now, instead of having to think which kind of object you have when referencing a property, you can just treat all objects alike.

Fully working `iron-ajax` wrapper

01 Jul 05:40
@myw myw
Compare
Choose a tag to compare

Bug fixes

Previous attempts to make a wrapper for iron-request elements were ill-fated: iron-request elements can only represent a single request. To hold multiple requests, iron-ajax elements must be used, which generate requests as many times as necessary.

  • wrappers.ironRequest has been replaces with wrappers.ironAjax

Minor bug fixes

30 Jun 22:11
@myw myw
Compare
Choose a tag to compare

Bug fixes

  • Work around bug in <iron-request> docs that does not describe proper serialization of POST request body.

Minor bug fixes

30 Jun 21:12
@myw myw
Compare
Choose a tag to compare

Bug fixes

  • Fixed incorrectly named property in ironRequest wrapper.

Wrapper improvements

29 Jun 15:57
@myw myw
Compare
Choose a tag to compare

Non-breaking changes

  • CuriousClient.wrappers.ironReuquest takes in a Polymer iron-request element object and
    returns an appropriate POST request-making function
  • all of the wrapper functions now take an optional options argument to merge
    in object sent to the request client, for providing additional,
    client-specific options.

Expanded and updated wrapper functions

23 Jun 20:51
@myw myw
Compare
Choose a tag to compare

Breaking Changes

  • CuriousClient.axios_post has been renamed to CuriousClient.wrappers.axios

Other changes

  • Added CuriousClient.wrappers.angular
  • Wrappers now default to global variables if a module object is not provided.

Initial release of Curious 2

23 Jun 20:29
@myw myw
Compare
Choose a tag to compare

A complete rewriting of the javascript client from version 1:

  • create CuriousQuery class for structured queries
  • all classes, methods, and properties are meaningfully-named: CuriousQ is now named CuriousClient
  • move to promises-based API rather than callback-based API
  • removal of curious-xhr in favor of using an existing library, like axios or another http request framework
  • full suite of unit tests
  • conforms to camelCase coding convention
  • JSDoc for all symbols