@krovacloud/sdk 0.3.11 → 0.4.1

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
@@ -5,6 +5,42 @@ All notable changes to `@krovacloud/sdk` are documented here. This project adher
5
5
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
6
6
 
7
7
 
8
+ ## 0.4.0
9
+
10
+ ### Changed
11
+
12
+ - **BREAKING** — `domains.create()` now resolves to `{ domain, records }`
13
+ instead of `Domain`. The records are the DNS entries you must publish for the
14
+ domain to work, so you can create them in the same run.
15
+
16
+ Why it changed rather than being added alongside: for a wildcard, two of the
17
+ three records (the ownership `TXT` and the `_acme-challenge` delegation) were
18
+ not derivable from anything the SDK returned. An integration had to read the
19
+ record shapes out of the docs and hope they still matched the server, which is
20
+ the arrangement that eventually breaks quietly.
21
+
22
+ ```diff
23
+ - const domain = await client.domains.create(spaceId, cubeId, { domain, port });
24
+ + const { domain, records } = await client.domains.create(spaceId, cubeId, { domain, port });
25
+ ```
26
+
27
+ ### Added
28
+
29
+ - `domains.records(spaceId, cubeId, mappingId)` — the same records, each checked
30
+ against live DNS. Poll it after publishing them; `summary.complete` turns true
31
+ only once every record is `found`. Rate limited, because it performs real
32
+ lookups.
33
+ - `DnsRecord` and `DnsRecordStatus` types.
34
+
35
+ Each record carries `mustBeGrey` and `proxyOk`, which are deliberate
36
+ opposites: the routing record may sit behind Cloudflare's proxy, the
37
+ `_acme-challenge` record must not. Automation needs both — one alone would let
38
+ you confidently orange-cloud the single record that has to stay grey.
39
+
40
+ `state: "missing"` means NOT PUBLISHED YET — the expected state before you
41
+ create the record, never an error. `state: "unknown"` means the lookup could
42
+ not be completed, which is never a statement about your DNS.
43
+
8
44
  ## 0.3.2
9
45
 
10
46
  ### Changed