plain.observer 0.13.0__py3-none-any.whl → 0.14.0__py3-none-any.whl

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.

Potentially problematic release.


This version of plain.observer might be problematic. Click here for more details.

@@ -1,5 +1,15 @@
1
1
  # plain-observer changelog
2
2
 
3
+ ## [0.14.0](https://github.com/dropseed/plain/releases/plain-observer@0.14.0) (2025-10-29)
4
+
5
+ ### What's changed
6
+
7
+ - Updated CSP configuration example in documentation to use the new `DEFAULT_RESPONSE_HEADERS` format with string templates instead of callable functions ([5199383](https://github.com/dropseed/plain/commit/519938312835b73dfd9be8c93abae6e896094fc2))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
3
13
  ## [0.13.0](https://github.com/dropseed/plain/releases/plain-observer@0.13.0) (2025-10-29)
4
14
 
5
15
  ### What's changed
plain/observer/README.md CHANGED
@@ -55,15 +55,13 @@ Without this directive, the toolbar panel will fail to load with a CSP error: `"
55
55
  Example CSP configuration:
56
56
 
57
57
  ```python
58
- def DEFAULT_RESPONSE_HEADERS(request):
59
- nonce = request.csp_nonce
60
- return {
61
- "Content-Security-Policy": (
62
- f"default-src 'self'; "
63
- f"script-src 'self' 'nonce-{nonce}'; "
64
- f"style-src 'self' 'nonce-{nonce}'; "
65
- f"frame-ancestors 'self'; " # Required for Observer toolbar
66
- # ... other directives
67
- ),
68
- }
58
+ DEFAULT_RESPONSE_HEADERS = {
59
+ "Content-Security-Policy": (
60
+ "default-src 'self'; "
61
+ "script-src 'self' 'nonce-{request.csp_nonce}'; "
62
+ "style-src 'self' 'nonce-{request.csp_nonce}'; "
63
+ "frame-ancestors 'self'; " # Required for Observer toolbar
64
+ # ... other directives
65
+ ),
66
+ }
69
67
  ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.observer
3
- Version: 0.13.0
3
+ Version: 0.14.0
4
4
  Summary: On-page telemetry and observability tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -68,15 +68,13 @@ Without this directive, the toolbar panel will fail to load with a CSP error: `"
68
68
  Example CSP configuration:
69
69
 
70
70
  ```python
71
- def DEFAULT_RESPONSE_HEADERS(request):
72
- nonce = request.csp_nonce
73
- return {
74
- "Content-Security-Policy": (
75
- f"default-src 'self'; "
76
- f"script-src 'self' 'nonce-{nonce}'; "
77
- f"style-src 'self' 'nonce-{nonce}'; "
78
- f"frame-ancestors 'self'; " # Required for Observer toolbar
79
- # ... other directives
80
- ),
81
- }
71
+ DEFAULT_RESPONSE_HEADERS = {
72
+ "Content-Security-Policy": (
73
+ "default-src 'self'; "
74
+ "script-src 'self' 'nonce-{request.csp_nonce}'; "
75
+ "style-src 'self' 'nonce-{request.csp_nonce}'; "
76
+ "frame-ancestors 'self'; " # Required for Observer toolbar
77
+ # ... other directives
78
+ ),
79
+ }
82
80
  ```
@@ -1,6 +1,6 @@
1
1
  plain/observer/AGENTS.md,sha256=w3vqd2VWGliBQl8ohEBOsHyo1KROoUuK10uDr_C5Xeo,334
2
- plain/observer/CHANGELOG.md,sha256=WEGX1l0PbDgr2T4gZXjo2NMmjVi1Q93TDe4iTX9vPQs,17211
3
- plain/observer/README.md,sha256=zheQQwkFGDrs5pChC1kzC2x_mpBA8Lh5X97C6khyywA,1870
2
+ plain/observer/CHANGELOG.md,sha256=3YSvV-TCBdf5quNI3njF9v_wBAl9FFdLCCCZC3rx50U,17622
3
+ plain/observer/README.md,sha256=dnqxks1q5AFWsx4Sz2k_islPWM8O1TL4sXzYnVyFYRs,1805
4
4
  plain/observer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  plain/observer/admin.py,sha256=u4F9VYMwDkwzfVgMlLUqwaqDjtsf9RIJppzOA2NXWKc,3516
6
6
  plain/observer/cli.py,sha256=rzESdG8rYH6ILZ_5jA6oR362kCjTlimgzNqng89s2yg,21131
@@ -30,7 +30,7 @@ plain/observer/templates/observer/partials/log.html,sha256=dNIp1Wuu6dLLpenDIiUFc
30
30
  plain/observer/templates/observer/partials/span.html,sha256=toBqwwou_oYYjAJDRJ_a72xm0CZPpTqM0-u6A_iWctc,18880
31
31
  plain/observer/templates/toolbar/observer.html,sha256=SI1y8KzXRMaI9XDqGxuk6KnjyZwU4yXzPfhWrwD52yM,1385
32
32
  plain/observer/templates/toolbar/observer_button.html,sha256=FMBJHKMGqpHWs-3Ei2PBCdVYZ_6vFw6-eKH_i4jQu-Q,1215
33
- plain_observer-0.13.0.dist-info/METADATA,sha256=07wRHfuXZh44Wj66IgJhVx9FDuZ37agRV1Ep-bYBeiM,2269
34
- plain_observer-0.13.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
- plain_observer-0.13.0.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
36
- plain_observer-0.13.0.dist-info/RECORD,,
33
+ plain_observer-0.14.0.dist-info/METADATA,sha256=zO7X5fX265Q1vtsLAmP2QbLOUr9voeMgZHxli5rKvgQ,2204
34
+ plain_observer-0.14.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
+ plain_observer-0.14.0.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
36
+ plain_observer-0.14.0.dist-info/RECORD,,