# Changelog

All notable changes to `laravel-feed` will be documented in this file

## 4.2.0 - 2022-11-04

### What's Changed

- Refactor tests to PEST by @alexmanase in https://github.com/spatie/laravel-feed/pull/194
- Add .stubs.php by @mabdullahsari in https://github.com/spatie/laravel-feed/pull/195

### New Contributors

- @alexmanase made their first contribution in https://github.com/spatie/laravel-feed/pull/194
- @mabdullahsari made their first contribution in https://github.com/spatie/laravel-feed/pull/195

**Full Changelog**: https://github.com/spatie/laravel-feed/compare/4.1.5...4.2.0

## 4.1.5 - 2022-10-26

### What's Changed

- Update README.md fix small typo by @eugenevdm in https://github.com/spatie/laravel-feed/pull/192
- Don't escape entities inside CDATA by @akirk in https://github.com/spatie/laravel-feed/pull/193

### New Contributors

- @eugenevdm made their first contribution in https://github.com/spatie/laravel-feed/pull/192
- @akirk made their first contribution in https://github.com/spatie/laravel-feed/pull/193

**Full Changelog**: https://github.com/spatie/laravel-feed/compare/4.1.4...4.1.5

## 4.1.4 - 2022-05-27

## What's Changed

- fix: issue with json and HTML causing invalid JSON by @trovster in https://github.com/spatie/laravel-feed/pull/190

**Full Changelog**: https://github.com/spatie/laravel-feed/compare/4.1.3...4.1.4

## 4.1.3 - 2022-05-27

## What's Changed

- fix: add optional desription to json feed by @trovster in https://github.com/spatie/laravel-feed/pull/188

**Full Changelog**: https://github.com/spatie/laravel-feed/compare/4.1.2...4.1.3

## 4.1.2 - 2022-05-27

## What's Changed

- fix: add top-level author to json feed by @trovster in https://github.com/spatie/laravel-feed/pull/189

## New Contributors

- @trovster made their first contribution in https://github.com/spatie/laravel-feed/pull/189

**Full Changelog**: https://github.com/spatie/laravel-feed/compare/4.1.1...4.1.2

## 4.1.1 - 2022-03-20

## What's Changed

- update PSR-2 to PSR-12 by @iamfarhad in https://github.com/spatie/laravel-feed/pull/184
- Remove some whitespace by @driesvints in https://github.com/spatie/laravel-feed/pull/186

## New Contributors

- @iamfarhad made their first contribution in https://github.com/spatie/laravel-feed/pull/184
- @driesvints made their first contribution in https://github.com/spatie/laravel-feed/pull/186

**Full Changelog**: https://github.com/spatie/laravel-feed/compare/4.1.0...4.1.1

## 4.1.0 - 2022-01-12

- allow Laravel 9

## 4.0.5 - 2021-10-14

