@cocreate/cosmosdb 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ name: Automated Workflow
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
 
8
8
  jobs:
9
9
  about:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.1.1](https://github.com/CoCreate-app/CoCreate-cosmosdb/compare/v1.1.0...v1.1.1) (2026-07-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set default branch to main ([9c7c5ff](https://github.com/CoCreate-app/CoCreate-cosmosdb/commit/9c7c5ff1b95e85208590b66f2e821f99d2220184))
7
+
8
+ # [1.1.0](https://github.com/CoCreate-app/CoCreate-cosmosdb/compare/v1.0.0...v1.1.0) (2026-07-19)
9
+
10
+
11
+ ### Features
12
+
13
+ * Update README.md to reflect Cosmos DB integration and enhance documentation ([9f56a7a](https://github.com/CoCreate-app/CoCreate-cosmosdb/commit/9f56a7a868e3f316f42d999f367e1816bbc36b90))
14
+
1
15
  # 1.0.0 (2026-07-18)
2
16
 
3
17
 
package/README.md CHANGED
@@ -1,88 +1,177 @@
1
- # CoCreate-mongodb
1
+ # cosmosdb
2
2
 
3
- A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/mongodb)
3
+ A highly efficient, enterprise-grade Azure Cosmos DB multi-model database CRUD wrapper and state-routing backend client for the collaborative CoCreate ecosystem. This wrapper maps Cosmos DB's globally distributed, sub-millisecond database capabilities into CoCreate's unified JSON interface.
4
4
 
5
- ![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-mongodb?style=flat-square)
6
- ![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-mongodb?style=flat-square)
7
- ![GitHub](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
5
+ ## Documentation
8
6
 
9
- ![CoCreate-mongodb](https://cdn.cocreate.app/docs/CoCreate-mongodb.gif)
7
+ For a complete guide and working integration examples, refer to the [CoCreate Cosmos DB Documentation](https://cocreatejs.com/docs/cosmosdb).
10
8
 
11
- ## [Docs & Demo](https://cocreate.app/docs/mongodb)
9
+ ---
12
10
 
13
- For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/mongodb)
11
+ ## Table of Contents
12
+ * [The Power of the CoCreate Unified Ecosystem](#the-power-of-the-cocreate-unified-ecosystem)
13
+ * [Why Azure Cosmos DB?](#why-azure-cosmos-db)
14
+ * [Installation](#installation)
15
+ * [Unified JSON Payload Examples](#unified-json-payload-examples)
16
+ * [Announcements](#announcements)
17
+ * [Roadmap](#roadmap)
18
+ * [How to Contribute](#how-to-contribute)
19
+ * [About](#about)
14
20
 
15
- ## CDN
21
+ ---
16
22
 
17
- ```html
18
- <script src="https://cdn.cocreate.app/mongodb/latest/CoCreate-mongodb.min.js"></script>
19
- ```
23
+ ## The Power of the CoCreate Unified Ecosystem
20
24
 
21
- ```html
22
- <script src="https://cdn.cocreate.app/mongodb/latest/CoCreate-mongodb.min.css"></script>
23
- ```
25
+ This is not just another database driver. By wrapping Cosmos DB into the CoCreate state-routing pipeline, you unlock the full power of a multi-cloud, multi-model data orchestration mesh:
24
26
 
25
- ## NPM
27
+ * **Unified JSON Interface (MongoDB-like Syntax):** You don't need to write custom API queries or manage database-specific SDK connection wrappers. CoCreate translates standard NoSQL JSON CRUD operations (such as `object.create` or `object.read`) transparently into optimized Cosmos DB engine requests under the hood.
28
+ * **Parallel Multi-Database Writing:** Write to many target databases simultaneously with a single API call. You can stream transactional data to MongoDB (for instant operational state), vectorize it into Qdrant (for real-time semantic search), and persist it in Cosmos DB (for globally replicated cloud enterprise scale) in perfect parallel harmony:
26
29
 
27
- ```shell
28
- $ npm i @cocreate/mongodb
29
- ```
30
+ $$\text{Write Command} \xrightarrow{\text{Parallel Mesh}} \begin{cases} \text{MongoDB} & \text{(ACID Transaction Store)} \\ \text{Qdrant} & \text{(Semantic Vector Search)} \\ \text{Cosmos DB} & \text{(Globally Distributed Multi-Model)} \end{cases}$$
31
+
32
+ * **Dynamic State-Routing:** Isolate multi-tenant environments effortlessly. The routing mesh automatically injects tenant metadata and organization boundaries, ensuring isolated database processing within your shared Cosmos DB container infrastructure.
33
+
34
+ ---
35
+
36
+ ## Why Azure Cosmos DB?
37
+
38
+ Azure Cosmos DB is a fully managed NoSQL database built for modern app development. It offers turnkey global distribution, automatic horizontal scaling, and guaranteed single-digit millisecond response times at the 99th percentile, backed by industry-leading service level agreements (SLAs).
30
39
 
31
- ## yarn
40
+ By routing highly dynamic operational datasets, user profiles, and event logs straight to Cosmos DB via this wrapper, you unlock enterprise-grade multi-region active-active master capabilities while maintaining a zero-friction JSON pipeline.
41
+
42
+ ---
43
+
44
+ ## Installation
45
+
46
+ ### NPM Installation
47
+ ```bash
48
+ npm i @cocreate/cosmosdb
32
49
 
33
- ```shell
34
- $ yarn install @cocreate/mongodb
35
50
  ```
36
51
 
37
- # Table of Contents
52
+ ### Yarn Installation
38
53
 
39
- - [Table of Contents](#table-of-contents)
40
- - [Announcements](#announcements)
41
- - [Roadmap](#roadmap)
42
- - [How to Contribute](#how-to-contribute)
43
- - [About](#about)
44
- - [License](#license)
54
+ ```bash
55
+ yarn add @cocreate/cosmosdb
45
56
 
46
- <a name="announcements"></a>
57
+ ```
47
58
 
48
- # Announcements
59
+ ---
60
+
61
+ ## Unified JSON Payload Examples
62
+
63
+ Here are the complete, real-world JSON objects representing raw payloads routed through the CoCreate system. By declaring an array in the `storage` key, CoCreate fires the write operations to all specified backends simultaneously in parallel.
64
+
65
+ ### 1. Writing a Full Transaction Object (`object.create`)
66
+
67
+ When this operational payload is sent, CoCreate registers it, processes the nested JSON fields, and automatically warehouses it across all listed parallel storage platforms.
68
+
69
+ ```json
70
+ {
71
+ "method": "object.create",
72
+ "storage": ["cosmosdb", "mongodb", "qdrant"], // Array of storages to store in parallel!
73
+ "database": "sales_analytics",
74
+ "array": "order_events",
75
+ "object": {
76
+ "_id": "order_77c8f2a9_3b01",
77
+ "customer": {
78
+ "id": "cust_88301",
79
+ "email": "customer@example.com",
80
+ "region": "North America",
81
+ "acquisition_channel": "Google Search"
82
+ },
83
+ "transaction": {
84
+ "payment_method": "Credit Card",
85
+ "currency": "USD",
86
+ "subtotal": 249.99,
87
+ "discount": 15.00,
88
+ "tax": 18.80,
89
+ "total": 253.79
90
+ },
91
+ "items": [
92
+ {
93
+ "product_id": "prod_head_009",
94
+ "name": "Wireless Noise-Cancelling Headphones",
95
+ "category": "Electronics",
96
+ "quantity": 1,
97
+ "unit_price": 199.99
98
+ },
99
+ {
100
+ "product_id": "prod_stand_012",
101
+ "name": "Aluminum Headphone Stand",
102
+ "category": "Accessories",
103
+ "quantity": 2,
104
+ "unit_price": 25.00
105
+ }
106
+ ],
107
+ "shipping": {
108
+ "carrier": "FedEx",
109
+ "service": "2-Day Air",
110
+ "estimated_delivery": "2026-07-20T12:00:00.000Z"
111
+ }
112
+ },
113
+ "organization_id": "org_enterprise_99x",
114
+ "user_id": "usr_sales_runner_402",
115
+ "timeStamp": "2026-07-18T18:40:43.000Z"
116
+ }
49
117
 
50
- All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-mongodb/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-mongodb/releases). You may also subscribe to email for releases and breaking changes.
118
+ ```
51
119
 
52
- <a name="roadmap"></a>
120
+ ### 2. Reading and Filtering Warehoused Data (`object.read`)
121
+
122
+ Querying targets a single database engine via a string filter syntax. The query below retrieves high-value orders handled by a specific shipping carrier from Cosmos DB, sorting them by total sale volume.
123
+
124
+ ```json
125
+ {
126
+ "method": "object.read",
127
+ "storage": "cosmosdb",
128
+ "database": "sales_analytics",
129
+ "array": "order_events",
130
+ "$filter": {
131
+ "query": {
132
+ "transaction.total": { "$gte": 100.00 },
133
+ "shipping.carrier": "FedEx"
134
+ },
135
+ "sort": [
136
+ { "key": "transaction.total", "direction": "desc" }
137
+ ],
138
+ "limit": 50,
139
+ "index": 0
140
+ },
141
+ "organization_id": "org_enterprise_99x"
142
+ }
53
143
 
54
- # Roadmap
144
+ ```
55
145
 
56
- If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-mongodb/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-mongodb/pulls). We would love to hear your feedback.
146
+ ---
57
147
 
58
- <a name="about"></a>
148
+ ## Announcements
59
149
 
60
- # About
150
+ All updates to this library are documented in our `CHANGELOG` and releases. You may also subscribe to email for releases and breaking changes.
61
151
 
62
- CoCreate-mongodb is guided and supported by the CoCreate Developer Experience Team.
152
+ ---
63
153
 
64
- Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
154
+ ## Roadmap
65
155
 
66
- CoCreate-mongodb is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
156
+ If you are interested in the future direction of this project, please take a look at our open issues and pull requests. We would love to hear your feedback.
67
157
 
68
- <a name="contribute"></a>
158
+ ---
69
159
 
70
- # How to Contribute
160
+ ## How to Contribute
71
161
 
72
- We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-mongodb/blob/master/CONTRIBUTING.md) guide for details.
162
+ We encourage contribution to our libraries (you might even score some nifty swag), please see our `CONTRIBUTING` guide for details.
73
163
 
74
- We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-mongodb/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-mongodb/pulls) or merely upvote or comment on existing issues or pull requests.
164
+ We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or merely upvote or comment on existing issues or pull requests.
75
165
 
76
166
  We appreciate your continued support, thank you!
77
167
 
78
- <a name="license"></a>
168
+ ---
79
169
 
80
- # License
170
+ ## About
81
171
 
82
- This software is dual-licensed under the GNU Affero General Public License version 3 (AGPLv3) and a commercial license.
172
+ `CoCreate-cosmosdb` is guided and supported by the **CoCreate Developer Experience Team**.
83
173
 
84
- - **Open Source Use**: For open-source projects and non-commercial use, this software is available under the AGPLv3. The AGPLv3 allows you to freely use, modify, and distribute this software, provided that all modifications and derivative works are also licensed under the AGPLv3. For the full license text, see the [LICENSE file](https://github.com/CoCreate-app/CoCreate-mongodb/blob/master/LICENSE).
174
+ > Please Email the Developer Experience Team here in case of any queries.
85
175
 
86
- - **Commercial Use**: For-profit companies and individuals intending to use this software for commercial purposes must obtain a commercial license. The commercial license is available when you sign up for an API key on our [website](https://cocreate.app). This license permits proprietary use and modification of the software without the copyleft requirements of the AGPLv3. It is ideal for integrating this software into proprietary commercial products and applications.
176
+ `CoCreate-cosmosdb` is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
87
177
 
88
- If you have not purchased a commercial license and intend to use this software for commercial purposes, you are required to sign up for an API key on our website.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cosmosdb",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Lightweight, real-time Azure Cosmos DB CRUD wrapper and multi-tenant state routing client for the collaborative CoCreate ecosystem.",
5
5
  "keywords": [
6
6
  "cosmosdb",
package/release.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  dryRun: false,
3
- branches: ["master"],
3
+ branches: ["main"],
4
4
  plugins: [
5
5
  "@semantic-release/commit-analyzer",
6
6
  "@semantic-release/release-notes-generator",