@push.rocks/smartdb 3.0.1 → 3.0.3

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.
Binary file
Binary file
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartdb',
6
- version: '3.0.1',
6
+ version: '3.0.3',
7
7
  description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxxQkFBcUI7SUFDM0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHFIQUFxSDtDQUNuSSxDQUFBIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartdb",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "private": false,
5
5
  "description": "A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.",
6
6
  "exports": {
package/readme.md CHANGED
@@ -689,6 +689,13 @@ await collection.dropIndexes(); // drop all except _id
689
689
 
690
690
  > 🛡️ **Unique indexes are enforced at the engine level.** Duplicate values are rejected with a `DuplicateKey` error (code 11000) *before* the document is written to disk — on `insertOne`, `updateOne`, `findAndModify`, and upserts. Index definitions are persisted to `indexes.json` and automatically restored on restart.
691
691
 
692
+ SmartDB supports ascending and descending index keys with `name`, `unique`,
693
+ `sparse`, and `expireAfterSeconds` options. It accepts `background` as a
694
+ validated no-op and index version `v: 2`. Unsupported options, including
695
+ `partialFilterExpression`, `collation`, and `hidden`, are rejected before any
696
+ index in the request is created. TTL metadata is retained in the catalog;
697
+ automatic TTL expiry is not implemented.
698
+
692
699
  ### Database & Admin
693
700
 
694
701
  ```typescript
@@ -704,6 +711,11 @@ await admin.ping();
704
711
  await admin.serverStatus();
705
712
  ```
706
713
 
714
+ SmartDB creates ordinary collections only. Unsupported collection semantics,
715
+ including views, capped collections, validators, collation, time-series
716
+ collections, clustered indexes, and encrypted fields, are rejected before the
717
+ database or namespace is created.
718
+
707
719
  ### Bulk Operations
708
720
 
709
721
  ```typescript
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartdb',
6
- version: '3.0.1',
6
+ version: '3.0.3',
7
7
  description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
8
8
  }