Skip to content

Commit c70f6ff

Browse files
committed
Merge branch 'release/0.5.0'
2 parents 7fc4416 + 0356ce6 commit c70f6ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2033
-2636
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
22
All notable changes to this project will be documented in this file. This project adheres to
33
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
44

5+
## [0.5.0] - 2016-10-21
6+
7+
This release is the first release to support Laravel 5.3.
8+
9+
### Added
10+
- Can now attach custom adapters to the store via the `json-api.php` config file.
11+
- Authorizer now supports adding error messages from the error repository using string keys.
12+
- An abstract Eloquent model hydrator can now be used.
13+
- The Eloquent controller now handles saving of has many relationships that need to be committed to the database
14+
after the primary model has been created. You must be using the new Eloquent hydrator for this to work, or your
15+
existing hydrator can type hint the capability by implementing the new `HydratesRelatedInterface`.
16+
17+
### Changed
18+
- Paging configuration is now held on a per-API basis.
19+
- Update authorization can now access the resource submitted by the client via an additional method argument.
20+
- Request handlers are now not injected to a controller via the constructor: instead the fully qualified class name
21+
is passed and controller middleware is used to validate requests. This change was necessary to support Laravel 5.3,
22+
while maintaining support for 5.1 and 5.2.
23+
- Various classes have been moved into the `cloudcreativity/json-api` package (changing their namespace), because the
24+
implementations are now framework agnostic.
25+
- Eloquent schemas now follow the JSON API recommendation and use hyphenated member names by default. This behaviour
26+
can however be overridden, e.g. if the Eloquent underscored attribute names is the desired convention.
27+
- To match this, the search class also assumed a default of hyphenated member names, although this can be overridden.
28+
- Validator provides now receive the resource type that they are validating into their method signatures. This allows
29+
for a single validator provider to validate multiple resource types if desired.
30+
31+
### Removed
32+
- `AbstractSortedSearch` was removed and its capability merged into `AbstractSearch` as there was no need to have the
33+
two separate classes.
34+
- Removed the experimental `boot` feature on the JSON API service.
35+
536
## [0.4.6] - 2016-09-01
637

738
### Fixed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ applications that are using the repository.
2525
we use - `neomerx/json-api` - is not yet on at 1.*. As they could in theory make breaking changes to their package,
2626
we can't yet tag this package as 1.0.
2727

28-
### Laravel 5.3 Support
29-
30-
This package currently **does not work with Laravel 5.3**. We're working on this and hope to release an update soon.
31-
In the meantime, subscribe to [this issue](https://github.com/cloudcreativity/laravel-json-api/issues/13) if you
32-
want updates on this issue.
33-
3428
## License
3529

3630
Apache License (Version 2.0). Please see [License File](LICENSE) for more information.

0 commit comments

Comments
 (0)