@plitzi/sdk-schema 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 +41 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @plitzi/sdk-schema
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-shared@0.38.23
18
+ - @plitzi/sdk-style@0.38.23
19
+
20
+ ## 0.38.22
21
+
22
+ ### Patch Changes
23
+
24
+ - 19fbc45: ## Server
25
+
26
+ - **`ctx.oauth`, after a project moved onto it** (`@plitzi/sdk-server`, `@plitzi/sdk-shared`) — PZ-155..158.
27
+ `functions.oauth.callbackOrigin` fixes the one address providers send a visitor back to, on a server of one space
28
+ reached on several: `serveProject` sets it to the address people reach it on, or its loopback `127.0.0.1` when that is
29
+ plain HTTP (providers refuse `http` past loopback, and `localhost`), and prints it as it starts; the callback then sends
30
+ the visitor on to `returnTo` on the address they started from — its `location` is absolute now. `connect(name,
31
+ { returnTo, authorizeParams })` adds to the connection's parameters for one consent (`prompt: 'select_account'`), and
32
+ refuses one the platform writes. `ctx.fetch` and `ctx.oauth.fetch` take `init.signal`: in the sandbox and a runtime the
33
+ request is numbered and the code's `abort` cuts it on the platform. `ActionRefusal` takes `{ code }`; `ctx.oauth`
34
+ refuses with `oauth-not-connected` and `oauth-no-owner`.
35
+ - **A refusal of the platform's stays one across the sandbox** (`@plitzi/sdk-server`). A call answered with an
36
+ `ActionRefusal` crossed the isolate, the runner service and a runtime as a plain error: caught, the code could not tell
37
+ it apart; uncaught, a route answered 500 `This route failed` instead of 400 and the reason. The answer carries
38
+ `refused` and `code` now, and the code catches the refusal it was thrown.
39
+
40
+ - Updated dependencies [19fbc45]
41
+ - @plitzi/sdk-shared@0.38.22
42
+ - @plitzi/sdk-style@0.38.22
43
+
3
44
  ## 0.38.21
4
45
 
5
46
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-schema",
3
- "version": "0.38.21",
3
+ "version": "0.38.23",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@plitzi/plitzi-ui": "^1.6.34",
34
- "@plitzi/sdk-shared": "0.38.21",
35
- "@plitzi/sdk-style": "0.38.21",
34
+ "@plitzi/sdk-shared": "0.38.23",
35
+ "@plitzi/sdk-style": "0.38.23",
36
36
  "immer": "^11.1.21"
37
37
  },
38
38
  "devDependencies": {