@procedures/mongo 0.46.0 → 0.47.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.
- package/CHANGELOG.md +27 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/procedures/collections.create.js +1 -1
- package/dist/procedures/collections.create.js.map +1 -1
- package/dist/procedures/collections.drop.js +1 -1
- package/dist/procedures/collections.drop.js.map +1 -1
- package/dist/procedures/collections.list.js +1 -1
- package/dist/procedures/collections.list.js.map +1 -1
- package/dist/procedures/collections.stats.js +1 -1
- package/dist/procedures/collections.stats.js.map +1 -1
- package/dist/procedures/database.info.js +1 -1
- package/dist/procedures/database.info.js.map +1 -1
- package/dist/procedures/database.ping.js +1 -1
- package/dist/procedures/database.ping.js.map +1 -1
- package/dist/procedures/documents.aggregate.js +1 -1
- package/dist/procedures/documents.aggregate.js.map +1 -1
- package/dist/procedures/documents.bulk.js +1 -1
- package/dist/procedures/documents.bulk.js.map +1 -1
- package/dist/procedures/documents.count.js +1 -1
- package/dist/procedures/documents.count.js.map +1 -1
- package/dist/procedures/documents.delete.js +1 -1
- package/dist/procedures/documents.delete.js.map +1 -1
- package/dist/procedures/documents.distinct.js +1 -1
- package/dist/procedures/documents.distinct.js.map +1 -1
- package/dist/procedures/documents.explain.js +1 -1
- package/dist/procedures/documents.explain.js.map +1 -1
- package/dist/procedures/documents.find.js +1 -1
- package/dist/procedures/documents.find.js.map +1 -1
- package/dist/procedures/documents.get.js +1 -1
- package/dist/procedures/documents.get.js.map +1 -1
- package/dist/procedures/documents.insert.js +1 -1
- package/dist/procedures/documents.insert.js.map +1 -1
- package/dist/procedures/documents.update.js +1 -1
- package/dist/procedures/documents.update.js.map +1 -1
- package/dist/procedures/indexes.create.js +1 -1
- package/dist/procedures/indexes.create.js.map +1 -1
- package/dist/procedures/indexes.drop.js +1 -1
- package/dist/procedures/indexes.drop.js.map +1 -1
- package/dist/procedures/indexes.list.js +1 -1
- package/dist/procedures/indexes.list.js.map +1 -1
- package/dist/procedures/input-schemas.d.ts +1 -1
- package/dist/procedures/input-schemas.d.ts.map +1 -1
- package/dist/procedures/input-schemas.js +1 -1
- package/dist/procedures/input-schemas.js.map +1 -1
- package/dist/procedures/watch.js +1 -1
- package/dist/procedures/watch.js.map +1 -1
- package/package.json +5 -5
- package/src/procedures/collections.create.ts +1 -1
- package/src/procedures/collections.drop.ts +1 -1
- package/src/procedures/collections.list.ts +1 -1
- package/src/procedures/collections.stats.ts +1 -1
- package/src/procedures/database.info.ts +1 -1
- package/src/procedures/database.ping.ts +1 -1
- package/src/procedures/documents.aggregate.ts +1 -1
- package/src/procedures/documents.bulk.ts +1 -1
- package/src/procedures/documents.count.ts +1 -1
- package/src/procedures/documents.delete.ts +1 -1
- package/src/procedures/documents.distinct.ts +1 -1
- package/src/procedures/documents.explain.ts +1 -1
- package/src/procedures/documents.find.ts +1 -1
- package/src/procedures/documents.get.ts +1 -1
- package/src/procedures/documents.insert.ts +1 -1
- package/src/procedures/documents.update.ts +1 -1
- package/src/procedures/indexes.create.ts +1 -1
- package/src/procedures/indexes.drop.ts +1 -1
- package/src/procedures/indexes.list.ts +1 -1
- package/src/procedures/input-schemas.ts +1 -1
- package/src/procedures/watch.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@procedures/mongo",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.47.1",
|
|
5
5
|
"description": "MongoDB as typed procedures: documents, bulk writes, distinct, explain, collections, indexes, aggregation, change streams and database info, with safe update and delete targets.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mongodb",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"provenance": true
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@mark1russell7/cue": "^1.
|
|
66
|
+
"@mark1russell7/cue": "^1.1.0",
|
|
67
67
|
"@types/node": "^22.0.0",
|
|
68
68
|
"typescript": "^7.0.2",
|
|
69
69
|
"vitest": "^5.0.3"
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"procedures": "./dist/register.js"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@procedures/client": "0.
|
|
76
|
-
"@procedures/collections": "0.
|
|
75
|
+
"@procedures/client": "0.47.1",
|
|
76
|
+
"@procedures/collections": "0.47.1",
|
|
77
77
|
"mongodb": "^7.0.0",
|
|
78
78
|
"zod": "^4.6.5"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "tsc -b",
|
|
82
|
-
"typecheck": "tsc --noEmit",
|
|
82
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
83
83
|
"clean": "rm -rf dist .tsbuildinfo",
|
|
84
84
|
"test": "vitest run",
|
|
85
85
|
"test:watch": "vitest"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { CreateCollectionOptions } from "mongodb";
|
|
11
11
|
import { type CollectionOptions } from "../types.js";
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionName, databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
interface DropInput extends ScopeInput {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
/** The input: only the scope fields. */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { CollectionStats } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type DatabaseInfo } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
/** The input: only the scope fields. */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { AggregateOptions } from "mongodb";
|
|
11
11
|
import {
|
|
12
12
|
type AggregationStage,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
14
14
|
import type { AnyBulkWriteOperation, Document } from "mongodb";
|
|
15
|
-
import
|
|
15
|
+
import * as z from "zod";
|
|
16
16
|
import { collectionFor, copyScope, SCOPE_FIELDS, type ScopeInput } from "../scope.js";
|
|
17
17
|
import { described, documentObject, scopeFields } from "./input-schemas.js";
|
|
18
18
|
import type { BulkOperation, DocumentQuery, DocumentUpdate } from "../types.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type DocumentQuery } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor } from "../scope.js";
|
|
8
8
|
import { described, scopeFields, targetFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { parseTarget, targetFilter, type TargetInput } from "./target.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type DocumentQuery } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
11
11
|
import type { Document, ExplainVerbosityLike, FindOptions } from "mongodb";
|
|
12
|
-
import
|
|
12
|
+
import * as z from "zod";
|
|
13
13
|
import { collectionFor, copyScope, SCOPE_FIELDS, type ScopeInput } from "../scope.js";
|
|
14
14
|
import { described, documentObject, scopeFields } from "./input-schemas.js";
|
|
15
15
|
import { writingStage } from "./documents.aggregate.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@procedures/client";
|
|
12
12
|
import { collectionFor, copyScope, type ScopeInput } from "../scope.js";
|
|
13
13
|
import { described, documentObject, scopeFields } from "./input-schemas.js";
|
|
14
|
-
import
|
|
14
|
+
import * as z from "zod";
|
|
15
15
|
import {
|
|
16
16
|
type PaginationOutput,
|
|
17
17
|
type DocumentQuery,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@procedures/client";
|
|
12
12
|
import { collectionFor, copyScope, type ScopeInput } from "../scope.js";
|
|
13
13
|
import { described, idTypeField, scopeFields } from "./input-schemas.js";
|
|
14
|
-
import
|
|
14
|
+
import * as z from "zod";
|
|
15
15
|
import {
|
|
16
16
|
buildIdFilter,
|
|
17
17
|
type IdType,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type MongoDocument } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor } from "../scope.js";
|
|
8
8
|
import { described, documentObject, scopeFields, targetFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { DocumentUpdate } from "../types.js";
|
|
11
11
|
import { parseTarget, targetFilter, upsertFilter, type TargetInput } from "./target.js";
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { CreateIndexesOptions } from "mongodb";
|
|
11
11
|
import { type IndexSpec, type IndexOptions } from "../types.js";
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
interface DropIndexInput extends ScopeInput {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type IndexInfo } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* a zod object that names the same fields.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import * as z from "zod";
|
|
15
15
|
import { jsonSchemaOf, typed, type ZodLikeSchema } from "@procedures/client";
|
|
16
16
|
|
|
17
17
|
/** The fields that select the database and the collection. */
|
package/src/procedures/watch.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
11
11
|
import type { ChangeStream, ChangeStreamOptions, Document } from "mongodb";
|
|
12
|
-
import
|
|
12
|
+
import * as z from "zod";
|
|
13
13
|
import { collectionFor, databaseFor, copyScope, SCOPE_FIELDS, type ScopeInput } from "../scope.js";
|
|
14
14
|
import { described, documentObject } from "./input-schemas.js";
|
|
15
15
|
|