@mongodb-js/connection-info 0.1.2 → 0.1.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.
@@ -3,10 +3,12 @@ export interface ConnectionInfo {
3
3
  readonly id: string;
4
4
  lastUsed?: Date;
5
5
  favorite?: ConnectionFavoriteOptions;
6
+ savedConnectionType?: 'favorite' | 'recent';
6
7
  connectionOptions: ConnectionOptions;
7
8
  }
8
9
  export interface ConnectionFavoriteOptions {
9
10
  name: string;
10
11
  color?: string;
11
12
  }
13
+ export type ConnectionStatus = 'connected' | 'disconnected' | 'connecting' | 'failed';
12
14
  //# sourceMappingURL=connection-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection-info.d.ts","sourceRoot":"","sources":["../src/connection-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,cAAc;IAI7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAKpB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAKhB,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IAKrC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,yBAAyB;IAIxC,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"connection-info.d.ts","sourceRoot":"","sources":["../src/connection-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,cAAc;IAI7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAKpB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAKhB,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IAKrC,mBAAmB,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAK5C,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,yBAAyB;IAIxC,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,cAAc,GACd,YAAY,GACZ,QAAQ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type { ConnectionSecrets } from './connection-secrets';
2
2
  export { extractSecrets, mergeSecrets } from './connection-secrets';
3
- export type { ConnectionInfo, ConnectionFavoriteOptions, } from './connection-info';
3
+ export type { ConnectionInfo, ConnectionFavoriteOptions, ConnectionStatus, } from './connection-info';
4
4
  export { getConnectionTitle } from './connection-title';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpE,YAAY,EACV,cAAc,EACd,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpE,YAAY,EACV,cAAc,EACd,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,2DAAoE;AAA3D,oHAAA,cAAc,OAAA;AAAE,kHAAA,YAAY,OAAA;AAKrC,uDAAwD;AAA/C,sHAAA,kBAAkB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,2DAAoE;AAA3D,oHAAA,cAAc,OAAA;AAAE,kHAAA,YAAY,OAAA;AAMrC,uDAAwD;AAA/C,sHAAA,kBAAkB,OAAA"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "email": "compass@mongodb.com"
14
14
  },
15
15
  "homepage": "https://github.com/mongodb-js/compass",
16
- "version": "0.1.2",
16
+ "version": "0.1.5",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "https://github.com/mongodb-js/compass.git"
@@ -50,13 +50,13 @@
50
50
  "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
51
51
  },
52
52
  "dependencies": {
53
- "bson": "^6.2.0",
53
+ "bson": "^6.3.0",
54
54
  "lodash": "^4.17.21",
55
55
  "mongodb-connection-string-url": "^2.6.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@mongodb-js/eslint-config-compass": "^1.0.15",
59
- "@mongodb-js/mocha-config-compass": "^1.3.6",
58
+ "@mongodb-js/eslint-config-compass": "^1.0.17",
59
+ "@mongodb-js/mocha-config-compass": "^1.3.7",
60
60
  "@mongodb-js/prettier-config-compass": "^1.0.1",
61
61
  "@mongodb-js/tsconfig-compass": "^1.0.3",
62
62
  "@types/chai": "^4.2.21",
@@ -68,11 +68,11 @@
68
68
  "gen-esm-wrapper": "^1.1.0",
69
69
  "mocha": "^10.2.0",
70
70
  "mongodb": "^6.3.0",
71
- "mongodb-data-service": "^22.17.3",
71
+ "mongodb-data-service": "^22.18.1",
72
72
  "nyc": "^15.1.0",
73
73
  "prettier": "^2.7.1",
74
74
  "sinon": "^17.0.1",
75
75
  "typescript": "^5.0.4"
76
76
  },
77
- "gitHead": "806203e749dea63ec3ac450f39b3687f41350681"
77
+ "gitHead": "aabc5be9049177a56c831354535e073bf77cb16f"
78
78
  }