Skip to content

Commit 4ebc1b9

Browse files
authored
feat: node.js driver with loadbalanced connections COMPASS-4898 (#2339)
* feat: driver with loadbalanced connections * bump shell * chore: bump min nodejs version * fgx package lock * temp try removing integrity check * bump shell to version 1.0.0
1 parent 3bf3ce6 commit 4ebc1b9

File tree

17 files changed

+247
-406
lines changed

17 files changed

+247
-406
lines changed

.evergreen.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ functions:
7272
export NPM_CACHE_DIR="$(pwd)/.deps/.npm"
7373
export NPM_TMP_DIR="$(pwd)/.deps/tmp"
7474
75-
export NODE_JS_VERSION="12.4.0"
75+
export NODE_JS_VERSION="12.9.0"
7676
export NPM_VERSION="7"
7777
7878
# npm configuration
@@ -244,7 +244,7 @@ functions:
244244
# to do this instead of directly referencing node_module paths,
245245
# but first figure out what exactly was changed in our fork of
246246
# electron-wix-msi
247-
#
247+
#
248248
# TODO: https://jira.mongodb.org/browse/COMPASS-4888
249249
250250
echo "Fetching signtool -> notary-service hack..."

.github/workflows/authors-and-third-party-notices.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v1
1717
- uses: actions/setup-node@v2
1818
with:
19-
node-version: ^12.4.0
19+
node-version: ^12.9.0
2020

2121
- name: Install Deps Ubuntu
2222
run: sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/[email protected]
4545
with:
4646
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
47-
node-version: ^12.4.0
47+
node-version: ^12.9.0
4848

4949
- name: Install npm@7
5050
run: npm install -g npm@7
@@ -95,7 +95,7 @@ jobs:
9595
n=0
9696
exitcode=0
9797
until [ "$n" -ge 5 ]
98-
do
98+
do
9999
echo ""
100100
echo "Attempting to publish packages ($((n+1))/5) ..."
101101
echo ""

.github/workflows/check-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/[email protected]
4242
with:
4343
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
44-
node-version: ^12.4.0
44+
node-version: ^12.9.0
4545

4646
- name: Install npm@7
4747
run: npm install -g npm@7

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This repository contains MongoDB Compass application source, all Compass plugins
8484

8585
## Working With the Monorepo
8686

87-
You'll need node ^12.4.0 and npm 7 installed on your machine to work with the repository locally. After your environment is ready, navigate to the repository and run `npm run bootstrap`, this will install dependencies and will compile all packages.
87+
You'll need node ^12.9.0 and npm 7 installed on your machine to work with the repository locally. After your environment is ready, navigate to the repository and run `npm run bootstrap`, this will install dependencies and will compile all packages.
8888

8989
After bootstrap is finished, you should be able to run `npm run start` and see Compass application running locally.
9090

@@ -118,7 +118,7 @@ Error: Module did not self-register: '/path/to/native/module.node'.
118118
Error: The module '/path/to/native/module.node' was compiled against a different Node.js version using NODE_MODULE_VERSION $XYZ. This version of Node.js requires NODE_MODULE_VERSION $ABC.
119119
```
120120

121-
The root cause is native modules compiled for a different version of the runtime (either Node.js or Electron) that tries to import the module. In our case this is usually caused by combination of two things:
121+
The root cause is native modules compiled for a different version of the runtime (either Node.js or Electron) that tries to import the module. In our case this is usually caused by combination of two things:
122122

123123
1. Modules have to be recompiled for the runtime they will be used in
124124
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

0 commit comments

Comments
 (0)