@supacloud/lite 0.32.0 → 0.33.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 +14 -0
- package/README.md +37 -0
- package/dist/cli.js +2459 -161
- package/dist/index.js +2459 -161
- package/dist/runtime/auth/handler.d.ts +33 -1
- package/dist/runtime/auth/handler.d.ts.map +1 -1
- package/dist/runtime/auth/oauth.d.ts +28 -2
- package/dist/runtime/auth/oauth.d.ts.map +1 -1
- package/dist/runtime/auth/settings.d.ts +14 -0
- package/dist/runtime/auth/settings.d.ts.map +1 -1
- package/dist/runtime/auth/web3.d.ts +14 -0
- package/dist/runtime/auth/web3.d.ts.map +1 -0
- package/dist/runtime/db/bootstrap.d.ts +2 -2
- package/dist/runtime/db/bootstrap.d.ts.map +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.33.1](https://github.com/vibeunion/supacloud/compare/supacloud-lite-v0.33.0...supacloud-lite-v0.33.1) (2026-10-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **lite:** restore Supabase SDK 2.118.0 ([#2161](https://github.com/vibeunion/supacloud/issues/2161)) ([0c7d4d0](https://github.com/vibeunion/supacloud/commit/0c7d4d08ed10cce4adcf5d30c9e7e473bc7f492a))
|
|
9
|
+
|
|
10
|
+
## [0.33.0](https://github.com/vibeunion/supacloud/compare/supacloud-lite-v0.32.0...supacloud-lite-v0.33.0) (2026-10-19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* complete feature slice governance contracts ([#2151](https://github.com/vibeunion/supacloud/issues/2151)) ([025cb54](https://github.com/vibeunion/supacloud/commit/025cb54d8348931f59e74e1bf1157051218eae9d))
|
|
16
|
+
|
|
3
17
|
## [0.32.0](https://github.com/vibeunion/supacloud/compare/supacloud-lite-v0.31.3...supacloud-lite-v0.32.0) (2026-10-18)
|
|
4
18
|
|
|
5
19
|
|
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
|