@plitzi/sdk-interactions 0.38.21 → 0.38.23

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @plitzi/sdk-interactions
2
2
 
3
+ ## 0.38.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 1e93ac7: ## Server
8
+
9
+ - **The project's server sends OAuth providers back to its loopback** (`@plitzi/sdk-server`) — PZ-160. 0.38.22 chose
10
+ `publicUrl`, which without `PUBLIC_URL` is the machine's address on the network: a private IP the router may change and
11
+ providers refuse, so a project opened to the network could no longer connect a new account. The callback origin is now
12
+ `127.0.0.1` unless `PUBLIC_URL` is HTTPS, and `serverOptions.functions.oauth.callbackOrigin` names another without
13
+ touching `PUBLIC_URL`. Open to the network with a loopback callback, the server says that a sign-in another device
14
+ starts needs a name of its own.
15
+
16
+ - Updated dependencies [1e93ac7]
17
+ - @plitzi/sdk-auth@0.38.23
18
+ - @plitzi/sdk-event-bridge@0.38.23
19
+ - @plitzi/sdk-shared@0.38.23
20
+
21
+ ## 0.38.22
22
+
23
+ ### Patch Changes
24
+
25
+ - 19fbc45: ## Server
26
+
27
+ - **`ctx.oauth`, after a project moved onto it** (`@plitzi/sdk-server`, `@plitzi/sdk-shared`) — PZ-155..158.
28
+ `functions.oauth.callbackOrigin` fixes the one address providers send a visitor back to, on a server of one space
29
+ reached on several: `serveProject` sets it to the address people reach it on, or its loopback `127.0.0.1` when that is
30
+ plain HTTP (providers refuse `http` past loopback, and `localhost`), and prints it as it starts; the callback then sends
31
+ the visitor on to `returnTo` on the address they started from — its `location` is absolute now. `connect(name,
32
+ { returnTo, authorizeParams })` adds to the connection's parameters for one consent (`prompt: 'select_account'`), and
33
+ refuses one the platform writes. `ctx.fetch` and `ctx.oauth.fetch` take `init.signal`: in the sandbox and a runtime the
34
+ request is numbered and the code's `abort` cuts it on the platform. `ActionRefusal` takes `{ code }`; `ctx.oauth`
35
+ refuses with `oauth-not-connected` and `oauth-no-owner`.
36
+ - **A refusal of the platform's stays one across the sandbox** (`@plitzi/sdk-server`). A call answered with an
37
+ `ActionRefusal` crossed the isolate, the runner service and a runtime as a plain error: caught, the code could not tell
38
+ it apart; uncaught, a route answered 500 `This route failed` instead of 400 and the reason. The answer carries
39
+ `refused` and `code` now, and the code catches the refusal it was thrown.
40
+
41
+ - Updated dependencies [19fbc45]
42
+ - @plitzi/sdk-auth@0.38.22
43
+ - @plitzi/sdk-event-bridge@0.38.22
44
+ - @plitzi/sdk-shared@0.38.22
45
+
3
46
  ## 0.38.21
4
47
 
5
48
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-interactions",
3
- "version": "0.38.21",
3
+ "version": "0.38.23",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@plitzi/plitzi-ui": "^1.6.34",
40
- "@plitzi/sdk-auth": "0.38.21",
41
- "@plitzi/sdk-event-bridge": "0.38.21",
42
- "@plitzi/sdk-shared": "0.38.21"
40
+ "@plitzi/sdk-auth": "0.38.23",
41
+ "@plitzi/sdk-event-bridge": "0.38.23",
42
+ "@plitzi/sdk-shared": "0.38.23"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "^19"