mongodb 6.7.0-dev.20240614.sha.3ed6a2ad → 6.7.0-dev.20240615.sha.465ffd97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -27,9 +27,9 @@ The official [MongoDB](https://www.mongodb.com/) driver for Node.js.
|
|
|
27
27
|
The GitHub release contains a detached signature file for the NPM package (named
|
|
28
28
|
`mongodb-X.Y.Z.tgz.sig`).
|
|
29
29
|
|
|
30
|
-
The following command returns the link npm package.
|
|
30
|
+
The following command returns the link npm package.
|
|
31
31
|
```shell
|
|
32
|
-
npm view mongodb@vX.Y.Z dist.tarball
|
|
32
|
+
npm view mongodb@vX.Y.Z dist.tarball
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Using the result of the above command, a `curl` command can return the official npm package for the release.
|
|
@@ -81,7 +81,7 @@ The following table describes add-on component version compatibility for the Nod
|
|
|
81
81
|
|
|
82
82
|
#### Typescript Version
|
|
83
83
|
|
|
84
|
-
We recommend using the latest version of typescript, however we currently ensure the driver's public types compile against `typescript@4.
|
|
84
|
+
We recommend using the latest version of typescript, however we currently ensure the driver's public types compile against `typescript@4.4.0`.
|
|
85
85
|
This is the lowest typescript version guaranteed to work with our driver: older versions may or may not work - use at your own risk.
|
|
86
86
|
Since typescript [does not restrict breaking changes to major versions](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes), we consider this support best effort.
|
|
87
87
|
If you run into any unexpected compiler failures against our supported TypeScript versions, please let us know by filing an issue on our [JIRA](https://jira.mongodb.org/browse/NODE).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client-side-encryption/providers/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAC3C,mCAA+C;AAC/C,+BAA2C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client-side-encryption/providers/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAC3C,mCAA+C;AAC/C,+BAA2C;AAqJ3C;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAChC,YAA6C,EAC7C,YAA0B;IAE1B,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,QAAQ,IAAI,IAAI,EAAE;QACpB,OAAO,KAAK,CAAC;KACd;IACD,OAAO,OAAO,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AAC5E,CAAC;AATD,gDASC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,qBAAqB,CAAC,YAA0B;IACpE,IAAI,iBAAiB,GAAG,YAAY,CAAC;IAErC,IAAI,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,EAAE;QAC3C,iBAAiB,GAAG,MAAM,IAAA,wBAAkB,EAAC,iBAAiB,CAAC,CAAC;KACjE;IAED,IAAI,kBAAkB,CAAC,KAAK,EAAE,YAAY,CAAC,EAAE;QAC3C,iBAAiB,GAAG,MAAM,IAAA,wBAAkB,EAAC,iBAAiB,CAAC,CAAC;KACjE;IAED,IAAI,kBAAkB,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE;QAC7C,iBAAiB,GAAG,MAAM,IAAA,4BAAoB,EAAC,iBAAiB,CAAC,CAAC;KACnE;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAfD,sDAeC"}
|
package/mongodb.d.ts
CHANGED
|
@@ -1822,7 +1822,7 @@ export declare interface ClientEncryptionCreateDataKeyProviderOptions {
|
|
|
1822
1822
|
* `aws:<name>`, `gcp:<name>`, `local:<name>`, `kmip:<name>`, `azure:<name>`
|
|
1823
1823
|
* where `name` is an alphanumeric string, underscores allowed.
|
|
1824
1824
|
*/
|
|
1825
|
-
export declare type ClientEncryptionDataKeyProvider =
|
|
1825
|
+
export declare type ClientEncryptionDataKeyProvider = keyof KMSProviders;
|
|
1826
1826
|
|
|
1827
1827
|
/**
|
|
1828
1828
|
* @public
|
|
@@ -4592,23 +4592,27 @@ export declare interface KMSProviders {
|
|
|
4592
4592
|
* Configuration options for using 'aws' as your KMS provider
|
|
4593
4593
|
*/
|
|
4594
4594
|
aws?: AWSKMSProviderConfiguration | Record<string, never>;
|
|
4595
|
+
[key: `aws:${string}`]: AWSKMSProviderConfiguration;
|
|
4595
4596
|
/**
|
|
4596
4597
|
* Configuration options for using 'local' as your KMS provider
|
|
4597
4598
|
*/
|
|
4598
4599
|
local?: LocalKMSProviderConfiguration;
|
|
4600
|
+
[key: `local:${string}`]: LocalKMSProviderConfiguration;
|
|
4599
4601
|
/**
|
|
4600
4602
|
* Configuration options for using 'kmip' as your KMS provider
|
|
4601
4603
|
*/
|
|
4602
4604
|
kmip?: KMIPKMSProviderConfiguration;
|
|
4605
|
+
[key: `kmip:${string}`]: KMIPKMSProviderConfiguration;
|
|
4603
4606
|
/**
|
|
4604
4607
|
* Configuration options for using 'azure' as your KMS provider
|
|
4605
4608
|
*/
|
|
4606
4609
|
azure?: AzureKMSProviderConfiguration | Record<string, never>;
|
|
4610
|
+
[key: `azure:${string}`]: AzureKMSProviderConfiguration;
|
|
4607
4611
|
/**
|
|
4608
4612
|
* Configuration options for using 'gcp' as your KMS provider
|
|
4609
4613
|
*/
|
|
4610
4614
|
gcp?: GCPKMSProviderConfiguration | Record<string, never>;
|
|
4611
|
-
[key: string]:
|
|
4615
|
+
[key: `gcp:${string}`]: GCPKMSProviderConfiguration;
|
|
4612
4616
|
}
|
|
4613
4617
|
|
|
4614
4618
|
/* Excluded from this release type: kOptions */
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ import { loadGCPCredentials } from './gcp';
|
|
|
12
12
|
* `aws:<name>`, `gcp:<name>`, `local:<name>`, `kmip:<name>`, `azure:<name>`
|
|
13
13
|
* where `name` is an alphanumeric string, underscores allowed.
|
|
14
14
|
*/
|
|
15
|
-
export type ClientEncryptionDataKeyProvider =
|
|
15
|
+
export type ClientEncryptionDataKeyProvider = keyof KMSProviders;
|
|
16
16
|
|
|
17
17
|
/** @public */
|
|
18
18
|
export interface AWSKMSProviderConfiguration {
|
|
@@ -122,34 +122,31 @@ export interface KMSProviders {
|
|
|
122
122
|
* Configuration options for using 'aws' as your KMS provider
|
|
123
123
|
*/
|
|
124
124
|
aws?: AWSKMSProviderConfiguration | Record<string, never>;
|
|
125
|
+
[key: `aws:${string}`]: AWSKMSProviderConfiguration;
|
|
125
126
|
|
|
126
127
|
/**
|
|
127
128
|
* Configuration options for using 'local' as your KMS provider
|
|
128
129
|
*/
|
|
129
130
|
local?: LocalKMSProviderConfiguration;
|
|
131
|
+
[key: `local:${string}`]: LocalKMSProviderConfiguration;
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
134
|
* Configuration options for using 'kmip' as your KMS provider
|
|
133
135
|
*/
|
|
134
136
|
kmip?: KMIPKMSProviderConfiguration;
|
|
137
|
+
[key: `kmip:${string}`]: KMIPKMSProviderConfiguration;
|
|
135
138
|
|
|
136
139
|
/**
|
|
137
140
|
* Configuration options for using 'azure' as your KMS provider
|
|
138
141
|
*/
|
|
139
142
|
azure?: AzureKMSProviderConfiguration | Record<string, never>;
|
|
143
|
+
[key: `azure:${string}`]: AzureKMSProviderConfiguration;
|
|
140
144
|
|
|
141
145
|
/**
|
|
142
146
|
* Configuration options for using 'gcp' as your KMS provider
|
|
143
147
|
*/
|
|
144
148
|
gcp?: GCPKMSProviderConfiguration | Record<string, never>;
|
|
145
|
-
|
|
146
|
-
[key: string]:
|
|
147
|
-
| AWSKMSProviderConfiguration
|
|
148
|
-
| LocalKMSProviderConfiguration
|
|
149
|
-
| KMIPKMSProviderConfiguration
|
|
150
|
-
| AzureKMSProviderConfiguration
|
|
151
|
-
| GCPKMSProviderConfiguration
|
|
152
|
-
| undefined;
|
|
149
|
+
[key: `gcp:${string}`]: GCPKMSProviderConfiguration;
|
|
153
150
|
}
|
|
154
151
|
|
|
155
152
|
/**
|