Releases · mongodb/mongo-c-driver
mongo-c-driver 2.1.0Announcing 2.1.0 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbson Fixes%ERRORLABEL%
value.find "$dir" -maxdepth 1
instead of ls --almost-all "$dir"
when detecting non-empty directories to fix macOS compatibility.4.0
(previously unset).rand()
with thread-safe alternatives.%ERRORLABEL%
value.find "$dir" -maxdepth 1
instead of ls --almost-all "$dir"
when detecting non-empty directories to fix macOS compatibility.4.0
(previously unset).Thanks to everyone who contributed to this release.
Announcing 2.0.2 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonFixes:
bson_validate
family of functions,BSON_VALIDATE_UTF8
Fixes:
bson_strerror_r
on Windows.Thanks to everyone who contributed to this release.
Announcing 1.30.5 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonFixes:
bson_validate
family of functions,BSON_VALIDATE_UTF8
Fixes:
bson_strerror_r
on Windows.Thanks to everyone who contributed to this release.
Announcing 2.0.1 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonFixes:
Fixes:
ENABLE_SSL=DARWIN
) or Secure Channel (CMake option ENABLE_SSL=WINDOWS
).mongoc_bulkwrite_execute
.Thanks to everyone who contributed to this release.
Announcing 1.30.4 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonNo changes since 1.30.3. Version incremented to match the libmongoc version.
libmongocFixes:
ENABLE_SSL=DARWIN
) or Secure Channel (CMake option ENABLE_SSL=WINDOWS
).mongoc_bulkwrite_execute
.Thanks to everyone who contributed to this release.
Announcing 1.30.3 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonFixes:
New Features:
In anticipation of the 2.0 release of mongo-c-driver, new CMake packages and
imported targets have been defined (for both bson
and mongoc
). To importbson
with the new names, call find_package
for the bson
package. The new
imported targets are named bson::static
, bson::shared
, and bson::bson
(which points to either the static or the shared library, depending on an
import-time configuration option).
The new package and target names will remain unchanged when upgrading to the
2.0 release, allowing consumers to support both major versions without
modifying their CMake project. The current imported target names will be
removed from the 2.0 release, and should not be used for
forward-compatibility.
New Features:
In anticipation of the 2.0 release of mongo-c-driver, new CMake packages and
imported targets have been defined (for both bson
and mongoc
). To importmongoc
with the new names, call find_package
for the mongoc
package. The
new imported targets are named mongoc::static
, mongoc::shared
, andmongoc::mongoc
(which points to either the static or the shared library,
depending on an import-time configuration option).
The new package and target names will remain unchanged when upgrading to the
2.0 release, allowing consumers to support both major versions without
modifying their CMake project. The current imported target names will be
removed from the 2.0 release, and should not be used for
forward-compatibility.
Programs that link to BSON libraries directly should also use the new target
names bson::static
, bson::shared
, or bson::bson
.
Thanks to everyone who contributed to this release.
Announcing 2.0.0 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbson New FeaturesBSON_ERROR_BUFFER_SIZE
is reduced from 504
to 503
to reserve the final byte for internal use.
bson_error_t
remains otherwise unchanged: the size is still 512 bytes and the offset of the .code
, .domain
, and .message
data members remain unchanged.libbson-1.0
and libbson-static-1.0
have been renamed to bson2
, and bson2-static
, respectively.The bson-1.0
CMake package has been removed. Instead, use or bson
, and
specify a version or version range to be imported:
find_package(bson 1.30...2.0)
The new package imports different target names:
mongo::bson_static
→ bson::static
mongo::bson_shared
→ bson::shared
bson::bson
is a shim target that points to either the shared library or the static library.bson_as_json
and bson_array_as_json
are removed due to producing non-portable Legacy Extended JSON. Prefer Canonical Extended JSON or Relaxed Extended JSON for portability. To continue using Legacy Extended JSON, use bson_as_legacy_extended_json
and bson_array_as_legacy_extended_json
.BSON_MEMCHECK
defined now has no effect.bson_in_range_*
and bson_cmp_*
.bson_atomic_*
and bson_thrd_yield
.ENABLE_EXTRA_ALIGNMENT
CMake option is removed.
bson_t
and bson_iter_t
are now aligned to the size of a pointer instead of 128
.bson_error_t
, bson_value_t
, and bson_visitor_t
are now aligned to the size of a pointer instead of 8
.BSON_ALIGNED_BEGIN
and BSON_ALIGNED_END
now unconditionally apply their requested alignment.bson_copy_to_excluding
. Use bson_copy_to_excluding_noinit
instead.$lookup
stage for In-Use Encryption.ENABLE_CLIENT_SIDE_ENCRYPTION
).batchSize:0
as an option to mongoc_client_watch
, mongoc_database_watch
, or mongoc_collection_watch
batchSize:0
to the aggregate
command. Useful to request an immediate cursor. Previously the valuebson_oid_init_sequence
is removed. Use bson_oid_init
instead.mongoc_server_description_host
changes the return type from mongoc_host_list_t *
to const mongoc_host_list_t *
.mongoc_uri_t
object from a connection string):
authSource
is now correctly defaulted to "$external"
for MONGODB-AWS (instead of the database name or "admin"
).authMechanism
is now validated and returns a client error for invalid or unsupported values.authMechanismProperties
is now validated and returns a client error for invalid or unsupported properties for the specified authentication mechanism.authMechanismProperties
now correctly supports ':'
within property values.
authMechanismProperties=A:B,C:D:E,F:G
is parsed as {'A': 'B', 'C': 'D:E,F:G'}
.authMechanismProperties=A:B,C:D:E,F:G
is parsed as {'A': 'B': 'C': 'D:E', 'F': 'G'}
.mongoc_bulk_operation_execute
on the same mongoc_bulk_operation_t
repeatedly is an error. Previously this was only discouraged in documentation.__cdecl
calling convention to function declarations in public API. Intended to support consumers building their code using a different default calling convention with MSVC. The mongoc and bson libraries only support being built with the __cdecl
default calling convention.mongoc_client_set_ssl_opts
now ignores a pooled mongoc_client_t
and logs an error. Use mongoc_client_pool_set_ssl_opts
to set TLS options on a mongoc_client_pool_t
before popping any clients.mongoc_client_set_ssl_stream_initiator
now ignores a pooled mongoc_client_t
and logs an error.libmongoc-1.0
, libmongoc-static-1.0
, libbson-1.0
, and libbson-static-1.0
have been renamed to mongoc2
, mongoc2-static
, bson2
, and bson2-static
, respectively.The mongoc-1.0
(and bson-1.0
) CMake packages have been removed. Instead, usemongoc
or bson
, and specify a version or version range to be imported:
find_package(mongoc 1.30...2.0)
The new packages import different target names:
mongo::mongoc_static
→ mongoc::static
mongo::mongoc_shared
→ mongoc::shared
mongoc::mongoc
is a shim target that points to either the shared library or the static library.The BSON library has had similar name changes.
Removalsbson_md5_t
struct and associated API is removed.mongoc_matcher_t
and related functions are removed.mongoc_server_description_ismaster
is removed. Use the equivalent mongoc_server_description_hello
instead.MONGOC_QUERY_SLAVE_OK
is removed. Use the equivalent MONGOC_QUERY_SECONDARY_OK
instead.MONGOC_URI_SLAVEOK
is removed. It was unused.mongoc_client_command
, mongoc_database_command
, and mongoc_collection_command
are removed. Use mongoc_client_command_simple
, mongoc_database_command_simple
, and mongoc_collection_command_simple
instead.MONGOC_URI_MAXIDLETIMEMS
and MONGOC_URI_WAITQUEUEMULTIPLE
are removed. They were unused.bson_string_t
and associated functions are removed.ENABLE_SASL=CYRUS
on Windows is removed. Use ENABLE_SASL=SSPI
or ENABLE_SASL=OFF
instead.
CYRUS_PLUGIN_PATH_PREFIX
is removed.minPoolSize
URI option is removed along with associated API: MONGOC_URI_MINPOOLSIZE
and mongoc_client_pool_min_size
.ENABLE_SSL=LIBRESSL
) is removed. Associated API is removed (MONGOC_ENABLE_SSL_LIBRESSL
and mongoc_stream_tls_libressl_new
).MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED
(value -1) is removed. Use MONGOC_WRITE_CONCERN_W_UNACKNOWLEDGED
(value 0) which is handled equivalently. If specified in a URI, replace: mongodb://host/?w=-1
with mongodb://host/?w=0
.ENABLE_AUTOMATIC_INIT_AND_CLEANUP
is removed. See Initialization and cleanup for expected use of mongoc_init()
and mongoc_cleanup()
.mongoc_client_get_database_names
is removed. Use mongoc_client_get_database_names_with_opts
instead.mongoc_client_find_databases
is removed. Use mongoc_client_find_databases_with_opts
instead.mongoc_client_get_max_message_size
is removed.mongoc_client_get_max_bson_size
is removed.mongoc_apm_command_*_get_server_connection_id
functions are removed. Use mongoc_apm_command_*_get_server_connection_id_int64
instead.mongoc_collection_create_index_with_opts
, mongoc_collection_create_index
, and mongoc_collection_ensure_index
are removed. Use mongoc_collection_create_indexes_with_opts
instead.mongoc_index_opt_t
, mongoc_index_opt_geo_t
mongoc_index_opt_wt_t
are removed. Pass options using bson_t
to mongoc_collection_create_indexes_with_opts
instead.mongoc_collection_find_indexes
is removed. Use mongoc_collection_find_indexes_with_opts
instead.mongoc_cursor_is_alive
is removed. Use the equivalent mongoc_cursor_more
instead.mongoc_cursor_set_hint
is removed. Use the equivalent mongoc_cursor_set_server_id
instead.mongoc_cursor_get_hint
is removed. Use the equivalent mongoc_cursor_get_server_id
instead.mongoc_cursor_new_from_command_reply
is removed. Use mongoc_cursor_new_from_command_reply_with_opts
instead.mongoc_collection_save
is removed. Use mongoc_collection_insert_one
or mongoc_collection_replace_one
instead.mongoc_collection_delete
is removed. Use mongoc_collection_delete_one
or mongoc_collection_delete_many
instead.mongoc_delete_flags_t
and mongoc_reply_flags_t
are removed.mongoc_collection_find
is removed. Use mongoc_collection_find_with_opts
instead.mongoc_collection_insert_bulk
is removed. Use mongoc_collection_insert_many
instead.mongoc_collection_create_bulk_operation
is removed. Use `mongoc_collection_create_bulk_operation_wi...Announcing 1.30.2 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonFixes:
bson_new_from_buffer
behavior on malformed input.bson_t
.Fixes:
Thanks to everyone who contributed to this release.
Announcing 1.30.1 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonFixes:
BSON_NORETURN
macro for C23 standardNo changes since 1.30.0. Version incremented to match the libbson version.
Links:Thanks to everyone who contributed to this release.
Announcing 1.30.0 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbsonImprovements:
Fixes:
bson_as_json_with_opts
is changed to no longer split valid UTF-8 sequences.bson_append_array_builder_begin
.Deprecated:
New Features:
mongoc_client_set_structured_log_opts
and mongoc_client_pool_set_structured_log_opts
.mongoc_auto_encryption_opts_set_key_expiration
and mongoc_client_encryption_opts_set_key_expiration
.sort
option for update and replace operations.mongoc_bulkwrite_t
without a client.
mongoc_bulkwrite_new
and mongoc_bulkwrite_set_client
.Improvements:
mongoc_server_description_new_copy
.Fixes:
server_opening
will now see a server_closed
prior to topology_closed
.topology_closed
, a topology_changed
event will transition to Unknown
topology type.mongoc_bulkwrite_t
when verbose results requested.Deprecated:
Thanks to everyone who contributed to this release.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4