@primate/mongodb 0.7.0 → 0.8.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,11 +3,11 @@ import type { Dict } from "@rcompat/type";
3
3
  import { MongoClient } from "mongodb";
4
4
  declare const schema: import("pema").ObjectType<import("pema").NormalizeSchemaObject<{
5
5
  readonly host: import("pema").DefaultType<import("pema").StringType, "localhost">;
6
- readonly port: import("pema").DefaultType<import("pema").UintType<"u32">, 27017>;
6
+ readonly port: import("pema").DefaultType<import("pema").UintType<"u32", undefined>, 27017>;
7
7
  readonly database: import("pema").StringType;
8
8
  readonly username: import("pema").OptionalType<import("pema").StringType>;
9
9
  readonly password: import("pema").OptionalType<import("pema").StringType>;
10
- }>, {
10
+ }>, undefined, {
11
11
  host: string;
12
12
  port: number;
13
13
  database: string;
@@ -1,4 +1,4 @@
1
1
  import MongoDB from "#MongoDB";
2
- declare const _default: (config: typeof MongoDB.config) => MongoDB;
3
2
  export default _default;
3
+ declare function _default(config: typeof MongoDB.config): MongoDB;
4
4
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primate/mongodb",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "MongoDB databases for Primate",
5
5
  "homepage": "https://primate.run/docs/database/mongodb",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
@@ -21,14 +21,14 @@
21
21
  "@rcompat/dict": "^0.10.0",
22
22
  "@rcompat/is": "^0.11.0",
23
23
  "mongodb": "^7.2.0",
24
- "@primate/core": "^0.7.0",
25
- "pema": "0.7.0"
24
+ "@primate/core": "^0.8.8",
25
+ "pema": "^0.8.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rcompat/type": "^0.17.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "primate": "^0.38.0"
31
+ "primate": "^0.39.1"
32
32
  },
33
33
  "imports": {
34
34
  "#*": {
@@ -43,7 +43,7 @@
43
43
  }
44
44
  },
45
45
  "scripts": {
46
- "build": "npm run clean && tsc",
46
+ "build": "npm run clean && tsgo",
47
47
  "clean": "rm -rf ./lib",
48
48
  "lint": "eslint .",
49
49
  "test": "npm run db && npx proby",