Skip to content

Commit

Permalink
Merge branch 'main' into NODE-3482-rm-unref
Browse files Browse the repository at this point in the history
  • Loading branch information
durran authored Dec 22, 2022
2 parents 0ef9742 + 8fd1822 commit 2f0d509
Show file tree
Hide file tree
Showing 34 changed files with 1,542 additions and 1,628 deletions.
126 changes: 18 additions & 108 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2063,23 +2063,23 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: run unit tests
- name: run-lint-checks
tags:
- run-lint-checks
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: run lint checks
- name: check-types-typescript-next
tags:
- check-types-typescript-next
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: check types
vars:
TS_VERSION: next
Expand All @@ -2089,7 +2089,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: compile driver
vars:
TS_VERSION: current
Expand All @@ -2099,7 +2099,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: check types
vars:
TS_VERSION: current
Expand All @@ -2109,7 +2109,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: check types
vars:
TS_VERSION: 4.1.6
Expand Down Expand Up @@ -2137,7 +2137,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2146,15 +2146,15 @@ tasks:
- name: run-bson-ext-integration
func: run bson-ext test
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
TEST_NPM_SCRIPT: check:test
- name: run-bson-ext-unit
tags:
- run-custom-dependency-tests
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2163,15 +2163,15 @@ tasks:
- name: run-bson-ext-unit
func: run bson-ext test
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
TEST_NPM_SCRIPT: check:unit
- name: run-custom-csfle-tests-5.0-pinned-commit
tags:
- run-custom-dependency-tests
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2186,7 +2186,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2201,7 +2201,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: rapid
Expand All @@ -2216,7 +2216,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: rapid
Expand All @@ -2231,7 +2231,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: latest
Expand All @@ -2246,7 +2246,7 @@ tasks:
commands:
- func: install dependencies
vars:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
- func: bootstrap mongo-orchestration
vars:
VERSION: latest
Expand Down Expand Up @@ -2668,54 +2668,6 @@ buildvariants:
run_on: rhel80-large
tasks:
- run-spec-benchmark-tests
- name: rhel80-large-erbium
display_name: rhel8 Node12
run_on: rhel80-large
expansions:
NODE_LTS_NAME: erbium
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
- test-latest-replica_set
- test-latest-sharded_cluster
- test-rapid-server
- test-rapid-replica_set
- test-rapid-sharded_cluster
- test-6.0-server
- test-6.0-replica_set
- test-6.0-sharded_cluster
- test-5.0-server
- test-5.0-replica_set
- test-5.0-sharded_cluster
- test-4.4-server
- test-4.4-replica_set
- test-4.4-sharded_cluster
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-3.6-server
- test-3.6-replica_set
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-connectivity
- test-atlas-data-lake
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-tls-support-latest
- test-tls-support-6.0
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: rhel80-large-fermium
display_name: rhel8 Node14
run_on: rhel80-large
Expand Down Expand Up @@ -2899,48 +2851,6 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-64-vs2019-erbium
display_name: Windows (VS2019) Node12
run_on: windows-64-vs2019-large
expansions:
NODE_LTS_NAME: erbium
MSVS_VERSION: 2019
tasks:
- test-latest-server
- test-latest-replica_set
- test-latest-sharded_cluster
- test-rapid-server
- test-rapid-replica_set
- test-rapid-sharded_cluster
- test-6.0-server
- test-6.0-replica_set
- test-6.0-sharded_cluster
- test-5.0-server
- test-5.0-replica_set
- test-5.0-sharded_cluster
- test-4.4-server
- test-4.4-replica_set
- test-4.4-sharded_cluster
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-3.6-server
- test-3.6-replica_set
- test-3.6-sharded_cluster
- test-latest-server-v1-api
- test-atlas-data-lake
- test-socks5
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-tls-support-latest
- test-tls-support-6.0
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-64-vs2019-fermium
display_name: Windows (VS2019) Node14
run_on: windows-64-vs2019-large
Expand Down Expand Up @@ -3095,7 +3005,7 @@ buildvariants:
display_name: MONGODB-AWS Auth test
run_on: ubuntu1804-large
expansions:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
tasks:
- aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
- aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
Expand Down Expand Up @@ -3162,7 +3072,7 @@ buildvariants:
display_name: Serverless Test
run_on: rhel80-large
expansions:
NODE_LTS_NAME: erbium
NODE_LTS_NAME: fermium
tasks:
- serverless_task_group
- name: rhel8-no-auth-tests
Expand Down
1 change: 0 additions & 1 deletion .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const yaml = require('js-yaml');

const MONGODB_VERSIONS = ['latest', 'rapid', '6.0', '5.0', '4.4', '4.2', '4.0', '3.6'];
const versions = [
{ codeName: 'erbium', versionNumber: 12 },
{ codeName: 'fermium', versionNumber: 14 },
{ codeName: 'gallium', versionNumber: 16 },
{ codeName: 'hydrogen', versionNumber: 18 }
Expand Down
19 changes: 19 additions & 0 deletions etc/notes/CHANGES_5.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ npm install --save snappy@7
### `.unref()` removed from `Db`

The `.unref()` method was a no-op and has now been removed from the Db class.


### @aws-sdk/credential-providers v3.201.0 or later and optional peerDependency

`@aws-sdk/credential-providers` has been added to the package.json as a peerDependency that is **optional**.
This means `npm` will let you know if the version of the sdk you have installed is incompatible with the driver.

```sh
npm install --save @aws-sdk/[email protected]
```

### Minimum supported Node version

The new minimum supported Node.js version is now 14.20.1.

### Custom Promise library support removed

The MongoClient option `promiseLibrary` along with the `Promise.set` export that allows specifying a custom promise library has been removed.
This allows the driver to adopt async/await syntax which has [performance benefits](https://v8.dev/blog/fast-async) over manual promise construction.
Loading

0 comments on commit 2f0d509

Please sign in to comment.