@segmentstream/app 0.38.0 → 0.38.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.
- package/README.md +2 -2
- package/dist/app.js +1 -1
- package/dist/neon.d.ts +2 -2
- package/dist/neon.js +2 -2
- package/dist/ui/store.d.ts +1 -1
- package/dist/ui/store.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,11 +11,11 @@ relationships and select identifiers convert while JSON property contents,
|
|
|
11
11
|
provider payloads and opaque action results remain unchanged.
|
|
12
12
|
|
|
13
13
|
Sign-in, users, permissions, the ontology client and warehouse data access for
|
|
14
|
-
SegmentStream workspace apps built with Next.js (App Router, version 16 or later) and
|
|
14
|
+
SegmentStream workspace apps built with Next.js (App Router, version 16.4.1 or later) and
|
|
15
15
|
React 19. Compatibility deployments sign in with an email code, or a sign-in link the first time,
|
|
16
16
|
through Neon Auth (Managed
|
|
17
17
|
Better Auth) on the workspace's Neon project; the workspace's ontology decides who may
|
|
18
|
-
use the app and what they may do. The SDK wraps `@
|
|
18
|
+
use the app and what they may do. The SDK wraps `@neon/auth`, so the app never
|
|
19
19
|
configures Neon Auth itself.
|
|
20
20
|
|
|
21
21
|
## Declared browser methods
|
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createBrowserConfigurationCheck, resolveBrowserRevision } from "./browser-revision.js";
|
|
2
|
-
import { createNeonAuth } from "@
|
|
2
|
+
import { createNeonAuth } from "@neon/auth/next/server";
|
|
3
3
|
import { deploymentFromEnv, DeploymentAdmissionError, requireDeploymentCapability, } from "./deployment.js";
|
|
4
4
|
import { redirect } from "next/navigation";
|
|
5
5
|
import { NextResponse } from "next/server";
|
package/dist/neon.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface AuthRouteHandlers {
|
|
|
46
46
|
readonly DELETE: AuthRouteHandler;
|
|
47
47
|
readonly PATCH: AuthRouteHandler;
|
|
48
48
|
}
|
|
49
|
-
/** The part of `createNeonAuth(...)` from `@
|
|
49
|
+
/** The part of `createNeonAuth(...)` from `@neon/auth/next/server` the SDK uses. */
|
|
50
50
|
export interface NeonAuthServer {
|
|
51
51
|
getSession(): Promise<NeonResult<NeonSessionData>>;
|
|
52
52
|
token(): Promise<NeonResult<{
|
|
@@ -86,7 +86,7 @@ export interface NeonSessionDependencies {
|
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Neon Auth (Managed Better Auth) for the app's users: sessions in cookies through
|
|
89
|
-
* `@
|
|
89
|
+
* `@neon/auth`, and roles and permissions from the ontology's `GET /api/ontology/me`.
|
|
90
90
|
*/
|
|
91
91
|
export declare function createNeonSession(dependencies: NeonSessionDependencies): {
|
|
92
92
|
proxy: (options?: ProxyOptions) => SegmentStreamProxy;
|
package/dist/neon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NEON_AUTH_SESSION_COOKIE_NAME, NEON_AUTH_SESSION_DATA_COOKIE_NAME, parseSetCookies, } from "@
|
|
1
|
+
import { NEON_AUTH_SESSION_COOKIE_NAME, NEON_AUTH_SESSION_DATA_COOKIE_NAME, parseSetCookies, } from "@neon/auth/server";
|
|
2
2
|
import { decodeJwt } from "jose";
|
|
3
3
|
import { cookies } from "next/headers";
|
|
4
4
|
import { redirect } from "next/navigation";
|
|
@@ -78,7 +78,7 @@ class ExpiringCache {
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* Neon Auth (Managed Better Auth) for the app's users: sessions in cookies through
|
|
81
|
-
* `@
|
|
81
|
+
* `@neon/auth`, and roles and permissions from the ontology's `GET /api/ontology/me`.
|
|
82
82
|
*/
|
|
83
83
|
export function createNeonSession(dependencies) {
|
|
84
84
|
const { config, settings, now } = dependencies;
|
package/dist/ui/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createAuthClient } from "@
|
|
1
|
+
import { createAuthClient } from "@neon/auth/next";
|
|
2
2
|
import { NOT_INVITED, SegmentStreamApiError } from "../errors.js";
|
|
3
3
|
import type { CurrentUser } from "../me.js";
|
|
4
4
|
/** The Neon Auth API the app serves from `app/src/app/api/auth/[...path]/route.ts`. */
|
package/dist/ui/store.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createAuthClient } from "@
|
|
2
|
+
import { createAuthClient } from "@neon/auth/next";
|
|
3
3
|
import { CHANNEL_LOGOUT_PATH, CHANNEL_SESSION_PATH } from "../channel-protocol.js";
|
|
4
4
|
import { NOT_INVITED, SegmentStreamApiError, apiErrorFrom, readJson } from "../errors.js";
|
|
5
5
|
import { ME_PATH, parseMe } from "../me.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/app",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.1",
|
|
4
4
|
"description": "Sign-in, users, permissions, the ontology client and warehouse data access for SegmentStream workspace apps built with Next.js.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"test:navigation:integration": "pnpm run build && node --test tests/navigation-build.integration.mjs"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@
|
|
71
|
+
"@neon/auth": "0.8.2",
|
|
72
72
|
"jose": "^6.2.12"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"next": ">=16.
|
|
75
|
+
"next": ">=16.4.1",
|
|
76
76
|
"react": ">=19.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/react-dom": "^19",
|
|
83
83
|
"effect": "4.0.0-rc.113",
|
|
84
84
|
"jsdom": "^28.1.0",
|
|
85
|
-
"next": "16.
|
|
85
|
+
"next": "16.4.6",
|
|
86
86
|
"react": "19.2.8",
|
|
87
87
|
"react-dom": "19.2.8",
|
|
88
88
|
"typescript": "^5.9",
|