From f53e9d9cebdfaac5edd0e46ee46f1c2eb5b7f8ae Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Wed, 4 Sep 2024 09:47:42 -0600 Subject: [PATCH] feat(NODE-6309): Mark range API as stable (#4190) --- src/client-side-encryption/client_encryption.ts | 10 +++------- .../tests/legacy/fle2v2-Rangev2-Compact.yml | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/client-side-encryption/client_encryption.ts b/src/client-side-encryption/client_encryption.ts index 5ce66721f5..ca62b5d239 100644 --- a/src/client-side-encryption/client_encryption.ts +++ b/src/client-side-encryption/client_encryption.ts @@ -611,8 +611,6 @@ export class ClientEncryption { * * Only supported when queryType is "range" and algorithm is "Range". * - * @experimental The Range algorithm is experimental only. It is not intended for production use. It is subject to breaking changes. - * * @param expression - a BSON document of one of the following forms: * 1. A Match Expression of this form: * `{$and: [{: {$gt: }}, {: {$lt: }}]}` @@ -769,13 +767,11 @@ export interface ClientEncryptionEncryptOptions { contentionFactor?: bigint | number; /** - * The query type supported. Only the queryType `equality` is stable. - * - * @experimental Public Technical Preview: The queryType `rangePreview` is experimental. + * The query type. */ queryType?: 'equality' | 'range'; - /** @experimental Public Technical Preview: The index options for a Queryable Encryption field supporting "rangePreview" queries.*/ + /** The index options for a Queryable Encryption field supporting "range" queries.*/ rangeOptions?: RangeOptions; } @@ -963,7 +959,7 @@ export interface ClientEncryptionRewrapManyDataKeyResult { /** * @public - * RangeOptions specifies index options for a Queryable Encryption field supporting "rangePreview" queries. + * RangeOptions specifies index options for a Queryable Encryption field supporting "range" queries. * min, max, sparsity, trimFactor and range must match the values set in the encryptedFields of the destination collection. * For double and decimal128, min/max/precision must all be set, or all be unset. */ diff --git a/test/spec/client-side-encryption/tests/legacy/fle2v2-Rangev2-Compact.yml b/test/spec/client-side-encryption/tests/legacy/fle2v2-Rangev2-Compact.yml index d49c084ef2..35cd36b653 100644 --- a/test/spec/client-side-encryption/tests/legacy/fle2v2-Rangev2-Compact.yml +++ b/test/spec/client-side-encryption/tests/legacy/fle2v2-Rangev2-Compact.yml @@ -91,4 +91,4 @@ tests: } } encryptionInformation: *encryptionInformation - command_name: compactStructuredEncryptionData \ No newline at end of file + command_name: compactStructuredEncryptionData