@plitzi/sdk-auth 0.38.18 → 0.38.19
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 +28 -0
- package/dist/AuthContextProvider.mjs +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @plitzi/sdk-auth
|
|
2
2
|
|
|
3
|
+
## 0.38.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 92a9f1b: ## Security
|
|
8
|
+
|
|
9
|
+
- **The `Origin` fallback tells the ports apart over HTTP/2 too** (`@plitzi/sdk-server`): a browser that sends no
|
|
10
|
+
`Sec-Fetch-Site` (Safari before 16.4, older webviews) is judged by its `Origin`, compared with the authority the
|
|
11
|
+
request was addressed to. HTTP/2 carries no `Host` header — the authority is `:authority` — and the comparison then
|
|
12
|
+
fell back to the host's NAME, so every port and scheme of it counted as this server's own: what 0.38.18 closed for
|
|
13
|
+
`same-site` stayed open there, over TLS, where a Plitzi server speaks HTTP/2. The authority is now `:authority`,
|
|
14
|
+
`Host`, or the `X-Forwarded-Host` a proxy in front wrote — whichever names the host the request is answered as — port
|
|
15
|
+
included; when none does, the origin is not taken as its own. The write guard (`crossSiteWrites`), the sign-in's
|
|
16
|
+
login-CSRF check and `createOriginGuardMiddleware` share it.
|
|
17
|
+
|
|
18
|
+
## Packages
|
|
19
|
+
- **The server evaluates rules without the query editor** (`@plitzi/sdk-shared`, `@plitzi/sdk-auth`,
|
|
20
|
+
`@plitzi/sdk-elements`, `@plitzi/sdk-interactions`, `@plitzi/plitzi-builder`): every evaluation of a `when` rule
|
|
21
|
+
group imports `QueryBuilderEvaluator` from `@plitzi/plitzi-ui/QueryBuilder/evaluator` — the evaluator alone — instead
|
|
22
|
+
of the `QueryBuilder` barrel, which brings the editor's React components, or `QueryBuilder/helpers`, which brings the
|
|
23
|
+
SQL and MongoDB formatters. `@plitzi/sdk-shared/helpers` reads `get` and `omit` from `@plitzi/plitzi-ui/helpers/lodash`.
|
|
24
|
+
Importing `@plitzi/sdk-server` loads 19 modules of `@plitzi/plitzi-ui` (26 before) and neither
|
|
25
|
+
`class-variance-authority` nor `clsx`, and starts in ~125 ms (~150 before). Needs `@plitzi/plitzi-ui` 1.6.34.
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [92a9f1b]
|
|
28
|
+
- @plitzi/sdk-navigation@0.38.19
|
|
29
|
+
- @plitzi/sdk-shared@0.38.19
|
|
30
|
+
|
|
3
31
|
## 0.38.18
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@ import { publishedSession as t } from "./helpers/publishedSession.mjs";
|
|
|
3
3
|
import { resolveAuthSettings as n } from "./helpers/resolveAuthSettings.mjs";
|
|
4
4
|
import r from "./hooks/useAuth/index.mjs";
|
|
5
5
|
import i from "./hooks/useSessionQueryReset/index.mjs";
|
|
6
|
-
import { QueryBuilderEvaluator as a } from "@plitzi/plitzi-ui/QueryBuilder";
|
|
6
|
+
import { QueryBuilderEvaluator as a } from "@plitzi/plitzi-ui/QueryBuilder/evaluator";
|
|
7
7
|
import { use as o, useMemo as s, useRef as c } from "react";
|
|
8
8
|
import { useNavigation as l } from "@plitzi/sdk-navigation";
|
|
9
9
|
import { processTwig as u } from "@plitzi/sdk-shared/helpers/twigWrapper";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-auth",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.19",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@plitzi/nexus": "^1.4.0",
|
|
34
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
35
|
-
"@plitzi/sdk-navigation": "0.38.
|
|
36
|
-
"@plitzi/sdk-shared": "0.38.
|
|
34
|
+
"@plitzi/plitzi-ui": "^1.6.34",
|
|
35
|
+
"@plitzi/sdk-navigation": "0.38.19",
|
|
36
|
+
"@plitzi/sdk-shared": "0.38.19"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"eslint": "^9.39.5",
|