({
+ const connectionInfoRef = {
+ current: {
id: 'TEST',
- }),
+ },
};
describe('with a successful server response', function () {
@@ -60,7 +60,7 @@ describe('aiQueryReducer', function () {
},
{
dataService: mockDataService,
- connectionInfoAccess,
+ connectionInfoRef,
atlasAuthService: { on: sandbox.stub() },
atlasAiService: mockAtlasAiService,
preferences,
@@ -106,7 +106,7 @@ describe('aiQueryReducer', function () {
const store = createStore({}, {
atlasAuthService: { on: sandbox.stub() },
atlasAiService: mockAtlasAiService,
- connectionInfoAccess,
+ connectionInfoRef,
dataService: {
sample() {
return Promise.resolve([]);
@@ -139,7 +139,7 @@ describe('aiQueryReducer', function () {
return Promise.resolve([]);
},
},
- connectionInfoAccess,
+ connectionInfoRef,
preferences,
logger: createNoopLogger(),
track: createNoopTrack(),
@@ -181,7 +181,7 @@ describe('aiQueryReducer', function () {
},
{
dataService: mockDataService,
- connectionInfoAccess,
+ connectionInfoRef,
atlasAuthService: { on: sandbox.stub() },
atlasAiService: mockAtlasAiService,
preferences,
@@ -222,7 +222,7 @@ describe('aiQueryReducer', function () {
},
{
dataService: mockDataService,
- connectionInfoAccess,
+ connectionInfoRef,
atlasAuthService: { on: sandbox.stub() },
atlasAiService: mockAtlasAiService,
preferences,
diff --git a/packages/compass-query-bar/src/stores/ai-query-reducer.ts b/packages/compass-query-bar/src/stores/ai-query-reducer.ts
index f173dcb6dc0..87a9609175b 100644
--- a/packages/compass-query-bar/src/stores/ai-query-reducer.ts
+++ b/packages/compass-query-bar/src/stores/ai-query-reducer.ts
@@ -164,7 +164,7 @@ export const runAIQuery = (
preferences,
atlasAiService,
logger: { log },
- connectionInfoAccess,
+ connectionInfoRef,
track,
}
) => {
@@ -173,7 +173,7 @@ export const runAIQuery = (
const abortController = new AbortController();
const { id: requestId, signal } = getAbortSignal();
- const connectionInfo = connectionInfoAccess.getCurrentConnectionInfo();
+ const connectionInfo = connectionInfoRef.current;
track(
'AI Prompt Submitted',
diff --git a/packages/compass-query-bar/src/stores/query-bar-store.ts b/packages/compass-query-bar/src/stores/query-bar-store.ts
index 70a1dbcf532..6160fec1b0c 100644
--- a/packages/compass-query-bar/src/stores/query-bar-store.ts
+++ b/packages/compass-query-bar/src/stores/query-bar-store.ts
@@ -8,7 +8,7 @@ import thunk from 'redux-thunk';
import type { AnyAction } from 'redux';
import type { ThunkAction, ThunkDispatch } from 'redux-thunk';
import type {
- ConnectionInfoAccess,
+ ConnectionInfoRef,
DataService,
} from '@mongodb-js/compass-connections/provider';
import { DEFAULT_FIELD_VALUES } from '../constants/query-bar-store';
@@ -48,7 +48,7 @@ type QueryBarServices = {
preferences: PreferencesAccess;
logger: Logger;
track: TrackFunction;
- connectionInfoAccess: ConnectionInfoAccess;
+ connectionInfoRef: ConnectionInfoRef;
atlasAuthService: AtlasAuthService;
atlasAiService: AtlasAiService;
favoriteQueryStorageAccess?: FavoriteQueryStorageAccess;
@@ -82,7 +82,7 @@ export type QueryBarExtraArgs = {
recentQueryStorage?: RecentQueryStorage;
logger: Logger;
track: TrackFunction;
- connectionInfoAccess: ConnectionInfoAccess;
+ connectionInfoRef: ConnectionInfoRef;
atlasAiService: AtlasAiService;
};
@@ -125,7 +125,7 @@ export function activatePlugin(
preferences,
logger,
track,
- connectionInfoAccess,
+ connectionInfoRef,
atlasAuthService,
atlasAiService,
favoriteQueryStorageAccess,
@@ -160,7 +160,7 @@ export function activatePlugin(
preferences,
logger,
track,
- connectionInfoAccess,
+ connectionInfoRef,
atlasAiService,
}
);
diff --git a/packages/compass-saved-aggregations-queries/package.json b/packages/compass-saved-aggregations-queries/package.json
index aa36f48b101..3a83612b5a9 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.41.0",
+ "version": "1.42.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -48,19 +48,19 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "@mongodb-js/connection-form": "^1.39.0",
- "@mongodb-js/connection-info": "^0.7.0",
- "@mongodb-js/my-queries-storage": "^0.15.3",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "@mongodb-js/connection-form": "^1.40.0",
+ "@mongodb-js/connection-info": "^0.8.0",
+ "@mongodb-js/my-queries-storage": "^0.16.0",
"bson": "^6.7.0",
- "compass-preferences-model": "^2.28.2",
+ "compass-preferences-model": "^2.28.3",
"fuse.js": "^6.5.3",
- "hadron-app-registry": "^9.2.5",
+ "hadron-app-registry": "^9.2.6",
"mongodb-ns": "^2.4.2",
"react": "^17.0.2",
"react-redux": "^8.1.3",
@@ -68,11 +68,11 @@
"redux-thunk": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
diff --git a/packages/compass-schema-validation/package.json b/packages/compass-schema-validation/package.json
index b21ca8ec25f..292777d7b05 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.41.0",
+ "version": "6.42.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -48,37 +48,39 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.0",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
+ "@types/enzyme": "^3.10.14",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
"electron": "^30.5.1",
"electron-mocha": "^12.2.0",
"enzyme": "^3.11.0",
"eslint": "^7.25.0",
- "hadron-ipc": "^3.2.22",
+ "hadron-ipc": "^3.2.23",
"mocha": "^10.2.0",
- "mongodb-instance-model": "^12.24.2",
+ "mongodb-instance-model": "^12.24.3",
"nyc": "^15.1.0",
"react-dom": "^17.0.2",
"sinon": "^8.1.1",
"typescript": "^5.0.4"
},
"dependencies": {
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-collection": "^4.40.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-crud": "^13.41.0",
- "@mongodb-js/compass-editor": "^0.29.3",
- "@mongodb-js/compass-field-store": "^9.16.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-collection": "^4.41.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-crud": "^13.42.0",
+ "@mongodb-js/compass-editor": "^0.30.0",
+ "@mongodb-js/compass-field-store": "^9.17.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
"bson": "^6.7.0",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
"javascript-stringify": "^2.0.1",
"lodash": "^4.17.21",
"mongodb-ns": "^2.4.2",
diff --git a/packages/compass-schema-validation/src/components/validation-editor/validation-editor.spec.tsx b/packages/compass-schema-validation/src/components/validation-editor/validation-editor.spec.tsx
index fc75062041d..0b91ad1dd8b 100644
--- a/packages/compass-schema-validation/src/components/validation-editor/validation-editor.spec.tsx
+++ b/packages/compass-schema-validation/src/components/validation-editor/validation-editor.spec.tsx
@@ -1,14 +1,11 @@
import React from 'react';
-import { mount } from 'enzyme';
+import { render, screen } from '@mongodb-js/testing-library-compass';
import { expect } from 'chai';
import sinon from 'sinon';
-
import ValidationEditor from '.';
-import { CodemirrorMultilineEditor } from '@mongodb-js/compass-editor';
describe('ValidationEditor [Component]', function () {
context('when it is an editable mode', function () {
- let component: ReturnType
| null;
const setValidatorChangedSpy = sinon.spy();
const setValidationActionChangedSpy = sinon.spy();
const setValidationLevelChangedSpy = sinon.spy();
@@ -27,7 +24,7 @@ describe('ValidationEditor [Component]', function () {
const isEditable = true;
beforeEach(function () {
- component = mount(
+ render(
| null;
const setValidatorChangedSpy = sinon.spy();
const setValidationActionChangedSpy = sinon.spy();
const setValidationLevelChangedSpy = sinon.spy();
@@ -75,7 +65,7 @@ describe('ValidationEditor [Component]', function () {
const isEditable = false;
beforeEach(function () {
- component = mount(
+ render(
;
isEditable: boolean;
- darkMode?: boolean;
- track: TrackFunction;
- connectionInfoAccess: ConnectionInfoAccess;
};
/**
* The validation editor component.
*/
-class ValidationEditor extends Component {
- static displayName = 'ValidationEditor';
-
- debounceValidatorChanged: (text: string) => void;
+const ValidationEditor: React.FunctionComponent = ({
+ namespace,
+ clearSampleDocuments,
+ validatorChanged,
+ validationActionChanged,
+ validationLevelChanged,
+ cancelValidation,
+ saveValidation,
+ serverVersion,
+ validation,
+ isEditable,
+}) => {
+ const track = useTelemetry();
+ const connectionInfoRef = useConnectionInfoRef();
+
+ const clearSampleDocumentsRef = useRef(clearSampleDocuments);
+ clearSampleDocumentsRef.current = clearSampleDocuments;
+
+ const validatorChangedRef = useRef(validatorChanged);
+ validatorChangedRef.current = validatorChanged;
+
+ const saveValidationRef = useRef(saveValidation);
+ saveValidationRef.current = saveValidation;
+
+ const validationRef = useRef(validation);
+ validationRef.current = validation;
+
+ const trackValidator = useCallback(
+ (validator: string) => {
+ const checkedValidator = checkValidator(validator);
+ const trackEvent = {
+ json_schema:
+ typeof checkedValidator.validator === 'object' &&
+ !!checkedValidator.validator?.$jsonSchema,
+ };
+ track('Schema Validation Edited', trackEvent, connectionInfoRef.current);
+ },
+ [connectionInfoRef, track]
+ );
- /**
- * Set up the autocompleters once on initialization.
- *
- * @param {Object} props - The properties.
- */
- constructor(props: ValidationEditorProps) {
- super(props);
- this.debounceValidatorChanged = debounce((validator) => {
- this.props.clearSampleDocuments();
- this.trackValidator(validator);
+ const debounceValidatorChanged = useMemo(() => {
+ return debounce((validator: string) => {
+ clearSampleDocumentsRef.current();
+ trackValidator(validator);
}, 750);
- }
-
- /**
- * Save validator changes.
- */
- onValidatorSave() {
- this.props.saveValidation(this.props.validation);
- }
-
- /**
- * Save validator changes.
- *
- * @param {Object} validator - The validator.
- */
- onValidatorChange(validator: string) {
- this.props.validatorChanged(validator);
- this.validatorChanged();
- }
-
- /**
- * Checks if there is any error.
- */
- hasErrors(): boolean {
- return !!(this.props.validation.error || this.props.validation.syntaxError);
- }
-
- /**
- * Validator changed.
- */
- validatorChanged() {
- this.debounceValidatorChanged(this.props.validation.validator);
- }
+ }, [trackValidator]);
- trackValidator(validator: string) {
- const checkedValidator = checkValidator(validator);
- const trackEvent = {
- json_schema:
- typeof checkedValidator.validator === 'object' &&
- !!checkedValidator.validator?.$jsonSchema,
+ useEffect(() => {
+ return () => {
+ debounceValidatorChanged.cancel();
};
- this.props.track(
- 'Schema Validation Edited',
- trackEvent,
- this.props.connectionInfoAccess.getCurrentConnectionInfo()
- );
- }
-
- /**
- * Render action selector.
- */
- renderActionSelector() {
- const { validation, isEditable, validationActionChanged } = this.props;
- const { validationAction } = validation;
-
- return (
-
- );
- }
+ }, [debounceValidatorChanged]);
+
+ const onValidatorChange = useCallback(
+ (validator: string) => {
+ validatorChangedRef.current(validator);
+ debounceValidatorChanged(validator);
+ },
+ [debounceValidatorChanged]
+ );
- /**
- * Render level selector.
- */
- renderLevelSelector() {
- const { validation, isEditable, validationLevelChanged } = this.props;
- const { validationLevel } = validation;
+ const onValidatorSave = useCallback(() => {
+ saveValidationRef.current(validationRef.current);
+ }, []);
- return (
-
- );
- }
+ const darkMode = useDarkMode();
- /**
- * Render validation message.
- */
- renderValidationMessage() {
- if (!this.hasErrors()) {
- return;
- }
+ const { validationAction, validationLevel, error, syntaxError, isChanged } =
+ validation;
- let message = '';
- let variant: BannerVariant = 'info';
+ const hasErrors = !!(error || syntaxError);
- if (this.props.validation.syntaxError) {
- message = this.props.validation.syntaxError.message;
- variant = 'danger';
- } else if (this.props.validation.error) {
- message = this.props.validation.error.message;
- variant = 'warning';
- }
+ let message = '';
+ let variant: BannerVariant = 'info';
- return {message};
+ if (syntaxError) {
+ message = syntaxError.message;
+ variant = 'danger';
+ } else if (error) {
+ message = error.message;
+ variant = 'warning';
}
- /**
- * Render actions pannel.
- */
- renderActionsPanel() {
- if (!(this.props.validation.isChanged && this.props.isEditable)) {
- return;
- }
+ const hasChangedAndEditable = isChanged && isEditable;
- return (
-
-
- Validation modified
-
-
-
+ return (
+
+
- );
- }
-
- /**
- * Render ValidationEditor component.
- */
- render() {
- const { darkMode, isEditable, validation } = this.props;
-
- return (
-
-
- {this.renderActionSelector()}
- {this.renderLevelSelector()}
-
-
- {
- return this.onValidatorChange(text);
- }}
- readOnly={!isEditable}
- serverVersion={this.props.serverVersion}
- />
+ {
+ onValidatorChange(text);
+ }}
+ readOnly={!isEditable}
+ serverVersion={serverVersion}
+ />
+
+ {variant && message && {message}}
+ {hasChangedAndEditable && (
+
+
+ Validation modified
+
+
+
- {this.renderValidationMessage()}
- {this.renderActionsPanel()}
-
- );
- }
-}
+ )}
+
+ );
+};
-export default withTelemetry(
- withConnectionInfoAccess(
- withDarkMode
(ValidationEditor)
- )
-);
+export default ValidationEditor;
diff --git a/packages/compass-schema-validation/src/components/validation-states/validation-states.spec.tsx b/packages/compass-schema-validation/src/components/validation-states/validation-states.spec.tsx
index 9aa5cb1336b..49b188191cc 100644
--- a/packages/compass-schema-validation/src/components/validation-states/validation-states.spec.tsx
+++ b/packages/compass-schema-validation/src/components/validation-states/validation-states.spec.tsx
@@ -1,29 +1,38 @@
import React from 'react';
-import { mount } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
-import {
- Banner,
- EmptyContent,
- WarningSummary,
-} from '@mongodb-js/compass-components';
-import { Provider } from 'react-redux';
-
import ValidationStates from '.';
-import ValidationEditor from '../validation-editor';
-import { configureStore } from '../../stores/store';
+import {
+ createPluginTestHelpers,
+ screen,
+} from '@mongodb-js/testing-library-compass';
+import { CompassSchemaValidationHadronPlugin } from '../../index';
+
+const { renderWithConnections } = createPluginTestHelpers(
+ CompassSchemaValidationHadronPlugin.withMockServices({
+ dataService: {
+ collectionInfo() {
+ return Promise.resolve({});
+ },
+ } as any,
+ instance: {
+ build: {
+ version: '7.0.0',
+ },
+ on() {},
+ removeListener() {},
+ } as any,
+ }),
+ {
+ namespace: 'foo.bar',
+ } as any
+);
describe('ValidationStates [Component]', function () {
let props: any;
- let component: ReturnType;
-
- const mountComponent = (props: any) => {
- const store = configureStore({}, {} as any);
- return mount(
-
-
-
- );
+
+ const render = (props: any) => {
+ return renderWithConnections();
};
beforeEach(function () {
@@ -70,26 +79,20 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.1.0';
- component = mountComponent(props);
+ render(props);
});
it('renders the wrapper div', function () {
- expect(
- component.find(`[data-testid="schema-validation-states"]`)
- ).to.exist;
+ expect(screen.getByTestId('schema-validation-states')).to.exist;
});
it('renders the version banner', function () {
- expect(
- component.find({ ['data-testid']: 'old-server-read-only' })
- ).to.exist;
+ expect(screen.getByTestId('old-server-read-only')).to.exist;
});
it('does not render other banners', function () {
expect(
- component.find({
- ['data-testid']: 'collection-validation-warning',
- })
+ screen.queryByTestId('collection-validation-warning')
).to.not.exist;
});
});
@@ -107,22 +110,12 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('renders the collection time-series banner', function () {
expect(
- component.find({
- ['data-testid']: 'collection-validation-warning',
- })
- ).to.exist;
- expect(
- component
- .find({
- ['data-testid']: 'collection-validation-warning',
- })
- .at(0)
- .text()
+ screen.getByTestId('collection-validation-warning').textContent
).to.equal(
'Schema validation for time-series collections is not supported.'
);
@@ -142,29 +135,17 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('renders the collection read-only banner', function () {
expect(
- component.find({
- ['data-testid']: 'collection-validation-warning',
- })
- ).to.exist;
- expect(
- component
- .find({
- ['data-testid']: 'collection-validation-warning',
- })
- .at(0)
- .text()
+ screen.getByTestId('collection-validation-warning').textContent
).to.equal('Schema validation for readonly views is not supported.');
});
it('does not render other banners', function () {
- expect(
- component.find({ ['data-testid']: 'old-server-read-only' })
- ).to.be.not.exist;
+ expect(screen.queryByTestId('old-server-read-only')).to.be.not.exist;
});
});
@@ -181,12 +162,13 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('does not render a warning banner', function () {
- expect(component.find(Banner)).to.be.not.exist;
- expect(component.find(WarningSummary)).to.be.not.exist;
+ expect(
+ screen.queryByTestId('collection-validation-warning')
+ ).to.be.not.exist;
});
});
@@ -203,12 +185,13 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('does not render a warning banner', function () {
- expect(component.find(Banner)).to.be.not.exist;
- expect(component.find(WarningSummary)).to.be.not.exist;
+ expect(
+ screen.queryByTestId('collection-validation-warning')
+ ).to.be.not.exist;
});
});
@@ -225,29 +208,17 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('renders the writable banner', function () {
expect(
- component.find({
- ['data-testid']: 'collection-validation-warning',
- })
- ).to.exist;
- expect(
- component
- .find({
- ['data-testid']: 'collection-validation-warning',
- })
- .at(0)
- .text()
+ screen.getByTestId('collection-validation-warning').textContent
).to.equal('This action is not available on a secondary node.');
});
it('does not render other banners', function () {
- expect(
- component.find({ ['data-testid']: 'old-server-read-only' })
- ).to.be.not.exist;
+ expect(screen.queryByTestId('old-server-read-only')).to.be.not.exist;
});
});
@@ -264,11 +235,11 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('does not render the zero state', function () {
- expect(component.find(EmptyContent)).to.not.exist;
+ expect(screen.queryByTestId('empty-content')).to.not.exist;
});
});
@@ -285,11 +256,11 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = true;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('renders the zero state', function () {
- expect(component.find(EmptyContent)).to.exist;
+ expect(screen.getByTestId('empty-content')).to.exist;
});
});
@@ -306,11 +277,11 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = false;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('does not render the content', function () {
- expect(component.find(ValidationEditor)).to.not.exist;
+ expect(screen.queryByTestId('validation-editor')).to.not.exist;
});
});
@@ -327,11 +298,11 @@ describe('ValidationStates [Component]', function () {
props.isLoaded = true;
props.serverVersion = '3.2.0';
- component = mountComponent(props);
+ render(props);
});
it('renders the content', function () {
- expect(component.find(ValidationEditor)).to.exist;
+ expect(screen.getByTestId('validation-editor')).to.exist;
});
});
});
diff --git a/packages/compass-schema-validation/src/index.ts b/packages/compass-schema-validation/src/index.ts
index ec4da917a16..40d455dd039 100644
--- a/packages/compass-schema-validation/src/index.ts
+++ b/packages/compass-schema-validation/src/index.ts
@@ -2,7 +2,7 @@ import { onActivated } from './stores';
import CompassSchemaValidation from './components/compass-schema-validation';
import { registerHadronPlugin } from 'hadron-app-registry';
import {
- connectionInfoAccessLocator,
+ connectionInfoRefLocator,
dataServiceLocator,
type DataServiceLocator,
} from '@mongodb-js/compass-connections/provider';
@@ -21,7 +21,7 @@ export const CompassSchemaValidationHadronPlugin = registerHadronPlugin(
dataService: dataServiceLocator as DataServiceLocator<
'aggregate' | 'collectionInfo' | 'updateCollection'
>,
- connectionInfoAccess: connectionInfoAccessLocator,
+ connectionInfoRef: connectionInfoRefLocator,
instance: mongoDBInstanceLocator,
preferences: preferencesLocator,
logger: createLoggerLocator('COMPASS-SCHEMA-VALIDATION-UI'),
diff --git a/packages/compass-schema-validation/src/modules/index.ts b/packages/compass-schema-validation/src/modules/index.ts
index f0592fd6cbd..3dc9e02d3ea 100644
--- a/packages/compass-schema-validation/src/modules/index.ts
+++ b/packages/compass-schema-validation/src/modules/index.ts
@@ -24,7 +24,7 @@ import editMode, { INITIAL_STATE as EDIT_MODE_STATE } from './edit-mode';
import type { ThunkAction } from 'redux-thunk';
import type { PreferencesAccess } from 'compass-preferences-model';
import type {
- ConnectionInfoAccess,
+ ConnectionInfoRef,
DataService,
} from '@mongodb-js/compass-connections/provider';
import type AppRegistry from 'hadron-app-registry';
@@ -64,7 +64,7 @@ export type SchemaValidationExtraArgs = {
DataService,
'aggregate' | 'collectionInfo' | 'updateCollection'
>;
- connectionInfoAccess: ConnectionInfoAccess;
+ connectionInfoRef: ConnectionInfoRef;
preferences: PreferencesAccess;
globalAppRegistry: AppRegistry;
logger: Logger;
diff --git a/packages/compass-schema-validation/src/modules/validation.ts b/packages/compass-schema-validation/src/modules/validation.ts
index a98c34f5541..7752200207f 100644
--- a/packages/compass-schema-validation/src/modules/validation.ts
+++ b/packages/compass-schema-validation/src/modules/validation.ts
@@ -459,7 +459,7 @@ export const saveValidation = (
return async (
dispatch,
getState,
- { dataService, track, connectionInfoAccess }
+ { dataService, track, connectionInfoRef }
) => {
const state = getState();
const namespace = state.namespace;
@@ -475,11 +475,7 @@ export const saveValidation = (
validation_action: validation.validationAction,
validation_level: validation.validationLevel,
};
- track(
- 'Schema Validation Updated',
- trackEvent,
- connectionInfoAccess.getCurrentConnectionInfo()
- );
+ track('Schema Validation Updated', trackEvent, connectionInfoRef.current);
try {
await dataService.updateCollection(
`${namespace.database}.${namespace.collection}`,
diff --git a/packages/compass-schema-validation/src/modules/zero-state.ts b/packages/compass-schema-validation/src/modules/zero-state.ts
index fcb98f5f5b1..e3ed225a6d9 100644
--- a/packages/compass-schema-validation/src/modules/zero-state.ts
+++ b/packages/compass-schema-validation/src/modules/zero-state.ts
@@ -48,13 +48,9 @@ export const zeroStateChanged = (
export const changeZeroState = (
isZeroState: boolean
): SchemaValidationThunkAction => {
- return (dispatch, _getState, { track, connectionInfoAccess }) => {
+ return (dispatch, _getState, { track, connectionInfoRef }) => {
if (isZeroState === false) {
- track(
- 'Schema Validation Added',
- {},
- connectionInfoAccess.getCurrentConnectionInfo()
- );
+ track('Schema Validation Added', {}, connectionInfoRef.current);
}
return dispatch(zeroStateChanged(isZeroState));
};
diff --git a/packages/compass-schema-validation/src/stores/store.spec.ts b/packages/compass-schema-validation/src/stores/store.spec.ts
index bdc8f0f9b70..90be6a3c07d 100644
--- a/packages/compass-schema-validation/src/stores/store.spec.ts
+++ b/packages/compass-schema-validation/src/stores/store.spec.ts
@@ -20,7 +20,7 @@ import { onActivated } from './store';
import { createSandboxFromDefaultPreferences } from 'compass-preferences-model';
import { createNoopLogger } from '@mongodb-js/compass-logging/provider';
import { createNoopTrack } from '@mongodb-js/compass-telemetry/provider';
-import type { ConnectionInfoAccess } from '@mongodb-js/compass-connections/provider';
+import type { ConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
const topologyDescription = {
type: 'Unknown',
@@ -46,9 +46,9 @@ describe('Schema Validation Store', function () {
let store: Store;
let deactivate: null | (() => void) = null;
const globalAppRegistry = new AppRegistry();
- const connectionInfoAccess = {
- getCurrentConnectionInfo: () => {},
- } as ConnectionInfoAccess;
+ const connectionInfoRef = {
+ current: {},
+ } as ConnectionInfoRef;
beforeEach(async function () {
const activateResult = onActivated(
@@ -60,7 +60,7 @@ describe('Schema Validation Store', function () {
preferences: await createSandboxFromDefaultPreferences(),
logger: createNoopLogger(),
track: createNoopTrack(),
- connectionInfoAccess,
+ connectionInfoRef,
},
createActivateHelpers()
);
diff --git a/packages/compass-schema-validation/src/stores/store.ts b/packages/compass-schema-validation/src/stores/store.ts
index 38510cf10cf..41a0f2364d6 100644
--- a/packages/compass-schema-validation/src/stores/store.ts
+++ b/packages/compass-schema-validation/src/stores/store.ts
@@ -9,7 +9,7 @@ import semver from 'semver';
import type { CollectionTabPluginMetadata } from '@mongodb-js/compass-collection';
import type { ActivateHelpers, AppRegistry } from 'hadron-app-registry';
import type {
- ConnectionInfoAccess,
+ ConnectionInfoRef,
DataService,
} from '@mongodb-js/compass-connections/provider';
import type { MongoDBInstance } from '@mongodb-js/compass-app-stores/provider';
@@ -28,7 +28,7 @@ type SchemaValidationServices = {
DataService,
'aggregate' | 'collectionInfo' | 'updateCollection'
>;
- connectionInfoAccess: ConnectionInfoAccess;
+ connectionInfoRef: ConnectionInfoRef;
preferences: PreferencesAccess;
instance: MongoDBInstance;
logger: Logger;
@@ -45,7 +45,7 @@ export function configureStore(
| 'preferences'
| 'logger'
| 'track'
- | 'connectionInfoAccess'
+ | 'connectionInfoRef'
>
) {
return createStore(
@@ -66,7 +66,7 @@ export function onActivated(
{
globalAppRegistry,
dataService,
- connectionInfoAccess,
+ connectionInfoRef,
preferences,
instance,
logger,
@@ -87,7 +87,7 @@ export function onActivated(
},
{
dataService,
- connectionInfoAccess,
+ connectionInfoRef,
preferences,
globalAppRegistry,
logger,
diff --git a/packages/compass-schema/package.json b/packages/compass-schema/package.json
index cbc53ddb822..095ecd8b4b9 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.42.0",
+ "version": "6.43.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -48,12 +48,12 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
- "@mongodb-js/my-queries-storage": "^0.15.3",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
+ "@mongodb-js/my-queries-storage": "^0.16.0",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/leaflet": "^1.9.8",
"@types/leaflet-draw": "^1.0.11",
@@ -72,26 +72,26 @@
"xvfb-maybe": "^0.2.1"
},
"dependencies": {
- "@mongodb-js/compass-collection": "^4.40.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-field-store": "^9.16.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-query-bar": "^8.42.0",
- "@mongodb-js/connection-storage": "^0.20.0",
+ "@mongodb-js/compass-collection": "^4.41.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-field-store": "^9.17.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-query-bar": "^8.43.0",
+ "@mongodb-js/connection-storage": "^0.21.0",
"bson": "^6.7.0",
- "compass-preferences-model": "^2.28.2",
+ "compass-preferences-model": "^2.28.3",
"d3": "^3.5.17",
- "hadron-app-registry": "^9.2.5",
- "hadron-document": "^8.6.2",
+ "hadron-app-registry": "^9.2.6",
+ "hadron-document": "^8.6.3",
"leaflet": "^1.5.1",
"leaflet-defaulticon-compatibility": "^0.1.1",
"leaflet-draw": "^1.0.4",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"mongodb": "^6.8.0",
- "mongodb-query-util": "^2.2.7",
+ "mongodb-query-util": "^2.2.8",
"mongodb-schema": "^12.2.0",
"numeral": "^1.5.6",
"prop-types": "^15.7.2",
@@ -99,7 +99,7 @@
"react-leaflet": "^2.4.0",
"react-leaflet-draw": "^0.19.0",
"reflux": "^0.4.1",
- "@mongodb-js/reflux-state-mixin": "^1.0.6"
+ "@mongodb-js/reflux-state-mixin": "^1.0.7"
},
"is_compass_plugin": true
}
diff --git a/packages/compass-schema/src/index.ts b/packages/compass-schema/src/index.ts
index 201098d8abd..e5e19217183 100644
--- a/packages/compass-schema/src/index.ts
+++ b/packages/compass-schema/src/index.ts
@@ -1,5 +1,5 @@
import {
- connectionInfoAccessLocator,
+ connectionInfoRefLocator,
dataServiceLocator,
type DataServiceLocator,
} from '@mongodb-js/compass-connections/provider';
@@ -28,7 +28,7 @@ export const CompassSchemaHadronPlugin = registerHadronPlugin(
preferences: preferencesLocator,
fieldStoreService: fieldStoreServiceLocator,
queryBar: queryBarServiceLocator,
- connectionInfoAccess: connectionInfoAccessLocator,
+ connectionInfoRef: connectionInfoRefLocator,
}
);
export const CompassSchemaPlugin = {
diff --git a/packages/compass-schema/src/stores/store.spec.ts b/packages/compass-schema/src/stores/store.spec.ts
index f08d4617d25..e6cf05f7ba5 100644
--- a/packages/compass-schema/src/stores/store.spec.ts
+++ b/packages/compass-schema/src/stores/store.spec.ts
@@ -8,7 +8,7 @@ import { createSandboxFromDefaultPreferences } from 'compass-preferences-model';
import { createNoopLogger } from '@mongodb-js/compass-logging/provider';
import type { FieldStoreService } from '@mongodb-js/compass-field-store';
import { createNoopTrack } from '@mongodb-js/compass-telemetry/provider';
-import type { ConnectionInfoAccess } from '@mongodb-js/compass-connections/provider';
+import type { ConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
const dummyLogger = createNoopLogger('TEST');
const dummyTrack = createNoopTrack();
@@ -32,9 +32,9 @@ describe('Schema Store', function () {
const globalAppRegistry = new AppRegistry();
const dataService = 'test';
const namespace = 'db.coll';
- const connectionInfoAccess = {
- getCurrentConnectionInfo: () => {},
- } as ConnectionInfoAccess;
+ const connectionInfoRef = {
+ current: {},
+ } as ConnectionInfoRef;
beforeEach(async function () {
const plugin = activateSchemaPlugin(
@@ -50,7 +50,7 @@ describe('Schema Store', function () {
preferences: await createSandboxFromDefaultPreferences(),
fieldStoreService: mockFieldStoreService,
queryBar: mockQueryBar as any,
- connectionInfoAccess,
+ connectionInfoRef,
},
createActivateHelpers()
);
diff --git a/packages/compass-schema/src/stores/store.ts b/packages/compass-schema/src/stores/store.ts
index 9485a1250e9..6bad28897a7 100644
--- a/packages/compass-schema/src/stores/store.ts
+++ b/packages/compass-schema/src/stores/store.ts
@@ -21,7 +21,7 @@ import { capMaxTimeMSAtPreferenceLimit } from 'compass-preferences-model/provide
import { openToast } from '@mongodb-js/compass-components';
import type { CollectionTabPluginMetadata } from '@mongodb-js/compass-collection';
import type {
- ConnectionInfoAccess,
+ ConnectionInfoRef,
DataService as OriginalDataService,
} from '@mongodb-js/compass-connections/provider';
import type { ActivateHelpers } from 'hadron-app-registry';
@@ -60,7 +60,7 @@ function resultId(): number {
export type DataService = Pick;
export type SchemaPluginServices = {
dataService: DataService;
- connectionInfoAccess: ConnectionInfoAccess;
+ connectionInfoRef: ConnectionInfoRef;
localAppRegistry: Pick;
globalAppRegistry: Pick;
logger: Logger;
@@ -131,7 +131,7 @@ export function activateSchemaPlugin(
preferences,
fieldStoreService,
queryBar,
- connectionInfoAccess,
+ connectionInfoRef,
}: SchemaPluginServices,
{ on, cleanup }: ActivateHelpers
) {
@@ -266,11 +266,7 @@ export function activateSchemaPlugin(
geo_data: schema ? schemaContainsGeoData(schema) : false,
analysis_time_ms: analysisTimeMS,
});
- track(
- 'Schema Analyzed',
- trackEvent,
- connectionInfoAccess.getCurrentConnectionInfo()
- );
+ track('Schema Analyzed', trackEvent, connectionInfoRef.current);
},
startAnalysis: async function (this: SchemaStore) {
diff --git a/packages/compass-serverstats/package.json b/packages/compass-serverstats/package.json
index 9478e2c9408..b25c452969a 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.40.0",
+ "version": "16.41.0",
"main": "dist/index.js",
"compass:main": "src/index.ts",
"exports": {
@@ -30,15 +30,15 @@
},
"license": "SSPL",
"dependencies": {
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-workspaces": "^0.22.0",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
"d3": "^3.5.17",
"d3-timer": "^1.0.3",
"debug": "^4.3.4",
- "hadron-app-registry": "^9.2.5",
+ "hadron-app-registry": "^9.2.6",
"lodash": "^4.17.21",
"mongodb-ns": "^2.4.2",
"prop-types": "^15.7.2",
@@ -46,12 +46,12 @@
"reflux": "^0.4.1"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.0",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/d3": "^3.5.x",
- "@types/enzyme": "^3.10.14",
"chai": "^4.1.2",
"depcheck": "^1.4.1",
"electron-mocha": "^12.2.0",
diff --git a/packages/compass-serverstats/src/components/current-op-component.jsx b/packages/compass-serverstats/src/components/current-op-component.jsx
deleted file mode 100644
index a17af94ee28..00000000000
--- a/packages/compass-serverstats/src/components/current-op-component.jsx
+++ /dev/null
@@ -1,202 +0,0 @@
-const timer = require('d3-timer');
-const React = require('react');
-const PropTypes = require('prop-types');
-const Actions = require('../actions');
-const DBErrorStore = require('../stores/dberror-store');
-const { withTelemetry } = require('@mongodb-js/compass-telemetry/provider');
-const {
- withConnectionInfoAccess,
-} = require('@mongodb-js/compass-connections/provider');
-
-// const debug = require('debug')('mongodb-compass:server-stats:current-op-component');
-
-/**
- * Represents the component that renders the current op information.
- */
-class CurrentOpComponent extends React.Component {
- /**
- * The current op component should be initialized with a 'store'
- * property, that triggers with the result of a { currentOp: 1 }
- * command.
- *
- * @param {Object} props - The component properties.
- */
- constructor(props) {
- super(props);
- this.state = { error: null, data: [], display: 'flex' };
- }
-
- /**
- * When the component mounts, the component will subscribe to the
- * provided store, so that each time the store triggers the component
- * can update its state.
- */
- componentDidMount() {
- this.unsubscribeRefresh = this.props.store.listen(this.refresh.bind(this));
- this.unsubscribeShowOperationDetails = Actions.showOperationDetails.listen(
- this.hide.bind(this)
- );
- this.unsubscribeHideOperationDetails = Actions.hideOperationDetails.listen(
- this.show.bind(this)
- );
-
- if (!DBErrorStore.ops.currentOp) {
- this.unsubscribeError = DBErrorStore.listen(this.stop.bind(this));
- this.timer = timer.interval(() => {
- Actions.currentOp();
- }, this.props.interval);
- }
- }
-
- /**
- * When the component unmounts, we unsubscribe from the store and stop the
- * timer.
- */
- componentWillUnmount() {
- this.unsubscribeRefresh();
- this.unsubscribeShowOperationDetails();
- this.unsubscribeHideOperationDetails();
-
- if (this.unsubscribeError) {
- this.unsubscribeError();
- this.timer.stop();
- }
- }
-
- stop() {
- if (this.timer) {
- this.timer.stop();
- }
- }
-
- /**
- * Refreshes the component state with the new current op data that was
- * received from the store.
- *
- * @param {Error} error - The error, if any occured.
- * @param {Object} data - The javascript object for the result of the command.
- */
- refresh(error, data) {
- this.setState({ error: error, data: data });
- }
-
- /**
- * Set the component to visible.
- */
- show() {
- this.setState({ display: 'flex' });
- }
-
- /**
- * Set the component to hidden.
- */
- hide() {
- this.setState({ display: 'none' });
- }
-
- /**
- * Fire the show operation detail action with the row data.
- *
- * @param {Object} data - The row data.
- */
- showOperationDetails(data) {
- this.props.track(
- 'CurrentOp showOperationDetails',
- {},
- this.props.connectionInfoAccess.getCurrentConnectionInfo()
- );
- Actions.showOperationDetails(data);
- }
-
- /**
- * Render the error message in the component.
- *
- * @returns {String} The error message.
- */
- renderError() {
- return (
-
- );
- }
-
- /**
- * Render the error message in the component.
- *
- * @returns {React.Component} The zero-state.
- */
- renderZero() {
- return (
-
-
-
- ✔ No Slow Operations
-
-
- );
- }
-
- /**
- * Render the table in the component.
- *
- * @returns {React.Component} The table.
- */
- renderGraph() {
- const rows = this.state.data.map((row, i) => {
- return (
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
- this.showOperationDetails(row)}
- key={`list-item-${i}`}
- >
- {row.op}
- {row.ns}
- {row.ms_running + ' ms'}
-
- );
- });
- return (
-
- );
- }
-
- /**
- * Renders the component.
- *
- * @returns {React.Component} The component.
- */
- render() {
- if (this.state.error) {
- return this.renderError();
- }
- if (this.state.data.length === 0) {
- return this.renderZero();
- }
- return this.renderGraph();
- }
-}
-
-CurrentOpComponent.propTypes = {
- store: PropTypes.any.isRequired,
- interval: PropTypes.number.isRequired,
- track: PropTypes.any.isRequired,
- connectionInfoAccess: PropTypes.any.isRequired,
-};
-
-CurrentOpComponent.displayName = 'CurrentOpComponent';
-
-module.exports = withTelemetry(withConnectionInfoAccess(CurrentOpComponent));
diff --git a/packages/compass-serverstats/src/components/current-op-component.tsx b/packages/compass-serverstats/src/components/current-op-component.tsx
new file mode 100644
index 00000000000..eb87f6300a0
--- /dev/null
+++ b/packages/compass-serverstats/src/components/current-op-component.tsx
@@ -0,0 +1,139 @@
+import React, { useCallback, useEffect, useState } from 'react';
+import { useTelemetry } from '@mongodb-js/compass-telemetry/provider';
+import { useConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
+
+// No types exist for these files
+/* eslint-disable @typescript-eslint/no-var-requires */
+const timer = require('d3-timer');
+const Actions = require('../actions');
+const DBErrorStore = require('../stores/dberror-store');
+/* eslint-enable @typescript-eslint/no-var-requires */
+
+type Row = {
+ ns: string;
+ op: string;
+ ms_running: number;
+};
+
+/**
+ * Represents the component that renders the current op information.
+ */
+const CurrentOpComponent: React.FunctionComponent<{
+ store: any;
+ interval: number;
+}> = ({ store, interval }) => {
+ const [state, setState] = useState<{
+ error: Error | null;
+ data: Row[];
+ display: string;
+ }>({
+ error: null,
+ data: [],
+ display: 'flex',
+ });
+
+ useEffect(() => {
+ return store.listen((error: any, data: any) => {
+ setState((prevState) => {
+ return { ...prevState, error, data };
+ });
+ });
+ }, [store]);
+
+ useEffect(() => {
+ return Actions.showOperationDetails.listen(() => {
+ setState((prevState) => {
+ return { ...prevState, display: 'none' };
+ });
+ });
+ }, [store]);
+
+ useEffect(() => {
+ return Actions.hideOperationDetails.listen(() => {
+ setState((prevState) => {
+ return { ...prevState, display: 'flex' };
+ });
+ });
+ }, [store]);
+
+ useEffect(() => {
+ if (!DBErrorStore.ops.currentOp) {
+ const timerInterval = timer.interval(() => {
+ Actions.currentOp();
+ }, interval);
+ const unsubscribe = DBErrorStore.listen(() => {
+ timerInterval.stop();
+ });
+ return () => {
+ timerInterval.stop();
+ unsubscribe();
+ };
+ }
+ }, [interval, store]);
+
+ const track = useTelemetry();
+ const connectionInfoRef = useConnectionInfoRef();
+
+ const showOperationDetails = useCallback(
+ (data) => {
+ track('CurrentOp showOperationDetails', {}, connectionInfoRef.current);
+ Actions.showOperationDetails(data);
+ },
+ [connectionInfoRef, track]
+ );
+
+ if (state.error) {
+ return (
+
+ );
+ }
+
+ if (state.data.length === 0) {
+ return (
+
+
+
+ ✔ No Slow Operations
+
+
+ );
+ }
+
+ const rows = state.data.map((row, i) => {
+ return (
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
+ {
+ showOperationDetails(row);
+ }}
+ key={`list-item-${i}`}
+ >
+ {row.op}
+ {row.ns}
+ {String(row.ms_running) + ' ms'}
+
+ );
+ });
+
+ return (
+
+ );
+};
+
+export default CurrentOpComponent;
+export { CurrentOpComponent };
diff --git a/packages/compass-serverstats/src/components/detailview-component.tsx b/packages/compass-serverstats/src/components/detailview-component.tsx
index 87a4b2e3f3e..840b02c73bf 100644
--- a/packages/compass-serverstats/src/components/detailview-component.tsx
+++ b/packages/compass-serverstats/src/components/detailview-component.tsx
@@ -3,7 +3,7 @@ import { Button, Icon } from '@mongodb-js/compass-components';
import { useTelemetry } from '@mongodb-js/compass-telemetry/provider';
import Actions from '../actions';
-import { useConnectionInfoAccess } from '@mongodb-js/compass-connections/provider';
+import { useConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
function removeMS(key: string, value: any) {
if (key === 'ms_running') {
@@ -26,7 +26,7 @@ export function DetailViewComponent() {
const [data, setData] = useState(null);
const track = useTelemetry();
- const connectionInfoAccess = useConnectionInfoAccess();
+ const connectionInfoRef = useConnectionInfoRef();
useEffect(() => {
const unsubscribeShowOperationDetails = Actions.showOperationDetails.listen(
@@ -47,23 +47,15 @@ export function DetailViewComponent() {
}, []);
const hideOperationDetails = useCallback(() => {
- track(
- 'DetailView hideOperationDetails',
- {},
- connectionInfoAccess.getCurrentConnectionInfo()
- );
+ track('DetailView hideOperationDetails', {}, connectionInfoRef.current);
Actions.hideOperationDetails();
- }, [track, connectionInfoAccess]);
+ }, [track, connectionInfoRef]);
const onKillOp = useCallback(() => {
- track(
- 'DetailView killOp',
- {},
- connectionInfoAccess.getCurrentConnectionInfo()
- );
+ track('DetailView killOp', {}, connectionInfoRef.current);
if (data?.opid !== undefined) Actions.killOp(data.opid);
hideOperationDetails();
- }, [data, track, hideOperationDetails, connectionInfoAccess]);
+ }, [data, track, hideOperationDetails, connectionInfoRef]);
if (!data) {
return null;
diff --git a/packages/compass-serverstats/src/components/index.tsx b/packages/compass-serverstats/src/components/index.tsx
index a6757433c2c..756085c82e4 100644
--- a/packages/compass-serverstats/src/components/index.tsx
+++ b/packages/compass-serverstats/src/components/index.tsx
@@ -25,7 +25,7 @@ import {
useTrackOnChange,
type TrackFunction,
} from '@mongodb-js/compass-telemetry/provider';
-import { useConnectionInfoAccess } from '@mongodb-js/compass-connections/provider';
+import { useConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
const REFRESH_STATS_INTERVAL_MS = 1000;
@@ -119,17 +119,13 @@ function PerformancePanelMsgs() {
*/
function PerformanceComponent() {
const eventDispatcher = useRef(realTimeDispatcher());
- const connectionInfoAccess = useConnectionInfoAccess();
+ const connectionInfoRef = useConnectionInfoRef();
useTrackOnChange(
(track: TrackFunction) => {
- track(
- 'Screen',
- { name: 'performance' },
- connectionInfoAccess.getCurrentConnectionInfo()
- );
+ track('Screen', { name: 'performance' }, connectionInfoRef.current);
},
- [connectionInfoAccess]
+ [connectionInfoRef]
);
useEffect(() => {
diff --git a/packages/compass-serverstats/src/components/server-stats-lists-component.jsx b/packages/compass-serverstats/src/components/server-stats-lists-component.jsx
index e688f217ddf..7de6860d2b8 100644
--- a/packages/compass-serverstats/src/components/server-stats-lists-component.jsx
+++ b/packages/compass-serverstats/src/components/server-stats-lists-component.jsx
@@ -1,7 +1,7 @@
const React = require('react');
const PropTypes = require('prop-types');
const { DetailViewComponent } = require('./detailview-component');
-const CurrentOpComponent = require('./current-op-component');
+const { CurrentOpComponent } = require('./current-op-component');
const TopComponent = require('./top-component');
const CurrentOpStore = require('../stores/current-op-store');
const TopStore = require('../stores/top-store');
diff --git a/packages/compass-serverstats/src/components/server-stats-toolbar.tsx b/packages/compass-serverstats/src/components/server-stats-toolbar.tsx
index 8ea26d269fa..8bdf736838a 100644
--- a/packages/compass-serverstats/src/components/server-stats-toolbar.tsx
+++ b/packages/compass-serverstats/src/components/server-stats-toolbar.tsx
@@ -13,7 +13,7 @@ import { useTelemetry } from '@mongodb-js/compass-telemetry/provider';
import Actions from '../actions';
import ServerStatsStore from '../stores/server-stats-graphs-store';
-import { useConnectionInfoAccess } from '@mongodb-js/compass-connections/provider';
+import { useConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
const serverStatsToolbarStyles = css({
display: 'flex',
@@ -58,7 +58,7 @@ type ServerStatsToolbarProps = {
function ServerStatsToolbar({ eventDispatcher }: ServerStatsToolbarProps) {
const track = useTelemetry();
- const connectionInfoAccess = useConnectionInfoAccess();
+ const connectionInfoRef = useConnectionInfoRef();
const darkMode = useDarkMode();
const [time, setTime] = useState('00:00:00');
@@ -73,7 +73,7 @@ function ServerStatsToolbar({ eventDispatcher }: ServerStatsToolbarProps) {
}, [eventDispatcher]);
const onPlayPauseClicked = useCallback(() => {
- const connectionInfo = connectionInfoAccess.getCurrentConnectionInfo();
+ const connectionInfo = connectionInfoRef.current;
if (isPaused) {
track('Performance Resumed', {}, connectionInfo);
} else {
@@ -81,7 +81,7 @@ function ServerStatsToolbar({ eventDispatcher }: ServerStatsToolbarProps) {
}
setPaused(!isPaused);
Actions.pause();
- }, [isPaused, track, connectionInfoAccess]);
+ }, [isPaused, track, connectionInfoRef]);
return (
);
+ render();
});
afterEach(function () {
ServerStatsStore.isMongos = false;
- component.unmount();
});
it('displays the top not available in mongos message', function () {
- const state = component.find(Banner);
- expect(state.text()).to.include(
- 'Top command is not available for mongos, some charts may not show any data.'
- );
+ expect(
+ screen.getByText(
+ 'Top command is not available for mongos, some charts may not show any data.'
+ )
+ ).to.exist;
});
});
context(
'when top is unable to retrieve information about some collections',
function () {
- let component = null;
-
beforeEach(function () {
TopStore.topUnableToRetrieveSomeCollections = true;
- component = mount();
+ render();
});
afterEach(function () {
TopStore.topUnableToRetrieveSomeCollections = false;
- component.unmount();
});
it('displays a warning message', function () {
- const state = component.find(Banner);
- expect(state.text()).to.include(
- 'Top command is unable to retrieve information about certain collections, resulting in incomplete data being displayed on the charts.'
- );
+ expect(
+ screen.getByText(
+ 'Top command is unable to retrieve information about certain collections, resulting in incomplete data being displayed on the charts.'
+ )
+ ).to.exist;
});
}
);
diff --git a/packages/compass-serverstats/test/enzyme/server-stats-toolbar.test.tsx b/packages/compass-serverstats/test/enzyme/server-stats-toolbar.test.tsx
index dac16cdafb5..a96a87e0282 100644
--- a/packages/compass-serverstats/test/enzyme/server-stats-toolbar.test.tsx
+++ b/packages/compass-serverstats/test/enzyme/server-stats-toolbar.test.tsx
@@ -1,8 +1,7 @@
import { expect } from 'chai';
-import enzyme from 'enzyme';
import React from 'react';
import d3 from 'd3';
-
+import { render, screen } from '@mongodb-js/testing-library-compass';
import realTimeDispatcher from '../../src/d3/real-time-dispatcher';
import { ServerStatsToolbar } from '../../src/components/server-stats-toolbar';
@@ -10,15 +9,15 @@ describe('', function () {
context('when initialized, mounted and rendered', function () {
beforeEach(function () {
this.dispatcher = realTimeDispatcher();
- this.component = enzyme.mount(
+ this.component = render(
);
});
it('shows a default time of 00:00:00', function () {
- expect(
- this.component.find('[data-testid="server-stats-time"]').text()
- ).to.equal('00:00:00');
+ expect(screen.getByTestId('server-stats-time').textContent).to.equal(
+ '00:00:00'
+ );
});
context('when the eventDispatcher notifies a newXValue', function () {
@@ -28,9 +27,9 @@ describe('', function () {
});
it('shows the correct time', function () {
- expect(
- this.component.find('[data-testid="server-stats-time"]').text()
- ).to.equal((d3 as any).time.format.utc('%X')(this.date));
+ expect(screen.getByTestId('server-stats-time').textContent).to.equal(
+ (d3 as any).time.format.utc('%X')(this.date)
+ );
});
});
});
diff --git a/packages/compass-settings/package.json b/packages/compass-settings/package.json
index 82659a3cbb3..54b2a249760 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.40.2",
+ "version": "0.40.3",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -49,24 +49,24 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/atlas-service": "^0.28.2",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-generative-ai": "^0.22.2",
- "@mongodb-js/compass-logging": "^1.4.6",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
- "hadron-ipc": "^3.2.22",
+ "@mongodb-js/atlas-service": "^0.28.3",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-generative-ai": "^0.22.3",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
+ "hadron-ipc": "^3.2.23",
"react": "^17.0.2",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
diff --git a/packages/compass-shell/package.json b/packages/compass-shell/package.json
index a8b6218e3d3..8385b43394f 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.40.0",
+ "version": "3.41.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -49,30 +49,31 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-user-data": "^0.3.6",
- "@mongodb-js/compass-utils": "^0.6.11",
- "@mongodb-js/compass-workspaces": "^0.22.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-user-data": "^0.3.7",
+ "@mongodb-js/compass-utils": "^0.6.12",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
"@mongosh/browser-repl": "^2.3.1",
"@mongosh/logging": "^2.3.1",
"@mongosh/node-runtime-worker-thread": "^2.3.1",
"bson": "^6.7.0",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
"react": "^17.0.2",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
+ "@types/enzyme": "^3.10.14",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
"electron": "^30.5.1",
diff --git a/packages/compass-shell/src/index.ts b/packages/compass-shell/src/index.ts
index dd0d732b248..2b73e217df9 100644
--- a/packages/compass-shell/src/index.ts
+++ b/packages/compass-shell/src/index.ts
@@ -7,7 +7,7 @@ import { type WorkspaceComponent } from '@mongodb-js/compass-workspaces';
import {
dataServiceLocator,
type DataService,
- connectionInfoAccessLocator,
+ connectionInfoRefLocator,
type DataServiceLocator,
} from '@mongodb-js/compass-connections/provider';
@@ -21,7 +21,7 @@ export const CompassShellPlugin = registerHadronPlugin(
logger: createLoggerLocator('COMPASS-SHELL'),
track: telemetryLocator,
dataService: dataServiceLocator as DataServiceLocator,
- connectionInfo: connectionInfoAccessLocator,
+ connectionInfo: connectionInfoRefLocator,
preferences: preferencesLocator,
}
);
diff --git a/packages/compass-shell/src/modules/worker-runtime.ts b/packages/compass-shell/src/modules/worker-runtime.ts
index b22d10c8ea9..33dcdb535b1 100644
--- a/packages/compass-shell/src/modules/worker-runtime.ts
+++ b/packages/compass-shell/src/modules/worker-runtime.ts
@@ -1,5 +1,5 @@
import type {
- ConnectionInfoAccess,
+ ConnectionInfoRef,
DataService,
} from '@mongodb-js/compass-connections/provider';
import type { MongoLogWriter } from '@mongodb-js/compass-logging/provider';
@@ -48,7 +48,7 @@ export function createWorkerRuntime(
dataService: DataService,
log: MongoLogWriter,
track: TrackFunction,
- connectionInfo: ConnectionInfoAccess
+ connectionInfo: ConnectionInfoRef
): typeof WorkerRuntime['prototype'] {
const emitter = new EventEmitter();
@@ -63,11 +63,7 @@ export function createWorkerRuntime(
// We always enable telemetry here, since the track call will
// already check whether Compass telemetry is enabled or not.
track: ({ event, properties }) => {
- return track(
- `Shell ${event}`,
- properties,
- connectionInfo.getCurrentConnectionInfo()
- );
+ return track(`Shell ${event}`, properties, connectionInfo.current);
},
flush: () => {
return Promise.resolve(); // not needed
diff --git a/packages/compass-shell/src/plugin.tsx b/packages/compass-shell/src/plugin.tsx
index 4ba46dc2218..18da16ed490 100644
--- a/packages/compass-shell/src/plugin.tsx
+++ b/packages/compass-shell/src/plugin.tsx
@@ -3,7 +3,7 @@ import thunk from 'redux-thunk';
import { HistoryStorage } from './modules/history-storage';
import { type Logger } from '@mongodb-js/compass-logging/provider';
import type {
- ConnectionInfoAccess,
+ ConnectionInfoRef,
DataService,
} from '@mongodb-js/compass-connections/provider';
import type { PreferencesAccess } from 'compass-preferences-model';
@@ -45,7 +45,7 @@ export type ShellPluginServices = {
track: TrackFunction;
dataService: DataService;
preferences: PreferencesAccess;
- connectionInfo: ConnectionInfoAccess;
+ connectionInfo: ConnectionInfoRef;
};
export type ShellPluginExtraArgs = ShellPluginServices & {
diff --git a/packages/compass-sidebar/package.json b/packages/compass-sidebar/package.json
index bfd7c9368fc..2322dccac95 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.41.0",
+ "version": "5.42.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -48,22 +48,22 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connection-import-export": "^0.37.0",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-connections-navigation": "^1.40.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-maybe-protect-connection-string": "^0.26.2",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "@mongodb-js/connection-form": "^1.39.0",
- "@mongodb-js/connection-info": "^0.7.0",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connection-import-export": "^0.38.0",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-connections-navigation": "^1.41.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-maybe-protect-connection-string": "^0.26.3",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "@mongodb-js/connection-form": "^1.40.0",
+ "@mongodb-js/connection-info": "^0.8.0",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
"lodash": "^4.17.21",
"mongodb": "^6.8.0",
- "mongodb-instance-model": "^12.24.2",
+ "mongodb-instance-model": "^12.24.3",
"mongodb-ns": "^2.4.2",
"react": "^17.0.2",
"react-redux": "^8.1.3",
@@ -71,11 +71,11 @@
"redux-thunk": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
@@ -87,7 +87,7 @@
"electron-mocha": "^12.2.0",
"eslint": "^7.25.0",
"mocha": "^10.2.0",
- "mongodb-data-service": "^22.23.2",
+ "mongodb-data-service": "^22.23.3",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"react-dom": "^17.0.2",
diff --git a/packages/compass-telemetry/package.json b/packages/compass-telemetry/package.json
index ea608477df7..77e464ae26b 100644
--- a/packages/compass-telemetry/package.json
+++ b/packages/compass-telemetry/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "1.1.6",
+ "version": "1.1.7",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -52,16 +52,16 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-logging": "^1.4.6",
- "hadron-app-registry": "^9.2.5",
- "hadron-ipc": "^3.2.22",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "hadron-app-registry": "^9.2.6",
+ "hadron-ipc": "^3.2.23",
"react": "^17.0.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/compass-test-server/package.json b/packages/compass-test-server/package.json
index d4422bea38d..fc93a75b2a7 100644
--- a/packages/compass-test-server/package.json
+++ b/packages/compass-test-server/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "0.1.21",
+ "version": "0.1.22",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -53,10 +53,10 @@
"mongodb-runner": "^5.6.3"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
"depcheck": "^1.4.1",
diff --git a/packages/compass-user-data/package.json b/packages/compass-user-data/package.json
index dcce5efaaf8..835e8f4f0c2 100644
--- a/packages/compass-user-data/package.json
+++ b/packages/compass-user-data/package.json
@@ -12,7 +12,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "0.3.6",
+ "version": "0.3.7",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -49,16 +49,16 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-utils": "^0.6.11",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-utils": "^0.6.12",
"write-file-atomic": "^5.0.1",
"zod": "^3.22.3"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/compass-utils/package.json b/packages/compass-utils/package.json
index 83d9a9c0d27..cadde61f2b8 100644
--- a/packages/compass-utils/package.json
+++ b/packages/compass-utils/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "0.6.11",
+ "version": "0.6.12",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -50,10 +50,10 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/compass-web/package.json b/packages/compass-web/package.json
index 41502cf3ef6..1e3a95da45a 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.7.0",
+ "version": "0.7.1",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -62,34 +62,35 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
- "@mongodb-js/atlas-service": "^0.28.2",
- "@mongodb-js/compass-aggregations": "^9.43.0",
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-collection": "^4.40.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-crud": "^13.41.0",
- "@mongodb-js/compass-databases-collections": "^1.40.0",
- "@mongodb-js/compass-explain-plan": "^6.41.0",
- "@mongodb-js/compass-export-to-language": "^9.17.0",
- "@mongodb-js/compass-field-store": "^9.16.0",
- "@mongodb-js/compass-generative-ai": "^0.22.2",
- "@mongodb-js/compass-indexes": "^5.40.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-query-bar": "^8.42.0",
- "@mongodb-js/compass-schema": "^6.42.0",
- "@mongodb-js/compass-schema-validation": "^6.41.0",
- "@mongodb-js/compass-sidebar": "^5.41.0",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-welcome": "^0.39.0",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "@mongodb-js/connection-storage": "^0.20.0",
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/atlas-service": "^0.28.3",
+ "@mongodb-js/compass-aggregations": "^9.44.0",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-collection": "^4.41.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-crud": "^13.42.0",
+ "@mongodb-js/compass-databases-collections": "^1.41.0",
+ "@mongodb-js/compass-explain-plan": "^6.42.0",
+ "@mongodb-js/compass-export-to-language": "^9.18.0",
+ "@mongodb-js/compass-field-store": "^9.17.0",
+ "@mongodb-js/compass-generative-ai": "^0.22.3",
+ "@mongodb-js/compass-indexes": "^5.41.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-query-bar": "^8.43.0",
+ "@mongodb-js/compass-schema": "^6.43.0",
+ "@mongodb-js/compass-schema-validation": "^6.42.0",
+ "@mongodb-js/compass-sidebar": "^5.42.0",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-welcome": "^0.40.0",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "@mongodb-js/connection-storage": "^0.21.0",
+ "@mongodb-js/devtools-proxy-support": "^0.3.9",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
- "@mongodb-js/webpack-config-compass": "^1.4.1",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
+ "@mongodb-js/webpack-config-compass": "^1.4.2",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/express-http-proxy": "^1.6.6",
@@ -101,7 +102,7 @@
"bson": "^6.2.0",
"buffer": "^6.0.3",
"chai": "^4.3.6",
- "compass-preferences-model": "^2.28.2",
+ "compass-preferences-model": "^2.28.3",
"crypto-browserify": "^3.12.0",
"debug": "^4.3.4",
"depcheck": "^1.4.1",
@@ -111,13 +112,13 @@
"events": "^3.3.0",
"express": "^4.20.0",
"express-http-proxy": "^2.0.0",
- "hadron-app-registry": "^9.2.5",
+ "hadron-app-registry": "^9.2.6",
"is-ip": "^5.0.1",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"mongodb": "^6.8.0",
"mongodb-connection-string-url": "^3.0.1",
- "mongodb-data-service": "^22.23.2",
+ "mongodb-data-service": "^22.23.3",
"mongodb-ns": "^2.4.2",
"nyc": "^15.1.0",
"os-browserify": "^0.3.0",
diff --git a/packages/compass-welcome/package.json b/packages/compass-welcome/package.json
index e89cf93b014..1d1fa3643bb 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.39.0",
+ "version": "0.40.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -49,23 +49,23 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
"react": "^17.0.2",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
diff --git a/packages/compass-workspaces/package.json b/packages/compass-workspaces/package.json
index 4e6840a7cf6..ba026e845ea 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.22.0",
+ "version": "0.23.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -51,16 +51,16 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-logging": "^1.4.6",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
"bson": "^6.7.0",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
"lodash": "^4.17.21",
- "mongodb-collection-model": "^5.23.2",
- "mongodb-database-model": "^2.23.2",
+ "mongodb-collection-model": "^5.23.3",
+ "mongodb-database-model": "^2.23.3",
"mongodb-ns": "^2.4.2",
"react": "^17.0.2",
"react-redux": "^8.1.3",
@@ -68,11 +68,11 @@
"redux-thunk": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
diff --git a/packages/compass/package.json b/packages/compass/package.json
index 05161e21973..febfdc06ce7 100644
--- a/packages/compass/package.json
+++ b/packages/compass/package.json
@@ -191,55 +191,55 @@
"devDependencies": {
"@electron/rebuild": "^3.6.0",
"@electron/remote": "^2.1.2",
- "@mongodb-js/atlas-service": "^0.28.2",
- "@mongodb-js/compass-aggregations": "^9.43.0",
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-collection": "^4.40.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connection-import-export": "^0.37.0",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-crud": "^13.41.0",
- "@mongodb-js/compass-databases-collections": "^1.40.0",
- "@mongodb-js/compass-explain-plan": "^6.41.0",
- "@mongodb-js/compass-export-to-language": "^9.17.0",
- "@mongodb-js/compass-field-store": "^9.16.0",
- "@mongodb-js/compass-find-in-page": "^4.30.3",
- "@mongodb-js/compass-generative-ai": "^0.22.2",
- "@mongodb-js/compass-import-export": "^7.40.0",
- "@mongodb-js/compass-indexes": "^5.40.0",
- "@mongodb-js/compass-intercom": "^0.12.2",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-query-bar": "^8.42.0",
- "@mongodb-js/compass-saved-aggregations-queries": "^1.41.0",
- "@mongodb-js/compass-schema": "^6.42.0",
- "@mongodb-js/compass-schema-validation": "^6.41.0",
- "@mongodb-js/compass-serverstats": "^16.40.0",
- "@mongodb-js/compass-settings": "^0.40.2",
- "@mongodb-js/compass-shell": "^3.40.0",
- "@mongodb-js/compass-sidebar": "^5.41.0",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-utils": "^0.6.11",
- "@mongodb-js/compass-welcome": "^0.39.0",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "@mongodb-js/connection-info": "^0.7.0",
- "@mongodb-js/connection-storage": "^0.20.0",
+ "@mongodb-js/atlas-service": "^0.28.3",
+ "@mongodb-js/compass-aggregations": "^9.44.0",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-collection": "^4.41.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connection-import-export": "^0.38.0",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-crud": "^13.42.0",
+ "@mongodb-js/compass-databases-collections": "^1.41.0",
+ "@mongodb-js/compass-explain-plan": "^6.42.0",
+ "@mongodb-js/compass-export-to-language": "^9.18.0",
+ "@mongodb-js/compass-field-store": "^9.17.0",
+ "@mongodb-js/compass-find-in-page": "^4.30.4",
+ "@mongodb-js/compass-generative-ai": "^0.22.3",
+ "@mongodb-js/compass-import-export": "^7.41.0",
+ "@mongodb-js/compass-indexes": "^5.41.0",
+ "@mongodb-js/compass-intercom": "^0.12.3",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-query-bar": "^8.43.0",
+ "@mongodb-js/compass-saved-aggregations-queries": "^1.42.0",
+ "@mongodb-js/compass-schema": "^6.43.0",
+ "@mongodb-js/compass-schema-validation": "^6.42.0",
+ "@mongodb-js/compass-serverstats": "^16.41.0",
+ "@mongodb-js/compass-settings": "^0.40.3",
+ "@mongodb-js/compass-shell": "^3.41.0",
+ "@mongodb-js/compass-sidebar": "^5.42.0",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-utils": "^0.6.12",
+ "@mongodb-js/compass-welcome": "^0.40.0",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "@mongodb-js/connection-info": "^0.8.0",
+ "@mongodb-js/connection-storage": "^0.21.0",
"@mongodb-js/devtools-proxy-support": "^0.3.9",
- "@mongodb-js/eslint-config-compass": "^1.1.6",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
"@mongodb-js/get-os-info": "^0.3.24",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/mongodb-downloader": "^0.3.5",
- "@mongodb-js/my-queries-storage": "^0.15.3",
+ "@mongodb-js/my-queries-storage": "^0.16.0",
"@mongodb-js/prettier-config-compass": "^1.0.2",
"@mongodb-js/sbom-tools": "^0.7.0",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
- "@mongodb-js/webpack-config-compass": "^1.4.1",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
+ "@mongodb-js/webpack-config-compass": "^1.4.2",
"@segment/analytics-node": "^1.1.4",
"ampersand-view": "^9.0.0",
"chai": "^4.3.4",
"chalk": "^4.1.2",
"clean-stack": "^2.0.0",
- "compass-preferences-model": "^2.28.2",
+ "compass-preferences-model": "^2.28.3",
"debug": "^4.3.4",
"depcheck": "^1.4.1",
"electron": "^30.5.1",
@@ -249,9 +249,9 @@
"electron-squirrel-startup": "^1.0.1",
"ensure-error": "^3.0.1",
"eslint": "^7.25.0",
- "hadron-app-registry": "^9.2.5",
- "hadron-build": "^25.5.9",
- "hadron-ipc": "^3.2.22",
+ "hadron-app-registry": "^9.2.6",
+ "hadron-build": "^25.5.10",
+ "hadron-ipc": "^3.2.23",
"local-links": "^1.4.0",
"make-fetch-happen": "^8.0.14",
"marky": "^1.2.1",
@@ -259,8 +259,8 @@
"mongodb-build-info": "^1.7.2",
"mongodb-cloud-info": "^2.1.2",
"mongodb-connection-string-url": "^3.0.1",
- "mongodb-data-service": "^22.23.2",
- "mongodb-instance-model": "^12.24.2",
+ "mongodb-data-service": "^22.23.3",
+ "mongodb-instance-model": "^12.24.3",
"mongodb-log-writer": "^1.4.2",
"mongodb-ns": "^2.4.2",
"react": "^17.0.2",
diff --git a/packages/connection-form/package.json b/packages/connection-form/package.json
index 437d1966b81..b430adf76d7 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.39.0",
+ "version": "1.40.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -48,25 +48,25 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-editor": "^0.29.3",
- "@mongodb-js/connection-info": "^0.7.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-editor": "^0.30.0",
+ "@mongodb-js/connection-info": "^0.8.0",
"@mongodb-js/shell-bson-parser": "^1.1.2",
- "compass-preferences-model": "^2.28.2",
+ "compass-preferences-model": "^2.28.3",
"lodash": "^4.17.21",
"mongodb": "^6.8.0",
"mongodb-build-info": "^1.7.2",
"mongodb-connection-string-url": "^3.0.1",
- "mongodb-data-service": "^22.23.2",
+ "mongodb-data-service": "^22.23.3",
"mongodb-query-parser": "^4.2.3",
"react": "^17.0.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
diff --git a/packages/connection-info/package.json b/packages/connection-info/package.json
index 971eb15e51b..6b16e011a5b 100644
--- a/packages/connection-info/package.json
+++ b/packages/connection-info/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "0.7.0",
+ "version": "0.8.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -54,13 +54,13 @@
"lodash": "^4.17.21",
"mongodb": "^6.8.0",
"mongodb-connection-string-url": "^3.0.1",
- "mongodb-data-service": "^22.23.2"
+ "mongodb-data-service": "^22.23.3"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/connection-storage/package.json b/packages/connection-storage/package.json
index 9c2d11eac2c..3f82113aba6 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.20.0",
+ "version": "0.21.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -56,26 +56,26 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-user-data": "^0.3.6",
- "@mongodb-js/compass-utils": "^0.6.11",
- "@mongodb-js/connection-info": "^0.7.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-user-data": "^0.3.7",
+ "@mongodb-js/compass-utils": "^0.6.12",
+ "@mongodb-js/connection-info": "^0.8.0",
"bson": "^6.7.0",
- "compass-preferences-model": "^2.28.2",
+ "compass-preferences-model": "^2.28.3",
"electron": "^30.5.1",
- "hadron-app-registry": "^9.2.5",
- "hadron-ipc": "^3.2.22",
+ "hadron-app-registry": "^9.2.6",
+ "hadron-ipc": "^3.2.23",
"keytar": "^7.9.0",
"lodash": "^4.17.21",
"mongodb-connection-string-url": "^3.0.1",
"react": "^17.0.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/connection-storage/src/provider.ts b/packages/connection-storage/src/provider.ts
index 0cb29c87359..e13ca061ffa 100644
--- a/packages/connection-storage/src/provider.ts
+++ b/packages/connection-storage/src/provider.ts
@@ -23,9 +23,6 @@ export const ConnectionStorageProvider = ConnectionStorageContext.Provider;
export function useConnectionStorageContext(): ConnectionStorage {
const connectionStorage = useContext(ConnectionStorageContext);
if (!connectionStorage) {
- if (process.env.NODE_ENV === 'test') {
- return new InMemoryConnectionStorage();
- }
throw new Error(
'Could not find the current ConnectionStorage. Did you forget to setup the ConnectionStorageProvider?'
);
diff --git a/packages/data-service/package.json b/packages/data-service/package.json
index 1d40c5a3a54..ebc1f114967 100644
--- a/packages/data-service/package.json
+++ b/packages/data-service/package.json
@@ -7,7 +7,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "22.23.2",
+ "version": "22.23.3",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -51,8 +51,8 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-utils": "^0.6.11",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-utils": "^0.6.12",
"@mongodb-js/devtools-connect": "^3.2.10",
"@mongodb-js/devtools-proxy-support": "^0.3.9",
"bson": "^6.7.0",
@@ -63,13 +63,13 @@
"mongodb-ns": "^2.4.2"
},
"devDependencies": {
- "@mongodb-js/compass-test-server": "^0.1.21",
+ "@mongodb-js/compass-test-server": "^0.1.22",
"@mongodb-js/devtools-docker-test-envs": "^1.3.3",
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/oidc-plugin": "^1.1.1",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/lodash": "^4.14.188",
"@types/whatwg-url": "^8.2.1",
"chai": "^4.2.0",
diff --git a/packages/database-model/package.json b/packages/database-model/package.json
index db0fa523d43..3c3dce5a8ec 100644
--- a/packages/database-model/package.json
+++ b/packages/database-model/package.json
@@ -2,7 +2,7 @@
"name": "mongodb-database-model",
"description": "MongoDB database model",
"author": "Lucas Hrabovsky ",
- "version": "2.23.2",
+ "version": "2.23.3",
"bugs": {
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
"email": "compass@mongodb.com"
@@ -30,11 +30,11 @@
"dependencies": {
"ampersand-collection": "^2.0.2",
"ampersand-model": "^8.0.1",
- "mongodb-collection-model": "^5.23.2",
- "mongodb-data-service": "^22.23.2"
+ "mongodb-collection-model": "^5.23.3",
+ "mongodb-data-service": "^22.23.3"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
"@mongodb-js/prettier-config-compass": "^1.0.2",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
diff --git a/packages/databases-collections-list/package.json b/packages/databases-collections-list/package.json
index 81cc968d594..f2bd2e265ce 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.38.0",
+ "version": "1.39.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -48,21 +48,21 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"dependencies": {
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "@mongodb-js/connection-info": "^0.7.0",
- "compass-preferences-model": "^2.28.2",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "@mongodb-js/connection-info": "^0.8.0",
+ "compass-preferences-model": "^2.28.3",
"mongodb-ns": "^2.4.2",
"react": "^17.0.2"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/chai-dom": "^0.0.10",
"@types/mocha": "^9.0.0",
diff --git a/packages/databases-collections-list/src/items-grid.tsx b/packages/databases-collections-list/src/items-grid.tsx
index 663acccc489..c94230cb2dd 100644
--- a/packages/databases-collections-list/src/items-grid.tsx
+++ b/packages/databases-collections-list/src/items-grid.tsx
@@ -19,7 +19,7 @@ import { useConnectionInfo } from '@mongodb-js/compass-connections/provider';
import toNS from 'mongodb-ns';
import { getConnectionTitle } from '@mongodb-js/connection-info';
import { useOpenWorkspace } from '@mongodb-js/compass-workspaces/provider';
-import { useConnectionInfoAccess } from '@mongodb-js/compass-connections/provider';
+import { useConnectionInfoRef } from '@mongodb-js/compass-connections/provider';
import { usePreferences } from 'compass-preferences-model/provider';
type Item = { _id: string } & Record;
@@ -308,16 +308,16 @@ export const ItemsGrid = ({
renderLoadSampleDataBanner,
}: ItemsGridProps): React.ReactElement => {
const track = useTelemetry();
- const connectionInfoAccess = useConnectionInfoAccess();
+ const connectionInfoRef = useConnectionInfoRef();
const onViewTypeChange = useCallback(
(newType: ViewType) => {
track(
'Switch View Type',
{ view_type: newType, item_type: itemType },
- connectionInfoAccess.getCurrentConnectionInfo()
+ connectionInfoRef.current
);
},
- [itemType, track, connectionInfoAccess]
+ [itemType, track, connectionInfoRef]
);
const [sortControls, sortState] = useSortControls(sortBy);
diff --git a/packages/databases-collections/package.json b/packages/databases-collections/package.json
index 32ab40dbbec..a34fa649b34 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.40.0",
+ "version": "1.41.0",
"license": "SSPL",
"homepage": "https://github.com/mongodb-js/compass",
"bugs": {
@@ -42,11 +42,11 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"bson": "^6.7.0",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
@@ -59,21 +59,21 @@
"typescript": "^5.0.4"
},
"dependencies": {
- "@mongodb-js/compass-app-stores": "^7.27.0",
- "@mongodb-js/compass-components": "^1.29.3",
- "@mongodb-js/compass-connections": "^1.41.0",
- "@mongodb-js/compass-editor": "^0.29.3",
- "@mongodb-js/compass-logging": "^1.4.6",
- "@mongodb-js/compass-telemetry": "^1.1.6",
- "@mongodb-js/compass-workspaces": "^0.22.0",
- "@mongodb-js/databases-collections-list": "^1.38.0",
- "@mongodb-js/my-queries-storage": "^0.15.3",
- "compass-preferences-model": "^2.28.2",
- "hadron-app-registry": "^9.2.5",
+ "@mongodb-js/compass-app-stores": "^7.28.0",
+ "@mongodb-js/compass-components": "^1.29.4",
+ "@mongodb-js/compass-connections": "^1.42.0",
+ "@mongodb-js/compass-editor": "^0.30.0",
+ "@mongodb-js/compass-logging": "^1.4.7",
+ "@mongodb-js/compass-telemetry": "^1.1.7",
+ "@mongodb-js/compass-workspaces": "^0.23.0",
+ "@mongodb-js/databases-collections-list": "^1.39.0",
+ "@mongodb-js/my-queries-storage": "^0.16.0",
+ "compass-preferences-model": "^2.28.3",
+ "hadron-app-registry": "^9.2.6",
"lodash": "^4.17.21",
- "mongodb-collection-model": "^5.23.2",
- "mongodb-database-model": "^2.23.2",
- "mongodb-instance-model": "^12.24.2",
+ "mongodb-collection-model": "^5.23.3",
+ "mongodb-database-model": "^2.23.3",
+ "mongodb-instance-model": "^12.24.3",
"mongodb-ns": "^2.4.2",
"mongodb-query-parser": "^4.2.3",
"prop-types": "^15.7.2",
diff --git a/packages/explain-plan-helper/package.json b/packages/explain-plan-helper/package.json
index 395381bf53e..faaa213f2f5 100644
--- a/packages/explain-plan-helper/package.json
+++ b/packages/explain-plan-helper/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "1.2.2",
+ "version": "1.2.3",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -53,10 +53,10 @@
"mongodb-explain-compat": "^3.1.0"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/hadron-app-registry/.depcheckrc b/packages/hadron-app-registry/.depcheckrc
index fe20b38ee8a..1d15831be9a 100644
--- a/packages/hadron-app-registry/.depcheckrc
+++ b/packages/hadron-app-registry/.depcheckrc
@@ -4,3 +4,7 @@ ignores:
- "@types/chai"
- "@types/sinon-chai"
- "sinon"
+# TODO(COMPASS-8312): depcheck doesn't count this dependency because it's a
+# types only import and the depcheck parser is resolving the @types/
+# package as a dep instead
+ - "reflux"
diff --git a/packages/hadron-app-registry/package.json b/packages/hadron-app-registry/package.json
index fcef1a889a4..75f0a9476ab 100644
--- a/packages/hadron-app-registry/package.json
+++ b/packages/hadron-app-registry/package.json
@@ -7,7 +7,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "9.2.5",
+ "version": "9.2.6",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -50,11 +50,11 @@
"reflux": "^0.4.1"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/testing-library-compass": "^1.0.0",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/testing-library-compass": "^1.0.1",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/reflux": "^6.4.3",
diff --git a/packages/hadron-build/package.json b/packages/hadron-build/package.json
index 74d3fdc4a32..ffe9bc8e343 100644
--- a/packages/hadron-build/package.json
+++ b/packages/hadron-build/package.json
@@ -1,7 +1,7 @@
{
"name": "hadron-build",
"description": "Tooling for Hadron apps like Compass",
- "version": "25.5.9",
+ "version": "25.5.10",
"scripts": {
"check": "npm run lint && npm run depcheck",
"test": "mocha -R spec",
@@ -57,7 +57,7 @@
"zip-folder": "^1.0.0"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
diff --git a/packages/hadron-document/package.json b/packages/hadron-document/package.json
index 97d72ae4b94..fb888230515 100644
--- a/packages/hadron-document/package.json
+++ b/packages/hadron-document/package.json
@@ -7,7 +7,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "8.6.2",
+ "version": "8.6.3",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -52,10 +52,10 @@
"lodash": "^4.17.21"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
diff --git a/packages/hadron-ipc/package.json b/packages/hadron-ipc/package.json
index 6d058f5bfd5..26c6a4ee419 100644
--- a/packages/hadron-ipc/package.json
+++ b/packages/hadron-ipc/package.json
@@ -1,7 +1,7 @@
{
"name": "hadron-ipc",
"description": "Simplified IPC for electron apps.",
- "version": "3.2.22",
+ "version": "3.2.23",
"author": {
"name": "MongoDB Inc",
"email": "compass@mongodb.com"
@@ -50,10 +50,10 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/is-electron-renderer": "^2.0.1",
"@types/mocha": "^9.0.0",
diff --git a/packages/instance-model/package.json b/packages/instance-model/package.json
index f3daa915052..bd144dd9e0a 100644
--- a/packages/instance-model/package.json
+++ b/packages/instance-model/package.json
@@ -2,7 +2,7 @@
"name": "mongodb-instance-model",
"description": "MongoDB instance model",
"author": "Lucas Hrabovsky ",
- "version": "12.24.2",
+ "version": "12.24.3",
"bugs": {
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
"email": "compass@mongodb.com"
@@ -29,12 +29,12 @@
},
"dependencies": {
"ampersand-model": "^8.0.1",
- "mongodb-collection-model": "^5.23.2",
- "mongodb-data-service": "^22.23.2",
- "mongodb-database-model": "^2.23.2"
+ "mongodb-collection-model": "^5.23.3",
+ "mongodb-data-service": "^22.23.3",
+ "mongodb-database-model": "^2.23.3"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
"@mongodb-js/prettier-config-compass": "^1.0.2",
"chai": "^4.3.4",
"depcheck": "^1.4.1",
diff --git a/packages/mongodb-query-util/package.json b/packages/mongodb-query-util/package.json
index 85cedab278a..99f14c4bf3f 100644
--- a/packages/mongodb-query-util/package.json
+++ b/packages/mongodb-query-util/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "2.2.7",
+ "version": "2.2.8",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -50,10 +50,10 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
diff --git a/packages/my-queries-storage/package.json b/packages/my-queries-storage/package.json
index 90561247ea9..1913a9e3ded 100644
--- a/packages/my-queries-storage/package.json
+++ b/packages/my-queries-storage/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "0.15.3",
+ "version": "0.16.0",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -55,10 +55,10 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
@@ -73,10 +73,10 @@
"typescript": "^5.0.4"
},
"dependencies": {
- "@mongodb-js/compass-editor": "^0.29.3",
- "@mongodb-js/compass-user-data": "^0.3.6",
+ "@mongodb-js/compass-editor": "^0.30.0",
+ "@mongodb-js/compass-user-data": "^0.3.7",
"bson": "^6.7.0",
- "hadron-app-registry": "^9.2.5",
+ "hadron-app-registry": "^9.2.6",
"react": "^17.0.2"
}
}
diff --git a/packages/reflux-state-mixin/package.json b/packages/reflux-state-mixin/package.json
index 49ba83e83a2..970c089fcfc 100644
--- a/packages/reflux-state-mixin/package.json
+++ b/packages/reflux-state-mixin/package.json
@@ -13,7 +13,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "1.0.6",
+ "version": "1.0.7",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -53,10 +53,10 @@
"reflux": "^0.4.1"
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
- "@mongodb-js/mocha-config-compass": "^1.4.1",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
+ "@mongodb-js/mocha-config-compass": "^1.4.2",
"@mongodb-js/prettier-config-compass": "^1.0.2",
- "@mongodb-js/tsconfig-compass": "^1.0.4",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"@types/mocha": "^9.0.0",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
diff --git a/scripts/package.json b/scripts/package.json
index 40386d2d6f2..9c20a3595e6 100644
--- a/scripts/package.json
+++ b/scripts/package.json
@@ -14,7 +14,7 @@
"email": "compass@mongodb.com"
},
"homepage": "https://github.com/mongodb-js/compass",
- "version": "0.16.20",
+ "version": "0.16.21",
"repository": {
"type": "git",
"url": "https://github.com/mongodb-js/compass.git"
@@ -30,8 +30,9 @@
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
},
"devDependencies": {
- "@mongodb-js/eslint-config-compass": "^1.1.6",
+ "@mongodb-js/eslint-config-compass": "^1.1.7",
"@mongodb-js/prettier-config-compass": "^1.0.2",
+ "@mongodb-js/tsconfig-compass": "^1.0.5",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
"prettier": "^2.7.1"