@mongodb-js/mongodb-ts-autocomplete 0.3.3 → 0.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-types.js","sourceRoot":"","sources":["../../src/fixtures/autocomplete-types.ts"],"names":[],"mappings":";;AACA,MAAM,KAAK,GAAG,EAAC,UAAU,EAAC,sl+DAAsl+D,EAAC,SAAS,EAAC,srBAAsrB,EAAC,CAAC;AACnz/D,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"autocomplete-types.js","sourceRoot":"","sources":["../../src/fixtures/autocomplete-types.ts"],"names":[],"mappings":";;AACA,MAAM,KAAK,GAAG,EAAC,UAAU,EAAC,0l+DAA0l+D,EAAC,aAAa,EAAC,iovVAAiovV,EAAC,SAAS,EAAC,6+8OAA6+8O,EAAC,CAAC;AAC9vqoB,kBAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,UAI1C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,UAM1C"}
package/dist/utils.js CHANGED
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.replaceImports = replaceImports;
4
4
  function replaceImports(code) {
5
- return code.replace(/'bson'/g, "'/bson.ts'");
5
+ return code
6
+ .replace(/'bson'/g, "'/bson.ts'")
7
+ .replace(/'mongodb'/g, "'/mongodb.ts'");
6
8
  }
7
9
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAAA,wCAIC;AAJD,SAAgB,cAAc,CAAC,IAAY;IAGzC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAAA,wCAMC;AAND,SAAgB,cAAc,CAAC,IAAY;IAGzC,OAAO,IAAI;SACR,OAAO,CAAC,SAAS,EAAE,YAAY,CAAC;SAChC,OAAO,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;AAC5C,CAAC"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "email": "compass@mongodb.com"
14
14
  },
15
15
  "homepage": "https://github.com/mongodb-js/devtools-shared",
16
- "version": "0.3.3",
16
+ "version": "0.4.0",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "https://github.com/mongodb-js/devtools-shared.git"
@@ -23,12 +23,17 @@
23
23
  ],
24
24
  "license": "Apache-2.0",
25
25
  "main": "dist/index.js",
26
+ "types": "./dist/index.d.ts",
26
27
  "exports": {
27
- "require": "./dist/index.js",
28
- "import": "./dist/.esm-wrapper.mjs",
29
- "types": "./dist/index.d.ts"
28
+ "require": {
29
+ "default": "./dist/index.js",
30
+ "types": "./dist/index.d.ts"
31
+ },
32
+ "import": {
33
+ "default": "./dist/.esm-wrapper.mjs",
34
+ "types": "./dist/index.d.ts"
35
+ }
30
36
  },
31
- "types": "./dist/index.d.ts",
32
37
  "scripts": {
33
38
  "bootstrap": "npm run compile",
34
39
  "prepublishOnly": "npm run compile",
@@ -48,7 +53,10 @@
48
53
  "extract-types": "ts-node scripts/extract-types.ts"
49
54
  },
50
55
  "dependencies": {
51
- "@mongodb-js/ts-autocomplete": "^0.3.2",
56
+ "@mongodb-js/ts-autocomplete": "^0.4.0",
57
+ "@mongosh/shell-api": "^3.16.2",
58
+ "debug": "^4.4.0",
59
+ "lodash": "^4.17.21",
52
60
  "mongodb-schema": "^12.6.2",
53
61
  "node-cache": "^5.1.2",
54
62
  "typescript": "^5.0.4"
@@ -56,9 +64,9 @@
56
64
  "devDependencies": {
57
65
  "@mongodb-js/eslint-config-devtools": "0.9.11",
58
66
  "@mongodb-js/mocha-config-devtools": "^1.0.5",
67
+ "@mongodb-js/mql-typescript": "^0.2.3",
59
68
  "@mongodb-js/prettier-config-devtools": "^1.0.2",
60
69
  "@mongodb-js/tsconfig-devtools": "^1.0.3",
61
- "@mongosh/shell-api": "^3.13.0",
62
70
  "@types/chai": "^4.2.21",
63
71
  "@types/mocha": "^9.1.1",
64
72
  "@types/node": "^22.15.30",
@@ -69,10 +77,11 @@
69
77
  "eslint": "^7.25.0",
70
78
  "gen-esm-wrapper": "^1.1.3",
71
79
  "mocha": "^8.4.0",
80
+ "mongodb": "^6.9.0",
72
81
  "nyc": "^15.1.0",
73
82
  "prettier": "^3.5.3",
74
83
  "sinon": "^9.2.3",
75
84
  "ts-node": "^10.9.2"
76
85
  },
77
- "gitHead": "98a0efbc0e9b8b96a573c58c1254b502f6370a44"
86
+ "gitHead": "8209e74a00cb7743db5e29cfc4192c0d88337e59"
78
87
  }
@@ -1,29 +0,0 @@
1
- export interface Document {
2
- [key: string]: any;
3
- }
4
- export interface Array<T> {
5
- [n: number]: T;
6
- }
7
- export interface Cursor<T> {
8
- toArray(): Array<T>;
9
- first: T;
10
- }
11
- export type Filter<T> = T;
12
- export type Project<T> = {
13
- $project: {
14
- [t in keyof T]: 1 | 0;
15
- };
16
- };
17
- export type Lookup<T, R> = {
18
- $lookup: {
19
- from: string;
20
- localField: keyof T;
21
- foreignField: keyof R;
22
- as: string;
23
- };
24
- };
25
- export type Match<T> = {
26
- $match: Filter<T>;
27
- };
28
- export type Pipeline<T> = Array<Match<T> | Project<T> | Lookup<T, any>>;
29
- //# sourceMappingURL=mql.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mql.d.ts","sourceRoot":"","sources":["../../src/fixtures/mql.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;CAChB;AAED,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAC1B,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IACvB,QAAQ,EAAE;SACP,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI;IACzB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC,CAAC;QACtB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;IACrB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=mql.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mql.js","sourceRoot":"","sources":["../../src/fixtures/mql.ts"],"names":[],"mappings":""}