@mitralab.io/sdk-core 0.2.17-beta.0 → 0.2.17-beta.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
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 0.2.17-beta.1
6
+
7
+ - `FunctionVersion.code` now accepts `null` when the Functions API redacts source from an otherwise
8
+ successful administrative response. Missing or structurally invalid code remains an invalid
9
+ response, and `null` is not treated as empty source.
10
+
5
11
  ## 0.2.17-beta.0
6
12
 
7
13
  Backport of 0.3.5-beta.0 to the 0.2.x line (#130).
package/README.md CHANGED
@@ -70,6 +70,8 @@ const { data: tasks, hasMore } = await core.entities.getTable("Task").list({ lim
70
70
  - `messenger`: `notify` avisa o usuário autenticado, `sendEmail` manda e-mail com o remetente do app, `listEmailTemplates`, `getEmailTemplateType`, `getEmailTemplate`, `upsertEmailTemplate`, `previewEmailTemplate` e `deleteEmailTemplate` cuidam dos templates de e-mail de conta do app, e `listEmailSenders`, `registerEmailSender`, `resendEmailSenderVerification`, `confirmEmailSender`, `getEmailSettings` e `updateEmailSettings` cuidam do remetente dele.
71
71
  - `resolveApiKeyToken`, `readTokenAppId` e `tokenAuthorizesApp`: contrato da troca de API key por token, para o SDK que autentica por chave.
72
72
 
73
+ Em `functionsAdmin`, `FunctionVersion.code` pode ser `null` quando o token permite ler a Function, mas não seu source. Nesse caso, `secrets` também é `null`; isoladamente, porém, `secrets: null` pode apenas indicar que a Function não usa secrets. O campo ausente continua sendo uma resposta inválida. Trate `code: null` como source redigido, não como código vazio nem como falha da operação.
74
+
73
75
  ## Configuração
74
76
 
75
77
  | Opção | Obrigatória | Uso |
@@ -24,6 +24,11 @@ publishes.
24
24
 
25
25
  ## Versions
26
26
 
27
+ - `0.2.17-beta.1` is the `0.2.17-beta.0` parity surface republished with nullable
28
+ `FunctionVersion.code` for redacted source in administrative responses. Same parity cases;
29
+ redacted responses are covered by the Core's `functionsAdmin` tests. The version exists so
30
+ a consumer pinning the package can pin a corpus with the same number.
31
+
27
32
  - `0.2.17-beta.0` is the `0.2.16-beta.0` parity surface with `passwordLoginMode` and `loginTheme` on
28
33
  `apps.update()` and the app reads, and the `PASSWORD_RESET`, `PASSWORD_CHANGED` and
29
34
  `ACCOUNT_LOCKED` email template types, which the parity cases do not cover. Same parity cases;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "contract": "SDK-PARITY-001",
3
- "current": "0.2.17-beta.0",
3
+ "current": "0.2.17-beta.1",
4
4
  "versions": [
5
5
  {
6
6
  "version": "0.1.0",
@@ -140,6 +140,11 @@
140
140
  "version": "0.2.17-beta.0",
141
141
  "path": "v0.2.17-beta.0/sdk-parity.json",
142
142
  "sha256": "5a6d1eef6a96f8cc378e13242d3f1b081ddeeb2b06831067619351f976059a24"
143
+ },
144
+ {
145
+ "version": "0.2.17-beta.1",
146
+ "path": "v0.2.17-beta.1/sdk-parity.json",
147
+ "sha256": "df6da082179fb5d9abbb3f6ff66ad9bd875759b38753513c7c802f92a62fc1f6"
143
148
  }
144
149
  ]
145
150
  }