Releases: cosmicjs/cosmicjs-node
Releases · cosmicjs/cosmicjs-node
v4.2.5
What's new
- Added chain methods for Objects:
bucket.objects.findbucket.objects.findOnebucket.objects.insertOnebucket.objects.updateOnebucket.objects.deleteOne
- Added chain methods for Media:
bucket.media.findbucket.media.findOnebucket.media.insertOnebucket.media.deleteOne
- Updated all packages to latest version
Read the full changelog article.
v4.0.6
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
keyandvaluein the API response.
Changes
_idhas been changed toid.type_slughas been changed totype.statuscan now either bepublishedorany(which returns latest Object version draft or published).queryis 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 byslug, you will need to usequery. metafieldsare hidden by default.- Stricter user input requirements. No additional fields are possible in the body for
POSTandPATCHrequests. - There is a new, more secure token authentication strategy.
v3.4.0
v3.3.1
v3.3.0
- Performance updates
- Codebase improvements (Refactoring and modularization)
- Babel and webpack version bump
- Production packages/dependencies shrink down