Skip to content

Commit

Permalink
3.0.0 (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmphilli authored and danielhochman committed Jun 9, 2017
1 parent 538f0c5 commit 0c9ed8f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
Release Notes
=============

v3.0.0
-----

:date: 2017-06-09

This is a major release with breaking changes.

``MapAttribute`` now allows pythonic access when recursively defined.
If you were not using the ``attr_name=`` kwarg then you should have no problems upgrading.
Previously defined non subclassed ``MapAttributes`` (raw ``MapAttributes``) that were members of a subclassed ``MapAttribute`` (typed ``MapAttributes``) would have to be accessed like a dictionary.
Now object access is possible and recommended. See [here](https://github.com/pynamodb/PynamoDB/blob/master/pynamodb/tests/test_attributes.py#L671) for a test example.
Access via the ``attr_name``, also known as the DynamoDB name, will now throw an ``AttributeError``.

``UnicodeSetAttributes`` do not json serialize or deserialize anymore.
We deprecated the functionality of json serializing as of ``1.6.0`` but left the deserialization functionality in there so people could migrate away from the old functionality.
If you have any ``UnicodeSetAttributes`` that have not been persisted since version ``1.6.0`` you will need to migrate your data or manage the json encoding and decoding with a custom attribute in application.

* Performance enhancements for the ``UTCDateTimeAttribute`` deserialize method. (#277)
* Fix to ignore null checks for batch delete (#283)
* Fix for ``ListAttribute`` and ``MapAttribute`` serialize (#286)
* Fix for ``MapAttribute`` pythonic access (#292) This is a breaking change.
* Deprecated the json decode in ``UnicodeSetAttribute`` (#294) This is a breaking change.
* Raise ``TableDoesNotExist`` error instead of letting json decoding ``ValueErrors`` raise (#296)

Contributors to this release:

* @jcbertin
* @johnliu
* @scode
* @rowilla
* @lita
* @garretheel
* @jmphilli

v2.1.6
------

Expand Down
2 changes: 1 addition & 1 deletion pynamodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"""
__author__ = 'Jharrod LaFon'
__license__ = 'MIT'
__version__ = '2.1.6'
__version__ = '3.0.0'

0 comments on commit 0c9ed8f

Please sign in to comment.