rails-profiler 0.35.2 → 0.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/app/assets/builds/profiler-toolbar.js +2 -4454
- data/app/assets/builds/profiler.css +1 -3546
- data/app/assets/builds/profiler.js +14 -9699
- data/app/controllers/profiler/assets_controller.rb +14 -5
- data/app/views/layouts/profiler/application.html.erb +2 -2
- data/app/views/layouts/profiler/embedded.html.erb +6 -4
- data/lib/profiler/assets.rb +61 -0
- data/lib/profiler/middleware/toolbar_injector.rb +22 -10
- data/lib/profiler/version.rb +1 -1
- data/lib/profiler.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3e60e3a338360fd499866e03f8ab6c30208f18882a3a13dd892cc04aaac9aca
|
|
4
|
+
data.tar.gz: 0bf4ff094c9b03b179531086676f1077fbcfb3218f402ecc5d5f0677d598dead
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0255bdc1eae2817e7a606d2c76eacd849b91dd30d518eb36a86e8ceb64356ef065c7f87a30f3ea8992866fff47616f5fc6ec3eb1a79fa513bf509dae6553c5a7
|
|
7
|
+
data.tar.gz: 9c5a33a03d2655be62d6d13607b4cf4f09e5322ea84dc2198cf2ef41f61cdc261aa8e56cc5ad6964aff4c8565c82961535ca977b15d3e16f4737f58f8d2ec766
|
data/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,28 @@ every commit of every tag interval is accounted for one way or the other.
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.35.3] - 2026-10-17
|
|
23
|
+
|
|
24
|
+
<!-- stamped -->
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- **Assets:** The JavaScript and CSS bundles are minified: the toolbar script goes from 177 KB to
|
|
29
|
+
81 KB, the dashboard script from 447 KB to 222 KB and the stylesheet from 91 KB to 79 KB.
|
|
30
|
+
- **Toolbar:** The page interceptor script and the toolbar CSS are read and built once per
|
|
31
|
+
process instead of on every profiled page.
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- **Toolbar:** The toolbar style and the embedded profile layout now carry the request's CSP
|
|
36
|
+
nonce. An application whose policy has `style-src 'nonce-...'` and no `'unsafe-inline'` no
|
|
37
|
+
longer blocks them; without a CSP, no nonce is added.
|
|
38
|
+
- **Assets:** The toolbar and dashboard files (`profiler.js`, `profiler.css`,
|
|
39
|
+
`profiler-toolbar.js`) are now requested as `?v=<digest of the content>` and served for a year
|
|
40
|
+
as immutable, so a browser keeps them between visits and still loads the new ones after an
|
|
41
|
+
upgrade of the gem. The URL without `?v=` still works and is cached for an hour, and an
|
|
42
|
+
asset that is not built still answers the 404 that names `yarn build:full`.
|
|
43
|
+
|
|
22
44
|
## [0.35.2] - 2026-10-17
|
|
23
45
|
|
|
24
46
|
<!-- stamped -->
|