@fleetless/sdk 4.4.0 → 4.6.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
@@ -4,6 +4,24 @@ All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; th
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [4.6.0] — 2026-11-03
8
+
9
+ ### Added
10
+
11
+ - `auth.signInMethods()` now returns required `twoFactor: 'off' | 'optional' | 'required'` beside `password` and `emailCode`. It reads the app policy from the public providers response; `listProviders()` still returns provider buttons only. Built against `@fleetless/contracts` 12.0.0.
12
+
13
+ ## [4.5.0] — 2026-10-09
14
+
15
+ ### Changed
16
+
17
+ - **Final releases publish under the npm dist-tag `staging`;** `latest` moves
18
+ when the release is promoted to production, and never backwards. `npm i
19
+ @fleetless/sdk` therefore installs what runs in production. A release that
20
+ is still being tested is installable by its version number or as
21
+ `@fleetless/sdk@staging`. Pre-releases stay under `next`. app-starter is
22
+ asked to pin the new version on promotion, not on release. No wire shape
23
+ changes.
24
+
7
25
  ## [4.4.0] — 2026-10-04
8
26
 
9
27
  ### Added
package/CONTRIBUTING.md CHANGED
@@ -92,10 +92,10 @@ method signature or what a method sends *before* you write it, so we can
92
92
  tell you what else has to move with it.
93
93
 
94
94
  **CI runs on GitHub Actions**, in this repository
95
- (`.github/workflows/verify.yml`) — the suite, on every push and every pull
96
- request. `release.yml` (the **Release** button) calls that same file on the
97
- commit it publishes, so a release is never checked by a different pipeline
98
- than a push.
95
+ (`.github/workflows/verify.yml`) — the suite, on every pull request and every
96
+ push to main. `release.yml` (the **Release** button) calls that same file on
97
+ the commit it publishes, so a release is never checked by a different
98
+ pipeline than a push.
99
99
 
100
100
  **Your pull request is verified, a fork's included** — the same suite, the
101
101
  same file. GitHub holds a first-time contributor's first run until a
package/README.md CHANGED
@@ -47,6 +47,10 @@ Fleetless is in closed beta. The waiting list is at
47
47
  npm i @fleetless/sdk
48
48
  ```
49
49
 
50
+ That installs `latest`, the version the Fleetless cloud runs in production. A
51
+ newer release may already be on npm under the dist-tag `staging` while it is
52
+ being tested; `next` carries pre-releases.
53
+
50
54
  You need an app identifier and an **app user** of that app, both created in
51
55
  the console. A console login is a Fleetless user, a different identity space,
52
56
  and will not sign in here.
@@ -87,6 +91,14 @@ Node 22 and newer, or server-side with a server key instead of a user session.
87
91
  Node 20 does REST fine but ships no global `WebSocket`, so realtime there needs
88
92
  one passed in through the `WebSocket` option.
89
93
 
94
+ Before drawing your app's sign-in screen, read its public policy:
95
+
96
+ ```ts
97
+ const { password, emailCode, twoFactor } = await client.auth.signInMethods()
98
+ // twoFactor is 'off', 'optional' or 'required'; it is app policy, not enrollment.
99
+ // listProviders() separately returns only federated sign-in buttons.
100
+ ```
101
+
90
102
  ## 📚 Documentation
91
103
 
92
104
  Everything past this point lives at **[docs.fleetless.dev](https://docs.fleetless.dev)**.