@supacloud/lite 0.31.3 → 0.33.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.33.0](https://github.com/vibeunion/supacloud/compare/supacloud-lite-v0.32.0...supacloud-lite-v0.33.0) (2026-10-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * complete feature slice governance contracts ([#2151](https://github.com/vibeunion/supacloud/issues/2151)) ([025cb54](https://github.com/vibeunion/supacloud/commit/025cb54d8348931f59e74e1bf1157051218eae9d))
9
+
10
+ ## [0.32.0](https://github.com/vibeunion/supacloud/compare/supacloud-lite-v0.31.3...supacloud-lite-v0.32.0) (2026-10-18)
11
+
12
+
13
+ ### Features
14
+
15
+ * **app:** enforce trusted feature request context ([#2056](https://github.com/vibeunion/supacloud/issues/2056)) ([214909b](https://github.com/vibeunion/supacloud/commit/214909bc1daefe8682cb7bd857396d95b13418a3))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * restore 500 MiB body limit defaults ([#2066](https://github.com/vibeunion/supacloud/issues/2066)) ([3290f26](https://github.com/vibeunion/supacloud/commit/3290f26cc70a090904d2b80042ca1d57da6319fe))
21
+ * **storage:** align standard upload limit ([#2072](https://github.com/vibeunion/supacloud/issues/2072)) ([5948ba3](https://github.com/vibeunion/supacloud/commit/5948ba3df9acfbf368012fc37ceffa53c7643fb0))
22
+
3
23
  ## [0.31.3](https://github.com/vibeunion/supacloud/compare/supacloud-lite-v0.31.2...supacloud-lite-v0.31.3) (2026-10-17)
4
24
 
5
25
 
package/README.md CHANGED
@@ -142,6 +142,24 @@ enabled = false
142
142
 
143
143
  手机号必须是 E.164 格式。短信验证码在数据库中保存为域分离的 keyed-HMAC,单次兑换、最多五次错误、按可信连接 IP/手机号指纹限流,并默认对同一手机号执行 60 秒持久化发送冷却。自定义 sender 的异常只返回净化错误,不记录手机号、验证码、短信正文或供应商响应。
144
144
 
145
+ `signInWithSSO()` 可通过已配置的 OAuth/OIDC provider 使用。provider 名称可通过
146
+ `provider_id` 传入,也可以在 `[auth.external.<provider>]` 中配置
147
+ `sso_domains = ["example.com"]` 后按邮箱域名解析:
148
+
149
+ ```toml
150
+ [auth.external.acme]
151
+ enabled = true
152
+ client_id = "acme-client"
153
+ secret = "replace-me"
154
+ authorize_url = "https://idp.example.com/authorize"
155
+ token_url = "https://idp.example.com/token"
156
+ userinfo_url = "https://idp.example.com/userinfo"
157
+ sso_domains = ["acme.example"]
158
+ ```
159
+
160
+ 这只提供 GoTrue-compatible 的 SSO 入口并复用 Lite 的 OAuth/PKCE callback;
161
+ 它不会实现 SAML assertion、企业 IdP 管理或未配置 provider 的自动发现。
162
+
145
163
  ### 新版应用兼容
146
164
 
147
165
  Lite 支持平铺 SQL 与 `时间戳目录/migration.sql`,执行前检查重复版本和已应用 SQL 的内容漂移;目标绑定复用 `@supacloud/db`,`migrate --json` 可输出不含参数值的校验记录。`--runtime-mode strict` 对齐函数默认限制并拒绝无效配置、缺失函数和未声明的后台任务。
@@ -608,6 +626,25 @@ When bound to loopback, Lite enables a local SMS inbox compatible with `signInWi
608
626
 
609
627
  Phone numbers must use E.164. SMS codes are stored as domain-separated keyed HMACs, are single-use, burn after five wrong attempts, and are limited by trusted connection IP plus a keyed phone fingerprint, with a persistent 60-second per-phone send cooldown by default. Provider failures are sanitized and never log the phone, code, SMS body, or raw provider response.
610
628
 
629
+ `signInWithSSO()` can use a configured OAuth/OIDC provider. Pass the provider
630
+ name as `provider_id`, or configure `sso_domains = ["example.com"]` under
631
+ `[auth.external.<provider>]` for domain-based resolution:
632
+
633
+ ```toml
634
+ [auth.external.acme]
635
+ enabled = true
636
+ client_id = "acme-client"
637
+ secret = "replace-me"
638
+ authorize_url = "https://idp.example.com/authorize"
639
+ token_url = "https://idp.example.com/token"
640
+ userinfo_url = "https://idp.example.com/userinfo"
641
+ sso_domains = ["acme.example"]
642
+ ```
643
+
644
+ This provides the GoTrue-compatible SSO entry point and reuses Lite's OAuth/PKCE
645
+ callback. It does not implement SAML assertions, enterprise IdP management, or
646
+ automatic discovery of unconfigured providers.
647
+
611
648
  ### CLI
612
649
 
613
650
  ```text