8000 Merge branch 'release/0.10.0' · startupengine/laravel-json-api@eb2dd6d · GitHub
[go: up one dir, main page]

Skip to content

Commit eb2dd6d

Browse files
committed
Merge branch 'release/0.10.0'
2 parents fcbaa44 + d0233b7 commit eb2dd6d

File tree

107 files changed

+6679
-4148
lines changed

Some content is hidden

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

107 files changed

+6679
-4148
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
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.10.0] - 2017-07-29
6+
7+
### Added
8+
- The resource registrar now automatically adds a JSON API's route URL and name prefixes.
9+
- Can now send JSON API requests using a Guzzle client.
10+
- Can now obtain a JSON API instance using the `json_api()` global helper.
11+
- Can now obtain the JSON API request instance using the `json_api_request()` global helper.
12+
- Added an api `url()` helper for generating URLs to resources within an API.
13+
- Can now map a single JSON API resource to multiple record classes.
14+
15+
### Changed
16+
- Tests helpers are no longer in the Browser Kit testing style, and instead use a `TestResponse` class that extends
17+
the standard Laravel test response.
18+
- The `InteractsWithResources` test helper trait has been merged into `MakesJsonApiRequests`.
19+
- The `ReplyTrait` has been moved to the `Http\Controllers` namespace and renamed `CreatesResponses`.
20+
- Moved the facade into the `Facades` namespace and renamed it `JsonApi`. This means it can now be imported with
21+
a `use` statement.
22+
- The `register()` method must now be used to register routes.
23+
24+
### Fixed
25+
- [#66] Content negotiation no longer sends a `415` response if a request does not have body content.
26+
- Fixed mer A851 ging API resources objects.
27+
28+
### Removed
29+
- This package no longer supports Laravel 5.3.
30+
- The `Document\GeneratesLink` trait was removed.
31+
- The `Document\LinkFactory` was removed and the API `links()` helper must be used instead.
32+
533
## [0.9.1] - 2017-06-26
634

735
### Fixed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ and [cloudcreativity/json-api](https://github.com/cloudcreativity/json-api).
1010

1111
From [jsonapi.org](http://jsonapi.org)
1212

13-
> If you've ever argued with your team about the way your JSON responses should be formatted, JSON API is your anti-bikeshedding weapon.
13+
> If you've ever argued with your team about the way your JSON responses should be formatted, JSON API is your
14+
anti-bikeshedding weapon.
1415
>
15-
> By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application. Clients built around JSON API are able to take advantage of its features around efficiently caching responses, sometimes eliminating network requests entirely.
16+
> By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus
17+
on what matters: your application. Clients built around JSON API are able to take advantage of its features around
18+
efficiently caching responses, sometimes eliminating network requests entirely.
1619

1720
For full information on the spec, plus examples, see http://jsonapi.org
1821

@@ -27,7 +30,9 @@ We use semantic versioning but Laravel does not. This table will help...
2730
| Laravel | This Package |
2831
| --- | --- |
2932
| 5.3.* | ^0.9 |
30-
| 5.4.* | ^0.9 |
33+
| 5.4.* | ^0.10 |
34+
35+
Make sure you consult the [Upgrade Guide](http://laravel-json-api.readthedocs.io/en/latest/upgrade/) when upgrading.
3136

3237
## Lumen
3338

@@ -62,4 +67,4 @@ Please note the following:
6267
* **Bug Fixes** - submit a pull request against the `master` branch.
6368
* **Enhancements / New Features** - submit a pull request against the `develop` branch.
6469

65-
We'd recommend submitting an issue before taking the time to put together a pull request.
70+
We recommend submitting an issue before taking the time to put together a pull request.

0 commit comments

Comments
 (0)
0