@adonis-agora/durable 0.27.0 → 0.28.0

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/spa/assets/index-Db5aPtlJ.js +16 -0
  3. package/dist/assets/spa/assets/index-Db5aPtlJ.js.map +1 -0
  4. package/dist/assets/spa/index.html +1 -1
  5. package/dist/providers/dashboard_provider.d.ts +3 -9
  6. package/dist/providers/dashboard_provider.d.ts.map +1 -1
  7. package/dist/providers/dashboard_provider.js +3 -18
  8. package/dist/providers/dashboard_provider.js.map +1 -1
  9. package/dist/src/dashboard/compat-view.d.ts +1 -1
  10. package/dist/src/dashboard/compat-view.d.ts.map +1 -1
  11. package/dist/src/dashboard/compat-view.js +1 -1
  12. package/dist/src/dashboard/compat-view.js.map +1 -1
  13. package/dist/src/dashboard/handlers.d.ts +3 -3
  14. package/dist/src/dashboard/handlers.js +2 -2
  15. package/dist/src/dashboard/index.d.ts +1 -2
  16. package/dist/src/dashboard/index.d.ts.map +1 -1
  17. package/dist/src/dashboard/index.js +1 -2
  18. package/dist/src/dashboard/index.js.map +1 -1
  19. package/dist/src/dashboard/login_page.d.ts +1 -1
  20. package/dist/src/dashboard/login_page.js +1 -1
  21. package/dist/src/dashboard/spa.d.ts +21 -4
  22. package/dist/src/dashboard/spa.d.ts.map +1 -1
  23. package/dist/src/dashboard/spa.js +19 -5
  24. package/dist/src/dashboard/spa.js.map +1 -1
  25. package/dist/src/index.d.ts +1 -1
  26. package/dist/src/index.js +1 -1
  27. package/package.json +3 -3
  28. package/dist/assets/dashboard.html +0 -559
  29. package/dist/assets/spa/assets/index-CS0tc60i.js +0 -16
  30. package/dist/assets/spa/assets/index-CS0tc60i.js.map +0 -1
  31. package/dist/src/dashboard/html.d.ts +0 -7
  32. package/dist/src/dashboard/html.d.ts.map +0 -1
  33. package/dist/src/dashboard/html.js +0 -24
  34. package/dist/src/dashboard/html.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @adonis-agora/durable
2
2
 
3
+ ## 0.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#84](https://github.com/DavideCarvalho/adonis-agora-durable/pull/84) [`5f8c6bd`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/5f8c6bd7dbd9e9afd723ce5dd0a0f29a706059b2) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Remove the `GET <path>/legacy` route and the `renderDashboard` export behind it.
8
+
9
+ `/legacy` served the console as it was before the React SPA: one self-contained page whose whole
10
+ UI was an inline `<script>`. It was kept "for an environment where the SPA bundle cannot be
11
+ served", but it could not have worked under the CSP a shield-hardened host runs
12
+ (`script-src 'self' 'nonce-…'` drops that script whole, leaving a blank page behind a live,
13
+ guarded route). The JSON API it called is unchanged — `GET /api/health` in particular stays — so
14
+ a hand-written client keeps working; only the page is gone.
15
+
16
+ ### Patch Changes
17
+
18
+ - [#84](https://github.com/DavideCarvalho/adonis-agora-durable/pull/84) [`5f8c6bd`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/5f8c6bd7dbd9e9afd723ce5dd0a0f29a706059b2) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Dashboard: every API request 404 under a nonce CSP — fixed.
19
+
20
+ The provider used to hand the SPA its mount/API base as an inline `<script>` setting
21
+ `window.__DURABLE_BASE__`/`__DURABLE_API__`. A host with `script-src 'self' 'nonce-…'`
22
+ (`@adonisjs/shield`'s `@nonce`, the recommended setup) drops that script silently; the SPA then fell
23
+ back to `/durable/api`, and on any other mount path every request from a console that rendered
24
+ perfectly well answered 404. The config now travels as a `<script type="application/json">` data
25
+ block, which is never executed and so cannot be refused. Nothing to change on the host; the globals
26
+ are still honoured as a fallback for tests and hand-embedding.
27
+
3
28
  ## 0.27.0
4
29
 
5
30
  ### Minor Changes