Skip to content

Commit 9756e5e

Browse files
committed
Add update to CHANGELOG.md
Signed-off-by: Mehdy Khoshnoody <[email protected]>
1 parent 162da5d commit 9756e5e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

CHANGELOG.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ any parts of the framework not mentioned in the documentation should generally b
1515
* Adjusted error messages to correctly use capital "JSON:API" abbreviation as used in the specification.
1616
* Avoid error when `parser_context` is `None` while parsing.
1717
* Raise comprehensible error when reserved field names `meta` and `results` are used.
18+
* Use `relationships` in the `pointer` when the field is actually a relationship.
1819

1920
### Changed
2021

@@ -43,11 +44,13 @@ any parts of the framework not mentioned in the documentation should generally b
4344
* Allow `get_serializer_class` to be overwritten when using related urls without defining `serializer_class` fallback
4445
* Preserve field names when no formatting is configured.
4546
* Properly support `JSON_API_FORMAT_RELATED_LINKS` setting in related urls. In case you want to use `dasherize` for formatting links make sure that your url pattern matches dashes as well like following example:
47+
4648
```
4749
url(r'^orders/(?P<pk>[^/.]+)/(?P<related_field>[-\w]+)/$',
4850
OrderViewSet.as_view({'get': 'retrieve_related'}),
4951
name='order-related'),
5052
```
53+
5154
* Ensure default `included_resources` are considered when calculating prefetches.
5255
* Avoided error when using `include` query parameter on related urls (a regression since 4.1.0)
5356

@@ -69,7 +72,6 @@ any parts of the framework not mentioned in the documentation should generally b
6972
* Correctly resolve the resource type of `ResourceRelatedField(many=True)` fields on plain serializers
7073
* Render `meta_fields` in included resources
7174

72-
7375
## [4.0.0] - 2020-10-31
7476

7577
This release is not backwards compatible. For easy migration best upgrade first to version
@@ -81,16 +83,17 @@ This release is not backwards compatible. For easy migration best upgrade first
8183
* Added support for Django 3.1.
8284
* Added support for Python 3.9.
8385
* Added initial optional support for [openapi](https://www.openapis.org/) schema generation. Enable with:
86+
8487
```
8588
pip install djangorestframework-jsonapi['openapi']
8689
```
90+
8791
This first release is a start at implementing OAS schema generation. To use the generated schema you may
8892
still need to manually add some schema attributes but can expect future improvements here and as
8993
upstream DRF's OAS schema generation continues to mature.
9094

9195
### Removed
9296

93-
9497
* Removed support for Python 3.5.
9598
* Removed support for Django 1.11.
9699
* Removed support for Django 2.1.
@@ -110,7 +113,7 @@ This is the last release supporting Django 1.11, Django 2.1, Django REST framewo
110113
### Added
111114

112115
* Added support for serializing nested serializers as attribute json value introducing setting `JSON_API_SERIALIZE_NESTED_SERIALIZERS_AS_ATTRIBUTE`
113-
* Note: As keys of nested serializers are not JSON:API spec field names they are not inflected by format field names option.
116+
* Note: As keys of nested serializers are not JSON:API spec field names they are not inflected by format field names option.
114117
* Added `rest_framework_json_api.serializer.Serializer` class to support initial JSON:API views without models.
115118
* Note that serializers derived from this class need to define `resource_name` in their `Meta` class.
116119
* This fix might be a **BREAKING CHANGE** if you use `rest_framework_json_api.serializers.Serializer` for non JSON:API spec views (usually `APIView`). You need to change those serializers classes to use `rest_framework.serializers.Serializer` instead.
@@ -125,15 +128,14 @@ This is the last release supporting Django 1.11, Django 2.1, Django REST framewo
125128
### Changed
126129

127130
* `SerializerMethodResourceRelatedField` is now consistent with DRF `SerializerMethodField`:
128-
* Pass `method_name` argument to specify method name. If no value is provided, it defaults to `get_{field_name}`
131+
* Pass `method_name` argument to specify method name. If no value is provided, it defaults to `get_{field_name}`
129132
* Allowed repeated filter query parameters.
130133

131134
### Deprecated
132135

133136
* Deprecate `source` argument of `SerializerMethodResourceRelatedField`, use `method_name` instead
134137
* Rendering nested serializers as relationships is deprecated. Use `ResourceRelatedField` instead
135138

136-
137139
## [3.1.0] - 2020-02-08
138140

139141
### Added
@@ -163,6 +165,7 @@ This release is not backwards compatible. For easy migration best upgrade first
163165

164166
* Moved dependency definition for `django-polymorphic` and `django-filter` into extra requires.
165167
Hence dependencies of each optional module can be installed with pip using
168+
166169
```
167170
pip install djangorestframework-jsonapi['django-polymorphic']
168171
pip install djangorestframework-jsonapi['django-filter']
@@ -187,7 +190,6 @@ This release is not backwards compatible. For easy migration best upgrade first
187190
* Avoid exception when using `ResourceIdentifierObjectSerializer` with unexisting primary key.
188191
* Format metadata field names correctly for OPTIONS request.
189192

190-
191193
## [2.8.0] - 2019-06-13
192194

193195
This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, Django REST framework <=3.9 and Django 2.0.
@@ -221,7 +223,7 @@ This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, D
221223
### Added
222224

223225
* Add support for Django 2.1, DRF 3.9 and Python 3.7. Please note:
224-
- Django >= 2.1 is not supported with Python < 3.5.
226+
* Django >= 2.1 is not supported with Python < 3.5.
225227

226228
### Fixed
227229

@@ -259,7 +261,6 @@ This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, D
259261
* Performance improvement when rendering relationships with `ModelSerializer`
260262
* Do not show deprecation warning when user has implemented custom pagination class overwriting default values.
261263

262-
263264
## [2.5.0] - 2018-07-11
264265

265266
### Added
@@ -276,6 +277,7 @@ This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, D
276277

277278
* Deprecate `PageNumberPagination` and `LimitOffsetPagination`. Use `JsonApiPageNumberPagination` and `JsonApiLimitOffsetPagination` instead.
278279
* To retain deprecated values for `PageNumberPagination` and `LimitOffsetPagination` create new custom class like the following in your code base:
280+
279281
```python
280282
class CustomPageNumberPagination(PageNumberPagination):
281283
page_query_param = "page"
@@ -284,6 +286,7 @@ This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, D
284286
class CustomLimitOffsetPagination(LimitOffsetPagination):
285287
max_limit = None
286288
```
289+
287290
and adjust `REST_FRAMEWORK['DEFAULT_PAGINATION_CLASS']` setting accordingly.
288291
* Deprecate `JSON_API_FORMAT_KEYS`, use `JSON_API_FORMAT_FIELD_NAMES`.
289292

@@ -305,7 +308,6 @@ This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, D
305308
(3.6.3 is the first to support Django 1.11)
306309
* Drop support for Python 3.3 (EOL)
307310

308-
309311
## [2.3.0] - 2017-11-28
310312

311313
### Added
@@ -318,6 +320,7 @@ This is the last release supporting Python 2.7, Python 3.4, Django Filter 1.1, D
318320
* Enforcing flake8 linting
319321

320322
### Fixed
323+
321324
* When `JSON_API_FORMAT_KEYS` is False (the default) do not translate request
322325
attributes and relations to snake\_case format. This conversion was unexpected
323326
and there was no way to turn it off.

0 commit comments

Comments
 (0)