Skip to content

Commit 51c300f

Browse files
docs(NODE-5264): mark QE equality stable (#647)
1 parent bc4b7bc commit 51c300f

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,6 @@ if (!oldKey) {
583583
- [<code>MongoCryptCreateDataKeyError</code>](#MongoCryptCreateDataKeyError) - If part way through the process a createDataKey invocation fails, an error will be rejected that has the partial `encryptedFields` that were created.
584584
- [<code>MongoCryptCreateEncryptedCollectionError</code>](#MongoCryptCreateEncryptedCollectionError) - If creating the collection fails, an error will be rejected that has the entire `encryptedFields` that were created.
585585

586-
**Experimental**: Public Technical Preview
587-
588-
A convenience method for creating an encrypted collection.
589-
This method will create data keys for any encryptedFields that do not have a `keyId` defined
590-
and then create a new collection with the full set of encryptedFields.
591586

592587
| Param | Type | Description |
593588
| --- | --- | --- |
@@ -598,6 +593,10 @@ and then create a new collection with the full set of encryptedFields.
598593
| [options.masterKey] | [<code>AWSEncryptionKeyOptions</code>](#AWSEncryptionKeyOptions) \| [<code>AzureEncryptionKeyOptions</code>](#AzureEncryptionKeyOptions) \| [<code>GCPEncryptionKeyOptions</code>](#GCPEncryptionKeyOptions) | masterKey to pass to createDataKey |
599594
| options.createCollectionOptions | <code>CreateCollectionOptions</code> | options to pass to createCollection, must include `encryptedFields` |
600595

596+
A convenience method for creating an encrypted collection.
597+
This method will create data keys for any encryptedFields that do not have a `keyId` defined
598+
and then create a new collection with the full set of encryptedFields.
599+
601600
**Returns**: <code>Promise.&lt;{collection: Collection.&lt;TSchema&gt;, encryptedFields: Document}&gt;</code> - - created collection and generated encryptedFields
602601
<a name="ClientEncryption+encrypt"></a>
603602

@@ -708,13 +707,11 @@ An error indicating that something went wrong specifically with MongoDB Client E
708707
<a name="MongoCryptCreateDataKeyError"></a>
709708

710709
## MongoCryptCreateDataKeyError
711-
**Experimental**: Public Technical Preview
712710
An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys
713711

714712
<a name="MongoCryptCreateEncryptedCollectionError"></a>
715713

716714
## MongoCryptCreateEncryptedCollectionError
717-
**Experimental**: Public Technical Preview
718715
An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create a collection
719716

720717
<a name="MongoCryptAzureKMSRequestError"></a>
@@ -916,8 +913,8 @@ For double and decimal128, min/max/precision must all be set, or all be unset.
916913
| [keyId] | [<code>ClientEncryptionDataKeyId</code>](#ClientEncryptionDataKeyId) | The id of the Binary dataKey to use for encryption. |
917914
| [keyAltName] | <code>string</code> | A unique string name corresponding to an already existing dataKey. |
918915
| [algorithm] | <code>string</code> | The algorithm to use for encryption. Must be either `'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'`, `'AEAD_AES_256_CBC_HMAC_SHA_512-Random'`, `'Indexed'` or `'Unindexed'` |
919-
| [contentionFactor] | <code>bigint</code> \| <code>number</code> | (experimental) - the contention factor. |
920-
| queryType | <code>&#x27;equality&#x27;</code> \| <code>&#x27;rangePreview&#x27;</code> | (experimental) - the query type supported. |
916+
| [contentionFactor] | <code>bigint</code> \| <code>number</code> | the contention factor. |
917+
| queryType | <code>&#x27;equality&#x27;</code> \| <code>&#x27;rangePreview&#x27;</code> | the query type supported. only the query type `equality` is stable at this time. queryType `rangePreview` is experimental. |
921918
| [rangeOptions] | [<code>RangeOptions</code>](#RangeOptions) | (experimental) The index options for a Queryable Encryption field supporting "rangePreview" queries. |
922919

923920
Options to provide when encrypting data.

index.d.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ export class MongoCryptError extends Error {
3535
}
3636

3737
/**
38-
* @experimental Public Technical Preview
3938
* An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create a collection
4039
*/
4140
export class MongoCryptCreateEncryptedCollectionError extends MongoCryptError {
4241
/**
43-
* @experimental Public Technical Preview
4442
* The entire `encryptedFields` that was completed while attempting createEncryptedCollection
4543
*/
4644
encryptedFields: Document;
@@ -49,12 +47,10 @@ export class MongoCryptCreateEncryptedCollectionError extends MongoCryptError {
4947
}
5048

5149
/**
52-
* @experimental Public Technical Preview
5350
* An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys
5451
*/
5552
export class MongoCryptCreateDataKeyError extends MongoCryptError {
5653
/**
57-
* @experimental Public Technical Preview
5854
* The partial `encryptedFields` that was completed while attempting createEncryptedCollection
5955
*/
6056
encryptedFields: Document;
@@ -441,10 +437,14 @@ export interface ClientEncryptionEncryptOptions {
441437
*/
442438
keyAltName?: string;
443439

444-
/** @experimental Public Technical Preview: The contention factor. */
440+
/** The contention factor. */
445441
contentionFactor?: bigint | number;
446442

447-
/** @experimental Public Technical Preview: The query type supported */
443+
/**
444+
* The query type supported. Only the queryType `equality` is stable.
445+
*
446+
* @experimental Public Technical Preview: The queryType `rangePreview` is experimental.
447+
*/
448448
queryType?: 'equality' | 'rangePreview';
449449

450450
/** @experimental Public Technical Preview: The index options for a Queryable Encryption field supporting "rangePreview" queries.*/
@@ -561,7 +561,6 @@ export class ClientEncryption {
561561
removeKeyAltName(id: Binary, keyAltName: string): Promise<DataKey | null>;
562562

563563
/**
564-
* @experimental Public Technical Preview
565564
* A convenience method for creating an encrypted collection.
566565
* This method will create data keys for any encryptedFields that do not have a `keyId` defined
567566
* and then create a new collection with the full set of encryptedFields.

lib/clientEncryption.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,6 @@ module.exports = function (modules) {
554554
}
555555

556556
/**
557-
* @experimental Public Technical Preview
558-
*
559557
* A convenience method for creating an encrypted collection.
560558
* This method will create data keys for any encryptedFields that do not have a `keyId` defined
561559
* and then create a new collection with the full set of encryptedFields.
@@ -635,8 +633,8 @@ module.exports = function (modules) {
635633
* @property {ClientEncryptionDataKeyId} [keyId] The id of the Binary dataKey to use for encryption.
636634
* @property {string} [keyAltName] A unique string name corresponding to an already existing dataKey.
637635
* @property {string} [algorithm] The algorithm to use for encryption. Must be either `'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'`, `'AEAD_AES_256_CBC_HMAC_SHA_512-Random'`, `'Indexed'` or `'Unindexed'`
638-
* @property {bigint | number} [contentionFactor] (experimental) - the contention factor.
639-
* @property {'equality' | 'rangePreview'} queryType (experimental) - the query type supported.
636+
* @property {bigint | number} [contentionFactor] - the contention factor.
637+
* @property {'equality' | 'rangePreview'} queryType - the query type supported. only the query type `equality` is stable at this time. queryType `rangePreview` is experimental.
640638
* @property {RangeOptions} [rangeOptions] (experimental) The index options for a Queryable Encryption field supporting "rangePreview" queries.
641639
*/
642640

lib/errors.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class MongoCryptError extends Error {
1818
}
1919

2020
/**
21-
* @experimental Public Technical Preview
2221
* @class
2322
* An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys
2423
*/
@@ -34,7 +33,6 @@ class MongoCryptCreateDataKeyError extends MongoCryptError {
3433
}
3534

3635
/**
37-
* @experimental Public Technical Preview
3836
* @class
3937
* An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create a collection
4038
*/

0 commit comments

Comments
 (0)