Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/auth-session-request-memo.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/pool-defer-missing-url.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/robots-guard-next-assets.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/nk-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @ingram-tech/nk-auth

## 0.12.1

### Patch Changes

- e6454f3: `createAuthHelpers`: memoize the validated session read per request with React `cache()`. A render fanning out many `getUser()` / `requireUser()` calls now validates the session against the database once per request instead of once per call (measured 9 → 1 on a financica page). Caveat: mutating the session mid-request and re-reading it through the helpers returns the pre-mutation snapshot; read `auth.api.getSession` directly in that case.
- Updated dependencies [af5209d]
- @ingram-tech/nk-db@1.3.1

## 0.12.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nk-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ingram-tech/nk-auth",
"version": "0.12.0",
"version": "0.12.1",
"description": "The Ingram Better Auth foundation: composable presets (org, dual-shape JWT, active-org hooks, pg pool) for Next.js sites.",
"license": "MIT",
"type": "module",
Expand Down
16 changes: 16 additions & 0 deletions packages/nk-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @ingram-tech/nk-db

## 1.3.1

### Patch Changes

- af5209d: `createPool` no longer throws when no connection string is configured — it
returns a pool that constructs cleanly and defers the "set DATABASE_URL" error
to first use. Constructing the pool happens at module load in every app's
`lib/db`, so importing that module (and therefore `next build` collecting page
data, a unit test, or a CLI tool that never queries) must stay side-effect-free;
a hard throw at construction broke DB-less builds. A process that then runs a
real query without a URL still fails fast and legibly — the env is fixed at
process start, so this is never a transient miss. The deferred rejection is
async (a macrotask, like real connection I/O) so Next.js partial prerendering
sees a pending promise and postpones the segment, instead of a synchronous
render error. A present-but-invalid `DATABASE_URL` still throws eagerly.

## 1.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nk-db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ingram-tech/nk-db",
"version": "1.3.0",
"version": "1.3.1",
"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.",
"license": "MIT",
"type": "module",
Expand Down
10 changes: 10 additions & 0 deletions packages/nk-seo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @ingram-tech/nk-seo

## 0.6.1

### Patch Changes

- 246e91d: `createRobots` now throws if a `disallow` entry would block `/_next`. Crawlers
must fetch the JS/CSS under `/_next` to render pages, so disallowing it silently
degrades indexing — Next.js does not block it by default and neither should a
site. The guard is a prefix check (`/_next`, `/_next/`, `_next/static`, …); an
unrelated prefix like `/_preview` is unaffected.

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nk-seo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ingram-tech/nk-seo",
"version": "0.6.0",
"version": "0.6.1",
"description": "SEO primitives for Next.js sites: typed schema.org JSON-LD builders, a <JsonLd> tag, a Metadata factory (canonical + OG + Twitter), and configurable hreflang alternates.",
"license": "MIT",
"type": "module",
Expand Down