Changelog

v0.3.3 - 2024-06-15

  • Allow nonce to be set for content security policies - See #38

v0.3.2 - 2024-05-04

  • Improved Debug panel (to be in par with Queries panel) - See #36
  • Better SQL dialect detection - See c40e2405
  • Add timings to SQL queries 🎨 - See ebf8edcd

v0.3.1 - 2024-05-01

  • Add active_record.adapter config to help frontend format SQL queries - See #35
  • Add minimized config key to start the debugbar minimized - See 2046b054
  • Use :null_session to disable forgery protection when using polling - See #27

v0.3.0 - 2024-03-31

  • Add support for Turbo Drive - See #25 and #26
  • Fix error "undefined method `adapter_name' for ActiveJob:Module" for Rails < 7.1 - See #24
  • Limit the number of request to 25, configurable with maxRequests option - See 664f2c11

Breaking changes

In order to support Turbo Drive, I had to split the helper into two parts. Before the JavaScript file was loaded, directly in the body, but it has to be loaded in the head now.

If you were passing configuation t debugbar_javascript, you must now pass it to debugbar_body.

1<!DOCTYPE html>
2<html>
3 <head>
4 ...
5+ <%= debugbar_head %>
6 </head>
7 
8 <body>
9 ...
10- <%= debugbar_javascript %>
11+ <%= debugbar_body %>
12 </body>
13</html>

v0.2.0 - 2024-02-28

  • Introduce polling in case someone cannot use ActiveCable - See 8b262be7
    • https://debugbar.dev/docs/polling-mode
  • Show more timings information (total time, DB runtime and CPU time) - See c02531ed
  • Move main middleware higher in the chain - See 7ca51c10
  • Silence debugbar routes for quieter logs - See efe491bd

Breaking changes

The frontend configuration was slightly modified. If you customized the prefix for the debugbar routes or the channelName, you must update your config. Prefix is at the root, and channelName is nested under the cable key.

1- <%= debugbar_javascript channelName: "something_else", cable: {prefix: "custom-prefix"} %>
2+ <%= debugbar_javascript prefix: "custom-prefix", cable: {channelName: "something_else"} %>

v0.1.0 - 2024-02-13

  • Initial release 🎉