@adonis-agora/crypto-dashboard 0.1.1 → 0.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @adonis-agora/crypto-dashboard
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#22](https://github.com/DavideCarvalho/adonis-agora-crypto/pull/22) [`7523a85`](https://github.com/DavideCarvalho/adonis-agora-crypto/commit/7523a8584e2fff63912c444dad4b911e5531719c) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Three fixes found while building the Agora hub.
8
+
9
+ **The console mounted two page routes.** It registered `/<path>` **and** `/<path>/`; AdonisJS
10
+ normalizes the trailing slash, so those are the same route and the app died at boot with
11
+ `Duplicate route found. "GET: /<path>"`. One route is registered now (a request to `/<path>/` still
12
+ reaches it, because the router normalizes the URL).
13
+
14
+ **The console SPA threw "Illegal invocation" in Chrome.** Its API client stored `fetch` and called it
15
+ as `this.fetcher(...)`, which passes the instance as `this`; Chrome's `fetch` only accepts the global
16
+ object, so the console rendered an error while the API itself was fine (Node ignores `this`, which
17
+ is why tests never saw it). The fetcher is bound to `globalThis` once, and the console switcher's
18
+ `fetch` is explicitly `globalThis.fetch`.
19
+
20
+ **`schema` was accepted and ignored.** `inSchema` only rewrote the table names of another package's
21
+ tables (`config_versions`, `config_audit` — a copy that was never pointed at crypto's own), so the
22
+ `crypto_*` DDL and queries went to `public` whatever `schema` said. It now rewrites `crypto_keys`,
23
+ `crypto_key_versions` and `crypto_audit` in both DDL and queries, inside transactions too. Covered by
24
+ a real-Postgres test (CI gets a Postgres service) that creates a non-default schema, forces
25
+ `search_path` away from it, and checks the tables, the key operations and the audit trail all land
26
+ there.
27
+
3
28
  ## 0.1.1
4
29
 
5
30
  ### Patch Changes