Skip to content

Commit 944e748

Browse files
authored
feat(query-bar): bump deps for legacy UUID support and autocomplete COMPASS-9690 (#7639)
1 parent 0a863a8 commit 944e748

File tree

17 files changed

+137
-132
lines changed

17 files changed

+137
-132
lines changed

package-lock.json

Lines changed: 107 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-aggregations/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
"@mongodb-js/compass-utils": "^0.9.23",
7474
"@mongodb-js/compass-workspaces": "^0.70.0",
7575
"@mongodb-js/explain-plan-helper": "^1.4.25",
76-
"@mongodb-js/mongodb-constants": "^0.17.0",
76+
"@mongodb-js/mongodb-constants": "^0.19.0",
7777
"@mongodb-js/my-queries-storage": "^0.50.2",
78-
"@mongodb-js/shell-bson-parser": "^1.3.3",
78+
"@mongodb-js/shell-bson-parser": "^1.4.0",
7979
"bson": "^6.10.4",
8080
"compass-preferences-model": "^2.66.3",
8181
"hadron-document": "^8.10.5",
@@ -87,7 +87,7 @@
8787
"mongodb-database-model": "^2.37.0",
8888
"mongodb-instance-model": "^12.59.0",
8989
"mongodb-ns": "^3.0.1",
90-
"mongodb-query-parser": "^4.5.0",
90+
"mongodb-query-parser": "^4.6.0",
9191
"mongodb-schema": "^12.6.3",
9292
"re-resizable": "^6.9.0",
9393
"react": "^17.0.2",

packages/compass-collection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@mongodb-js/compass-workspaces": "^0.70.0",
6464
"@mongodb-js/workspace-info": "^1.0.0",
6565
"@mongodb-js/connection-info": "^0.24.0",
66-
"@mongodb-js/mongodb-constants": "^0.17.0",
66+
"@mongodb-js/mongodb-constants": "^0.19.0",
6767
"bson": "^6.10.4",
6868
"compass-preferences-model": "^2.66.3",
6969
"hadron-document": "^8.10.5",

packages/compass-crud/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"@mongodb-js/explain-plan-helper": "^1.4.25",
8686
"@mongodb-js/my-queries-storage": "^0.50.2",
8787
"@mongodb-js/reflux-state-mixin": "^1.2.24",
88-
"@mongodb-js/shell-bson-parser": "^1.3.3",
88+
"@mongodb-js/shell-bson-parser": "^1.4.0",
8989
"ag-grid-community": "^20.2.0",
9090
"ag-grid-react": "^20.2.0",
9191
"bson": "^6.10.4",
@@ -97,7 +97,7 @@
9797
"mongodb": "^6.19.0",
9898
"mongodb-data-service": "^22.36.0",
9999
"mongodb-ns": "^3.0.1",
100-
"mongodb-query-parser": "^4.5.0",
100+
"mongodb-query-parser": "^4.6.0",
101101
"react": "^17.0.2",
102102
"reflux": "^0.4.1",
103103
"semver": "^7.6.3"

packages/compass-editor/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"@codemirror/view": "^6.38.0",
7474
"@lezer/highlight": "^1.2.1",
7575
"@mongodb-js/compass-components": "^1.59.2",
76-
"@mongodb-js/mongodb-constants": "^0.17.0",
77-
"mongodb-query-parser": "^4.5.0",
76+
"@mongodb-js/mongodb-constants": "^0.19.0",
77+
"mongodb-query-parser": "^4.6.0",
7878
"polished": "^4.2.2",
7979
"prettier": "^2.7.1",
8080
"react": "^17.0.2"

packages/compass-editor/src/codemirror/query-autocompleter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('query autocompleter', function () {
1010
after(cleanup);
1111

1212
it('returns all completions when current token is vaguely matches identifier', async function () {
13-
expect(await getCompletions('foo')).to.have.lengthOf(45);
13+
expect(await getCompletions('foo')).to.have.lengthOf(49);
1414
});
1515

1616
it("doesn't return anything when not matching identifier", async function () {

packages/compass-editor/src/codemirror/query-autocompleter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const createQueryAutocompleter = (
1515
options: Pick<CompletionOptions, 'fields' | 'serverVersion'> = {}
1616
): CompletionSource => {
1717
const completions = completer('', {
18-
meta: ['query', 'bson', 'field:identifier'],
18+
meta: ['query', 'bson', 'bson-legacy-uuid', 'field:identifier'],
1919
...options,
2020
});
2121

packages/compass-editor/src/codemirror/stage-autocompleter.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ describe('createStageAutocompleter', function () {
8484
fields,
8585
stageOperator: '$match',
8686
});
87-
expect(meta(await completions)).to.deep.eq(['bson', 'query', 'field']);
87+
expect(meta(await completions)).to.deep.eq([
88+
'bson',
89+
'bson-legacy-uuid',
90+
'query',
91+
'field',
92+
]);
8893
});
8994

9095
['$project', '$group'].forEach((stageOperator) => {

packages/compass-generative-ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"bson": "^6.10.4",
6464
"compass-preferences-model": "^2.66.3",
6565
"mongodb": "^6.19.0",
66-
"mongodb-query-parser": "^4.5.0",
66+
"mongodb-query-parser": "^4.6.0",
6767
"mongodb-schema": "^12.6.3",
6868
"react": "^17.0.2",
6969
"react-redux": "^8.1.3",

packages/compass-import-export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"mongodb": "^6.19.0",
6868
"mongodb-data-service": "^22.36.0",
6969
"mongodb-ns": "^3.0.1",
70-
"mongodb-query-parser": "^4.5.0",
70+
"mongodb-query-parser": "^4.6.0",
7171
"mongodb-schema": "^12.6.3",
7272
"papaparse": "^5.3.2",
7373
"react": "^17.0.2",

0 commit comments

Comments
 (0)