Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare 2.0.0 alpha #360

Merged
merged 1 commit into from Mar 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -16,6 +16,7 @@ addons:
php:
- 5.6
- 7.0
- 7.1
- hhvm

env:
Expand Down
60 changes: 34 additions & 26 deletions CHANGELOG.md
@@ -1,40 +1,30 @@
Changelog
=========

2.0.0 (unreleased)
------------------

* [Proxy Client Configuration] The configuration for the proxy client has been
adjusted. Proxy servers are now configured under `http` and `servers` must be
a list - a comma separated string of server IPs is no longer supported.

* [User Context] Added an option always_vary_on_context_hash to make it
possible to disable automatically setting the vary headers for the user
hash.

* Updated the version of FOSHttpCache to 2.*. See [FOSHttpCache changelog]
(https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/CHANGELOG.md).
Most important, there is no more hard coupling on Guzzle HTTP client. We now
use the HTTPlug HTTP client abstraction. Your composer.json now needs to
specify which HTTP client to install, see [installation instructions]
(http://foshttpcachebundle.readthedocs.org/en/stable/installation.html)

* [Tags] The TagHandler has been split. Invalidating tags happens through the
CacheManager (if you use annotations for tag invalidation, you don't need to
change anything). Recording tags and writing them into the responses is done
through the SymfonyResponseTagger now.
2.0.0
-----

* [Test] Dropped the proxy client services as they where not used anywhere. The
services `fos_http_cache.test.client.varnish` and `fos_http_cache.test.client.nginx`
no longer exist.
### General

* Updated the version of FOSHttpCache to 2.0.0. See the [FOSHttpCache changelog]
(https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/CHANGELOG.md)
for more information. Most importantly, we removed the hard coupling on the
Guzzle HTTP client (using HTTPlug). Your composer.json now needs to
specify which HTTP client to install; see the [installation instructions].
(http://foshttpcachebundle.readthedocs.org/en/stable/installation.html)
* Deprecated methods have been removed.

### Proxy client

* The configuration for the proxy client has been adjusted. Proxy servers are
now configured under `http` and `servers` must be a list - a comma separated
string of server IPs is no longer supported.

### Event listeners

* **BC break:** the `UserContextListener` constructor signature was changed to
take an array of options.
* **BC break:** renamed the event listener classes to XyzListener.
* **BC break:** renamed the event listener classes to `XyzListener`.

### Rule matcher

Expand All @@ -46,6 +36,24 @@ Changelog

* Cacheable status codes are now configured globally
(`cacheable.response.additional_status` or `cacheable.response.expression`).

### Tags

* **BC break:** The TagHandler has been split. Invalidating tags happens through the
CacheManager (if you use annotations for tag invalidation, you don't need to
change anything). Recording tags and writing them into the responses is now
done through the SymfonyResponseTagger.

### Tests

* **BC break:** Dropped the proxy client services as they where not used anywhere. The
services `fos_http_cache.test.client.varnish` and
`fos_http_cache.test.client.nginx` no longer exist.

### User context

* Added an option `always_vary_on_context_hash` to make it possible to disable
automatically setting the vary headers for the user hash.

1.3.7
-----
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -22,13 +22,14 @@
],
"require": {
"php": "^5.6.0||^7.0.0",
"friendsofsymfony/http-cache": "2.0.x-dev",
"friendsofsymfony/http-cache": "^2.0.0-beta1",
"symfony/framework-bundle": "^2.8||^3.0",
"symfony/http-foundation": "~2.8.13||^3.1.6"
},
"require-dev": {
"phpunit/phpunit": "^4.5.0 || ^5.0.0",
"php-http/guzzle6-adapter": "^1.0",
"php-http/message": "^1.0",
"mockery/mockery": "0.9.*",
"monolog/monolog": "*",
"sensio/framework-extra-bundle": "^3.0",
Expand Down