Skip to content

Commit f045739

Browse files
Version Packages (#93)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b30b9af commit f045739

6 files changed

Lines changed: 28 additions & 21 deletions

File tree

‎.changeset/id758-search-path.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/nk-auth-id-gaps.md‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎packages/nk-auth/CHANGELOG.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @ingram-tech/nk-auth
22

3+
## 0.27.0
4+
5+
### Minor Changes
6+
7+
- 41c1fde: Public ids on more of Better Auth's surface, a sanctioned id conversion for app code, and a `./client` that builds without the passkey peer.
8+
9+
- `publicSessionIds` now rewrites user ids in `/list-accounts` (a credential account's `accountId` too), `/magic-link/verify` and the passkey endpoints (`/passkey/list-user-passkeys`, `/passkey/update-passkey`, `/passkey/verify-registration`, `/passkey/verify-authentication`). The `userId` of `/get-access-token`, `/refresh-token` and `/account-info` must be a `usr_` id: it is decoded before Better Auth sees it and a raw uuid is a 400. Sites can drop these paths from `disabledPaths`.
10+
- `authUserId(publicId, ids)` / `authOrganizationId(publicId, ids)` turn a public id into the uuid `auth.api.*` and the adapter take, and `publicUserId(rawId, ids)` goes the other way (an OAuth `sub`). Exported from `./` and `./server`; use them instead of `ids.user.decode(…)` / `ids.user.encode(…)`, which `nextkit/no-id-codec-in-app-code` flags.
11+
- **Breaking:** `passkeyClient` moved from `@ingram-tech/nk-auth/client` to `@ingram-tech/nk-auth/client/passkey`, so `./client` no longer imports the optional `@better-auth/passkey` peer. Passkey sites change one import:
12+
13+
```diff
14+
-import { passkeyClient } from "@ingram-tech/nk-auth/client";
15+
+import { passkeyClient } from "@ingram-tech/nk-auth/client/passkey";
16+
```
17+
18+
### Patch Changes
19+
20+
- Updated dependencies [b30b9af]
21+
- @ingram-tech/nk-db@2.6.1
22+
323
## 0.26.1
424

525
### Patch Changes

‎packages/nk-auth/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ingram-tech/nk-auth",
3-
"version": "0.26.1",
3+
"version": "0.27.0",
44
"description": "The Ingram Better Auth foundation: composable presets (org, dual-shape JWT, active-org hooks, pg pool) for Next.js sites.",
55
"license": "MIT",
66
"type": "module",

‎packages/nk-db/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @ingram-tech/nk-db
22

3+
## 2.6.1
4+
5+
### Patch Changes
6+
7+
- b30b9af: id/sql: `id758_decode(id, prefix)` pins its `search_path` to the one it was created under, so it works when called from a function with `set search_path = ''` (SECURITY DEFINER RLS helpers). `ID758_SQL` / `ID758_SQL_STATEMENTS` / `id758Migration` now carry the pin, and the PGlite harness and `fingerprintChain` install it. Sites that already applied the functions need a new custom migration: `bunx drizzle-kit generate --custom --name id758_search_path`, paste `id758Migration` into it again (idempotent), `nk migrations`, then apply it.
8+
39
## 2.6.0
410

511
### Minor Changes

‎packages/nk-db/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ingram-tech/nk-db",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "The Ingram Postgres data layer: one TLS-aware pg pool, raw-SQL helpers, Drizzle wiring, and a PGlite (no-Docker) dev/test harness for Next.js sites.",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)