Skip to content

Releases: cosmicjs/cosmicjs-node

v4.2.5

24 Aug 21:56
Compare
Choose a tag to compare

What's new

  1. Added chain methods for Objects:
  • bucket.objects.find
  • bucket.objects.findOne
  • bucket.objects.insertOne
  • bucket.objects.updateOne
  • bucket.objects.deleteOne
  1. Added chain methods for Media:
  • bucket.media.find
  • bucket.media.findOne
  • bucket.media.insertOne
  • bucket.media.deleteOne
  1. Updated all packages to latest version

Read the full changelog article.

v4.0.6

18 Mar 13:07
Compare
Choose a tag to compare

This release connects to the v2 of the REST API and includes changes to request and response formats.

Improvements

  • Lighter codebase, faster endpoints. In some cases, endpoint response times are up to 50% faster (non-cached).
  • Consistent error responses with verbose messages.
  • The Select Dropdown Metafield now includes both key and value in the API response.

Changes

  • _id has been changed to id.
  • type_slug has been changed to type.
  • status can now either be published or any (which returns latest Object version draft or published).
  • query is now the primary method for fetching and filtering Objects (Advanced Queries from v1). See Queries and Logic for examples.
  • Single Objects must now be fetched using id. To fetch by slug, you will need to use query.
  • metafields are hidden by default.
  • Stricter user input requirements. No additional fields are possible in the body for POST and PATCH requests.
  • There is a new, more secure token authentication strategy.

v3.4.0

22 Jan 16:31
Compare
Choose a tag to compare

v3.3.1...v3.4.0

v3.3.1

23 Jul 16:23
Compare
Choose a tag to compare

v3.3.0...v3.3.1

v3.3.0

16 Jul 23:19
Compare
Choose a tag to compare
  • Performance updates
  • Codebase improvements (Refactoring and modularization)
  • Babel and webpack version bump
  • Production packages/dependencies shrink down