@absolutejs/auth 0.82.0 → 0.83.0
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 +10 -0
- package/README.md +14 -2
- package/changelog.json +22 -0
- package/dist/bun.d.ts +6 -0
- package/dist/bun.js +18078 -0
- package/dist/bun.js.map +140 -0
- package/dist/index.d.ts +16 -16
- package/dist/oidc/routes.d.ts +16 -16
- package/docs/PERSISTENT-CREDENTIALS.md +7 -15
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ This file is generated by `absolute-changelog` from the entries in
|
|
|
6
6
|
`changelog/`. Edit an entry, not this file — and add new ones under
|
|
7
7
|
`changelog/unreleased/`.
|
|
8
8
|
|
|
9
|
+
## 0.83.0 — 2026-09-23
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Provide a Bun-native PostgreSQL migration entry point with transaction rollback, concurrency serialization and connection cleanup** (`runBunMigrations`, `BunMigrationsOptions`)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Regenerate createAuthApplications and oidcProviderRoutes declarations with equivalent property ordering; accepted inputs and runtime behavior are unchanged** (`createAuthApplications`, `oidcProviderRoutes`)
|
|
18
|
+
|
|
9
19
|
## 0.82.0 — 2026-09-22
|
|
10
20
|
|
|
11
21
|
### Added
|
package/README.md
CHANGED
|
@@ -432,8 +432,20 @@ const credentialStore = createPostgresCredentialStore(db);
|
|
|
432
432
|
|
|
433
433
|
Apply the `sessions` and `credentials` migrations before serving requests.
|
|
434
434
|
`runMigrations` accepts a `MigrationClient` for non-Neon PostgreSQL drivers.
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
On Bun, use the package-owned runner; it supports ordinary PostgreSQL over TCP
|
|
436
|
+
(including local Docker databases) without a Neon WebSocket proxy:
|
|
437
|
+
|
|
438
|
+
```ts
|
|
439
|
+
import { runBunMigrations } from '@absolutejs/auth/bun';
|
|
440
|
+
await runBunMigrations({ databaseUrl, blocks: ['sessions', 'credentials'] });
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
It owns and closes a separate unprepared connection, locks concurrent migration
|
|
444
|
+
runs, and rolls back both DDL and journal entries on failure. Keep the default
|
|
445
|
+
prepared-query mode for the application's Drizzle connection and JSON columns.
|
|
446
|
+
Do not implement a raw SQL migration adapter in application code. The existing
|
|
447
|
+
`runMigrations({ databaseUrl })` remains the Neon transport; custom clients remain
|
|
448
|
+
supported for other runtimes.
|
|
437
449
|
|
|
438
450
|
Studio's `absolute-auth setup` reads the selected adapter from
|
|
439
451
|
`src/backend/packages/auth.config.ts`. Explicit memory storage skips database
|
package/changelog.json
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
"contract": 1,
|
|
3
3
|
"name": "@absolutejs/auth",
|
|
4
4
|
"releases": [
|
|
5
|
+
{
|
|
6
|
+
"version": "0.83.0",
|
|
7
|
+
"date": "2026-09-23",
|
|
8
|
+
"changes": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "added",
|
|
11
|
+
"summary": "Provide a Bun-native PostgreSQL migration entry point with transaction rollback, concurrency serialization and connection cleanup",
|
|
12
|
+
"symbols": [
|
|
13
|
+
"runBunMigrations",
|
|
14
|
+
"BunMigrationsOptions"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "changed",
|
|
19
|
+
"summary": "Regenerate createAuthApplications and oidcProviderRoutes declarations with equivalent property ordering; accepted inputs and runtime behavior are unchanged",
|
|
20
|
+
"symbols": [
|
|
21
|
+
"createAuthApplications",
|
|
22
|
+
"oidcProviderRoutes"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
5
27
|
{
|
|
6
28
|
"changes": [
|
|
7
29
|
{
|
package/dist/bun.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RunMigrationsOptions } from './migrations/runner';
|
|
2
|
+
export type BunMigrationsOptions = Pick<RunMigrationsOptions, 'blocks' | 'log'> & {
|
|
3
|
+
databaseUrl: string;
|
|
4
|
+
};
|
|
5
|
+
/** Owns its connection; serializes and atomically journals package-owned DDL. */
|
|
6
|
+
export declare const runBunMigrations: ({ databaseUrl, blocks, log }: BunMigrationsOptions) => Promise<any>;
|