diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d3d32c..8afc5a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes are documented here. The format follows [Keep a Changelog](h ## [Unreleased] +## [2.0.0] - 2026-11-02 + +### Upgrading from 1.x +- Outside `local`/`testing`, DigDeep is off unless `DIGDEEP_ENABLED=true`. Viewers rejected by the `DigDeep::auth()` gate get a 404 instead of a 403. +- `run-command` and `ai-apply` return 403 outside `local` unless `DIGDEEP_CODE_ACTIONS=true`. +- POST and DELETE API calls need a CSRF token. +- Text/XML request bodies are no longer stored. SQL bindings on sensitive columns, log context and JSON response bodies are now redacted. +- `Controllers`, `Middleware` and `Commands` moved to `Http\Controllers`, `Http\Middleware` and `Console\Commands`. Update any direct references to them. +- Pruning now runs on 1 in 10 writes (`prune_lottery`), so the table can briefly exceed `max_profiles`. Set `[1, 1]` for the old behaviour. + ### Security - Disabled by default outside `local`/`testing`. Dashboard routes use the `web` group (CSRF). Denied requests get a 404. - Artisan runner and AI "apply fix" are limited to `local` unless `DIGDEEP_CODE_ACTIONS=true`. @@ -31,3 +41,6 @@ All notable changes are documented here. The format follows [Keep a Changelog](h ### Added - Pest + Testbench suite, Pint, Larastan and a CI matrix (PHP 8.4/8.5 × Laravel 12/13). + +[Unreleased]: https://github.com/LaravelPlus/digdeep/compare/v2.0.0...HEAD +[2.0.0]: https://github.com/LaravelPlus/digdeep/compare/v1.0.0...v2.0.0 diff --git a/README.md b/README.md index d435ca1..7efb91a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # DigDeep +[![Latest version](https://img.shields.io/packagist/v/laravelplus/digdeep.svg)](https://packagist.org/packages/laravelplus/digdeep) +[![Total downloads](https://img.shields.io/packagist/dt/laravelplus/digdeep.svg)](https://packagist.org/packages/laravelplus/digdeep) +[![Tests](https://github.com/LaravelPlus/digdeep/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/LaravelPlus/digdeep/actions/workflows/tests.yml) +[![License](https://img.shields.io/packagist/l/laravelplus/digdeep.svg)](LICENSE) + A Laravel request profiler that captures the complete execution flow of every request — queries, events, views, cache, mail, jobs, HTTP calls, Inertia props, Eloquent models, and full lifecycle timing — all in a Dracula-themed dashboard. ## Requirements @@ -10,17 +15,7 @@ A Laravel request profiler that captures the complete execution flow of every re ## Installation -Until the package is on Packagist, add the GitHub repository to your app's `composer.json`: - -```json -{ - "repositories": [ - { "type": "vcs", "url": "https://github.com/LaravelPlus/digdeep" } - ] -} -``` - -Then install it as a dev dependency and run the migrations: +Install it as a dev dependency and run the migrations: ```bash composer require laravelplus/digdeep --dev diff --git a/composer.json b/composer.json index 4bbba1d..3d4823e 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "debug", "performance", "queries", - "n+1", + "n-plus-one", "mcp" ], "type": "library",