@nxgt/janus-graphql 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/docs/roadmap.md +5 -3
  2. package/package.json +3 -3
package/docs/roadmap.md CHANGED
@@ -12,9 +12,11 @@ Nothing between releases.
12
12
  - **Subscriptions over graphql-ws** — `janusConnection`, which authenticates
13
13
  a WebSocket connection once, from its `connectionParams` or its upgrade
14
14
  request, and gives every operation on it the same `ctx.janus`.
15
- - **`@fresh(maxAge)`** — a field only a session signed in less than `maxAge`
16
- ago may resolve: a password change, a new e-mail, a payment method, asked
17
- again of a session that is days old.
15
+ - **`@fresh(maxAge)`** — a field only a session that proved who it is less
16
+ than `maxAge` ago may resolve — signed in, or confirmed since by
17
+ `auth.stepUp.confirm`: a password change, a new e-mail, a payment method,
18
+ asked again of a session that is days old. `@nxgt/janus` 0.12's
19
+ `assertFresh` is the check, and `STEP_UP_REQUIRED` the error it answers.
18
20
  - **The renewed session cookie on GraphQL responses** — `authenticate`
19
21
  renews a sliding session in passing; the response would then carry its
20
22
  `Set-Cookie`, so a browser keeps the new expiry without an HTTP route of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/janus-graphql",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "GraphQL for @nxgt/janus: an envelop plugin with the signed-in user on the context, fields guarded by @authenticated and @permission, and every error with the status it deserves",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@envelop/core": "^5.6.1",
57
57
  "@graphql-tools/utils": "^12.0.1",
58
- "@nxgt/janus": "^0.11.0",
58
+ "@nxgt/janus": "^0.12.0",
59
59
  "@types/bun": "^1.4.2",
60
60
  "graphql": "^17.0.2",
61
61
  "graphql-yoga": "^5.24.1",
@@ -64,7 +64,7 @@
64
64
  "peerDependencies": {
65
65
  "@envelop/core": "^5.0.0",
66
66
  "@graphql-tools/utils": ">=10.0.0 <13",
67
- "@nxgt/janus": "^0.11.0",
67
+ "@nxgt/janus": "^0.12.0",
68
68
  "graphql": "^16.9.0 || ^17.0.0",
69
69
  "typescript": "^6.0.3"
70
70
  }