Skip to content

Latest commit

 

History

History
85 lines (54 loc) · 3.51 KB

CHANGELOG.md

File metadata and controls

85 lines (54 loc) · 3.51 KB

Changelog

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

2.0.1 - 2022-04-06

What's Changed

  • Support SQLite by @bumbummen99 in spatie#19

New Contributors

  • @bumbummen99 made their first contribution in spatie#19

Full Changelog: https://github.com/spatie/laravel-stats/compare/2.0.0...2.0.1

2.0.0 - 2022-03-04

What's Changed

Add support for relationships by @christoph-kluge in spatie#17

See upgrading.md for an upgrading guide.

Added

  • Added StatsWriter with classname support (StatsWriter::for(MyModel::class))
  • Added StatsWriter with eloquent-model support (StatsWriter::for($eloquent))
  • Added StatsWriter with "has-many"-relationship support (StatsWriter::for($model->relationship())) - other relationships are untested yet
  • Added StatsWriter with custom-attribute support (StatsWriter::for(MyModel::class, ['custom_column' => 'orders]))
  • Extended StatsQuery with relationship-support (StatsQuery::for($model->relationship()))
  • Extended StatsQuery with additional attributes (StatsQuery::for(StatsEvent::class, ['name' => 'OrderStats']))
  • Extended BaseStats with direct writer access (OrderStats::writer() as addition to OrderStats::query())

Breaking changes

  • Changed visibility of StatsQuery::for($model)->generatePeriods() from public to protected
  • Changed visibility of StatsQuery::getPeriodTimestampFormat() from public to protected
  • Replaced StatsQuery::for($model)->getStatistic() with StatsQuery::for($model)->getAttributes()
  • Removed BaseStats->createEvent()

Migrations

  • Replace StatsQuery::for(OrderStats::class) with OrderStats::query()
  • Replace StatsEvent::TYPE_SET with DataPoint::TYPE_SET
  • Replace StatsEvent::TYPE_CHANGE with DataPoint::TYPE_CHANGE

New Contributors

  • @christoph-kluge made their first contribution in spatie#17

Full Changelog: https://github.com/spatie/laravel-stats/compare/1.0.1...2.0.0

2.0.0 - 2022-03-04

Added

  • Added StatsWriter with classname support (StatsWriter::for(MyModel::class))
  • Added StatsWriter with eloquent-model support (StatsWriter::for($eloquent))
  • Added StatsWriter with "has-many"-relationship support (StatsWriter::for($model->relationship())) - other relationships are untested yet
  • Added StatsWriter with custom-attribute support (StatsWriter::for(MyModel::class, ['custom_column' => 'orders]))
  • Extended StatsQuery with relationship-support (StatsQuery::for($model->relationship()))
  • Extended StatsQuery with additional attributes (StatsQuery::for(StatsEvent::class, ['name' => 'OrderStats']))
  • Extended BaseStats with direct writer access (OrderStats::writer() as addition to OrderStats::query())

Breaking changes

  • Changed visibility of StatsQuery::for($model)->generatePeriods() from public to protected
  • Changed visibility of StatsQuery::getPeriodTimestampFormat() from public to protected
  • Replaced StatsQuery::for($model)->getStatistic() with StatsQuery::for($model)->getAttributes()
  • Removed BaseStats->createEvent()

Migrations

  • Replace StatsQuery::for(OrderStats::class) with OrderStats::query()
  • Replace StatsEvent::TYPE_SET with DataPoint::TYPE_SET
  • Replace StatsEvent::TYPE_CHANGE with DataPoint::TYPE_CHANGE

1.0.1 - 2022-02-02

  • Add support for Laravel 9

1.0.0 - 2021-04-14

  • initial release