Back to blog
Blog

New dashboard public beta release

Cosmic's avatar

Cosmic

April 04, 2023

cover image

Summary

Read below to learn about the latest changes. Note: These changes are in addition to the private beta release changelog. It is recommended you read that if you haven't already.


Dashboard changes

  • ๐Ÿ“ New markdown metafield.
  • ๐Ÿ—ƒ๏ธ Content folder updates for improved content organization.
  • ๐Ÿช Webhook payload model updates. See docs.
  • ๐ŸŒ Object slugs are now unique to Object type, not Bucket.


Cosmic JavaScript SDK
Install the new Cosmic JavaScript SDK by running npm i @cosmicjs/sdk in your terminal. You should expect the following changes:

  1. We've added TypeScript support. Though limited, we plan to continue to include more TypeScript support.
  2. Simpler config and authentication methods. See authentication in docs.
  3. Improved methods for working with Objects including:
    • findOne now returns an Object.
    • updateOne only requires specifying the Object id and no longer requires the $set declaration.
    • deleteOne only requires specifying the Object id.
  4. Legacy methods are no longer supported for getObjects, getMedia etc.
  5. Much lighter package size compared to the old NPM module (only 23kb unpacked!).

See more examples for all methods in the API reference section of the new Cosmic docs.

We hope you enjoy these updates. Sign up for the new dashboard to begin using all of the new and improved features.