- fix FeedItem update() use with CarbonImmutable date (#178)

## 4.0.4 - 2021-05-31

- improve config validation (#159)

## 4.0.3 - 2021-05-31

- do not throw exception for default config

## 4.0.2 - 2021-05-31

- improve service provider

## 4.0.1 - 2021-05-31

- assume atom feed by default

## 4.0.0 - 2021-05-31

- adds support for PHP 8 only.
- drops PHP 7 support.
- uses PHP 8 syntax where possible.
- bumps `PHPUnit` to v9.5.
- adds support for running tests in parallel.
- updates the readme to include the new API & configuration settings.
- adds an `UPGRADING.md` guide to help users manually upgrade package versions.
- adds support for json feeds *(`jsonfeed.org` support)*.
- removes `FeedItem::author`.  *Use `FeedItem::authorName` and `FeedItem::authorEmail` instead.*
- removes the `feed::feed` view.  *Use `feed::atom`, `feed::json`, `feed:rss` or a custom view instead.*
- adds support for `FeedItem::image` *(json feeds only)*.
- adds validation of the configuration file.
- adds support for tuple notation in the `items` configuration key.
- adds feed config option `format` to specify the type of feed that is generated *(`rss`, `atom`, or `json`)*.
- adds feed config option `contentType` to force the content type of the feed response.
- adds feed config option `image` which associates an image with the overall feed.
- changes feed config option `type` default value to an empty string *(value is now auto detected by default)*.
- changes feed config option `view` so that it is now required to be an existing view.
- config option `view` no longer defaults to `feed::feed` when it contains an empty value *(now defaults to `feed::atom`).*
- generated rss and atom feeds now pass w3c validation (#152).

This release contains breaking changes:

- `FeedItem::author` has been replaced with `authorName` and `authorEmail` *(optional)*.
- Several new configuration options are required (see above).
- The value of the configuration option `view` must be an existing view *(empty values/non-existent views now throw an Exception)*.

## 3.2.1 - 2021-05-27

- fix breaking change introduced in 3.1.4

## 3.2.0 - 2021-05-17

- blade component to include feed links (#148)

## 3.1.4 - 2021-05-17

- make `Route::feeds()` use default value (#150)

## 3.1.3 - 2021-03-12

- implement laravel-package-tools (#143)

## 3.1.2 - 2020-12-09

- Fix issue with Rfc3339 string

## 3.1.1 - 2020-12-07

- RFC3339 compliant updated field (#136)

## 3.1.0 - 2020-11-27

- Add support for PHP 8

## 3.0.1 - 2020-09-08

- allow arrays as feed items

## 3.0.0 - 2020-09-08

- drop support for anything below PHP 7.4

## 2.7.1 - 2020-09-08

- add support for Laravel 8

## 2.7.0 - 2020-06-12

- allow multiple categories

## 2.6.2 - 2020-04-23

- fix null subject (#124)

## 2.6.1 - 2020-03-02

- make compatible with Laravel 7

## 2.6.0 - 2019-11-08

- internal refactor to make `Feed` easier to handle programmatically

## 2.5.0 - 2019-10-07

- add support for multiple types of feeds (#110)

## 2.4.3 - 2019-10-07

- fix feed type

## 2.4.2 - 2019-09-25

- Require individual illuminate components instead of framework

## 2.4.1 - 2019-09-16

- Changed: Updated Laravel 6 compatibility for future versions

## 2.4.0 - 2019-09-04

- add Laravel 6 compatibility

## 2.3.1 - 2019-08-29

- add `description` and `language keys` to the config file

## 2.3.0 - 2019-08-22

- add support for Flipboard and conform to RSS 2.0 (fixes #19)

## 2.2.2 - 2019-07-24

- do not use deprecated Laravel helpers

## 2.2.1 - 2019-03-06

- allow all versions of carbon

## 2.2.0 - 2019-02-27

- drop support for L5.7 and below, PHP 7.1 and PHPUnit 7

## 2.1.2 - 2019-02-27

- Added: Laravel 5.8 compatibility

## 2.1.1 - 2018-08-27

- Add support for Laravel 5.7

## 2.1.0 - 2018-06-42

- Add `view` config option

## 2.0.2 - 2018-02-08

- Add support for Laravel 5.6

## 2.0.1 - 2017-01-30

- Fixed item sorting

## 2.0.0 - 2017-08-30

- Laravel 5.5 compatibility
- Package rewrite, feeds can be built from anything that created a `FeedItem` now
- Introduced the `Feedable` interface for models that can be transformed to a `FeedItem`
- The readme has an upgrade guide to v2

## 1.4.1 - 2017-08-07

- removed unnecessary dependency

## 1.4.0 - 2017-05-13

- allow an argument to be passed with items in config

## 1.3.1 - 2017-05-12

- add a tag to publish views

## 1.3.0 - 2017-04-13

- allow views to be published

## 1.2.0 - 2017-01-27

- internal refactors to support cached routes

## 1.1.0 - 2017-01-24

- add support for Laravel 5.4

## 1.0.10 - 2016-10-01

- add `CDATA` to title

## 1.0.9 - 2016-09-08

- allow html tags in summary section

## 1.0.8 - 2016-08-22

- Fix for invalid route urls on Windows systems

## 1.0.7 - 2016-07-07

- Removed `CDATA` wrappers that were outside of the `link` nodes

## 1.0.6 - 2016-03-17

- Made improvements in the handling of special characters

## 1.0.5 - 2016-03-17

- Make output more atom compliant

## 1.0.4 - 2016-03-09

- Fixed compatibility with short php tags

## 1.0.3 - 2016-03-07

- Add compatibility with short php tags

## 1.0.2 - 2016-03-06

- Fix the registration of feeds when using a catch all route

### Important

This version contains a breaking change. To continue using the package you'll have to add
`Route::feeds()` at the top of your routes file.

## 1.0.1 - 2016-03-05

- Fix content type of feed response
- Fix date format in feed

## 1.0.0 - 2016-03-05

- Initial release
