Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

Commit dfafc9b

Browse files
committed
Consolidate changelogs for previous versions
1 parent 1c22128 commit dfafc9b

6 files changed

+139
-145
lines changed

CHANGELOG-1.1.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,81 @@ in 1.1.x patch versions.
5959

6060
* [#148](https://github.com/doctrine/mongodb/pull/148): Reset cursor before and after `getSingleResult()`
6161
* [#149](https://github.com/doctrine/mongodb/pull/149): Use integer-casted argument in `Cursor::batchSize()`
62+
63+
1.1.0 (2013-12-02)
64+
------------------
65+
66+
* [#92](https://github.com/doctrine/mongodb/pull/92): Add get/setReadPreference() methods on core classes
67+
* [#97](https://github.com/doctrine/mongodb/pull/97): Implement `Collection::aggregate()` helper
68+
* [#103](https://github.com/doctrine/mongodb/pull/103): Support array argument in `Builder::select()` and `exclude()`
69+
* [#105](https://github.com/doctrine/mongodb/pull/105): Internal cursor improvements for hint, sort, read preferences, and recreation
70+
* `Cursor::hint()` and `sort()` should overwrite previous values
71+
* Integrate `setReadPreference()` with `recreate()` and make it chainable
72+
* [#106](https://github.com/doctrine/mongodb/pull/106): Events refactoring and support for modifying data in EventArgs
73+
* Support MongoDB::createCollection() options array (driver 1.4+)
74+
* Introduce MutableEventArgs object for post-event listeners
75+
* [#107](https://github.com/doctrine/mongodb/pull/107): Adding $nor query operator for Builder and Expr
76+
* [#118](https://github.com/doctrine/mongodb/pull/118): Documentation cleanup
77+
* [#109](https://github.com/doctrine/mongodb/pull/109): Support GeoJSON and 2dsphere queries
78+
* Rename `Query::TYPE_GEO_LOCATION` to `TYPE_GEO_NEAR`
79+
* Query builder and expression methods for 2dsphere geo-spatial operators
80+
* Integration with [GeoJSON](http://github.com/jmikola/geojson) library
81+
* [#121](https://github.com/doctrine/mongodb/pull/121): Reorder methods alphabetically
82+
* [#123](https://github.com/doctrine/mongodb/pull/123): ArrayIterator improvements
83+
* Allow `offsetSet()` to append values
84+
* Fix `valid()` return value if an array element is `false`
85+
* [#124](https://github.com/doctrine/mongodb/pull/124): Deprecated passing scalar $query argument to `Collection::update()`
86+
* [#122](https://github.com/doctrine/mongodb/pull/122): Command method refactoring
87+
* Command methods now throw ResultException on error
88+
* `group()` now returns an ArrayIterator instead of the raw command response
89+
* Ensure all `mapReduce()` options are prepared as MongoCode objects (where applicable)
90+
* Handle external database output strategy for `mapReduce()`
91+
* [#126](https://github.com/doctrine/mongodb/pull/126): DBRef database/collection method improvements
92+
* `createDBRef()` should not use array type hinting (arg can be a document or an ID)
93+
* `createDBRef()` should not dispatch events, nor should it be logged
94+
* Add event dispatching to `Database::getDBRef()` (Collection already had this)
95+
* [#127](https://github.com/doctrine/mongodb/pull/127): Improve events/logging for Database methods
96+
* Fixed post-event dispatching for `getGridFS()` and `createCollection()`
97+
* Added tests for Database event dispatching
98+
* Fixed logging for `createCollection()` and make LoggableDatabase's API consistent with the base class
99+
* [#128](https://github.com/doctrine/mongodb/pull/128): Query builder improvements
100+
* Do not filter out falsey values in Query/Builder `debug()` methods
101+
* Support values and expressions for $pull in query builder
102+
* Remove recursive merging in `Expr::addManyToSet()`
103+
* Implement `Expr::each()` and allow it to be used with `addToSet()`
104+
* Deprecate `Expr::addManyToSet()` in favor of `addToSet()` and `each()`
105+
* Support $each/$slice/$sort operators with `push()`
106+
* `Expr::push()` should ensure $each operator appears first
107+
* `Expr::where()` should not alter the current field in the builder
108+
* `Builder::mapReduceOptions()` and `out()` methods should require mapReduce command
109+
* Support GeoJSON in `Builder::geoNear()` and set spherical default
110+
* `Builder::map()` should init full query array, default to inline mapReduce output
111+
* Rename `Query::DISTINCT_FIELD` to `DISTINCT`
112+
* Throw exception for invalid query types in Query constructor
113+
* Query should allow a single cursor hint to be specified
114+
* Query should apply "limit" option for mapReduce commands
115+
* Add array type-hint to `Builder::all()` and `Expr::all()`
116+
* `Query::getIterator()` should not execute if an exception is guaranteed
117+
* Deprecate `Query::iterate()` alias in favor of `getIterator()`
118+
* [#130](https://github.com/doctrine/mongodb/pull/130): Add $rename update operator for Builder and Expr
119+
* [#131](https://github.com/doctrine/mongodb/pull/131): Remove $cmd args/properties and deprecate `mongoCmd` option
120+
* [#132](https://github.com/doctrine/mongodb/pull/132): Make full command result accessible in ArrayIterator
121+
* [#140](https://github.com/doctrine/mongodb/pull/140): Add `initialize()` calls in Connection methods to avoid use of null objects
122+
* [#139](https://github.com/doctrine/mongodb/pull/139): `Builder::sort()` should default to ascending order
123+
* [#143](https://github.com/doctrine/mongodb/pull/143): Query builder read prefs and wrap driver classes directly
124+
* Wrap driver classes directly and remove Connection reinit logic
125+
* Convert inconsistent return values for `getReadPreference()` from pre-1.3.3 drivers
126+
* Don't throw InvalidArgumentException in `Cursor::setReadPreference()`
127+
* Support read preferences in Query Builder
128+
* [#147](https://github.com/doctrine/mongodb/pull/147): `Expr::mod()` should take explicit divisor/remainder args
129+
130+
Additional commits included in 1.1.0:
131+
132+
* [d51a44d](https://github.com/doctrine/mongodb/commit/d51a44d): Support $elemMatch in query projections (closes [#101](https://github.com/doctrine/mongodb/pull/101))
133+
* [e92f0f2](https://github.com/doctrine/mongodb/commit/e92f0f2): Remove unused $options argument in `Expr::equals()`
134+
* [773423a](https://github.com/doctrine/mongodb/commit/773423a): Use driver's return value in `Collection::batchInsert()` (closes [#93](https://github.com/doctrine/mongodb/pull/93))
135+
* [114a0ae](https://github.com/doctrine/mongodb/commit/114a0ae): Fix cursor creation when MapReduce's db output option is used
136+
* [8bc1466](https://github.com/doctrine/mongodb/commit/8bc1466): Ensure `Cursor::limit()` argument is casted to an integer
137+
* [6afee47](https://github.com/doctrine/mongodb/commit/6afee47): Deprecate `Connection::getStatus()` (to be removed in 1.2)
138+
* [05258d4](https://github.com/doctrine/mongodb/commit/05258d4): Deprecate Database force/prev/resetError() methods (to be removed in 1.2)
139+
* [25a8025](https://github.com/doctrine/mongodb/commit/25a8025): Restore `Query::TYPE_GEO_LOCATION` constant for BC, but deprecate it

CHANGELOG-1.2.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,41 @@ in 1.2.x patch versions.
1515
* [#229](https://github.com/doctrine/mongodb/pull/229): Fix EagerCursor::skip() method calling limit method of base cursor instead of skip method
1616
* [#231](https://github.com/doctrine/mongodb/pull/231): Remove count method declaration in CursorInterface to fix fatal error for PHP 5.3
1717
* [#237](https://github.com/doctrine/mongodb/pull/237): Fix bug where timeout is set to 1 ms
18+
19+
1.2.0 (2015-08-18)
20+
------------------
21+
22+
* [#171](https://github.com/doctrine/mongodb/pull/171): Implement `$minDistance` query operator and geoNear option
23+
* Adds `minDistance()` method to query builder
24+
* [#183](https://github.com/doctrine/mongodb/pull/183): Rewrite `Collection::update()` "multi" option to "multiple"
25+
* [#184](https://github.com/doctrine/mongodb/pull/184): Query builder support for $text operator in MongoDB 2.6
26+
* Adds `language()`, `text()`, `selectMeta()`, and `sortMeta()` methods to query builder
27+
* [#186](https://github.com/doctrine/mongodb/pull/186): Fixed `Connection::convertWriteTimeout()` docs
28+
* [#192](https://github.com/doctrine/mongodb/pull/192): Support `$meta` expressions in `Cursor::sort()`
29+
* This is typically used for sorting by text search scores
30+
* [#197](https://github.com/doctrine/mongodb/pull/197): Support aggregation command cursors and client options
31+
* Introduces a CommandCursor class, which decorates a MongoCommandCursor
32+
* Command cursors require driver 1.5+
33+
* Socket timeouts for command cursors require driver 1.6+
34+
* [#201](https://github.com/doctrine/mongodb/pull/201): Fix issue when an operator follows `equals()`
35+
* [#203](https://github.com/doctrine/mongodb/pull/203): Ensure Query projection option is renamed for findAndModify
36+
* [#205](https://github.com/doctrine/mongodb/pull/205): Don't pass empty arrays to array_combine()
37+
* [#209](https://github.com/doctrine/mongodb/pull/209): Add a common cursor interface
38+
* The Cursor and EagerCursor classes implement this interface
39+
* [#212](https://github.com/doctrine/mongodb/pull/212): Query builder support for new update operators in MongoDB 2.6
40+
* Adds `bitAnd()`, `bitOr()`, `bitXor()`, `currentDate()`, `max()`, `min()`, and `mul()` methods to query builder
41+
* [#213](https://github.com/doctrine/mongodb/pull/213): Add aggregation builder
42+
* The builder may be created with `Collection::createAggregationBuilder()`
43+
* Top-level builder methods correspond to pipeline operators
44+
* [#214](https://github.com/doctrine/mongodb/pull/214): Removes parameter type hint from `Builder::geoWithin()`
45+
* Now accepts an array or `GeoJson\Geometry\Geometry` instance
46+
* [#215](https://github.com/doctrine/mongodb/pull/215): Add test environment preferring lowest package dependencies
47+
* [#222](https://github.com/doctrine/mongodb/pull/222): Add support for `MongoCollection::parallelCollectionScan()`
48+
* [#223](https://github.com/doctrine/mongodb/pull/223): Support `$useKeys` option when EagerCursor converts to an array
49+
* [#224](https://github.com/doctrine/mongodb/pull/224): Support client and socket timeout options in `Collection::count()`
50+
* `Collection::count()` now supports an options array as its second argument (`$limit` integer is still supported)
51+
* Socket timeout (i.e. `socketTimeoutMS`) may be specified alongside command options
52+
* [#225](https://github.com/doctrine/mongodb/pull/225): Include all cursor methods in cursor interface
53+
* Expands the common CursorInterface to support all methods in Cursor and EagerCursor
54+
* Allows ODM to be more agnostic when decorating a Cursor or EagerCursor
55+
* [#226](https://github.com/doctrine/mongodb/pull/226): Implement getter for cursor `useIdentifierKeys` option

CHANGELOG-1.3.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,27 @@ CHANGELOG for 1.3.x
44
This changelog references the relevant changes (bug and security fixes) done
55
in 1.3.x patch versions.
66

7-
1.3.1 (????-??-??)
7+
1.3.0 (2016-03-19)
88
------------------
9+
10+
* [#227](https://github.com/doctrine/mongodb/pull/227): Specify time limit operation on a mongodb cursor
11+
* Adds `maxTimeMS()` method to query builder and cursor
12+
* [#233](https://github.com/doctrine/mongodb/pull/233): Allow Event Listeners the ability to modify context information in the event
13+
* Allows changes to the options for the following events: preAggregate, preBatchInsert, preDistinct, preFind, preFindAndRemove, preFindAndUpdate, preFindOne, preGetDBRef, preGroup, preInsert, preMapReduce, preNear, preRemove, postRemove, preSave, preUpdate, postUpdate
14+
* [#234](https://github.com/doctrine/mongodb/pull/234): Add support for `$comment` operator
15+
* Adds `comment()` method to query builder
16+
* [#235](https://github.com/doctrine/mongodb/pull/235): Add support for `$setOnInsert` operator
17+
* Adds `setOnInsert()` method to query builder
18+
* [#238](https://github.com/doctrine/mongodb/pull/238): Bump PHP and mongo version requirements
19+
* [#240](https://github.com/doctrine/mongodb/pull/240): Add new MongoDB 3.2 features to aggregation builder
20+
* Adds `sample()`, `indexStats()` and `lookup()` methods to aggregation builder
21+
* Adds `avg()`, `max()`, `min()`, `stdDevPop()`, `stdDevSamp()`, `sum()` methods to project stage
22+
* Adds `minDistance()` method to geoNear stage
23+
* Adds `includeArrayIndex()` and `preserveNullAndEmptyArrays()` methods to unwind stage
24+
* [#241](https://github.com/doctrine/mongodb/pull/241): Add query operators introduced with MongoDB 3.2
25+
* Adds `bitsAllClear()`, `bitsAllSet()`, `bitsAnyClear()`, `bitsAnySet()`, `caseSensitive()`, `diacriticSensitive()` methods to query builder
26+
* [#251](https://github.com/doctrine/mongodb/pull/251): Corrected fluent interface docblocks
27+
* [#255](https://github.com/doctrine/mongodb/pull/255): Add expr method to aggregation expression object
28+
* Adds `expr()` method to the aggregation Expr class
29+
* [#256](https://github.com/doctrine/mongodb/pull/256): Allow using operators in group stages
30+
* Adds all methods from the `Operator` class to the group stage

UPGRADE-1.1.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)