|
| 1 | +Changes |
| 2 | +======= |
| 3 | + |
| 4 | +Changes in Version 1.2 |
| 5 | +---------------------- |
| 6 | +- `spec` parameter for :meth:`~pymongo.collection.Collection.remove` is |
| 7 | + now optional to allow for deleting all documents in a |
| 8 | + :class:`~pymongo.collection.Collection` |
| 9 | +- always wrap queries with ``{query: ...}`` even when no special options - |
| 10 | + get around some issues with queries on fields named ``query`` |
| 11 | +- enforce 4MB document limit on the client side |
| 12 | +- added :meth:`~pymongo.collection.Collection.map_reduce` helper - see |
| 13 | + :doc:`example <examples/map_reduce>` |
| 14 | +- added :meth:`~pymongo.cursor.Cursor.distinct` method on |
| 15 | + :class:`~pymongo.cursor.Cursor` instances to allow distinct with |
| 16 | + queries |
| 17 | +- fix for :meth:`~pymongo.cursor.Cursor.__getitem__` after |
| 18 | + :meth:`~pymongo.cursor.Cursor.skip` |
| 19 | +- allow any UTF-8 string in :class:`~pymongo.bson.BSON` encoder, not |
| 20 | + just ASCII subset |
| 21 | +- added :attr:`~pymongo.objectid.ObjectId.generation_time` |
| 22 | +- removed support for legacy :class:`~pymongo.objectid.ObjectId` |
| 23 | + format - pretty sure this was never used, and is just confusing |
| 24 | +- DEPRECATED :meth:`~pymongo.objectid.ObjectId.url_encode` and |
| 25 | + :meth:`~pymongo.objectid.ObjectId.url_decode` in favor of :meth:`str` |
| 26 | + and :meth:`~pymongo.objectid.ObjectId`, respectively |
| 27 | +- allow *oplog.$main* as a valid collection name |
| 28 | +- some minor fixes for installation process |
| 29 | +- added support for datetime and regex in :mod:`~pymongo.json_util` |
| 30 | + |
| 31 | +Changes in Version 1.1.2 |
| 32 | +------------------------ |
| 33 | +- improvements to :meth:`~pymongo.collection.Collection.insert` speed |
| 34 | + (using C for insert message creation) |
| 35 | +- use random number for request_id |
| 36 | +- fix some race conditions with :class:`~pymongo.errors.AutoReconnect` |
| 37 | + |
| 38 | +Changes in Version 1.1.1 |
| 39 | +------------------------ |
| 40 | +- added `multi` parameter for |
| 41 | + :meth:`~pymongo.collection.Collection.update` |
| 42 | +- fix unicode regex patterns with C extension |
| 43 | +- added :meth:`~pymongo.collection.Collection.distinct` |
| 44 | +- added `database` support for :class:`~pymongo.dbref.DBRef` |
| 45 | +- added :mod:`~pymongo.json_util` with helpers for encoding / decoding |
| 46 | + special types to JSON |
| 47 | +- DEPRECATED :meth:`~pymongo.cursor.Cursor.__len__` in favor of |
| 48 | + :meth:`~pymongo.cursor.Cursor.count` with `with_limit_and_skip` set |
| 49 | + to ``True`` due to performance regression |
| 50 | +- switch documentation to Sphinx |
| 51 | + |
| 52 | +Changes in Version 1.1 |
| 53 | +---------------------- |
| 54 | +- added :meth:`__hash__` for :class:`~pymongo.dbref.DBRef` and |
| 55 | + :class:`~pymongo.objectid.ObjectId` |
| 56 | +- bulk :meth:`~pymongo.collection.Collection.insert` works with any |
| 57 | + iterable |
| 58 | +- fix :class:`~pymongo.objectid.ObjectId` generation when using |
| 59 | + :mod:`multiprocessing` |
| 60 | +- added :attr:`~pymongo.cursor.Cursor.collection` |
| 61 | +- added `network_timeout` parameter for |
| 62 | + :meth:`~pymongo.connection.Connection` |
| 63 | +- DEPRECATED `slave_okay` parameter for individual queries |
| 64 | +- fix for `safe` mode when multi-threaded |
| 65 | +- added `safe` parameter for :meth:`~pymongo.collection.Collection.remove` |
| 66 | +- added `tailable` parameter for :meth:`~pymongo.collection.Collection.find` |
| 67 | + |
| 68 | +Changes in Version 1.0 |
| 69 | +---------------------- |
| 70 | +- fixes for |
| 71 | + :class:`~pymongo.master_slave_connection.MasterSlaveConnection` |
| 72 | +- added `finalize` parameter for :meth:`~pymongo.collection.Collection.group` |
| 73 | +- improvements to :meth:`~pymongo.collection.Collection.insert` speed |
| 74 | +- improvements to :mod:`gridfs` speed |
| 75 | +- added :meth:`~pymongo.cursor.Cursor.__getitem__` and |
| 76 | + :meth:`~pymongo.cursor.Cursor.__len__` for |
| 77 | + :class:`~pymongo.cursor.Cursor` instances |
| 78 | + |
| 79 | +Changes in Version 0.16 |
| 80 | +----------------------- |
| 81 | +- support for encoding/decoding :class:`uuid.UUID` instances |
| 82 | +- fix for :meth:`~pymongo.cursor.Cursor.explain` with limits |
| 83 | + |
| 84 | +Changes in Version 0.15.2 |
| 85 | +------------------------- |
| 86 | +- documentation changes only |
| 87 | + |
| 88 | +Changes in Version 0.15.1 |
| 89 | +------------------------- |
| 90 | +- various performance improvements |
| 91 | +- API CHANGE no longer need to specify direction for |
| 92 | + :meth:`~pymongo.collection.Collection.create_index` and |
| 93 | + :meth:`~pymongo.collection.Collection.ensure_index` when indexing a |
| 94 | + single key |
| 95 | +- support for encoding :class:`tuple` instances as :class:`list` |
| 96 | + instances |
| 97 | + |
| 98 | +Changes in Version 0.15 |
| 99 | +----------------------- |
| 100 | +- fix string representation of :class:`~pymongo.objectid.ObjectId` |
| 101 | + instances |
| 102 | +- added `timeout` parameter for |
| 103 | + :meth:`~pymongo.collection.Collection.find` |
| 104 | +- allow scope for `reduce` function in |
| 105 | + :meth:`~pymongo.collection.Collection.group` |
| 106 | + |
| 107 | +Changes in Version 0.14.2 |
| 108 | +------------------------- |
| 109 | +- minor bugfixes |
| 110 | + |
| 111 | +Changes in Version 0.14.1 |
| 112 | +------------------------- |
| 113 | +- :meth:`~gridfs.grid_file.GridFile.seek` and |
| 114 | + :meth:`~gridfs.grid_file.GridFile.tell` for (read mode) |
| 115 | + :class:`~gridfs.grid_file.GridFile` instances |
| 116 | + |
| 117 | +Changes in Version 0.14 |
| 118 | +----------------------- |
| 119 | +- support for long in :class:`~pymongo.bson.BSON` |
| 120 | +- added :meth:`~pymongo.collection.Collection.rename` |
| 121 | +- added `snapshot` parameter for |
| 122 | + :meth:`~pymongo.collection.Collection.find` |
| 123 | + |
| 124 | +Changes in Version 0.13 |
| 125 | +----------------------- |
| 126 | +- better |
| 127 | + :class:`~pymongo.master_slave_connection.MasterSlaveConnection` |
| 128 | + support |
| 129 | +- API CHANGE :meth:`~pymongo.collection.Collection.insert` and |
| 130 | + :meth:`~pymongo.collection.Collection.save` both return inserted |
| 131 | + ``_id`` |
| 132 | +- DEPRECATED passing an index name to |
| 133 | + :meth:`~pymongo.cursor.Cursor.hint` |
| 134 | + |
| 135 | +Changes in Version 0.12 |
| 136 | +----------------------- |
| 137 | +- improved :class:`~pymongo.objectid.ObjectId` generation |
| 138 | +- added :class:`~pymongo.errors.AutoReconnect` exception for when |
| 139 | + reconnection is possible |
| 140 | +- make :mod:`gridfs` thread-safe |
| 141 | +- fix for :mod:`gridfs` with non :class:`~pymongo.objectid.ObjectId` ``_id`` |
| 142 | + |
| 143 | +Changes in Version 0.11.3 |
| 144 | +------------------------- |
| 145 | +- don't allow NULL bytes in string encoder |
| 146 | +- fixes for Python 2.3 |
| 147 | + |
| 148 | +Changes in Version 0.11.2 |
| 149 | +------------------------- |
| 150 | +- PEP 8 |
| 151 | +- updates for :meth:`~pymongo.collection.Collection.group` |
| 152 | +- VS build |
| 153 | + |
| 154 | +Changes in Version 0.11.1 |
| 155 | +------------------------- |
| 156 | +- fix for connection pooling under Python 2.5 |
| 157 | + |
| 158 | +Changes in Version 0.11 |
| 159 | +----------------------- |
| 160 | +- better build failure detection |
| 161 | +- driver support for selecting fields in sub-documents |
| 162 | +- disallow insertion of invalid key names |
| 163 | +- added `timeout` parameter for :meth:`~pymongo.connection.Connection` |
| 164 | + |
| 165 | +Changes in Version 0.10.3 |
| 166 | +------------------------- |
| 167 | +- fix bug with large :meth:`~pymongo.cursor.Cursor.limit` |
| 168 | +- better exception when modules get reloaded out from underneath the C |
| 169 | + extension |
| 170 | +- better exception messages when calling a |
| 171 | + :class:`~pymongo.collection.Collection` or |
| 172 | + :class:`~pymongo.database.Database` instance |
| 173 | + |
| 174 | +Changes in Version 0.10.2 |
| 175 | +------------------------- |
| 176 | +- support subclasses of :class:`dict` in C encoder |
| 177 | + |
| 178 | +Changes in Version 0.10.1 |
| 179 | +------------------------- |
| 180 | +- alias :class:`~pymongo.connection.Connection` as |
| 181 | + :attr:`pymongo.Connection` |
| 182 | +- raise an exception rather than silently overflowing in encoder |
| 183 | + |
| 184 | +Changes in Version 0.10 |
| 185 | +----------------------- |
| 186 | +- added :meth:`~pymongo.collection.Collection.ensure_index` |
| 187 | + |
| 188 | +Changes in Version 0.9.7 |
| 189 | +------------------------ |
| 190 | +- allow sub-collections of *$cmd* as valid |
| 191 | + :class:`~pymongo.collection.Collection` names |
| 192 | +- add version as :attr:`pymongo.version` |
| 193 | +- add ``--no_ext`` command line option to *setup.py* |
0 commit comments