diff --git a/package-lock.json b/package-lock.json index 63041bb6a48..b9e9aebeb3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43598,7 +43598,7 @@ }, "packages/atlas-service": { "name": "@mongodb-js/atlas-service", - "version": "0.18.1", + "version": "0.19.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", @@ -43607,7 +43607,7 @@ "@mongodb-js/compass-utils": "^0.6.4", "@mongodb-js/devtools-connect": "^2.6.3", "@mongodb-js/oidc-plugin": "^0.4.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "electron": "^29.4.2", "hadron-app-registry": "^9.1.11", "hadron-ipc": "^3.2.15", @@ -43736,37 +43736,37 @@ "devDependencies": { "@electron/rebuild": "^3.6.0", "@electron/remote": "^2.1.2", - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-aggregations": "^9.30.0", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-aggregations": "^9.31.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connection-import-export": "^0.25.0", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", - "@mongodb-js/compass-databases-collections": "^1.27.0", - "@mongodb-js/compass-explain-plan": "^6.28.0", - "@mongodb-js/compass-export-to-language": "^9.4.0", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-connection-import-export": "^0.26.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", + "@mongodb-js/compass-databases-collections": "^1.28.0", + "@mongodb-js/compass-explain-plan": "^6.29.0", + "@mongodb-js/compass-export-to-language": "^9.5.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-find-in-page": "^4.25.1", - "@mongodb-js/compass-generative-ai": "^0.11.1", - "@mongodb-js/compass-import-export": "^7.27.0", - "@mongodb-js/compass-indexes": "^5.27.0", - "@mongodb-js/compass-intercom": "^0.4.2", + "@mongodb-js/compass-generative-ai": "^0.12.0", + "@mongodb-js/compass-import-export": "^7.28.0", + "@mongodb-js/compass-indexes": "^5.28.0", + "@mongodb-js/compass-intercom": "^0.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-saved-aggregations-queries": "^1.28.0", - "@mongodb-js/compass-schema": "^6.29.0", - "@mongodb-js/compass-schema-validation": "^6.28.0", - "@mongodb-js/compass-serverstats": "^16.27.0", - "@mongodb-js/compass-settings": "^0.29.1", - "@mongodb-js/compass-shell": "^3.27.0", - "@mongodb-js/compass-sidebar": "^5.28.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-saved-aggregations-queries": "^1.29.0", + "@mongodb-js/compass-schema": "^6.30.0", + "@mongodb-js/compass-schema-validation": "^6.29.0", + "@mongodb-js/compass-serverstats": "^16.28.0", + "@mongodb-js/compass-settings": "^0.30.0", + "@mongodb-js/compass-shell": "^3.28.0", + "@mongodb-js/compass-sidebar": "^5.29.0", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-welcome": "^0.26.0", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-welcome": "^0.27.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/get-os-info": "^0.3.24", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -43783,7 +43783,7 @@ "chai": "^4.3.4", "chalk": "^4.1.2", "clean-stack": "^2.0.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "debug": "^4.3.4", "depcheck": "^1.4.1", "electron": "^29.4.2", @@ -43825,7 +43825,7 @@ }, "packages/compass-aggregations": { "name": "@mongodb-js/compass-aggregations", - "version": "9.30.0", + "version": "9.31.0", "license": "SSPL", "dependencies": { "@babel/generator": "^7.19.5", @@ -43834,23 +43834,23 @@ "@dnd-kit/core": "^6.0.7", "@dnd-kit/sortable": "^7.0.2", "@dnd-kit/utilities": "^3.2.1", - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/explain-plan-helper": "^1.1.12", "@mongodb-js/mongodb-constants": "^0.10.0", "@mongodb-js/my-queries-storage": "^0.8.1", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "hadron-document": "^8.5.3", @@ -43936,11 +43936,11 @@ }, "packages/compass-app-stores": { "name": "@mongodb-js/compass-app-stores", - "version": "7.14.0", + "version": "7.15.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/connection-info": "^0.3.0", "hadron-app-registry": "^9.1.11", @@ -44001,16 +44001,16 @@ }, "packages/compass-collection": { "name": "@mongodb-js/compass-collection", - "version": "4.27.0", + "version": "4.28.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "mongodb-collection-model": "^5.20.0", "mongodb-ns": "^2.4.2", @@ -44200,13 +44200,13 @@ }, "packages/compass-connection-import-export": { "name": "@mongodb-js/compass-connection-import-export", - "version": "0.25.0", + "version": "0.26.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/connection-storage": "^0.11.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/connection-storage": "^0.12.0", + "compass-preferences-model": "^2.21.0", "hadron-ipc": "^3.2.15", "react": "^17.0.2" }, @@ -44265,17 +44265,17 @@ }, "packages/compass-connections": { "name": "@mongodb-js/compass-connections", - "version": "1.29.0", + "version": "1.30.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb-build-info": "^1.7.2", @@ -44312,14 +44312,14 @@ }, "packages/compass-connections-navigation": { "name": "@mongodb-js/compass-connections-navigation", - "version": "1.27.0", + "version": "1.28.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "react": "^17.0.2", "react-virtualized-auto-sizer": "^1.0.6", "react-window": "^1.8.6" @@ -44406,24 +44406,24 @@ }, "packages/compass-crud": { "name": "@mongodb-js/compass-crud", - "version": "13.28.0", + "version": "13.29.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/explain-plan-helper": "^1.1.12", "@mongodb-js/my-queries-storage": "^0.8.1", "ag-grid-community": "^20.2.0", "ag-grid-react": "^20.2.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "hadron-document": "^8.5.3", @@ -44500,7 +44500,7 @@ } }, "packages/compass-e2e-tests": { - "version": "1.21.2", + "version": "1.21.3", "devDependencies": { "@electron/rebuild": "^3.6.0", "@mongodb-js/compass-test-server": "^0.1.16", @@ -44516,7 +44516,7 @@ "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "clipboardy": "^2.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "cross-spawn": "^7.0.3", "debug": "^4.3.4", "depcheck": "^1.4.1", @@ -44846,16 +44846,16 @@ }, "packages/compass-explain-plan": { "name": "@mongodb-js/compass-explain-plan", - "version": "6.28.0", + "version": "6.29.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/explain-plan-helper": "^1.1.12", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "d3": "^3.5.17", "d3-flextree": "^2.1.2", "d3-hierarchy": "^3.1.2", @@ -44924,17 +44924,17 @@ }, "packages/compass-export-to-language": { "name": "@mongodb-js/compass-export-to-language", - "version": "9.4.0", + "version": "9.5.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", "bson-transpilers": "^3.0.3", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "mongodb-ns": "^2.4.2", @@ -44988,10 +44988,10 @@ }, "packages/compass-field-store": { "name": "@mongodb-js/compass-field-store", - "version": "9.4.0", + "version": "9.5.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb-schema": "^12.2.0", @@ -45117,15 +45117,15 @@ }, "packages/compass-generative-ai": { "name": "@mongodb-js/compass-generative-ai", - "version": "0.11.1", + "version": "0.12.0", "license": "SSPL", "dependencies": { - "@mongodb-js/atlas-service": "^0.18.1", + "@mongodb-js/atlas-service": "^0.19.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-intercom": "^0.4.2", + "@mongodb-js/compass-intercom": "^0.5.0", "@mongodb-js/compass-logging": "^1.2.18", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "mongodb": "^6.6.2", "mongodb-schema": "^12.2.0", @@ -45319,18 +45319,18 @@ }, "packages/compass-import-export": { "name": "@mongodb-js/compass-import-export", - "version": "7.27.0", + "version": "7.28.0", "license": "SSPL", "dependencies": { "@electron/remote": "^2.1.2", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "debug": "^4.3.4", "electron": "^29.4.2", "hadron-app-registry": "^9.1.11", @@ -45413,21 +45413,21 @@ }, "packages/compass-indexes": { "name": "@mongodb-js/compass-indexes", - "version": "5.27.0", + "version": "5.28.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/mongodb-constants": "^0.10.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", @@ -45540,11 +45540,11 @@ }, "packages/compass-intercom": { "name": "@mongodb-js/compass-intercom", - "version": "0.4.2", + "version": "0.5.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-logging": "^1.2.18", - "compass-preferences-model": "^2.20.2" + "compass-preferences-model": "^2.21.0" }, "devDependencies": { "@mongodb-js/eslint-config-compass": "^1.1.1", @@ -45714,10 +45714,10 @@ }, "packages/compass-maybe-protect-connection-string": { "name": "@mongodb-js/compass-maybe-protect-connection-string", - "version": "0.18.2", + "version": "0.19.0", "license": "SSPL", "dependencies": { - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { @@ -45767,7 +45767,7 @@ } }, "packages/compass-preferences-model": { - "version": "2.20.2", + "version": "2.21.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-logging": "^1.2.18", @@ -45847,22 +45847,22 @@ }, "packages/compass-query-bar": { "name": "@mongodb-js/compass-query-bar", - "version": "8.29.0", + "version": "8.30.0", "license": "SSPL", "dependencies": { - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/mongodb-constants": "^0.10.0", "@mongodb-js/my-queries-storage": "^0.8.1", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb": "^6.6.2", @@ -45926,14 +45926,14 @@ }, "packages/compass-saved-aggregations-queries": { "name": "@mongodb-js/compass-saved-aggregations-queries", - "version": "1.28.0", + "version": "1.29.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/my-queries-storage": "^0.8.1", "bson": "^6.7.0", "fuse.js": "^6.5.3", @@ -46000,18 +46000,18 @@ }, "packages/compass-schema": { "name": "@mongodb-js/compass-schema", - "version": "6.29.0", + "version": "6.30.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/connection-storage": "^0.12.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "d3": "^3.5.17", "hadron-app-registry": "^9.1.11", "hadron-document": "^8.5.3", @@ -46059,19 +46059,19 @@ }, "packages/compass-schema-validation": { "name": "@mongodb-js/compass-schema-validation", - "version": "6.28.0", + "version": "6.29.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "javascript-stringify": "^2.0.1", "lodash": "^4.17.21", @@ -46133,14 +46133,14 @@ }, "packages/compass-serverstats": { "name": "@mongodb-js/compass-serverstats", - "version": "16.27.0", + "version": "16.28.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "d3": "^3.5.17", "d3-timer": "^1.0.3", "debug": "^4.3.4", @@ -46182,14 +46182,14 @@ }, "packages/compass-settings": { "name": "@mongodb-js/compass-settings", - "version": "0.29.1", + "version": "0.30.0", "license": "SSPL", "dependencies": { - "@mongodb-js/atlas-service": "^0.18.1", + "@mongodb-js/atlas-service": "^0.19.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "hadron-ipc": "^3.2.15", "react": "^17.0.2", @@ -46252,18 +46252,18 @@ }, "packages/compass-shell": { "name": "@mongodb-js/compass-shell", - "version": "3.27.0", + "version": "3.28.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-user-data": "^0.1.21", "@mongodb-js/compass-utils": "^0.6.4", "@mongosh/browser-repl": "^2.2.6", "@mongosh/logging": "^2.2.6", "@mongosh/node-runtime-worker-thread": "^2.2.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "prop-types": "^15.7.2", "react": "^17.0.2", @@ -46271,7 +46271,7 @@ "redux": "^4.2.1" }, "devDependencies": { - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -46318,19 +46318,19 @@ }, "packages/compass-sidebar": { "name": "@mongodb-js/compass-sidebar", - "version": "5.28.0", + "version": "5.29.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-connections-navigation": "^1.27.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-connections-navigation": "^1.28.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb": "^6.6.2", @@ -46342,7 +46342,7 @@ "redux-thunk": "^2.4.2" }, "devDependencies": { - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -46583,29 +46583,29 @@ }, "packages/compass-web": { "name": "@mongodb-js/compass-web", - "version": "0.4.2", + "version": "0.4.3", "license": "SSPL", "devDependencies": { - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-aggregations": "^9.30.0", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-aggregations": "^9.31.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", - "@mongodb-js/compass-databases-collections": "^1.27.0", - "@mongodb-js/compass-explain-plan": "^6.28.0", - "@mongodb-js/compass-export-to-language": "^9.4.0", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", - "@mongodb-js/compass-indexes": "^5.27.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", + "@mongodb-js/compass-databases-collections": "^1.28.0", + "@mongodb-js/compass-explain-plan": "^6.29.0", + "@mongodb-js/compass-export-to-language": "^9.5.0", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", + "@mongodb-js/compass-indexes": "^5.28.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-schema": "^6.29.0", - "@mongodb-js/compass-schema-validation": "^6.28.0", - "@mongodb-js/compass-sidebar": "^5.28.0", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-schema": "^6.30.0", + "@mongodb-js/compass-schema-validation": "^6.29.0", + "@mongodb-js/compass-sidebar": "^5.29.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -46624,7 +46624,7 @@ "bson": "^6.2.0", "buffer": "^6.0.3", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "crypto-browserify": "^3.12.0", "debug": "^4.3.4", "depcheck": "^1.4.1", @@ -46884,13 +46884,13 @@ }, "packages/compass-welcome": { "name": "@mongodb-js/compass-welcome", - "version": "0.26.0", + "version": "0.27.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/compass-workspaces": "^0.10.0", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "react": "^17.0.2", "redux": "^4.2.1", @@ -46951,12 +46951,12 @@ }, "packages/compass-workspaces": { "name": "@mongodb-js/compass-workspaces", - "version": "0.9.0", + "version": "0.10.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "bson": "^6.7.0", "hadron-app-registry": "^9.1.11", @@ -47153,13 +47153,13 @@ }, "packages/connection-form": { "name": "@mongodb-js/connection-form", - "version": "1.27.0", + "version": "1.28.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/connection-info": "^0.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "lodash": "^4.17.21", "mongodb": "^6.6.2", @@ -47360,7 +47360,7 @@ }, "packages/connection-storage": { "name": "@mongodb-js/connection-storage", - "version": "0.11.0", + "version": "0.12.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-logging": "^1.2.18", @@ -47368,7 +47368,7 @@ "@mongodb-js/compass-utils": "^0.6.4", "@mongodb-js/connection-info": "^0.3.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "electron": "^29.4.2", "hadron-app-registry": "^9.1.11", "hadron-ipc": "^3.2.15", @@ -47560,19 +47560,19 @@ }, "packages/databases-collections": { "name": "@mongodb-js/compass-databases-collections", - "version": "1.27.0", + "version": "1.28.0", "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/databases-collections-list": "^1.26.1", + "@mongodb-js/databases-collections-list": "^1.27.0", "@mongodb-js/my-queries-storage": "^0.8.1", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb-collection-model": "^5.20.0", @@ -47608,12 +47608,12 @@ }, "packages/databases-collections-list": { "name": "@mongodb-js/databases-collections-list", - "version": "1.26.1", + "version": "1.27.0", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "react": "^17.0.2" }, "devDependencies": { @@ -55016,7 +55016,7 @@ "@types/mocha": "^9.0.0", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron": "^29.4.2", "eslint": "^7.25.0", @@ -55074,18 +55074,18 @@ "@dnd-kit/core": "^6.0.7", "@dnd-kit/sortable": "^7.0.2", "@dnd-kit/utilities": "^3.2.1", - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/explain-plan-helper": "^1.1.12", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -55100,7 +55100,7 @@ "@types/semver": "^7.3.9", "bson": "^6.7.0", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "ejson-shell-parser": "^2.0.1", "electron-mocha": "^12.2.0", @@ -55165,7 +55165,7 @@ "version": "file:packages/compass-app-stores", "requires": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/connection-info": "^0.3.0", "@mongodb-js/eslint-config-compass": "^1.1.1", @@ -55220,11 +55220,11 @@ "@mongodb-js/compass-collection": { "version": "file:packages/compass-collection", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -55240,7 +55240,7 @@ "@types/react-dom": "^17.0.10", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron-mocha": "^12.2.0", "eslint": "^7.25.0", @@ -55401,8 +55401,8 @@ "version": "file:packages/compass-connection-import-export", "requires": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -55416,7 +55416,7 @@ "@types/react-dom": "^17.0.10", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "eslint": "^7.25.0", "gen-esm-wrapper": "^1.1.0", @@ -55460,10 +55460,10 @@ "requires": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -55480,7 +55480,7 @@ "@types/sinon-chai": "^3.2.5", "bson": "^6.7.0", "chai": "^4.3.4", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron-mocha": "^12.2.0", "eslint": "^7.25.0", @@ -55526,8 +55526,8 @@ "version": "file:packages/compass-connections-navigation", "requires": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -55544,7 +55544,7 @@ "@types/react-window": "^1.8.5", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.4", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -55585,16 +55585,16 @@ "@mongodb-js/compass-crud": { "version": "file:packages/compass-crud", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", + "@mongodb-js/compass-query-bar": "^8.30.0", "@mongodb-js/compass-test-server": "^0.1.16", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/explain-plan-helper": "^1.1.12", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -55609,7 +55609,7 @@ "bson": "^6.7.0", "chai": "^4.1.2", "chai-as-promised": "^7.1.1", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "ejson-shell-parser": "^2.0.1", "electron": "^29.4.2", @@ -55640,14 +55640,14 @@ "@mongodb-js/compass-databases-collections": { "version": "file:packages/databases-collections", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/databases-collections-list": "^1.26.1", + "@mongodb-js/databases-collections-list": "^1.27.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/my-queries-storage": "^0.8.1", @@ -55657,7 +55657,7 @@ "@testing-library/user-event": "^13.5.0", "bson": "^6.7.0", "chai": "^4.2.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "enzyme": "^3.11.0", "eslint": "^7.25.0", @@ -55764,9 +55764,9 @@ "@mongodb-js/compass-explain-plan": { "version": "file:packages/compass-explain-plan", "requires": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/eslint-config-compass": "^1.1.1", @@ -55779,7 +55779,7 @@ "@types/d3-flextree": "^2.1.0", "@types/d3-hierarchy": "^3.1.2", "chai": "^4.2.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "d3": "^3.5.17", "d3-flextree": "^2.1.2", "d3-hierarchy": "^3.1.2", @@ -55833,12 +55833,12 @@ "@mongodb-js/compass-export-to-language": { "version": "file:packages/compass-export-to-language", "requires": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -55847,7 +55847,7 @@ "@testing-library/user-event": "^13.5.0", "bson-transpilers": "^3.0.3", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "ejson-shell-parser": "^2.0.1", "eslint": "^7.25.0", @@ -55890,7 +55890,7 @@ "@mongodb-js/compass-field-store": { "version": "file:packages/compass-field-store", "requires": { - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -56003,9 +56003,9 @@ "@mongodb-js/compass-generative-ai": { "version": "file:packages/compass-generative-ai", "requires": { - "@mongodb-js/atlas-service": "^0.18.1", + "@mongodb-js/atlas-service": "^0.19.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-intercom": "^0.4.2", + "@mongodb-js/compass-intercom": "^0.5.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -56023,7 +56023,7 @@ "@types/sinon-chai": "^3.2.5", "bson": "^6.7.0", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "decomment": "^0.9.5", "depcheck": "^1.4.1", "digest-fetch": "^2.0.3", @@ -56105,12 +56105,12 @@ "requires": { "@electron/remote": "^2.1.2", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-test-server": "^0.1.16", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -56130,7 +56130,7 @@ "bson": "^6.7.0", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "debug": "^4.3.4", "depcheck": "^1.4.1", "electron": "^29.4.2", @@ -56188,15 +56188,15 @@ "@mongodb-js/compass-indexes": { "version": "file:packages/compass-indexes", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/mongodb-constants": "^0.10.0", @@ -56206,7 +56206,7 @@ "@testing-library/user-event": "^13.5.0", "bson": "^6.7.0", "chai": "^4.2.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "ejson-shell-parser": "^2.0.1", "electron": "^29.4.2", @@ -56272,7 +56272,7 @@ "@types/mocha": "^9.0.0", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "eslint": "^7.25.0", "gen-esm-wrapper": "^1.1.0", @@ -56431,7 +56431,7 @@ "@types/mocha": "^9.0.0", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "eslint": "^7.25.0", "gen-esm-wrapper": "^1.1.0", @@ -56470,14 +56470,14 @@ "@mongodb-js/compass-query-bar": { "version": "file:packages/compass-query-bar", "requires": { - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -56490,7 +56490,7 @@ "@testing-library/user-event": "^13.5.0", "bson": "^6.7.0", "chai": "^4.2.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron": "^29.4.2", "electron-mocha": "^12.2.0", @@ -56540,11 +56540,11 @@ "@mongodb-js/compass-saved-aggregations-queries": { "version": "file:packages/compass-saved-aggregations-queries", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/my-queries-storage": "^0.8.1", @@ -56607,13 +56607,13 @@ "@mongodb-js/compass-schema": { "version": "file:packages/compass-schema", "requires": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/my-queries-storage": "^0.8.1", @@ -56629,7 +56629,7 @@ "@types/react-dom": "^17.0.10", "bson": "^6.7.0", "chai": "^4.3.4", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "d3": "^3.5.17", "depcheck": "^1.4.1", "electron-mocha": "^12.2.0", @@ -56684,13 +56684,13 @@ "@mongodb-js/compass-schema-validation": { "version": "file:packages/compass-schema-validation", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -56698,7 +56698,7 @@ "@mongodb-js/tsconfig-compass": "^1.0.4", "bson": "^6.7.0", "chai": "^4.2.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron": "^29.4.2", "electron-mocha": "^12.2.0", @@ -56928,11 +56928,11 @@ "@mongodb-js/compass-serverstats": { "version": "file:packages/compass-serverstats", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -56975,9 +56975,9 @@ "@mongodb-js/compass-settings": { "version": "file:packages/compass-settings", "requires": { - "@mongodb-js/atlas-service": "^0.18.1", + "@mongodb-js/atlas-service": "^0.19.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -56992,7 +56992,7 @@ "@types/react-dom": "^17.0.10", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron-mocha": "^12.2.0", "eslint": "^7.25.0", @@ -57039,11 +57039,11 @@ "version": "file:packages/compass-shell", "requires": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-user-data": "^0.1.21", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -57052,7 +57052,7 @@ "@mongosh/logging": "^2.2.6", "@mongosh/node-runtime-worker-thread": "^2.2.6", "chai": "^4.2.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron": "^29.4.2", "electron-mocha": "^12.2.0", @@ -57095,16 +57095,16 @@ "@mongodb-js/compass-sidebar": { "version": "file:packages/compass-sidebar", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-connections-navigation": "^1.27.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-connections-navigation": "^1.28.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -57118,7 +57118,7 @@ "@types/react-dom": "^17.0.10", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron-mocha": "^12.2.0", "eslint": "^7.25.0", @@ -57319,26 +57319,26 @@ "@mongodb-js/compass-web": { "version": "file:packages/compass-web", "requires": { - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-aggregations": "^9.30.0", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-aggregations": "^9.31.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", - "@mongodb-js/compass-databases-collections": "^1.27.0", - "@mongodb-js/compass-explain-plan": "^6.28.0", - "@mongodb-js/compass-export-to-language": "^9.4.0", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", - "@mongodb-js/compass-indexes": "^5.27.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", + "@mongodb-js/compass-databases-collections": "^1.28.0", + "@mongodb-js/compass-explain-plan": "^6.29.0", + "@mongodb-js/compass-export-to-language": "^9.5.0", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", + "@mongodb-js/compass-indexes": "^5.28.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-schema": "^6.29.0", - "@mongodb-js/compass-schema-validation": "^6.28.0", - "@mongodb-js/compass-sidebar": "^5.28.0", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-schema": "^6.30.0", + "@mongodb-js/compass-schema-validation": "^6.29.0", + "@mongodb-js/compass-sidebar": "^5.29.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -57357,7 +57357,7 @@ "bson": "^6.2.0", "buffer": "^6.0.3", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "crypto-browserify": "^3.12.0", "debug": "^4.3.4", "depcheck": "^1.4.1", @@ -57573,7 +57573,7 @@ "requires": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -57587,7 +57587,7 @@ "@types/react-dom": "^17.0.10", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron-mocha": "^12.2.0", "eslint": "^7.25.0", @@ -57631,9 +57631,9 @@ "@mongodb-js/compass-workspaces": { "version": "file:packages/compass-workspaces", "requires": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -57807,7 +57807,7 @@ "@types/sinon-chai": "^3.2.5", "bson": "^6.7.0", "chai": "^4.3.4", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "ejson-shell-parser": "^2.0.1", "electron-mocha": "^12.2.0", @@ -57999,7 +57999,7 @@ "@types/sinon-chai": "^3.2.5", "bson": "^6.7.0", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "electron": "^29.4.2", "eslint": "^7.25.0", @@ -58056,7 +58056,7 @@ "@types/react-dom": "^17.0.10", "@types/sinon-chai": "^3.2.5", "chai": "^4.3.4", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "depcheck": "^1.4.1", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -67001,7 +67001,7 @@ "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "clipboardy": "^2.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "cross-spawn": "^7.0.3", "debug": "^4.3.4", "depcheck": "^1.4.1", @@ -79147,37 +79147,37 @@ "requires": { "@electron/rebuild": "^3.6.0", "@electron/remote": "^2.1.2", - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-aggregations": "^9.30.0", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-aggregations": "^9.31.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connection-import-export": "^0.25.0", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", - "@mongodb-js/compass-databases-collections": "^1.27.0", - "@mongodb-js/compass-explain-plan": "^6.28.0", - "@mongodb-js/compass-export-to-language": "^9.4.0", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-connection-import-export": "^0.26.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", + "@mongodb-js/compass-databases-collections": "^1.28.0", + "@mongodb-js/compass-explain-plan": "^6.29.0", + "@mongodb-js/compass-export-to-language": "^9.5.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-find-in-page": "^4.25.1", - "@mongodb-js/compass-generative-ai": "^0.11.1", - "@mongodb-js/compass-import-export": "^7.27.0", - "@mongodb-js/compass-indexes": "^5.27.0", - "@mongodb-js/compass-intercom": "^0.4.2", + "@mongodb-js/compass-generative-ai": "^0.12.0", + "@mongodb-js/compass-import-export": "^7.28.0", + "@mongodb-js/compass-indexes": "^5.28.0", + "@mongodb-js/compass-intercom": "^0.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-saved-aggregations-queries": "^1.28.0", - "@mongodb-js/compass-schema": "^6.29.0", - "@mongodb-js/compass-schema-validation": "^6.28.0", - "@mongodb-js/compass-serverstats": "^16.27.0", - "@mongodb-js/compass-settings": "^0.29.1", - "@mongodb-js/compass-shell": "^3.27.0", - "@mongodb-js/compass-sidebar": "^5.28.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-saved-aggregations-queries": "^1.29.0", + "@mongodb-js/compass-schema": "^6.30.0", + "@mongodb-js/compass-schema-validation": "^6.29.0", + "@mongodb-js/compass-serverstats": "^16.28.0", + "@mongodb-js/compass-settings": "^0.30.0", + "@mongodb-js/compass-shell": "^3.28.0", + "@mongodb-js/compass-sidebar": "^5.29.0", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-welcome": "^0.26.0", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-welcome": "^0.27.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/get-os-info": "^0.3.24", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -79196,7 +79196,7 @@ "chalk": "^4.1.2", "clean-stack": "^2.0.0", "clipboard": "^2.0.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "debug": "^4.3.4", "depcheck": "^1.4.1", "electron": "^29.4.2", diff --git a/packages/atlas-service/package.json b/packages/atlas-service/package.json index 7bb5ffdf039..15c6df47060 100644 --- a/packages/atlas-service/package.json +++ b/packages/atlas-service/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.18.1", + "version": "0.19.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -80,7 +80,7 @@ "@mongodb-js/devtools-connect": "^2.6.3", "@mongodb-js/oidc-plugin": "^0.4.0", "hadron-app-registry": "^9.1.11", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "electron": "^29.4.2", "hadron-ipc": "^3.2.15", "lodash": "^4.17.21", diff --git a/packages/atlas-service/src/atlas-service.spec.ts b/packages/atlas-service/src/atlas-service.spec.ts index 7dd64c16b31..8afff383e6d 100644 --- a/packages/atlas-service/src/atlas-service.spec.ts +++ b/packages/atlas-service/src/atlas-service.spec.ts @@ -7,8 +7,9 @@ import { createNoopLoggerAndTelemetry } from '@mongodb-js/compass-logging/provid import { CompassAtlasAuthService } from './compass-atlas-auth-service'; const ATLAS_CONFIG = { - atlasApiBaseUrl: 'http://example.com/api/private', - atlasApiUnauthBaseUrl: 'http://api.example.com', + wsBaseUrl: 'ws://example.com', + cloudBaseUrl: 'ws://example.com/cloud', + atlasApiBaseUrl: 'http://example.com/api', atlasLogin: { clientId: 'some-client-id', issuer: 'http://example.com/oauth2/default', diff --git a/packages/atlas-service/src/atlas-service.ts b/packages/atlas-service/src/atlas-service.ts index 1709c2d08de..8153de39edd 100644 --- a/packages/atlas-service/src/atlas-service.ts +++ b/packages/atlas-service/src/atlas-service.ts @@ -23,13 +23,20 @@ export class AtlasService { ) { this.config = getAtlasConfig(preferences); } - privateUnAuthEndpoint(path: string): string { - return `${this.config.atlasApiUnauthBaseUrl}/${path}`; + adminApiEndpoint(path?: string, requestId?: string): string { + const uri = encodeURI( + `${this.config.atlasApiBaseUrl}${path ? `/${path}` : ''}` + ); + const query = requestId + ? `?request_id=${encodeURIComponent(requestId)}` + : ''; + return `${uri}${query}`; + } + cloudEndpoint(path?: string): string { + return encodeURI(`${this.config.cloudBaseUrl}${path ? `/${path}` : ''}`); } - privateAtlasEndpoint(path: string, requestId?: string): string { - return `${this.config.atlasApiBaseUrl}/${path}${ - requestId ? `?request_id=${requestId}` : '' - }`; + driverProxyEndpoint(path?: string): string { + return encodeURI(`${this.config.wsBaseUrl}${path ? `/${path}` : ''}`); } async fetch(url: RequestInfo, init?: RequestInit): Promise { throwIfNetworkTrafficDisabled(this.preferences); @@ -75,7 +82,6 @@ export class AtlasService { throw err; } } - async authenticatedFetch( url: RequestInfo, init?: RequestInit diff --git a/packages/atlas-service/src/main.spec.ts b/packages/atlas-service/src/main.spec.ts index df2e1e91e3b..ee7c77f525b 100644 --- a/packages/atlas-service/src/main.spec.ts +++ b/packages/atlas-service/src/main.spec.ts @@ -53,8 +53,9 @@ describe('CompassAuthServiceMain', function () { }; const defaultConfig = { - atlasApiBaseUrl: 'http://example.com', - atlasApiUnauthBaseUrl: 'http://example.com/unauth', + wsBaseUrl: 'ws://example.com', + cloudBaseUrl: 'ws://example.com/cloud', + atlasApiBaseUrl: 'http://example.com/api', atlasLogin: { issuer: 'http://example.com', clientId: '1234abcd', diff --git a/packages/atlas-service/src/util.ts b/packages/atlas-service/src/util.ts index 8fa6cd53f1b..fe93939d8db 100644 --- a/packages/atlas-service/src/util.ts +++ b/packages/atlas-service/src/util.ts @@ -78,63 +78,95 @@ export async function throwIfNotOk( } export type AtlasServiceConfig = { + /** + * MongoDB Driver WebSocket proxy base url + */ + wsBaseUrl: string; + /** + * Cloud UI backend base url + */ + cloudBaseUrl: string; + /** + * Atlas admin API base url + */ atlasApiBaseUrl: string; - atlasApiUnauthBaseUrl: string; + /** + * Atlas OIDC config + */ atlasLogin: { clientId: string; issuer: string; }; + /** + * Atlas Account Portal UI base url + */ authPortalUrl: string; }; /** * Atlas service backend configurations. - * - compass-dev: locally running compass kanopy backend (localhost) - * - compass: compass kanopy backend (compass.mongodb.com) - * - atlas-local: local mms backend (localhost) - * - atlas-dev: dev mms backend (cloud-dev.mongodb.com) - * - atlas: mms backend (cloud.mongodb.com) + * - atlas-local: local mms backend (localhost) + * - atlas-dev: dev mms backend (cloud-dev.mongodb.com) + * - atlas: mms backend (cloud.mongodb.com) + * - web-sandbox-atlas-local: local mms backend + proxy (localhost / proxy prefix) + * - web-sandbox-atlas-dev: dev mms backend + proxy (cloud-dev.mongodb.com / proxy prefix) + * - web-sandbox-atlas: mms backend + proxy (cloud.mongodb.com / proxy prefix) */ const config = { - 'compass-dev': { - atlasApiBaseUrl: 'http://localhost:8080', - atlasApiUnauthBaseUrl: 'http://localhost:8080', + 'atlas-local': { + wsBaseUrl: 'ws://localhost:61001/ws', + cloudBaseUrl: '', + atlasApiBaseUrl: 'http://localhost:8080/api/private', atlasLogin: { - clientId: '0oajzdcznmE8GEyio297', - issuer: 'https://auth.mongodb.com/oauth2/default', + clientId: '0oaq1le5jlzxCuTbu357', + issuer: 'https://auth-qa.mongodb.com/oauth2/default', }, - authPortalUrl: 'https://account.mongodb.com/account/login', + authPortalUrl: 'https://account-dev.mongodb.com/account/login', }, - compass: { - atlasApiBaseUrl: 'https://compass.mongodb.com', - atlasApiUnauthBaseUrl: 'https://compass.mongodb.com', + 'atlas-dev': { + wsBaseUrl: '', + cloudBaseUrl: '', + atlasApiBaseUrl: 'https://cloud-dev.mongodb.com/api/private', + atlasLogin: { + clientId: '0oaq1le5jlzxCuTbu357', + issuer: 'https://auth-qa.mongodb.com/oauth2/default', + }, + authPortalUrl: 'https://account-dev.mongodb.com/account/login', + }, + atlas: { + wsBaseUrl: '', + cloudBaseUrl: '', + atlasApiBaseUrl: 'https://cloud.mongodb.com/api/private', atlasLogin: { clientId: '0oajzdcznmE8GEyio297', issuer: 'https://auth.mongodb.com/oauth2/default', }, authPortalUrl: 'https://account.mongodb.com/account/login', }, - 'atlas-local': { + 'web-sandbox-atlas-local': { + wsBaseUrl: 'ws://localhost:1337', + cloudBaseUrl: '/cloud-mongodb-com', atlasApiBaseUrl: 'http://localhost:8080/api/private', - atlasApiUnauthBaseUrl: 'http://localhost:8080/api/private/unauth', atlasLogin: { clientId: '0oaq1le5jlzxCuTbu357', issuer: 'https://auth-qa.mongodb.com/oauth2/default', }, authPortalUrl: 'https://account-dev.mongodb.com/account/login', }, - 'atlas-dev': { + 'web-sandbox-atlas-dev': { + wsBaseUrl: 'ws://localhost:1337', + cloudBaseUrl: '/cloud-mongodb-com', atlasApiBaseUrl: 'https://cloud-dev.mongodb.com/api/private', - atlasApiUnauthBaseUrl: 'https://cloud-dev.mongodb.com/api/private/unauth', atlasLogin: { clientId: '0oaq1le5jlzxCuTbu357', issuer: 'https://auth-qa.mongodb.com/oauth2/default', }, authPortalUrl: 'https://account-dev.mongodb.com/account/login', }, - atlas: { + 'web-sandbox-atlas': { + wsBaseUrl: 'ws://localhost:1337', + cloudBaseUrl: '/cloud-mongodb-com', atlasApiBaseUrl: 'https://cloud.mongodb.com/api/private', - atlasApiUnauthBaseUrl: 'https://cloud.mongodb.com/api/private/unauth', atlasLogin: { clientId: '0oajzdcznmE8GEyio297', issuer: 'https://auth.mongodb.com/oauth2/default', @@ -148,9 +180,7 @@ export function getAtlasConfig( ) { const { atlasServiceBackendPreset } = preferences.getPreferences(); const envConfig = { - atlasApiBaseUrl: process.env.COMPASS_ATLAS_SERVICE_BASE_URL_OVERRIDE, - atlasApiUnauthBaseUrl: - process.env.COMPASS_ATLAS_SERVICE_UNAUTH_BASE_URL_OVERRIDE, + atlasApiBaseUrl: process.env.COMPASS_ATLAS_SERVICE_UNAUTH_BASE_URL_OVERRIDE, atlasLogin: { clientId: process.env.COMPASS_CLIENT_ID_OVERRIDE, issuer: process.env.COMPASS_OIDC_ISSUER_OVERRIDE, @@ -160,7 +190,7 @@ export function getAtlasConfig( return defaultsDeep( envConfig, config[atlasServiceBackendPreset] - ) as typeof envConfig & typeof config[keyof typeof config]; + ) as AtlasServiceConfig; } export function getTrackingUserInfo(userInfo: AtlasUserInfo) { diff --git a/packages/compass-aggregations/package.json b/packages/compass-aggregations/package.json index 9eb3e78dff3..2603b6d97c8 100644 --- a/packages/compass-aggregations/package.json +++ b/packages/compass-aggregations/package.json @@ -2,7 +2,7 @@ "name": "@mongodb-js/compass-aggregations", "description": "Compass Aggregation Pipeline Builder", "private": true, - "version": "9.30.0", + "version": "9.31.0", "main": "dist/index.js", "compass:main": "src/index.ts", "types": "dist/index.d.ts", @@ -61,23 +61,23 @@ "@dnd-kit/core": "^6.0.7", "@dnd-kit/sortable": "^7.0.2", "@dnd-kit/utilities": "^3.2.1", - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/explain-plan-helper": "^1.1.12", "@mongodb-js/mongodb-constants": "^0.10.0", "@mongodb-js/my-queries-storage": "^0.8.1", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "hadron-document": "^8.5.3", diff --git a/packages/compass-app-stores/package.json b/packages/compass-app-stores/package.json index 010850e42e2..b977b1036bf 100644 --- a/packages/compass-app-stores/package.json +++ b/packages/compass-app-stores/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "7.14.0", + "version": "7.15.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -75,7 +75,7 @@ }, "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/connection-info": "^0.3.0", "hadron-app-registry": "^9.1.11", diff --git a/packages/compass-collection/package.json b/packages/compass-collection/package.json index a050b362cb6..b079b2f6654 100644 --- a/packages/compass-collection/package.json +++ b/packages/compass-collection/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "4.27.0", + "version": "4.28.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -48,13 +48,13 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/connection-info": "^0.3.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/compass-workspaces": "^0.10.0", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "mongodb-collection-model": "^5.20.0", "mongodb-ns": "^2.4.2", diff --git a/packages/compass-connection-import-export/package.json b/packages/compass-connection-import-export/package.json index 8d9ada3996e..9c99125a310 100644 --- a/packages/compass-connection-import-export/package.json +++ b/packages/compass-connection-import-export/package.json @@ -14,7 +14,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.25.0", + "version": "0.26.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -52,9 +52,9 @@ }, "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/connection-storage": "^0.11.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/connection-storage": "^0.12.0", + "compass-preferences-model": "^2.21.0", "hadron-ipc": "^3.2.15", "react": "^17.0.2" }, diff --git a/packages/compass-connections-navigation/package.json b/packages/compass-connections-navigation/package.json index 788ea478f13..dcb29bd4cc8 100644 --- a/packages/compass-connections-navigation/package.json +++ b/packages/compass-connections-navigation/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "1.27.0", + "version": "1.28.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-form": "^1.27.0", - "@mongodb-js/compass-workspaces": "^0.9.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/connection-form": "^1.28.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "compass-preferences-model": "^2.21.0", "react": "^17.0.2", "react-virtualized-auto-sizer": "^1.0.6", "react-window": "^1.8.6" diff --git a/packages/compass-connections/package.json b/packages/compass-connections/package.json index 07f36c91931..339c5999a05 100644 --- a/packages/compass-connections/package.json +++ b/packages/compass-connections/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "1.29.0", + "version": "1.30.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -54,11 +54,11 @@ "@mongodb-js/compass-components": "^1.25.1", "bson": "^6.7.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/connection-storage": "^0.12.0", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb-build-info": "^1.7.2", diff --git a/packages/compass-crud/package.json b/packages/compass-crud/package.json index 60ac16a495f..5f2d167abc4 100644 --- a/packages/compass-crud/package.json +++ b/packages/compass-crud/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "13.28.0", + "version": "13.29.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -71,21 +71,21 @@ "typescript": "^5.0.4" }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/explain-plan-helper": "^1.1.12", "@mongodb-js/my-queries-storage": "^0.8.1", "ag-grid-community": "^20.2.0", "ag-grid-react": "^20.2.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "hadron-document": "^8.5.3", diff --git a/packages/compass-e2e-tests/package.json b/packages/compass-e2e-tests/package.json index a8b2b324326..da177252f81 100644 --- a/packages/compass-e2e-tests/package.json +++ b/packages/compass-e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "compass-e2e-tests", - "version": "1.21.2", + "version": "1.21.3", "private": true, "description": "E2E test suite for Compass app that follows smoke tests / feature testing matrix", "scripts": { @@ -43,7 +43,7 @@ "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "clipboardy": "^2.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "cross-spawn": "^7.0.3", "debug": "^4.3.4", "depcheck": "^1.4.1", diff --git a/packages/compass-explain-plan/package.json b/packages/compass-explain-plan/package.json index 7712eace40b..5cfcebbaa0b 100644 --- a/packages/compass-explain-plan/package.json +++ b/packages/compass-explain-plan/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "6.28.0", + "version": "6.29.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -69,13 +69,13 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/explain-plan-helper": "^1.1.12", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "d3": "^3.5.17", "d3-flextree": "^2.1.2", "d3-hierarchy": "^3.1.2", diff --git a/packages/compass-export-to-language/package.json b/packages/compass-export-to-language/package.json index d272f1f847b..9dd9d43e749 100644 --- a/packages/compass-export-to-language/package.json +++ b/packages/compass-export-to-language/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "9.4.0", + "version": "9.5.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -48,14 +48,14 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", "bson-transpilers": "^3.0.3", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "mongodb-ns": "^2.4.2", diff --git a/packages/compass-field-store/package.json b/packages/compass-field-store/package.json index b5a51759866..2636b9b686a 100644 --- a/packages/compass-field-store/package.json +++ b/packages/compass-field-store/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "9.4.0", + "version": "9.5.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -70,7 +70,7 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb-schema": "^12.2.0", diff --git a/packages/compass-generative-ai/package.json b/packages/compass-generative-ai/package.json index 0db0e1e5810..a63a7b7d7a3 100644 --- a/packages/compass-generative-ai/package.json +++ b/packages/compass-generative-ai/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.11.1", + "version": "0.12.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -53,12 +53,12 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/atlas-service": "^0.18.1", + "@mongodb-js/atlas-service": "^0.19.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-intercom": "^0.4.2", + "@mongodb-js/compass-intercom": "^0.5.0", "@mongodb-js/compass-logging": "^1.2.18", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "mongodb": "^6.6.2", "mongodb-schema": "^12.2.0", diff --git a/packages/compass-generative-ai/src/atlas-ai-service.spec.ts b/packages/compass-generative-ai/src/atlas-ai-service.spec.ts index 7d03f3164f4..59454aae7a2 100644 --- a/packages/compass-generative-ai/src/atlas-ai-service.spec.ts +++ b/packages/compass-generative-ai/src/atlas-ai-service.spec.ts @@ -43,8 +43,7 @@ class MockAtlasAuthService extends AtlasAuthService { class MockAtlasService { getCurrentUser = () => Promise.resolve(ATLAS_USER); - privateUnAuthEndpoint = (url: string) => [BASE_URL, url].join('/'); - privateAtlasEndpoint = (url: string, requestId?: string) => + adminApiEndpoint = (url: string, requestId?: string) => `${[BASE_URL, url].join('/')}${ requestId ? `?request_id=${requestId}` : '' }`; diff --git a/packages/compass-generative-ai/src/atlas-ai-service.ts b/packages/compass-generative-ai/src/atlas-ai-service.ts index ada997b7514..554cc6c6461 100644 --- a/packages/compass-generative-ai/src/atlas-ai-service.ts +++ b/packages/compass-generative-ai/src/atlas-ai-service.ts @@ -26,7 +26,7 @@ type GenerativeAiInput = { // want to ensure we're not uploading massive documents (some folks have documents > 1mb). const AI_MAX_REQUEST_SIZE = 100000; const AI_MIN_SAMPLE_DOCUMENTS = 1; -const USER_AI_URI = (userId: string) => `ai/api/v1/hello/${userId}`; +const USER_AI_URI = (userId: string) => `unauth/ai/api/v1/hello/${userId}`; const AGGREGATION_URI = 'ai/api/v1/mql-aggregation'; const QUERY_URI = 'ai/api/v1/mql-query'; @@ -227,7 +227,7 @@ export class AtlasAiService { private async getAIFeatureEnablement(): Promise { const userId = this.preferences.getPreferencesUser().id; - const url = this.atlasService.privateUnAuthEndpoint(USER_AI_URI(userId)); + const url = this.atlasService.adminApiEndpoint(USER_AI_URI(userId)); const res = await this.atlasService.fetch(url, { headers: { Accept: 'application/json', @@ -282,7 +282,7 @@ export class AtlasAiService { const { signal, requestId, ...rest } = input; const msgBody = buildQueryOrAggregationMessageBody(rest); - const url = this.atlasService.privateAtlasEndpoint(uri, requestId); + const url = this.atlasService.adminApiEndpoint(uri, requestId); this.logger.log.info( this.logger.mongoLogId(1_001_000_308), diff --git a/packages/compass-import-export/package.json b/packages/compass-import-export/package.json index 46951a2b9cb..69611f02bfb 100644 --- a/packages/compass-import-export/package.json +++ b/packages/compass-import-export/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "7.27.0", + "version": "7.28.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -50,13 +50,13 @@ "dependencies": { "@electron/remote": "^2.1.2", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "debug": "^4.3.4", "electron": "^29.4.2", "hadron-app-registry": "^9.1.11", diff --git a/packages/compass-indexes/package.json b/packages/compass-indexes/package.json index ea32461053d..d2ac49c3702 100644 --- a/packages/compass-indexes/package.json +++ b/packages/compass-indexes/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "5.27.0", + "version": "5.28.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -67,18 +67,18 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/mongodb-constants": "^0.10.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", diff --git a/packages/compass-intercom/package.json b/packages/compass-intercom/package.json index f368d572494..ee6ffd7db49 100644 --- a/packages/compass-intercom/package.json +++ b/packages/compass-intercom/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.4.2", + "version": "0.5.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -67,7 +67,7 @@ "typescript": "^5.0.4" }, "dependencies": { - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "@mongodb-js/compass-logging": "^1.2.18" } } diff --git a/packages/compass-maybe-protect-connection-string/package.json b/packages/compass-maybe-protect-connection-string/package.json index ffb9261c823..e276d873972 100644 --- a/packages/compass-maybe-protect-connection-string/package.json +++ b/packages/compass-maybe-protect-connection-string/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.18.2", + "version": "0.19.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -50,7 +50,7 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { diff --git a/packages/compass-preferences-model/package.json b/packages/compass-preferences-model/package.json index 331989b35c6..a28aa969a3f 100644 --- a/packages/compass-preferences-model/package.json +++ b/packages/compass-preferences-model/package.json @@ -2,7 +2,7 @@ "name": "compass-preferences-model", "description": "Compass preferences model", "author": "Lucas Hrabovsky ", - "version": "2.20.2", + "version": "2.21.0", "bugs": { "url": "https://jira.mongodb.org/projects/COMPASS/issues", "email": "compass@mongodb.com" diff --git a/packages/compass-preferences-model/src/preferences-schema.ts b/packages/compass-preferences-model/src/preferences-schema.ts index 09fd42c75c8..622b4280ec7 100644 --- a/packages/compass-preferences-model/src/preferences-schema.ts +++ b/packages/compass-preferences-model/src/preferences-schema.ts @@ -42,11 +42,12 @@ export type UserConfigurablePreferences = PermanentFeatureFlags & // except for user preferences doesn't allow required preferences to be // defined, so we are sticking it here atlasServiceBackendPreset: - | 'compass-dev' - | 'compass' | 'atlas-local' | 'atlas-dev' - | 'atlas'; + | 'atlas' + | 'web-sandbox-atlas-local' + | 'web-sandbox-atlas-dev' + | 'web-sandbox-atlas'; // Features that are enabled by default in Compass, but are disabled in Data // Explorer enableExplainPlan: boolean; @@ -631,8 +632,6 @@ export const storedUserPreferencesProps: Required<{ /** * Chooses atlas service backend configuration from preset - * - compass-dev: locally running compass kanopy backend (localhost) - * - compass: compass kanopy backend (compass.mongodb.com) * - atlas-local: local mms backend (http://localhost:8080) * - atlas-dev: dev mms backend (cloud-dev.mongodb.com) * - atlas: mms backend (cloud.mongodb.com) @@ -645,7 +644,14 @@ export const storedUserPreferencesProps: Required<{ short: 'Configuration used by atlas service', }, validator: z - .enum(['compass-dev', 'compass', 'atlas-dev', 'atlas-local', 'atlas']) + .enum([ + 'atlas-dev', + 'atlas-local', + 'atlas', + 'web-sandbox-atlas-dev', + 'web-sandbox-atlas-local', + 'web-sandbox-atlas', + ]) .default('atlas'), type: 'string', }, diff --git a/packages/compass-query-bar/package.json b/packages/compass-query-bar/package.json index d2efa2781bb..67c6f31cadd 100644 --- a/packages/compass-query-bar/package.json +++ b/packages/compass-query-bar/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "8.29.0", + "version": "8.30.0", "homepage": "https://github.com/mongodb-js/compass", "license": "SSPL", "bugs": { @@ -68,19 +68,19 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/mongodb-constants": "^0.10.0", "@mongodb-js/my-queries-storage": "^0.8.1", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb": "^6.6.2", diff --git a/packages/compass-saved-aggregations-queries/package.json b/packages/compass-saved-aggregations-queries/package.json index 18e97ef38e3..aff8104ede5 100644 --- a/packages/compass-saved-aggregations-queries/package.json +++ b/packages/compass-saved-aggregations-queries/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "1.28.0", + "version": "1.29.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -48,11 +48,11 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/my-queries-storage": "^0.8.1", "bson": "^6.7.0", "fuse.js": "^6.5.3", diff --git a/packages/compass-schema-validation/package.json b/packages/compass-schema-validation/package.json index ea7ff63043b..037fe80b831 100644 --- a/packages/compass-schema-validation/package.json +++ b/packages/compass-schema-validation/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "6.28.0", + "version": "6.29.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -67,16 +67,16 @@ "typescript": "^5.0.4" }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", "@mongodb-js/compass-editor": "^0.24.1", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "javascript-stringify": "^2.0.1", "lodash": "^4.17.21", diff --git a/packages/compass-schema/package.json b/packages/compass-schema/package.json index 2f8f283c086..5652d8cd0ad 100644 --- a/packages/compass-schema/package.json +++ b/packages/compass-schema/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "6.29.0", + "version": "6.30.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -73,15 +73,15 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/connection-storage": "^0.12.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "d3": "^3.5.17", "hadron-app-registry": "^9.1.11", "hadron-document": "^8.5.3", diff --git a/packages/compass-serverstats/package.json b/packages/compass-serverstats/package.json index c18ea958cda..689cdc920a7 100644 --- a/packages/compass-serverstats/package.json +++ b/packages/compass-serverstats/package.json @@ -2,7 +2,7 @@ "name": "@mongodb-js/compass-serverstats", "description": "Compass Real Time", "private": true, - "version": "16.27.0", + "version": "16.28.0", "main": "dist/index.js", "compass:main": "src/index.ts", "exports": { @@ -30,11 +30,11 @@ }, "license": "SSPL", "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "d3": "^3.5.17", "d3-timer": "^1.0.3", "debug": "^4.3.4", diff --git a/packages/compass-settings/package.json b/packages/compass-settings/package.json index a0b7dd752b5..902d6ffd45d 100644 --- a/packages/compass-settings/package.json +++ b/packages/compass-settings/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.29.1", + "version": "0.30.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -49,11 +49,11 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/atlas-service": "^0.18.1", + "@mongodb-js/atlas-service": "^0.19.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-generative-ai": "^0.11.1", + "@mongodb-js/compass-generative-ai": "^0.12.0", "@mongodb-js/compass-logging": "^1.2.18", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "hadron-ipc": "^3.2.15", "react": "^17.0.2", diff --git a/packages/compass-shell/package.json b/packages/compass-shell/package.json index 44cefd0d07b..b28c6365dea 100644 --- a/packages/compass-shell/package.json +++ b/packages/compass-shell/package.json @@ -6,7 +6,7 @@ "email": "compass@mongodb.com" }, "private": true, - "version": "3.27.0", + "version": "3.28.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -50,14 +50,14 @@ }, "dependencies": { "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "@mongodb-js/compass-user-data": "^0.1.21", "@mongodb-js/compass-utils": "^0.6.4", "@mongosh/browser-repl": "^2.2.6", "@mongosh/logging": "^2.2.6", "@mongosh/node-runtime-worker-thread": "^2.2.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "prop-types": "^15.7.2", "react": "^17.0.2", @@ -65,7 +65,7 @@ "redux": "^4.2.1" }, "devDependencies": { - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", diff --git a/packages/compass-sidebar/package.json b/packages/compass-sidebar/package.json index 0990ad5edb2..52f9f41ec20 100644 --- a/packages/compass-sidebar/package.json +++ b/packages/compass-sidebar/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "5.28.0", + "version": "5.29.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -48,16 +48,16 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-connections-navigation": "^1.27.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-connections-navigation": "^1.28.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-maybe-protect-connection-string": "^0.18.2", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-form": "^1.27.0", + "@mongodb-js/compass-maybe-protect-connection-string": "^0.19.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-form": "^1.28.0", "@mongodb-js/connection-info": "^0.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb": "^6.6.2", @@ -73,7 +73,7 @@ "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/tsconfig-compass": "^1.0.4", "@testing-library/react": "^12.1.5", "@testing-library/user-event": "^13.5.0", diff --git a/packages/compass-web/package.json b/packages/compass-web/package.json index 9988f8ea521..3c936149f0c 100644 --- a/packages/compass-web/package.json +++ b/packages/compass-web/package.json @@ -14,7 +14,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -62,26 +62,26 @@ "react-dom": "^17.0.2" }, "devDependencies": { - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-aggregations": "^9.30.0", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-aggregations": "^9.31.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-crud": "^13.28.0", - "@mongodb-js/compass-databases-collections": "^1.27.0", - "@mongodb-js/compass-explain-plan": "^6.28.0", - "@mongodb-js/compass-export-to-language": "^9.4.0", - "@mongodb-js/compass-field-store": "^9.4.0", - "@mongodb-js/compass-generative-ai": "^0.11.1", - "@mongodb-js/compass-indexes": "^5.27.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-crud": "^13.29.0", + "@mongodb-js/compass-databases-collections": "^1.28.0", + "@mongodb-js/compass-explain-plan": "^6.29.0", + "@mongodb-js/compass-export-to-language": "^9.5.0", + "@mongodb-js/compass-field-store": "^9.5.0", + "@mongodb-js/compass-generative-ai": "^0.12.0", + "@mongodb-js/compass-indexes": "^5.28.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-schema": "^6.29.0", - "@mongodb-js/compass-schema-validation": "^6.28.0", - "@mongodb-js/compass-sidebar": "^5.28.0", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-schema": "^6.30.0", + "@mongodb-js/compass-schema-validation": "^6.29.0", + "@mongodb-js/compass-sidebar": "^5.29.0", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/mocha-config-compass": "^1.3.9", "@mongodb-js/prettier-config-compass": "^1.0.2", @@ -100,7 +100,7 @@ "bson": "^6.2.0", "buffer": "^6.0.3", "chai": "^4.3.6", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "crypto-browserify": "^3.12.0", "debug": "^4.3.4", "depcheck": "^1.4.1", diff --git a/packages/compass-web/sandbox/atlas-cluster-connections.tsx b/packages/compass-web/sandbox/atlas-cluster-connections.tsx index eb3b5759c90..b9100270435 100644 --- a/packages/compass-web/sandbox/atlas-cluster-connections.tsx +++ b/packages/compass-web/sandbox/atlas-cluster-connections.tsx @@ -67,14 +67,6 @@ export function useAtlasClusterConnectionsList(): AtlasClusterConnectionsListRet id: cluster.uniqueId, connectionOptions: { connectionString: connectionString.toString(), - lookup() { - return { - wsURL: 'ws://localhost:1337', - projectId: projectId, - clusterName: cluster.name, - srvAddress: cluster.srvAddress, - }; - }, }, atlasMetadata: { orgId: '', diff --git a/packages/compass-web/sandbox/index.tsx b/packages/compass-web/sandbox/index.tsx index d99444fa095..e5a03843b26 100644 --- a/packages/compass-web/sandbox/index.tsx +++ b/packages/compass-web/sandbox/index.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useMemo, useState } from 'react'; +import React, { useCallback, useMemo, useRef, useState } from 'react'; import ReactDOM from 'react-dom'; import { TextArea, @@ -33,6 +33,7 @@ import { AtlasClusterConnectionsList, useAtlasClusterConnectionsList, } from './atlas-cluster-connections'; +import { SandboxAutoconnectProvider } from '../src/connection-storage'; const sandboxContainerStyles = css({ width: '100%', @@ -239,48 +240,88 @@ function ConnectionStringConnectionForm({ ); } +function isAtlasConnection( + connectionInfo: ConnectionInfo +): connectionInfo is ConnectionInfo & + Required> { + return 'atlasMetadata' in connectionInfo; +} + function ConnectedApp({ connectionInfo }: { connectionInfo: ConnectionInfo }) { - const isAtlasConnection = !!connectionInfo.atlasMetadata; - const [initialCurrentTab, updateCurrentTab] = useWorkspaceTabRouter( - connectionInfo?.id + const [currentTab, updateCurrentTab] = useWorkspaceTabRouter( + connectionInfo.id ); + const initialCurrentTabRef = useRef( + currentTab ?? { + type: 'Databases' as const, + connectionId: connectionInfo.id, + } + ); + + const isAtlas = isAtlasConnection(connectionInfo); + + const atlasServiceSandboxBackendVariant = + process.env.COMPASS_WEB_HTTP_PROXY_CLOUD_CONFIG === 'local' + ? 'web-sandbox-atlas-local' + : process.env.COMPASS_WEB_HTTP_PROXY_CLOUD_CONFIG === 'dev' || + process.env.COMPASS_WEB_HTTP_PROXY_CLOUD_CONFIG === 'qa' + ? 'web-sandbox-atlas-dev' + : 'web-sandbox-atlas'; return ( - - - { - return Promise.resolve(connectionInfo); - }} - initialWorkspaceTabs={ - initialCurrentTab ? [initialCurrentTab] : undefined - } - onActiveWorkspaceTabChange={updateCurrentTab} - initialPreferences={{ - enablePerformanceAdvisorBanner: isAtlasConnection, - enableAtlasSearchIndexes: !isAtlasConnection, - maximumNumberOfActiveConnections: isAtlasConnection ? 1 : 10, - }} - stackedElementsZIndex={5} - renderConnecting={(connectionInfo) => { - return ( - + + + - ); - }} - renderError={(_connectionInfo, err) => { - return ( - - ); - }} - > - - + : { + // We don't want to make those props optional as they are + // always required in DE, at the same time we still want to + // support non-Atlas connections in sandbox. For that purpose + // we pass empty strings when connecting here. If those values + // are empty AND sandbox autoconnect provider didn't get the + // value, sandbox will fail to connect + orgId: '', + projectId: '', + })} + initialWorkspace={initialCurrentTabRef.current} + onActiveWorkspaceTabChange={updateCurrentTab} + initialPreferences={{ + enablePerformanceAdvisorBanner: isAtlas, + enableAtlasSearchIndexes: !isAtlas, + maximumNumberOfActiveConnections: isAtlas ? 1 : 10, + atlasServiceBackendPreset: atlasServiceSandboxBackendVariant, + }} + renderConnecting={(connectionInfo) => { + return ( + + ); + }} + renderError={(_connectionInfo, err) => { + return ( + + ); + }} + > + + + ); } diff --git a/packages/compass-web/sandbox/use-workspace-tab-router.tsx b/packages/compass-web/sandbox/use-workspace-tab-router.tsx index b9f47406532..0b0413e8e5e 100644 --- a/packages/compass-web/sandbox/use-workspace-tab-router.tsx +++ b/packages/compass-web/sandbox/use-workspace-tab-router.tsx @@ -20,10 +20,15 @@ function getCollectionSubTabFromRoute(subTab?: string): CollectionSubtab { } } +type AllowedInitialWorkspaceTabs = Extract< + OpenWorkspaceOptions, + { type: 'Databases' | 'Collections' | 'Collection' } +>; + function getWorkspaceTabFromRoute( route: string, connectionId: string | undefined -): OpenWorkspaceOptions | null { +): AllowedInitialWorkspaceTabs | null { const [, tab, namespace = '', subTab] = decodeURIComponent(route).split('/'); if (!connectionId) { return null; @@ -46,11 +51,10 @@ function getWorkspaceTabFromRoute( } export function useWorkspaceTabRouter(connectionId: string | undefined) { - const [currentTab, setCurrentTab] = useState( - () => { + const [currentTab, setCurrentTab] = + useState(() => { return getWorkspaceTabFromRoute(window.location.pathname, connectionId); - } - ); + }); useEffect(() => { setCurrentTab( @@ -76,7 +80,7 @@ export function useWorkspaceTabRouter(connectionId: string | undefined) { newPath = '/'; } window.history.replaceState(null, '', newPath); - setCurrentTab(tab); + setCurrentTab(tab as any); }, []); return [currentTab, updateCurrentTab] as const; } diff --git a/packages/compass-web/scripts/electron-proxy.js b/packages/compass-web/scripts/electron-proxy.js index 629a4353849..834d94f9b4a 100644 --- a/packages/compass-web/scripts/electron-proxy.js +++ b/packages/compass-web/scripts/electron-proxy.js @@ -348,6 +348,12 @@ proxyWebServer.use( return req; }, userResHeaderDecorator(headers, _req, res) { + // Cloud backend will try to always set auth cookies on requests, but we + // can't really meaningfully store those in the browser (__secure- ones + // would be ignored anyways), so to avoid polluting storage, we just not + // allow the set-cookie header to propagate + delete headers['set-cookie']; + if (isSignedOutRedirect(headers.location)) { res.statusCode = 403; return {}; diff --git a/packages/compass-web/src/atlas-auth-service.tsx b/packages/compass-web/src/atlas-auth-service.tsx new file mode 100644 index 00000000000..b36b4ae11b4 --- /dev/null +++ b/packages/compass-web/src/atlas-auth-service.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import { + AtlasAuthService, + AtlasAuthServiceProvider, +} from '@mongodb-js/atlas-service/provider'; +import type { AtlasUserInfo } from '@mongodb-js/atlas-service/provider'; + +class AtlasCloudAuthService extends AtlasAuthService { + signIn() { + return this.getUserInfo(); + } + signOut() { + return Promise.resolve(); + } + isAuthenticated() { + return Promise.resolve(true); + } + getUserInfo(): Promise { + throw new Error('AtlasCloudAuthService.getUserInfo not implemented'); + } + getAuthHeaders() { + return Promise.resolve({}); + } +} + +const atlasAuthService = new AtlasCloudAuthService(); + +export function AtlasCloudAuthServiceProvider({ + children, +}: { + children: React.ReactChild; +}) { + return ( + + {children} + + ); +} diff --git a/packages/compass-web/src/connection-storage.spec.ts b/packages/compass-web/src/connection-storage.spec.ts new file mode 100644 index 00000000000..52388d9750e --- /dev/null +++ b/packages/compass-web/src/connection-storage.spec.ts @@ -0,0 +1,114 @@ +import { expect } from 'chai'; +import { buildConnectionInfoFromClusterDescription } from './connection-storage'; + +const deployment = { + replicaSets: [ + { + _id: 'replicaSet-xxx', + state: { + clusterId: '123abc', + }, + }, + ], + clusters: [ + { + _id: 'sharded-xxx', + state: { + clusterId: '123abc', + }, + }, + ], +}; + +describe('buildConnectionInfoFromClusterDescription', function () { + const tests = [ + [ + 'replicaSet', + { + '@provider': 'AWS', + uniqueId: '123abc', + groupId: 'abc', + name: 'Cluster0-replicaSet', + clusterType: 'REPLICASET', + srvAddress: 'replicaSet.mongodb.com', + state: 'IDLE', + deploymentItemName: 'replicaSet-xxx', + dataProcessingRegion: { + regionalUrl: 'https://example.com', + }, + }, + 'mongodb+srv://replicaSet.mongodb.com/?tls=true&authMechanism=MONGODB-X509&authSource=%24external&maxPoolSize=3', + ], + [ + 'sharded', + { + '@provider': 'AWS', + uniqueId: '123abc', + groupId: 'abc', + name: 'Cluster0-sharded', + clusterType: 'SHARDED', + srvAddress: 'sharded.mongodb.com', + state: 'IDLE', + deploymentItemName: 'sharded-xxx', + dataProcessingRegion: { + regionalUrl: 'https://example.com', + }, + }, + 'mongodb+srv://sharded.mongodb.com/?tls=true&authMechanism=MONGODB-X509&authSource=%24external&maxPoolSize=3&srvMaxHosts=3', + ], + [ + 'serverless', + { + '@provider': 'SERVERLESS', + uniqueId: '123abc', + groupId: 'abc', + name: 'Cluster0-serverless', + clusterType: 'REPLICASET', + srvAddress: 'serverless.mongodb.com', + state: 'IDLE', + deploymentItemName: 'serverless-xxx', + dataProcessingRegion: { + regionalUrl: 'https://example.com', + }, + }, + 'mongodb+srv://serverless.mongodb.com/?tls=true&authMechanism=MONGODB-X509&authSource=%24external&maxPoolSize=3', + ], + ] as const; + + for (const [type, clusterDescription, connectionString] of tests) { + it(`should build connection info for ${type} cluster`, function () { + const connectionInfo = buildConnectionInfoFromClusterDescription( + 'ws://test', + '123', + 'abc', + clusterDescription, + deployment + ); + + expect(connectionInfo).to.have.property('id', '123abc'); + + expect(connectionInfo).to.have.nested.property( + 'connectionOptions.connectionString', + connectionString + ); + + expect(connectionInfo.connectionOptions.lookup()).to.deep.eq({ + wsURL: 'ws://test', + projectId: 'abc', + clusterName: `Cluster0-${type}`, + srvAddress: `${type}.mongodb.com`, + }); + + expect(connectionInfo) + .to.have.property('atlasMetadata') + .deep.eq({ + orgId: '123', + projectId: 'abc', + clusterId: type === 'serverless' ? `Cluster0-serverless` : '123abc', + clusterName: `Cluster0-${type}`, + clusterType: type === 'sharded' ? 'cluster' : type, + regionalBaseUrl: 'https://example.com', + }); + }); + } +}); diff --git a/packages/compass-web/src/connection-storage.tsx b/packages/compass-web/src/connection-storage.tsx new file mode 100644 index 00000000000..b0757d12ced --- /dev/null +++ b/packages/compass-web/src/connection-storage.tsx @@ -0,0 +1,286 @@ +import React, { useContext, useEffect, useRef } from 'react'; +import type { + ConnectionStorage, + ConnectionInfo, +} from '@mongodb-js/connection-storage/provider'; +import { + ConnectionStorageProvider, + InMemoryConnectionStorage, + ConnectionStorageEvents, +} from '@mongodb-js/connection-storage/provider'; +import ConnectionString from 'mongodb-connection-string-url'; +import { createServiceProvider } from 'hadron-app-registry'; +import type { AtlasService } from '@mongodb-js/atlas-service/provider'; +import { atlasServiceLocator } from '@mongodb-js/atlas-service/provider'; + +type ClusterDescription = { + '@provider': string; + uniqueId: string; + groupId: string; + name: string; + clusterType: string; + srvAddress: string; + state: string; + deploymentItemName: string; +}; + +type ClusterDescriptionWithDataProcessingRegion = ClusterDescription & { + dataProcessingRegion: { regionalUrl: string }; +}; + +type DeploymentItem = { + _id: string; + state: { + clusterId: string; + }; +}; + +type Deployment = { + replicaSets?: DeploymentItem[]; + clusters?: DeploymentItem[]; +}; + +function findDeploymentItemByClusterName( + description: ClusterDescription, + deployment: Deployment +): DeploymentItem | undefined { + return ( + (isSharded(description) ? deployment.clusters : deployment.replicaSets) ?? + [] + ).find((item) => { + return item._id === description.deploymentItemName; + }); +} + +function isServerless(clusterDescription: ClusterDescription) { + return clusterDescription['@provider'] === 'SERVERLESS'; +} + +function isSharded(clusterDescription: ClusterDescription) { + return ( + clusterDescription.clusterType === 'SHARDED' || + clusterDescription.clusterType === 'GEOSHARDED' + ); +} + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getMetricsIdAndType( + clusterDescription: ClusterDescription, + deploymentItem?: DeploymentItem +): { + clusterId: string; + clusterType: 'serverless' | 'replicaSet' | 'cluster'; +} { + if (isServerless(clusterDescription)) { + return { clusterId: clusterDescription.name, clusterType: 'serverless' }; + } + + if (!deploymentItem) { + throw new Error( + "Can't build metrics info when deployment item is not found" + ); + } + + return { + clusterId: deploymentItem.state.clusterId, + clusterType: isSharded(clusterDescription) ? 'cluster' : 'replicaSet', + }; +} + +export function buildConnectionInfoFromClusterDescription( + driverProxyEndpoint: string, + orgId: string, + projectId: string, + description: ClusterDescriptionWithDataProcessingRegion, + deployment: Deployment +) { + const connectionString = new ConnectionString( + `mongodb+srv://${description.srvAddress}` + ); + + // Special connection options for cloud env, we will not actually pass + // certs when establishing the connection on the client, but the proxy + // server will provide cert resolved from cloud backend + connectionString.searchParams.set('tls', 'true'); + connectionString.searchParams.set('authMechanism', 'MONGODB-X509'); + connectionString.searchParams.set('authSource', '$external'); + + // Limit connection pool for replicas and sharded + connectionString.searchParams.set('maxPoolSize', '3'); + if (isSharded(description)) { + connectionString.searchParams.set('srvMaxHosts', '3'); + } + + const deploymentItem = findDeploymentItemByClusterName( + description, + deployment + ); + + return { + id: description.uniqueId, + connectionOptions: { + connectionString: connectionString.toString(), + lookup: () => { + return { + wsURL: driverProxyEndpoint, + projectId: projectId, + clusterName: description.name, + srvAddress: description.srvAddress, + }; + }, + }, + atlasMetadata: { + orgId: orgId, + projectId: projectId, + clusterName: description.name, + regionalBaseUrl: description.dataProcessingRegion.regionalUrl, + ...getMetricsIdAndType(description, deploymentItem), + }, + }; +} + +class AtlasCloudConnectionStorage + extends InMemoryConnectionStorage + implements ConnectionStorage +{ + private pollingInterval: ReturnType | undefined; + private loadAllPromise: Promise | undefined; + constructor( + private atlasService: AtlasService, + private orgId: string, + private projectId: string, + private autoConnectConnectionId: string | undefined, + private __sandboxAutoconnectInfo: ConnectionInfo | null = null + ) { + super(); + } + async getAutoConnectInfo(): Promise { + if (this.__sandboxAutoconnectInfo) { + return Promise.resolve(this.__sandboxAutoconnectInfo); + } + if (!this.autoConnectConnectionId) { + return Promise.resolve(undefined); + } + return this.load({ id: this.autoConnectConnectionId }); + } + async load({ id }: { id: string }): Promise { + return (await this.loadAll()).find((info) => { + return info.id === id; + }); + } + + private async _loadAndNormalizeClusterDescriptionInfo(): Promise< + ConnectionInfo[] + > { + const [clusterDescriptions, deployment] = await Promise.all([ + this.atlasService + .authenticatedFetch( + // TODO(CLOUDP-249088): replace with the list request that already + // contains regional data when it exists instead of fetching + // one-by-one after the list fetch + this.atlasService.cloudEndpoint(`nds/clusters/${this.projectId}`) + ) + .then((res) => { + return res.json() as Promise; + }) + .then((descriptions) => { + return Promise.all( + descriptions.map((description) => { + return this.atlasService + .authenticatedFetch( + this.atlasService.cloudEndpoint( + `nds/clusters/${this.projectId}/${description.name}/regional/clusterDescription` + ) + ) + .then((res) => { + return res.json() as Promise; + }); + }) + ); + }), + this.atlasService + .authenticatedFetch( + this.atlasService.cloudEndpoint(`deployment/${this.projectId}`) + ) + .then((res) => { + return res.json() as Promise; + }), + ]); + + return clusterDescriptions.map((description) => { + return buildConnectionInfoFromClusterDescription( + this.atlasService.driverProxyEndpoint(), + this.orgId, + this.projectId, + description, + deployment + ); + }); + } + + loadAll(): Promise { + if (this.__sandboxAutoconnectInfo) { + return Promise.resolve([this.__sandboxAutoconnectInfo]); + } + return (this.loadAllPromise ??= + this._loadAndNormalizeClusterDescriptionInfo()); + } + + startPolling() { + clearInterval(this.pollingInterval); + this.pollingInterval = setInterval(() => { + delete this.loadAllPromise; + void this.loadAll().then(() => { + this.emit(ConnectionStorageEvents.ConnectionsChanged); + }); + }, /* Matches default polling intervals in mms codebase */ 60_000); + return () => { + clearInterval(this.pollingInterval); + }; + } +} + +const SandboxAutoconnectContext = React.createContext( + null +); + +/** + * Only used in the sandbox to provide connection info when connecting to the + * non-Atlas deployment + * @internal + */ +export const SandboxAutoconnectProvider = SandboxAutoconnectContext.Provider; + +export const AtlasCloudConnectionStorageProvider = createServiceProvider( + function AtlasCloudConnectionStorageProvider({ + orgId, + projectId, + autoConnectConnectionId, + children, + }: { + orgId: string; + projectId: string; + autoConnectConnectionId?: string; + children: React.ReactChild; + }) { + const atlasService = atlasServiceLocator(); + const sandboxAutoconnectInfo = useContext(SandboxAutoconnectContext); + const storage = useRef( + new AtlasCloudConnectionStorage( + atlasService, + orgId, + projectId, + autoConnectConnectionId, + sandboxAutoconnectInfo + ) + ); + useEffect(() => { + return storage.current.startPolling(); + }, []); + return ( + + {children} + + ); + } +); diff --git a/packages/compass-web/src/entrypoint.spec.tsx b/packages/compass-web/src/entrypoint.spec.tsx index f8836e89590..0136cc9ee3c 100644 --- a/packages/compass-web/src/entrypoint.spec.tsx +++ b/packages/compass-web/src/entrypoint.spec.tsx @@ -6,6 +6,7 @@ import { CompassWeb } from './entrypoint'; import Sinon from 'sinon'; import EventEmitter from 'events'; import ConnectionString from 'mongodb-connection-string-url'; +import { SandboxAutoconnectProvider } from './connection-storage'; function mockDb(name: string) { return { _id: name, name }; @@ -62,31 +63,31 @@ describe('CompassWeb', function () { props: Partial> = {}, connectFn = mockConnectFn ) { - const getAutoConnectInfo = () => { - return Promise.resolve({ - id: 'foo', - connectionOptions: { - connectionString: 'mongodb://localhost:27017', - }, - }); - }; return render( - {}} - renderConnecting={(connectionInfo) => { - let host = 'cluster'; - if (connectionInfo) { - [host] = new ConnectionString( - connectionInfo.connectionOptions.connectionString - ).hosts; - } - return
Connecting to {host}…
; +
+ > + {}} + renderConnecting={(connectionInfo) => { + let host = 'cluster'; + if (connectionInfo) { + [host] = new ConnectionString( + connectionInfo.connectionOptions.connectionString + ).hosts; + } + return
Connecting to {host}…
; + }} + {...props} + // @ts-expect-error see component props description + __TEST_MONGODB_DATA_SERVICE_CONNECT_FN={connectFn} + >
+ ); } diff --git a/packages/compass-web/src/entrypoint.tsx b/packages/compass-web/src/entrypoint.tsx index e0781827973..837667fa19b 100644 --- a/packages/compass-web/src/entrypoint.tsx +++ b/packages/compass-web/src/entrypoint.tsx @@ -10,6 +10,7 @@ import { ConnectionInfoProvider, } from '@mongodb-js/compass-connections/provider'; import { CompassInstanceStorePlugin } from '@mongodb-js/compass-app-stores'; +import type { OpenWorkspaceOptions } from '@mongodb-js/compass-workspaces'; import WorkspacesPlugin, { WorkspacesProvider, } from '@mongodb-js/compass-workspaces'; @@ -49,45 +50,20 @@ import { } from 'compass-preferences-model/provider'; import type { AllPreferences } from 'compass-preferences-model/provider'; import FieldStorePlugin from '@mongodb-js/compass-field-store'; -import { - AtlasAuthService, - AtlasAuthServiceProvider, - AtlasServiceProvider, -} from '@mongodb-js/atlas-service/provider'; -import type { AtlasUserInfo } from '@mongodb-js/atlas-service/provider'; +import { AtlasServiceProvider } from '@mongodb-js/atlas-service/provider'; import { AtlasAiServiceProvider } from '@mongodb-js/compass-generative-ai/provider'; -import { ConnectionStorageProvider } from '@mongodb-js/connection-storage/provider'; import { useLoggerAndTelemetry } from '@mongodb-js/compass-logging/provider'; import CompassConnections from '@mongodb-js/compass-connections'; -import { CompassWebConnectionStorage } from './compass-web-connection-storage'; - -class CloudAtlasAuthService extends AtlasAuthService { - signIn() { - return this.getUserInfo(); - } - signOut() { - return Promise.resolve(); - } - isAuthenticated() { - return Promise.resolve(true); - } - getUserInfo(): Promise { - throw new Error('CloudAtlasAuthService.getUserInfo not implemented'); - } - getAuthHeaders() { - return Promise.resolve({}); - } -} - -const atlasAuthService = new CloudAtlasAuthService(); +import { AtlasCloudConnectionStorageProvider } from './connection-storage'; +import { AtlasCloudAuthServiceProvider } from './atlas-auth-service'; const WithAtlasProviders: React.FC = ({ children }) => { return ( - + {children} - + ); }; @@ -98,19 +74,28 @@ type CompassWorkspaceProps = Pick< type CompassWebProps = { appName?: string; + + orgId: string; + projectId: string; + darkMode?: boolean; - stackedElementsZIndex?: number; - onAutoconnectInfoRequest: () => Promise; + renderConnecting?: (connectionInfo: ConnectionInfo | null) => React.ReactNode; renderError?: ( connectionInfo: ConnectionInfo | null, err: any ) => React.ReactNode; + + initialWorkspace: Extract< + OpenWorkspaceOptions, + { type: 'Databases' | 'Collections' | 'Collection' } + >; + onActiveWorkspaceTabChange: React.ComponentProps< + typeof WorkspacesPlugin + >['onActiveWorkspaceTabChange']; + initialPreferences?: Partial; -} & Pick< - CompassWorkspaceProps, - 'initialWorkspaceTabs' | 'onActiveWorkspaceTabChange' ->; +}; function CompassWorkspace({ initialWorkspaceTabs, @@ -190,21 +175,18 @@ const connectedContainerStyles = css({ const CompassWeb = ({ appName, + orgId, + projectId, darkMode, - initialWorkspaceTabs, + initialWorkspace, onActiveWorkspaceTabChange, initialPreferences, - stackedElementsZIndex, - onAutoconnectInfoRequest, renderConnecting = () => null, renderError = () => null, // @ts-expect-error not an interface we want to expose in any way, only for // testing purposes, should never be used otherwise __TEST_MONGODB_DATA_SERVICE_CONNECT_FN, }: CompassWebProps) => { - // It's imperative that this method doesn't change during render otherwise the - // application will be stuck in a neverending re-connect loop - const onAutoconnectInfoRequestRef = useRef(onAutoconnectInfoRequest); const appRegistry = useRef(new AppRegistry()); const loggerAndTelemetry = useLoggerAndTelemetry('COMPASS-WEB-UI'); @@ -255,17 +237,12 @@ const CompassWeb = ({ [] ); - const connectionStorage = useRef( - new CompassWebConnectionStorage(onAutoconnectInfoRequestRef.current) - ); - const preferencesAccess = useRef( new ReadOnlyPreferenceAccess({ maxTimeMS: 10_000, enableExplainPlan: true, enableAggregationBuilderRunPipeline: true, enableAggregationBuilderExtraOptions: true, - enableAtlasSearchIndexes: false, enableImportExport: false, enableGenAIFeatures: false, enableNewMultipleConnectionSystem: false, @@ -277,18 +254,29 @@ const CompassWeb = ({ ...initialPreferences, }) ); + const initialWorkspaceRef = useRef(initialWorkspace); + const initialWorkspaceTabsRef = useRef( + initialWorkspaceRef.current ? [initialWorkspaceRef.current] : [] + ); + const autoConnectConnectionId = initialWorkspaceRef.current?.connectionId; return ( diff --git a/packages/compass-welcome/package.json b/packages/compass-welcome/package.json index a5befd0464c..a1cf335dbdf 100644 --- a/packages/compass-welcome/package.json +++ b/packages/compass-welcome/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.26.0", + "version": "0.27.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -51,8 +51,8 @@ "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "compass-preferences-model": "^2.20.2", + "@mongodb-js/compass-workspaces": "^0.10.0", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "react": "^17.0.2", "redux": "^4.2.1", diff --git a/packages/compass-workspaces/package.json b/packages/compass-workspaces/package.json index 3727a294278..2bf6f018fb8 100644 --- a/packages/compass-workspaces/package.json +++ b/packages/compass-workspaces/package.json @@ -11,7 +11,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.9.0", + "version": "0.10.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -51,9 +51,9 @@ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-logging": "^1.2.18", "bson": "^6.7.0", "hadron-app-registry": "^9.1.11", diff --git a/packages/compass/app-icons/darwin/mongodb-compass-logo-beta.icns b/packages/compass/app-icons/darwin/mongodb-compass-logo-beta.icns index a9c25860c02..0b3464cce10 100644 Binary files a/packages/compass/app-icons/darwin/mongodb-compass-logo-beta.icns and b/packages/compass/app-icons/darwin/mongodb-compass-logo-beta.icns differ diff --git a/packages/compass/app-icons/darwin/mongodb-compass-logo-dev.icns b/packages/compass/app-icons/darwin/mongodb-compass-logo-dev.icns index aa148c051c8..0c2013a5382 100644 Binary files a/packages/compass/app-icons/darwin/mongodb-compass-logo-dev.icns and b/packages/compass/app-icons/darwin/mongodb-compass-logo-dev.icns differ diff --git a/packages/compass/package.json b/packages/compass/package.json index 57aa79e7e28..3ba83abf950 100644 --- a/packages/compass/package.json +++ b/packages/compass/package.json @@ -190,37 +190,37 @@ "devDependencies": { "@electron/rebuild": "^3.6.0", "@electron/remote": "^2.1.2", - "@mongodb-js/atlas-service": "^0.18.1", - "@mongodb-js/compass-aggregations": "^9.30.0", - "@mongodb-js/compass-app-stores": "^7.14.0", - "@mongodb-js/compass-collection": "^4.27.0", + "@mongodb-js/atlas-service": "^0.19.0", + "@mongodb-js/compass-aggregations": "^9.31.0", + "@mongodb-js/compass-app-stores": "^7.15.0", + "@mongodb-js/compass-collection": "^4.28.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", - "@mongodb-js/compass-connection-import-export": "^0.25.0", - "@mongodb-js/compass-crud": "^13.28.0", - "@mongodb-js/compass-databases-collections": "^1.27.0", - "@mongodb-js/compass-explain-plan": "^6.28.0", - "@mongodb-js/compass-export-to-language": "^9.4.0", - "@mongodb-js/compass-field-store": "^9.4.0", + "@mongodb-js/compass-connections": "^1.30.0", + "@mongodb-js/compass-connection-import-export": "^0.26.0", + "@mongodb-js/compass-crud": "^13.29.0", + "@mongodb-js/compass-databases-collections": "^1.28.0", + "@mongodb-js/compass-explain-plan": "^6.29.0", + "@mongodb-js/compass-export-to-language": "^9.5.0", + "@mongodb-js/compass-field-store": "^9.5.0", "@mongodb-js/compass-find-in-page": "^4.25.1", - "@mongodb-js/compass-generative-ai": "^0.11.1", - "@mongodb-js/compass-import-export": "^7.27.0", - "@mongodb-js/compass-indexes": "^5.27.0", - "@mongodb-js/compass-intercom": "^0.4.2", + "@mongodb-js/compass-generative-ai": "^0.12.0", + "@mongodb-js/compass-import-export": "^7.28.0", + "@mongodb-js/compass-indexes": "^5.28.0", + "@mongodb-js/compass-intercom": "^0.5.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-query-bar": "^8.29.0", - "@mongodb-js/compass-saved-aggregations-queries": "^1.28.0", - "@mongodb-js/compass-schema": "^6.29.0", - "@mongodb-js/compass-schema-validation": "^6.28.0", - "@mongodb-js/compass-serverstats": "^16.27.0", - "@mongodb-js/compass-settings": "^0.29.1", - "@mongodb-js/compass-shell": "^3.27.0", - "@mongodb-js/compass-sidebar": "^5.28.0", + "@mongodb-js/compass-query-bar": "^8.30.0", + "@mongodb-js/compass-saved-aggregations-queries": "^1.29.0", + "@mongodb-js/compass-schema": "^6.30.0", + "@mongodb-js/compass-schema-validation": "^6.29.0", + "@mongodb-js/compass-serverstats": "^16.28.0", + "@mongodb-js/compass-settings": "^0.30.0", + "@mongodb-js/compass-shell": "^3.28.0", + "@mongodb-js/compass-sidebar": "^5.29.0", "@mongodb-js/compass-utils": "^0.6.4", - "@mongodb-js/compass-welcome": "^0.26.0", - "@mongodb-js/compass-workspaces": "^0.9.0", + "@mongodb-js/compass-welcome": "^0.27.0", + "@mongodb-js/compass-workspaces": "^0.10.0", "@mongodb-js/connection-info": "^0.3.0", - "@mongodb-js/connection-storage": "^0.11.0", + "@mongodb-js/connection-storage": "^0.12.0", "@mongodb-js/eslint-config-compass": "^1.1.1", "@mongodb-js/get-os-info": "^0.3.24", "@mongodb-js/mocha-config-compass": "^1.3.9", @@ -237,7 +237,7 @@ "chai": "^4.3.4", "chalk": "^4.1.2", "clean-stack": "^2.0.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "debug": "^4.3.4", "depcheck": "^1.4.1", "electron": "^29.4.2", diff --git a/packages/connection-form/package.json b/packages/connection-form/package.json index 4ce4eab3ad0..5faa5e5bbdb 100644 --- a/packages/connection-form/package.json +++ b/packages/connection-form/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "1.27.0", + "version": "1.28.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -50,7 +50,7 @@ "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/connection-info": "^0.3.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "ejson-shell-parser": "^2.0.1", "lodash": "^4.17.21", "mongodb": "^6.6.2", diff --git a/packages/connection-storage/package.json b/packages/connection-storage/package.json index a47201f842f..8f4cf297fad 100644 --- a/packages/connection-storage/package.json +++ b/packages/connection-storage/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "0.11.0", + "version": "0.12.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -61,7 +61,7 @@ "@mongodb-js/compass-utils": "^0.6.4", "@mongodb-js/connection-info": "^0.3.0", "bson": "^6.7.0", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "electron": "^29.4.2", "hadron-app-registry": "^9.1.11", "hadron-ipc": "^3.2.15", diff --git a/packages/databases-collections-list/package.json b/packages/databases-collections-list/package.json index 03de55d2260..d2fae7a928a 100644 --- a/packages/databases-collections-list/package.json +++ b/packages/databases-collections-list/package.json @@ -13,7 +13,7 @@ "email": "compass@mongodb.com" }, "homepage": "https://github.com/mongodb-js/compass", - "version": "1.26.1", + "version": "1.27.0", "repository": { "type": "git", "url": "https://github.com/mongodb-js/compass.git" @@ -50,7 +50,7 @@ "dependencies": { "@mongodb-js/compass-components": "^1.25.1", "@mongodb-js/compass-logging": "^1.2.18", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "react": "^17.0.2" }, "devDependencies": { diff --git a/packages/databases-collections/package.json b/packages/databases-collections/package.json index f16eb2a8f92..a8ef3e255d1 100644 --- a/packages/databases-collections/package.json +++ b/packages/databases-collections/package.json @@ -2,7 +2,7 @@ "name": "@mongodb-js/compass-databases-collections", "description": "Plugin for viewing the list of, creating, and dropping databases and collections", "private": true, - "version": "1.27.0", + "version": "1.28.0", "license": "SSPL", "homepage": "https://github.com/mongodb-js/compass", "bugs": { @@ -60,16 +60,16 @@ "typescript": "^5.0.4" }, "dependencies": { - "@mongodb-js/compass-app-stores": "^7.14.0", + "@mongodb-js/compass-app-stores": "^7.15.0", "@mongodb-js/compass-components": "^1.25.1", - "@mongodb-js/compass-connections": "^1.29.0", + "@mongodb-js/compass-connections": "^1.30.0", "@mongodb-js/compass-editor": "^0.24.1", "@mongodb-js/connection-info": "^0.3.0", "@mongodb-js/compass-logging": "^1.2.18", - "@mongodb-js/compass-workspaces": "^0.9.0", - "@mongodb-js/databases-collections-list": "^1.26.1", + "@mongodb-js/compass-workspaces": "^0.10.0", + "@mongodb-js/databases-collections-list": "^1.27.0", "@mongodb-js/my-queries-storage": "^0.8.1", - "compass-preferences-model": "^2.20.2", + "compass-preferences-model": "^2.21.0", "hadron-app-registry": "^9.1.11", "lodash": "^4.17.21", "mongodb-collection-model": "^5.20.0",