@push.rocks/smartdb 5.0.3 → 5.0.5
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: '5.0.
|
|
6
|
+
version: '5.0.5',
|
|
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
package/readme.md
CHANGED
|
@@ -354,7 +354,7 @@ Legacy v0 JSON collections are converted into hidden sibling staging directories
|
|
|
354
354
|
|
|
355
355
|
Persisted users also carry a random principal identity and a monotonic generation. SmartDB reloads and resolves that identity for every authenticated command, so password or role changes take effect immediately and stale sockets are rejected. Deleting and recreating the same username creates a different principal; an old connection cannot inherit the replacement user's authority. Cross-process user updates are serialized through the persisted users-file lock.
|
|
356
356
|
|
|
357
|
-
Single-node transactions are supported through official MongoDB driver sessions.
|
|
357
|
+
Single-node transactions are supported through official MongoDB driver sessions. `find`, `count`, `distinct`, `insert`, `update`, `findAndModify`, and `delete` use the transaction snapshot and buffered write set; `commitTransaction` applies that write set with conflict checks, and `abortTransaction` discards it. After applicable authentication, authorization, and allocation-policy checks, collection, database, and index DDL, user-management mutations, and aggregate pipelines ending in `$out` or `$merge` reject transaction envelopes with `OperationNotSupportedInTransaction` (code 263) before session or transaction creation, maintenance gates, or mutation. Live logical sessions remain resumable across socket disconnects. Bounded background cleanup aborts expired transactions, removes expired sessions, and releases publication leases; explicit `endSessions` and `killSessions` do the same for their active transactions.
|
|
358
358
|
|
|
359
359
|
### Durable Database Publication Holds
|
|
360
360
|
|
|
@@ -911,7 +911,7 @@ const names = await collection.distinct('name');
|
|
|
911
911
|
| **Indexes** | `createIndexes`, `dropIndexes`, `listIndexes` |
|
|
912
912
|
| **Sessions** | `startSession`, `endSessions` |
|
|
913
913
|
| **Transactions** | `startTransaction`, `commitTransaction`, `abortTransaction` through driver sessions |
|
|
914
|
-
| **Admin** | `ping`, `listDatabases`, `listCollections`, `drop`, `dropDatabase`, `create`, `serverStatus`, `
|
|
914
|
+
| **Admin** | `ping`, `listDatabases`, `listCollections`, `drop`, `dropDatabase`, `create`, `serverStatus`, `dbStats`, `collStats`, `connectionStatus`, `renameCollection` |
|
|
915
915
|
|
|
916
916
|
Advertises MongoDB wire protocol versions 0–21. The documented command surface is tested with the official `mongodb` Node.js driver version 7.5.x.
|
|
917
917
|
|
|
@@ -930,13 +930,16 @@ acknowledgement.
|
|
|
930
930
|
### Unsupported Administrative Commands
|
|
931
931
|
|
|
932
932
|
SmartDB returns `CommandNotFound` (code 59) for the wire commands `validate`,
|
|
933
|
-
`explain`, legacy `authenticate`, `
|
|
934
|
-
`
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
933
|
+
`explain`, legacy `authenticate`, `buildInfo`/`buildinfo`, `hostInfo`,
|
|
934
|
+
`whatsmyuri`, `getLog`, `getCmdLineOpts`, `getParameter`, `setFreeMonitoring`,
|
|
935
|
+
`currentOp`, `killOp`, `top`, `profile`, `compact`, `reIndex`, `fsync`, and
|
|
936
|
+
`connPoolSync`. These commands previously had placeholder success responses but
|
|
937
|
+
do not yet implement their advertised MongoDB semantics. Authentication and
|
|
938
|
+
authorization errors retain precedence; otherwise rejection occurs before
|
|
939
|
+
database publication permits, session or transaction creation, and command
|
|
940
|
+
dispatch. This restriction applies to the wire `validate` command, not the
|
|
941
|
+
supported offline `--validate-data` tool. `getFreeMonitoringStatus` remains
|
|
942
|
+
available and reports SmartDB's fixed disabled state.
|
|
940
943
|
|
|
941
944
|
---
|
|
942
945
|
|
package/ts/00_commitinfo_data.ts
CHANGED