Skip to content

Commit b29a402

Browse files
johnnyshieldsjamis
andauthored
Remove deprecated Document#as_json hack (#5755)
Co-authored-by: Jamis Buck <[email protected]>
1 parent d82d49f commit b29a402

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/release-notes/mongoid-9.0.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,16 @@ prior has been dropped (you must use a minimum of version 8.0.)
154154
Deprecated functionality removed
155155
--------------------------------
156156

157+
**Breaking change:** The following deprecated functionality is now removed:
158+
157159
- The ``Mongoid::QueryCache`` module has been removed. Please replace any usages 1-for-1 with ``Mongo::QueryCache``.
158160
The method ``Mongoid::QueryCache#clear_cache`` should be replaced with ``Mongo::QueryCache#clear``.
159161
All other methods and submodules are identically named. Refer to the `driver query cache documentation
160162
<https://mongodb.com/docs/ruby-driver/current/reference/query-cache/>`_ for more details.
161163
- ``Object#blank_criteria?`` method is removed (was previously deprecated.)
164+
- ``Document#as_json :compact`` option is removed. Please call ```#compact`` on the
165+
returned ``Hash`` object instead.
166+
- The deprecated class ``Mongoid::Errors::InvalidStorageParent`` has been removed.
162167

163168

164169
``touch`` method now clears changed state

0 commit comments

Comments
 (0)