@neondatabase/neon-js 0.1.0-beta.15 → 0.1.0-beta.17
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 +6 -6
- package/dist/package.json +6 -2
- package/llms-full.txt +3 -3
- package/llms.txt +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ bun add @neondatabase/neon-js
|
|
|
40
40
|
```typescript
|
|
41
41
|
import { createClient } from '@neondatabase/neon-js';
|
|
42
42
|
|
|
43
|
-
// Database type generated via: npx neon-js gen-types --db-url "..."
|
|
43
|
+
// Database type generated via: npx @neondatabase/neon-js gen-types --db-url "..."
|
|
44
44
|
// See "TypeScript" section below for details
|
|
45
45
|
const client = createClient<Database>({
|
|
46
46
|
auth: {
|
|
@@ -77,7 +77,7 @@ Use this adapter if you're migrating from Supabase or prefer the Supabase API st
|
|
|
77
77
|
```typescript
|
|
78
78
|
import { createClient, SupabaseAuthAdapter } from '@neondatabase/neon-js';
|
|
79
79
|
|
|
80
|
-
// Database type generated via: npx neon-js gen-types --db-url "..."
|
|
80
|
+
// Database type generated via: npx @neondatabase/neon-js gen-types --db-url "..."
|
|
81
81
|
// See "TypeScript" section below for details
|
|
82
82
|
const client = createClient<Database>({
|
|
83
83
|
auth: {
|
|
@@ -106,7 +106,7 @@ Use this adapter in React applications to get access to hooks like `useSession`:
|
|
|
106
106
|
import { createClient } from '@neondatabase/neon-js';
|
|
107
107
|
import { BetterAuthReactAdapter } from '@neondatabase/neon-js/auth/react/adapters';
|
|
108
108
|
|
|
109
|
-
// Database type generated via: npx neon-js gen-types --db-url "..."
|
|
109
|
+
// Database type generated via: npx @neondatabase/neon-js gen-types --db-url "..."
|
|
110
110
|
// See "TypeScript" section below for details
|
|
111
111
|
const client = createClient<Database>({
|
|
112
112
|
auth: {
|
|
@@ -383,7 +383,7 @@ Styles for Neon Auth UI components are available from this package:
|
|
|
383
383
|
Generate TypeScript types from your database schema:
|
|
384
384
|
|
|
385
385
|
```bash
|
|
386
|
-
npx neon-js gen-types --db-url "postgresql://user:pass@host/db"
|
|
386
|
+
npx @neondatabase/neon-js gen-types --db-url "postgresql://user:pass@host/db"
|
|
387
387
|
```
|
|
388
388
|
|
|
389
389
|
Use generated types for full type safety:
|
|
@@ -414,12 +414,12 @@ Generate TypeScript types from your database:
|
|
|
414
414
|
|
|
415
415
|
```bash
|
|
416
416
|
# Generate types
|
|
417
|
-
npx neon-js gen-types \
|
|
417
|
+
npx @neondatabase/neon-js gen-types \
|
|
418
418
|
--db-url "postgresql://user:pass@host/db" \
|
|
419
419
|
--output ./types/database.ts
|
|
420
420
|
|
|
421
421
|
# With schema filtering
|
|
422
|
-
npx neon-js gen-types \
|
|
422
|
+
npx @neondatabase/neon-js gen-types \
|
|
423
423
|
--db-url "postgresql://user:pass@host/db" \
|
|
424
424
|
--schemas public,auth \
|
|
425
425
|
--output ./types/database.ts
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neondatabase/neon-js",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.16",
|
|
4
4
|
"description": "TypeScript SDK for Neon Auth and Data API - authentication and PostgreSQL querying",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
"types": "./dist/auth/next/index.d.mts",
|
|
84
84
|
"default": "./dist/auth/next/index.mjs"
|
|
85
85
|
},
|
|
86
|
+
"./auth/next/server": {
|
|
87
|
+
"types": "./dist/auth/next/server/index.d.mts",
|
|
88
|
+
"default": "./dist/auth/next/server/index.mjs"
|
|
89
|
+
},
|
|
86
90
|
"./ui/css": {
|
|
87
91
|
"types": "./dist/ui/css.d.ts",
|
|
88
92
|
"default": "./dist/ui/css.css"
|
|
@@ -116,7 +120,7 @@
|
|
|
116
120
|
},
|
|
117
121
|
"dependencies": {
|
|
118
122
|
"@neondatabase/postgrest-js": "^0.1.0-alpha.1",
|
|
119
|
-
"@neondatabase/auth": "^0.1.0-beta.
|
|
123
|
+
"@neondatabase/auth": "^0.1.0-beta.17",
|
|
120
124
|
"@supabase/postgres-meta": "0.93.1",
|
|
121
125
|
"meow": "14.0.0",
|
|
122
126
|
"zod": "4.1.12"
|
package/llms-full.txt
CHANGED
|
@@ -43,7 +43,7 @@ npm install @neondatabase/auth
|
|
|
43
43
|
```typescript
|
|
44
44
|
import { createClient } from '@neondatabase/neon-js';
|
|
45
45
|
|
|
46
|
-
// Database type generated via: npx neon-js gen-types --db-url "..."
|
|
46
|
+
// Database type generated via: npx @neondatabase/neon-js gen-types --db-url "..."
|
|
47
47
|
const client = createClient<Database>({
|
|
48
48
|
auth: {
|
|
49
49
|
url: import.meta.env.VITE_NEON_AUTH_URL,
|
|
@@ -602,12 +602,12 @@ console.log(data);
|
|
|
602
602
|
|
|
603
603
|
```bash
|
|
604
604
|
# Generate types
|
|
605
|
-
npx neon-js gen-types \
|
|
605
|
+
npx @neondatabase/neon-js gen-types \
|
|
606
606
|
--db-url "postgresql://user:pass@host/db" \
|
|
607
607
|
--output ./types/database.ts
|
|
608
608
|
|
|
609
609
|
# With schema filtering
|
|
610
|
-
npx neon-js gen-types \
|
|
610
|
+
npx @neondatabase/neon-js gen-types \
|
|
611
611
|
--db-url "postgresql://user:pass@host/db" \
|
|
612
612
|
--schemas public,auth \
|
|
613
613
|
--output ./types/database.ts
|
package/llms.txt
CHANGED
|
@@ -208,7 +208,7 @@ const { data } = await client.rpc('get_user_stats', {
|
|
|
208
208
|
Generate types from your database schema:
|
|
209
209
|
|
|
210
210
|
```bash
|
|
211
|
-
npx neon-js gen-types --db-url "postgresql://user:pass@host/db"
|
|
211
|
+
npx @neondatabase/neon-js gen-types --db-url "postgresql://user:pass@host/db"
|
|
212
212
|
```
|
|
213
213
|
|
|
214
214
|
Use generated types:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neondatabase/neon-js",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.17",
|
|
4
4
|
"description": "TypeScript SDK for Neon Auth and Data API - authentication and PostgreSQL querying",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
"types": "./dist/auth/next/index.d.mts",
|
|
84
84
|
"default": "./dist/auth/next/index.mjs"
|
|
85
85
|
},
|
|
86
|
+
"./auth/next/server": {
|
|
87
|
+
"types": "./dist/auth/next/server/index.d.mts",
|
|
88
|
+
"default": "./dist/auth/next/server/index.mjs"
|
|
89
|
+
},
|
|
86
90
|
"./ui/css": {
|
|
87
91
|
"types": "./dist/ui/css.d.ts",
|
|
88
92
|
"default": "./dist/ui/css.css"
|
|
@@ -116,7 +120,7 @@
|
|
|
116
120
|
},
|
|
117
121
|
"dependencies": {
|
|
118
122
|
"@neondatabase/postgrest-js": "0.1.0-alpha.1",
|
|
119
|
-
"@neondatabase/auth": "0.1.0-beta.
|
|
123
|
+
"@neondatabase/auth": "0.1.0-beta.17",
|
|
120
124
|
"@supabase/postgres-meta": "0.93.1",
|
|
121
125
|
"meow": "14.0.0",
|
|
122
126
|
"zod": "4.1.12"
|