Skip to content

New camel-casing features

Compare
Choose a tag to compare
@myw myw released this 02 Jul 04:29
· 60 commits to v2 since this release

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.