From ad34e78f16cc481b2bb1c2d48656b352ab483457 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 28 Jun 2023 11:47:21 -0700 Subject: [PATCH 1/6] edit: move legacy content field to metadata --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d25e10..2733d3b 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,8 @@ Use the `objects.insertOne()` method to create an Object. await cosmic.objects.insertOne({ title: 'Blog Post Title', type: 'posts', - content: 'Here is the blog post content... still learning', metadata: { + content: 'Here is the blog post content... still learning', seo_description: 'This is the blog post SEO description.', featured_post: true, tags: ['javascript', 'cms'], @@ -106,8 +106,8 @@ Use the `objects.updateOne()` method to update an Object by specifying the Objec ```jsx await cosmic.objects.updateOne('5ff75368c2dfa81a91695cec', { - content: 'This is the updated blog post content... I got it now!', metadata: { + content: 'This is the updated blog post content... I got it now!', featured_post: false, }, }); From cdb5f9167a1b9e20e094cf459709dd3ee955d559 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 28 Jun 2023 11:49:26 -0700 Subject: [PATCH 2/6] edit: remove slack, add contact link --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2733d3b..4aeaa00 100644 --- a/README.md +++ b/README.md @@ -129,11 +129,14 @@ Go to the [Cosmic docs](https://docs-v3.cosmicjs.com) to learn more capabilities For general help, please refer to [the official Cosmic documentation (v3)](https://docs-v3.cosmicjs.com). For additional help, you can use one of these channels to ask a question: -- [Slack](https://www.cosmicjs.com/community) (For live discussions with the Cosmic community and team) - [GitHub](https://github.com/cosmicjs/cosmicjs/cosmic-sdk-js) (Bug reports, contributions) - [Twitter](https://twitter.com/cosmicjs) (Get the latest news about Cosmic features and notifications) - [YouTube](https://www.youtube.com/cosmicjs) (Learn from video tutorials) +## Cosmic support + +- [Contact us](https://www.cosmicjs.com/contact) for help with any service questions and custom plan inquiries. + ## License This project is published under the [MIT](https://github.com/cosmicjs/cosmic-sdk-js/blob/HEAD/LICENSE) license. From 2f5ece903b23cbbf018c0f3407ded293120f67c1 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 28 Jun 2023 11:50:29 -0700 Subject: [PATCH 3/6] edit: remove beta links --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4aeaa00..c6b8913 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + Cosmic dashboard darkmode @@ -6,7 +6,7 @@ [Cosmic](https://www.cosmicjs.com/) is a [headless CMS](https://www.cosmicjs.com/headless-cms) (content management system) that provides a web dashboard to create content and an API toolkit to deliver content to any website or application. Nearly any type of content can be built using the dashboard and delivered using this SDK. -[Get started free →](https://beta.cosmicjs.com/signup) +[Get started free →](https://app.cosmicjs.com/signup) ## Install @@ -30,7 +30,7 @@ import { createBucketClient } from '@cosmicjs/sdk'; ## Authentication -In the [Cosmic admin dashboard](https://beta.cosmicjs.com/login) go to _Bucket > Settings > API Access_ and get your Bucket slug and read key then set the variables in your app to connect to your Bucket. +In the [Cosmic admin dashboard](https://app.cosmicjs.com/login) go to _Bucket > Settings > API Access_ and get your Bucket slug and read key then set the variables in your app to connect to your Bucket. ```jsx const cosmic = createBucketClient({ From 2c06b8be1ca12bf856a251829d2599b130488652 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 28 Jun 2023 11:51:35 -0700 Subject: [PATCH 4/6] edit: remove docs-v3 from URLs --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c6b8913..864db88 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ const cosmic = createBucketClient({ Objects are the basic building blocks of content in Cosmic. -### Get multiple Objects [[see docs](https://docs-v3.cosmicjs.com/docs/api/objects#get-objects)] +### Get multiple Objects [[see docs](https://www.cosmicjs.com/docs/api/objects#get-objects)] Use the `objects.find()` method to fetch Objects. @@ -58,7 +58,7 @@ const posts = await cosmic.objects The above example fetches Objects in the `posts` Object type returning the `title`, `slug`, and `metadata` properties, limiting the response to `10` Objects. -### Get single Object by slug [[see docs](https://docs-v3.cosmicjs.com/docs/api/objects#get-a-single-object-by-slug)] +### Get single Object by slug [[see docs](https://www.cosmicjs.com/docs/api/objects#get-a-single-object-by-slug)] Use the `objects.findOne()` method with `type` and `slug` to fetch a single Object. @@ -83,7 +83,7 @@ const cosmic = createBucketClient({ }); ``` -### Create Object [[see docs](https://docs-v3.cosmicjs.com/docs/api/objects#create-an-object)] +### Create Object [[see docs](https://www.cosmicjs.com/docs/api/objects#create-an-object)] Use the `objects.insertOne()` method to create an Object. @@ -100,7 +100,7 @@ await cosmic.objects.insertOne({ }); ``` -### Update Object [[see docs](https://docs-v3.cosmicjs.com/docs/api/objects#update-an-object)] +### Update Object [[see docs](https://www.cosmicjs.com/docs/api/objects#update-an-object)] Use the `objects.updateOne()` method to update an Object by specifying the Object `id` and include properties that you want to update. @@ -113,7 +113,7 @@ await cosmic.objects.updateOne('5ff75368c2dfa81a91695cec', { }); ``` -### Delete Object [[see docs](https://docs-v3.cosmicjs.com/docs/api/objects#delete-an-object)] +### Delete Object [[see docs](https://www.cosmicjs.com/docs/api/objects#delete-an-object)] Use the `objects.deleteOne()` method to delete an Object by specifying the Object `id`. @@ -123,11 +123,11 @@ await cosmic.objects.deleteOne('5ff75368c2dfa81a91695cec'); ## Learn more -Go to the [Cosmic docs](https://docs-v3.cosmicjs.com) to learn more capabilities. +Go to the [Cosmic docs](https://www.cosmicjs.com) to learn more capabilities. ## Community support -For general help, please refer to [the official Cosmic documentation (v3)](https://docs-v3.cosmicjs.com). For additional help, you can use one of these channels to ask a question: +For general help, please refer to [the official Cosmic documentation (v3)](https://www.cosmicjs.com). For additional help, you can use one of these channels to ask a question: - [GitHub](https://github.com/cosmicjs/cosmicjs/cosmic-sdk-js) (Bug reports, contributions) - [Twitter](https://twitter.com/cosmicjs) (Get the latest news about Cosmic features and notifications) From 44ded3bf6a2f2094521a564d0bca04e7c8a92373 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 28 Jun 2023 11:53:08 -0700 Subject: [PATCH 5/6] edit: docs link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 864db88..3a5f1c6 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Go to the [Cosmic docs](https://www.cosmicjs.com) to learn more capabilities. ## Community support -For general help, please refer to [the official Cosmic documentation (v3)](https://www.cosmicjs.com). For additional help, you can use one of these channels to ask a question: +For general help, please refer to [the official Cosmic documentation](https://www.cosmicjs.com/docs). For additional help, you can use one of these channels to ask a question: - [GitHub](https://github.com/cosmicjs/cosmicjs/cosmic-sdk-js) (Bug reports, contributions) - [Twitter](https://twitter.com/cosmicjs) (Get the latest news about Cosmic features and notifications) From 0a38521c46ef63b7365d5e99d107f81e29ed6ed7 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Wed, 28 Jun 2023 11:59:13 -0700 Subject: [PATCH 6/6] edit: docs link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a5f1c6..09f663e 100644 --- a/README.md +++ b/README.md @@ -123,11 +123,11 @@ await cosmic.objects.deleteOne('5ff75368c2dfa81a91695cec'); ## Learn more -Go to the [Cosmic docs](https://www.cosmicjs.com) to learn more capabilities. +Go to the [Cosmic docs](https://www.cosmicjs.com/docs) to learn more capabilities. ## Community support -For general help, please refer to [the official Cosmic documentation](https://www.cosmicjs.com/docs). For additional help, you can use one of these channels to ask a question: +For additional help, you can use one of these channels to ask a question: - [GitHub](https://github.com/cosmicjs/cosmicjs/cosmic-sdk-js) (Bug reports, contributions) - [Twitter](https://twitter.com/cosmicjs) (Get the latest news about Cosmic features and notifications)