Skip to content

Commit 0a931d8

Browse files
authored
Merge pull request #164 from rustagir/DOCSP-43668-v2-deprecated-gridfs
DOCSP-43668: v2 removal of gridfs fields
2 parents 6222278 + 6a331fa commit 0a931d8

File tree

6 files changed

+40
-35
lines changed

6 files changed

+40
-35
lines changed

source/reference/method/MongoDBDatabase-selectGridFSBucket.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ Parameters
5151

5252
.. versionadded:: 1.17
5353

54-
* - disableMD5
55-
- boolean
56-
- Whether to disable automatic MD5 generation when storing files.
57-
58-
Defaults to ``false``. Only ``true`` will be supported in 2.0.
59-
60-
.. versionadded:: 1.4
61-
6254
* - readConcern
6355
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
6456
- The default read concern to use for bucket operations. Defaults to the

source/reference/method/MongoDBGridFSBucket-openUploadStream.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ Parameters
5151
- The chunk size in bytes. Defaults to the bucket's ``chunkSizeBytes``
5252
option.
5353

54-
* - disableMD5
55-
- boolean
56-
- Whether to disable automatic MD5 generation when storing files.
57-
58-
Defaults to ``false``. Only ``true`` will be supported in 2.0.
59-
60-
.. versionadded:: 1.4
61-
6254
* - metadata
6355
- array|object
6456
- User data for the ``metadata`` field of the file document. If not

source/reference/method/MongoDBGridFSBucket-uploadFromStream.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ Parameters
5555
- The chunk size in bytes. Defaults to the bucket's ``chunkSizeBytes``
5656
option.
5757

58-
* - disableMD5
59-
- boolean
60-
- Whether to disable automatic MD5 generation when storing files.
61-
62-
Defaults to ``false``. Only ``true`` will be supported in 2.0.
63-
64-
.. versionadded:: 1.4
65-
6658
* - metadata
6759
- array|object
6860
- User data for the ``metadata`` field of the file document. If not

source/reference/method/MongoDBGridFSBucket__construct.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ Parameters
6262

6363
.. versionadded:: 1.17
6464

65-
* - disableMD5
66-
- boolean
67-
- Whether to disable automatic MD5 generation when storing files.
68-
69-
Defaults to ``false``. Only ``true`` will be supported in 2.0.
70-
71-
.. versionadded:: 1.4
72-
7365
* - readConcern
7466
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
7567
- The default read concern to use for bucket operations. Defaults to the

source/whats-new.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ What's New
2020
Learn about new features, improvements, and fixes introduced in the
2121
following versions of the {+php-library+}:
2222

23+
* :ref:`Version 2.0 <php-lib-version-2.0>`
24+
2325
* :ref:`Version 1.20 <php-lib-version-1.20>`
2426

2527
* :ref:`Version 1.19 <php-lib-version-1.19>`
@@ -32,6 +34,26 @@ following versions of the {+php-library+}:
3234

3335
* :ref:`Version 1.15 <php-lib-version-1.15>`
3436

37+
.. _php-lib-version-2.0:
38+
39+
What's New in 2.0
40+
-----------------
41+
42+
The {+library-short+} v2.0 release includes the following features,
43+
improvements, and fixes:
44+
45+
- Removal of deprecated fields in GridFS types.
46+
47+
- The library does not calculate the ``md5`` field when a file is
48+
uploaded to GridFS. If your application requires a file digest, you
49+
must implement this process outside GridFS and store the values in
50+
metadata.
51+
52+
- The fields ``contentType`` and ``aliases`` are no longer stored in
53+
the ``files`` GridFS collection. If your application requires this
54+
information, you must store it in metadata. To learn mor about
55+
GridFS, see the :ref:`php-gridfs` guide.
56+
3557
.. _php-lib-version-1.20:
3658

3759
What's New in 1.20
@@ -42,6 +64,9 @@ What's New in 1.20
4264
Support for {+mdb-server+} v3.6 is removed in this release of the
4365
library.
4466

67+
The {+library-short+} v1.20 release includes the following features,
68+
improvements, and fixes:
69+
4570
- Adds support for {+mdb-server+} v8.0.
4671

4772
- Adds support for Queryable Encryption (QE) range queries. To use this
@@ -75,6 +100,9 @@ and was added to keep version parity with the {+extension-short+}.
75100
What's New in 1.18
76101
------------------
77102

103+
The {+library-short+} v1.18 release includes the following features,
104+
improvements, and fixes:
105+
78106
- Adds a new GridFS API to make it more convenient to work with files using PHP's
79107
existing filesystem functions. The :phpmethod:`MongoDB\GridFS\Bucket::registerGlobalStreamWrapperAlias()`
80108
method may be used to register a global alias for a GridFS bucket. After
@@ -96,6 +124,9 @@ To learn more about this release, see the `v1.18 Release Notes
96124
What's New in 1.17
97125
------------------
98126

127+
The {+library-short+} v1.17 release includes the following features,
128+
improvements, and fixes:
129+
99130
- Introduces a new "codec" API for converting BSON to and from PHP objects.
100131
More information on this feature may be found in the
101132
:ref:`Codecs tutorial <php-codecs>`.
@@ -125,6 +156,9 @@ To learn more about this release, see the `v1.17 Release Notes
125156
What's New in 1.16
126157
------------------
127158

159+
The {+library-short+} v1.16 release includes the following features,
160+
improvements, and fixes:
161+
128162
- Introduces support for :v7.0:`MongoDB 7.0 </release-notes/7.0>`.
129163

130164
- Introduces :phpmethod:`MongoDB\Database::createEncryptedCollection()`.
@@ -141,6 +175,9 @@ To learn more about this release, see the `v1.16 Release Notes
141175
What's New in 1.15
142176
------------------
143177

178+
The {+library-short+} v1.15 release includes the following features,
179+
improvements, and fixes:
180+
144181
- Adds new ``examples/`` and ``tools/`` directories to the library repository,
145182
which contain code snippets and scripts that may prove useful when writing
146183
or debugging applications. These directories are intended to

source/write/gridfs.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ the returned cursor and display the contents of the files uploaded in the
237237
:visible: false
238238

239239
{ "_id" : { "$oid" : "..." }, "chunkSize" : 261120, "filename" : "my_file",
240-
"length" : 13, "uploadDate" : { ... }, "metadata" : { "contentType" : "text/plain" },
241-
"md5" : "6b24249b03ea3dd176c5a04f037a658c" }
240+
"length" : 13, "uploadDate" : { ... }, "metadata" : {
241+
"contentType" : "text/plain" } }
242242
{ "_id" : { "$oid" : "..." }, "chunkSize" : 261120, "filename" : "new_file",
243-
"length" : 13, "uploadDate" : { ... }, "md5" : "6b24249b03ea3dd176c5a04f037a658c" }
243+
"length" : 13, "uploadDate" : { ... } }
244244

245245
The ``find()`` method accepts various query specifications. You can use its
246246
``$options`` parameter to specify the sort order, maximum number of documents to return,

0 commit comments

Comments
 (0)