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

Commit 3cbfbd2

Browse files
committed
Bring back old UPGRADE documents
This partially reverts commit dfafc9b.
1 parent 2a32803 commit 3cbfbd2

File tree

3 files changed

+144
-0
lines changed

3 files changed

+144
-0
lines changed

UPGRADE-1.1.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
UPGRADE from 1.0 to 1.1
2+
=======================
3+
4+
Pull requests completed for the 1.1.0 release:
5+
6+
* [#92](https://github.com/doctrine/mongodb/pull/92): Add get/setReadPreference() methods on core classes
7+
* [#97](https://github.com/doctrine/mongodb/pull/97): Implement `Collection::aggregate()` helper
8+
* [#103](https://github.com/doctrine/mongodb/pull/103): Support array argument in `Builder::select()` and `exclude()`
9+
* [#105](https://github.com/doctrine/mongodb/pull/105): Internal cursor improvements for hint, sort, read preferences, and recreation
10+
* `Cursor::hint()` and `sort()` should overwrite previous values
11+
* Integrate `setReadPreference()` with `recreate()` and make it chainable
12+
* [#106](https://github.com/doctrine/mongodb/pull/106): Events refactoring and support for modifying data in EventArgs
13+
* Support MongoDB::createCollection() options array (driver 1.4+)
14+
* Introduce MutableEventArgs object for post-event listeners
15+
* [#107](https://github.com/doctrine/mongodb/pull/107): Adding $nor query operator for Builder and Expr
16+
* [#118](https://github.com/doctrine/mongodb/pull/118): Documentation cleanup
17+
* [#109](https://github.com/doctrine/mongodb/pull/109): Support GeoJSON and 2dsphere queries
18+
* Rename `Query::TYPE_GEO_LOCATION` to `TYPE_GEO_NEAR`
19+
* Query builder and expression methods for 2dsphere geo-spatial operators
20+
* Integration with [GeoJSON](http://github.com/jmikola/geojson) library
21+
* [#121](https://github.com/doctrine/mongodb/pull/121): Reorder methods alphabetically
22+
* [#123](https://github.com/doctrine/mongodb/pull/123): ArrayIterator improvements
23+
* Allow `offsetSet()` to append values
24+
* Fix `valid()` return value if an array element is `false`
25+
* [#124](https://github.com/doctrine/mongodb/pull/124): Deprecated passing scalar $query argument to `Collection::update()`
26+
* [#122](https://github.com/doctrine/mongodb/pull/122): Command method refactoring
27+
* Command methods now throw ResultException on error
28+
* `group()` now returns an ArrayIterator instead of the raw command response
29+
* Ensure all `mapReduce()` options are prepared as MongoCode objects (where applicable)
30+
* Handle external database output strategy for `mapReduce()`
31+
* [#126](https://github.com/doctrine/mongodb/pull/126): DBRef database/collection method improvements
32+
* `createDBRef()` should not use array type hinting (arg can be a document or an ID)
33+
* `createDBRef()` should not dispatch events, nor should it be logged
34+
* Add event dispatching to `Database::getDBRef()` (Collection already had this)
35+
* [#127](https://github.com/doctrine/mongodb/pull/127): Improve events/logging for Database methods
36+
* Fixed post-event dispatching for `getGridFS()` and `createCollection()`
37+
* Added tests for Database event dispatching
38+
* Fixed logging for `createCollection()` and make LoggableDatabase's API consistent with the base class
39+
* [#128](https://github.com/doctrine/mongodb/pull/128): Query builder improvements
40+
* Do not filter out falsey values in Query/Builder `debug()` methods
41+
* Support values and expressions for $pull in query builder
42+
* Remove recursive merging in `Expr::addManyToSet()`
43+
* Implement `Expr::each()` and allow it to be used with `addToSet()`
44+
* Deprecate `Expr::addManyToSet()` in favor of `addToSet()` and `each()`
45+
* Support $each/$slice/$sort operators with `push()`
46+
* `Expr::push()` should ensure $each operator appears first
47+
* `Expr::where()` should not alter the current field in the builder
48+
* `Builder::mapReduceOptions()` and `out()` methods should require mapReduce command
49+
* Support GeoJSON in `Builder::geoNear()` and set spherical default
50+
* `Builder::map()` should init full query array, default to inline mapReduce output
51+
* Rename `Query::DISTINCT_FIELD` to `DISTINCT`
52+
* Throw exception for invalid query types in Query constructor
53+
* Query should allow a single cursor hint to be specified
54+
* Query should apply "limit" option for mapReduce commands
55+
* Add array type-hint to `Builder::all()` and `Expr::all()`
56+
* `Query::getIterator()` should not execute if an exception is guaranteed
57+
* Deprecate `Query::iterate()` alias in favor of `getIterator()`
58+
* [#130](https://github.com/doctrine/mongodb/pull/130): Add $rename update operator for Builder and Expr
59+
* [#131](https://github.com/doctrine/mongodb/pull/131): Remove $cmd args/properties and deprecate `mongoCmd` option
60+
* [#132](https://github.com/doctrine/mongodb/pull/132): Make full command result accessible in ArrayIterator
61+
* [#140](https://github.com/doctrine/mongodb/pull/140): Add `initialize()` calls in Connection methods to avoid use of null objects
62+
* [#139](https://github.com/doctrine/mongodb/pull/139): `Builder::sort()` should default to ascending order
63+
* [#143](https://github.com/doctrine/mongodb/pull/143): Query builder read prefs and wrap driver classes directly
64+
* Wrap driver classes directly and remove Connection reinit logic
65+
* Convert inconsistent return values for `getReadPreference()` from pre-1.3.3 drivers
66+
* Don't throw InvalidArgumentException in `Cursor::setReadPreference()`
67+
* Support read preferences in Query Builder
68+
* [#147](https://github.com/doctrine/mongodb/pull/147): `Expr::mod()` should take explicit divisor/remainder args
69+
70+
Additional commits included in 1.1.0:
71+
72+
* [d51a44d](https://github.com/doctrine/mongodb/commit/d51a44d): Support $elemMatch in query projections (closes [#101](https://github.com/doctrine/mongodb/pull/101))
73+
* [e92f0f2](https://github.com/doctrine/mongodb/commit/e92f0f2): Remove unused $options argument in `Expr::equals()`
74+
* [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))
75+
* [114a0ae](https://github.com/doctrine/mongodb/commit/114a0ae): Fix cursor creation when MapReduce's db output option is used
76+
* [8bc1466](https://github.com/doctrine/mongodb/commit/8bc1466): Ensure `Cursor::limit()` argument is casted to an integer
77+
* [6afee47](https://github.com/doctrine/mongodb/commit/6afee47): Deprecate `Connection::getStatus()` (to be removed in 1.2)
78+
* [05258d4](https://github.com/doctrine/mongodb/commit/05258d4): Deprecate Database force/prev/resetError() methods (to be removed in 1.2)
79+
* [25a8025](https://github.com/doctrine/mongodb/commit/25a8025): Restore `Query::TYPE_GEO_LOCATION` constant for BC, but deprecate it

UPGRADE-1.2.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
UPGRADE from 1.1 to 1.2
2+
=======================
3+
4+
Pull requests completed for the 1.2.0 release:
5+
6+
* [#171](https://github.com/doctrine/mongodb/pull/171): Implement `$minDistance` query operator and geoNear option
7+
* Adds `minDistance()` method to query builder
8+
* [#183](https://github.com/doctrine/mongodb/pull/183): Rewrite `Collection::update()` "multi" option to "multiple"
9+
* [#184](https://github.com/doctrine/mongodb/pull/184): Query builder support for $text operator in MongoDB 2.6
10+
* Adds `language()`, `text()`, `selectMeta()`, and `sortMeta()` methods to query builder
11+
* [#186](https://github.com/doctrine/mongodb/pull/186): Fixed `Connection::convertWriteTimeout()` docs
12+
* [#192](https://github.com/doctrine/mongodb/pull/192): Support `$meta` expressions in `Cursor::sort()`
13+
* This is typically used for sorting by text search scores
14+
* [#197](https://github.com/doctrine/mongodb/pull/197): Support aggregation command cursors and client options
15+
* Introduces a CommandCursor class, which decorates a MongoCommandCursor
16+
* Command cursors require driver 1.5+
17+
* Socket timeouts for command cursors require driver 1.6+
18+
* [#201](https://github.com/doctrine/mongodb/pull/201): Fix issue when an operator follows `equals()`
19+
* [#203](https://github.com/doctrine/mongodb/pull/203): Ensure Query projection option is renamed for findAndModify
20+
* [#205](https://github.com/doctrine/mongodb/pull/205): Don't pass empty arrays to array_combine()
21+
* [#209](https://github.com/doctrine/mongodb/pull/209): Add a common cursor interface
22+
* The Cursor and EagerCursor classes implement this interface
23+
* [#212](https://github.com/doctrine/mongodb/pull/212): Query builder support for new update operators in MongoDB 2.6
24+
* Adds `bitAnd()`, `bitOr()`, `bitXor()`, `currentDate()`, `max()`, `min()`, and `mul()` methods to query builder
25+
* [#213](https://github.com/doctrine/mongodb/pull/213): Add aggregation builder
26+
* The builder may be created with `Collection::createAggregationBuilder()`
27+
* Top-level builder methods correspond to pipeline operators
28+
* [#214](https://github.com/doctrine/mongodb/pull/214): Removes parameter type hint from `Builder::geoWithin()`
29+
* Now accepts an array or `GeoJson\Geometry\Geometry` instance
30+
* [#215](https://github.com/doctrine/mongodb/pull/215): Add test environment preferring lowest package dependencies
31+
* [#222](https://github.com/doctrine/mongodb/pull/222): Add support for `MongoCollection::parallelCollectionScan()`
32+
* [#223](https://github.com/doctrine/mongodb/pull/223): Support `$useKeys` option when EagerCursor converts to an array
33+
* [#224](https://github.com/doctrine/mongodb/pull/224): Support client and socket timeout options in `Collection::count()`
34+
* `Collection::count()` now supports an options array as its second argument (`$limit` integer is still supported)
35+
* Socket timeout (i.e. `socketTimeoutMS`) may be specified alongside command options
36+
* [#225](https://github.com/doctrine/mongodb/pull/225): Include all cursor methods in cursor interface
37+
* Expands the common CursorInterface to support all methods in Cursor and EagerCursor
38+
* Allows ODM to be more agnostic when decorating a Cursor or EagerCursor
39+
* [#226](https://github.com/doctrine/mongodb/pull/226): Implement getter for cursor `useIdentifierKeys` option

UPGRADE-1.3.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
UPGRADE from 1.2 to 1.3
2+
=======================
3+
4+
Pull requests completed for the 1.3.0 release:
5+
6+
* [#227](https://github.com/doctrine/mongodb/pull/227): Specify time limit operation on a mongodb cursor
7+
* Adds `maxTimeMS()` method to query builder and cursor
8+
* [#233](https://github.com/doctrine/mongodb/pull/233): Allow Event Listeners the ability to modify context information in the event
9+
* 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
10+
* [#234](https://github.com/doctrine/mongodb/pull/234): Add support for `$comment` operator
11+
* Adds `comment()` method to query builder
12+
* [#235](https://github.com/doctrine/mongodb/pull/235): Add support for `$setOnInsert` operator
13+
* Adds `setOnInsert()` method to query builder
14+
* [#238](https://github.com/doctrine/mongodb/pull/238): Bump PHP and mongo version requirements
15+
* [#240](https://github.com/doctrine/mongodb/pull/240): Add new MongoDB 3.2 features to aggregation builder
16+
* Adds `sample()`, `indexStats()` and `lookup()` methods to aggregation builder
17+
* Adds `avg()`, `max()`, `min()`, `stdDevPop()`, `stdDevSamp()`, `sum()` methods to project stage
18+
* Adds `minDistance()` method to geoNear stage
19+
* Adds `includeArrayIndex()` and `preserveNullAndEmptyArrays()` methods to unwind stage
20+
* [#241](https://github.com/doctrine/mongodb/pull/241): Add query operators introduced with MongoDB 3.2
21+
* Adds `bitsAllClear()`, `bitsAllSet()`, `bitsAnyClear()`, `bitsAnySet()`, `caseSensitive()`, `diacriticSensitive()` methods to query builder
22+
* [#251](https://github.com/doctrine/mongodb/pull/251): Corrected fluent interface docblocks
23+
* [#255](https://github.com/doctrine/mongodb/pull/255): Add expr method to aggregation expression object
24+
* Adds `expr()` method to the aggregation Expr class
25+
* [#256](https://github.com/doctrine/mongodb/pull/256): Allow using operators in group stages
26+
* Adds all methods from the `Operator` class to the group stage

0 commit comments

Comments
 (0)