diff --git a/bindings/python/CHANGELOG.rst b/bindings/python/CHANGELOG.rst index b1349361f..d9ba5fd39 100644 --- a/bindings/python/CHANGELOG.rst +++ b/bindings/python/CHANGELOG.rst @@ -6,6 +6,7 @@ Changes in Version 1.15.0 - Add support for Python 3.14. - Drop support for Python 3.8. +- Bundle libmongocrypt 1.15.0 in release wheels. Changes in Version 1.14.1 ------------------------- diff --git a/bindings/python/pymongocrypt/binding.py b/bindings/python/pymongocrypt/binding.py index 3d60dc8f7..ba451e21f 100644 --- a/bindings/python/pymongocrypt/binding.py +++ b/bindings/python/pymongocrypt/binding.py @@ -687,6 +687,7 @@ def _parse_version(version): /// String constant for setopt_algorithm "Indexed" explicit encryption /// String constant for setopt_algorithm "Unindexed" explicit encryption // DEPRECATED: support "RangePreview" has been removed in favor of "range". +/// NOTE: "textPreview" is experimental only and may be removed in a future non-major release. /** * Identify the AWS KMS master key to use for creating a data key. @@ -1466,6 +1467,33 @@ def _parse_version(version): */ bool mongocrypt_ctx_setopt_algorithm_range(mongocrypt_ctx_t *ctx, mongocrypt_binary_t *opts); +/** + * Set options for explicit encryption with the "textPreview" algorithm. + * + * NOTE: "textPreview" is experimental only and may be removed in a future non-major release. + * @p opts is a BSON document of the form: + * { + * "caseSensitive": bool, + * . "diacriticSensitive": bool, + * . "prefix": Optional{ + * . "strMaxQueryLength": Int32, + * . "strMinQueryLength": Int32, + * . }, + * . "suffix": Optional{ + * . "strMaxQueryLength": Int32, + * . "strMinQueryLength": Int32, + * . }, + * . "substring": Optional{ + * . "strMaxLength": Int32, + * . "strMaxQueryLength": Int32, + * . "strMinQueryLength": Int32, + * . }, + * } + * + * "prefix" and "suffix" can both be set. + */ +bool mongocrypt_ctx_setopt_algorithm_text(mongocrypt_ctx_t *ctx, mongocrypt_binary_t *opts); + /** * Set the expiration time for the data encryption key cache. Defaults to 60 seconds if not set. * diff --git a/bindings/python/sbom.json b/bindings/python/sbom.json index 5f8fea81b..2be4331f5 100644 --- a/bindings/python/sbom.json +++ b/bindings/python/sbom.json @@ -1,31 +1,31 @@ { "components": [ { - "bom-ref": "pkg:github/mongodb/libmongocrypt@1.14.1", + "bom-ref": "pkg:github/mongodb/libmongocrypt@1.15.0", "externalReferences": [ { "type": "distribution", - "url": "https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.14.1.tar.gz" + "url": "https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.15.0.tar.gz" }, { "type": "website", - "url": "https://github.com/mongodb/libmongocrypt/tree/1.14.1" + "url": "https://github.com/mongodb/libmongocrypt/tree/1.15.0" } ], "group": "mongodb", "name": "libmongocrypt", - "purl": "pkg:github/mongodb/libmongocrypt@1.14.1", + "purl": "pkg:github/mongodb/libmongocrypt@1.15.0", "type": "library", - "version": "1.14.1" + "version": "1.15.0" } ], "dependencies": [ { - "ref": "pkg:github/mongodb/libmongocrypt@1.14.1" + "ref": "pkg:github/mongodb/libmongocrypt@1.15.0" } ], "metadata": { - "timestamp": "2025-06-03T14:42:56.012265+00:00", + "timestamp": "2025-08-05T11:57:35.707043+00:00", "tools": [ { "externalReferences": [ @@ -68,7 +68,7 @@ } ] }, - "serialNumber": "urn:uuid:aac36293-a6b5-4db7-b6df-eb8126c70662", + "serialNumber": "urn:uuid:1ab48045-0f56-451d-b67e-1ec3be358fa8", "version": 1, "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", "bomFormat": "CycloneDX", diff --git a/bindings/python/scripts/libmongocrypt-version.txt b/bindings/python/scripts/libmongocrypt-version.txt index 63e799cf4..141f2e805 100644 --- a/bindings/python/scripts/libmongocrypt-version.txt +++ b/bindings/python/scripts/libmongocrypt-version.txt @@ -1 +1 @@ -1.14.1 +1.15.0