Skip to content

Commit f0a07e5

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents c788a26 + bf580a8 commit f0a07e5

File tree

120 files changed

+4476
-14032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+4476
-14032
lines changed

.evergreen/functions.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ functions:
169169
set -e
170170
eval $(.evergreen/print-compass-env.sh)
171171
172+
# Pre-built binaries for keytar do not support older RHEL versions.
173+
# Since we have started importing keytar from top-level scripts in packages,
174+
# re-built keytar before the bootstrap process so that it is always usable.
175+
if [[ "$IS_RHEL" == "true" ]]; then
176+
echo "Rebuilding packages for rhel"
177+
npm run node-rebuild
178+
fi
179+
172180
# Prepare workspaces in provided scope
173181
npx lerna run bootstrap \
174182
--stream \
@@ -549,7 +557,7 @@ functions:
549557
npm config list
550558
echo "Publishing packages as $(npm whoami)"
551559
git update-index --assume-unchanged .npmrc
552-
npm run publish-packages-next
560+
bash ".evergreen/retry-with-backoff.sh" npm run publish-packages-next
553561
fi
554562
555563
generate-vulnerability-report:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ The root cause is native modules compiled for a different version of the runtime
138138
1. Modules have to be recompiled for the runtime they will be used in
139139
1. Due to npm workspaces hoisting all shared dependencies to the very root of the monorepo, all packages use the same modules imported from the same location
140140

141-
This means that if you e.g., start Compass application locally it will recompile all native modules to work in Electron runtime, if you would try to run tests for `mongodb-connection-model` library right after that, tests would fail due to `keytar` library not being compatible with Node.js environment that the tests are running in.
141+
This means that if you e.g., start Compass application locally it will recompile all native modules to work in Electron runtime, if you would try to run tests for `@mongodb-js/connection-storage` library right after that, tests would fail due to `keytar` library not being compatible with Node.js environment that the tests are running in.
142142

143143
If you run into this issue, make sure that native modules are rebuilt for whatever runtime you are planning to use at the moment. To help with that we provide two npm scripts: `npm run electron-rebuild` will recompile native modules to work with Electron and `npm run node-rebuild` will recompile them to work with Node.js.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
7272
- [**hadron-reflux-store**](packages/reflux-store): Hadron Reflux Stores
7373
- [**hadron-type-checker**](packages/hadron-type-checker): Hadron Type Checker
7474
- [**mongodb-collection-model**](packages/collection-model): MongoDB collection model
75-
- [**mongodb-connection-model**](packages/connection-model): MongoDB connection model
7675
- [**mongodb-data-service**](packages/data-service): MongoDB Data Service
7776
- [**mongodb-database-model**](packages/database-model): MongoDB database model
7877
- [**mongodb-explain-compat**](packages/mongodb-explain-compat): Convert mongodb SBE explain output to 4.4 explain output

THIRD-PARTY-NOTICES.md

Lines changed: 1474 additions & 4698 deletions
Large diffs are not rendered by default.

configs/webpack-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"cli-progress": "^3.9.1",
7575
"core-js": "^3.17.3",
7676
"css-loader": "^4.3.0",
77-
"electron": "^23.3.9",
77+
"electron": "^23.3.10",
7878
"html-webpack-plugin": "^5.3.2",
7979
"less-loader": "^10.0.1",
8080
"mini-css-extract-plugin": "^2.3.0",

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"where": "monorepo-where",
4444
"create-workspace": "node ./scripts/create-workspace.js",
4545
"update-evergreen-config": "node .evergreen/template-yml.js",
46-
"publish-packages-next": "npx lerna publish \"0.0.0-next-$(git rev-parse HEAD)\" --force-publish --exact --no-git-tag-version --no-private --dist-tag next --pre-dist-tag next --no-verify-access --no-git-reset --yes",
46+
"publish-packages-next": "npx lerna publish from-package \"0.0.0-next-$(git rev-parse HEAD)\" --force-publish --exact --no-git-tag-version --no-private --dist-tag next --pre-dist-tag next --no-verify-access --no-git-reset --yes",
4747
"prepare": "husky install",
4848
"snyk-test": "node scripts/snyk-test.js",
4949
"pregenerate-vulnerability-report": "npm run compile -w packages/compass && npm run snyk-test",

packages/atlas-service/.mocharc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@mongodb-js/mocha-config-compass');
1+
module.exports = require('@mongodb-js/mocha-config-compass/react');

packages/atlas-service/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,14 @@
6767
"typescript": "^5.0.4"
6868
},
6969
"dependencies": {
70+
"@mongodb-js/compass-components": "^1.10.0",
7071
"@mongodb-js/devtools-connect": "^2.4.0",
7172
"@mongodb-js/oidc-plugin": "^0.3.0",
72-
"electron": "^23.3.9",
73-
"node-fetch": "^2.6.7"
73+
"electron": "^23.3.10",
74+
"node-fetch": "^2.6.7",
75+
"react": "^17.0.2",
76+
"react-redux": "^8.0.5",
77+
"redux": "^4.2.1",
78+
"redux-thunk": "^2.4.1"
7479
}
7580
}

0 commit comments

Comments
 (0)