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
11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,13 @@ always called out under their own heading.
rolls back every new row from that call. Bus publish and optional host
`enqueue` run only after commit for newly inserted ids; enqueue throws are
logged and swallowed (same posture as bus publish).
- **Instance-address detection tolerates the upstream `isAgentAddress` ->
`isRunAddress` rename in `@intx/types` (INTR-358).** `recipients.ts` now
imports through `intx-types-compat.ts`, which prefers `isRunAddress` and
falls back to `isAgentAddress`, so this package works against both the
pre-rename and post-rename `@intx/types` without a peer version bump.

### Breaking

- **`hono-openapi` is a peer, and the remaining dependency is a caret range.**
Route descriptions merge into the host's own OpenAPI document instead of a
second copy of `hono-openapi`. `arktype` is `^2.2.3`; the unused
`@intx/crypto`, the `drizzle-orm` override, the git-install `prepare` build
and the `isAgentAddress` compatibility shim are gone.
- **`runMailboxMigrations(config, { schema })` replaces `runMailboxMigrations(db)`.**
It takes the same `DBConfig` (`@intx/db`, now a peer) and `schema` the host
passes Interchange's `runMigrations`. `schema` is the host schema holding
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Give a **person** in an Interchange hub an inbox: list, read, flag, send, and li

## Runtime support

Node >= 24 consumes built `dist/`. Bun >= 1.2 runs TypeScript source. Peers: `@intx/db`, `@intx/hub-api`, `@intx/log`, `@intx/mailbox`, `@intx/mime`, `@intx/types`, `drizzle-orm`, `hono`, `postgres`.
Node >= 24 consumes built `dist/`. Bun >= 1.2 runs TypeScript source. Peers: `@intx/db`, `@intx/hub-api`, `@intx/log`, `@intx/mailbox`, `@intx/mime`, `@intx/types`, `drizzle-orm`, `hono`, `hono-openapi` (with its own peers), `postgres`.

## Quickstart

```bash
npm add @corbits/mailbox @intx/db @intx/hub-api @intx/log @intx/mailbox @intx/mime @intx/types drizzle-orm hono postgres
npm add @corbits/mailbox @intx/db @intx/hub-api @intx/log @intx/mailbox @intx/mime @intx/types drizzle-orm hono hono-openapi @standard-community/standard-json @standard-community/standard-openapi postgres
```

```ts
Expand Down
23 changes: 10 additions & 13 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 6 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
"engines": {
"node": ">=24"
},
"corbits": {
"minimumIntxVersion": "0.4.0"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand All @@ -53,12 +50,7 @@
"test": "bun test src tests"
},
"dependencies": {
"@hono/standard-validator": "0.2.3",
"@intx/crypto": "0.4.0",
"@standard-community/standard-json": "0.3.5",
"@standard-community/standard-openapi": "0.2.9",
"arktype": "2.1.29",
"hono-openapi": "1.3.1"
"arktype": "^2.2.3"
},
"peerDependencies": {
"@intx/db": "^0.4.0",
Expand All @@ -69,25 +61,27 @@
"@intx/types": "^0.4.0",
"drizzle-orm": "^0.45.2",
"hono": "^4.12.0",
"hono-openapi": "^1.3.1",
"postgres": "^3.4.0"
},
"devDependencies": {
"@hono/standard-validator": "0.2.3",
"@intx/db": "0.4.0",
"@intx/hub-api": "0.4.0",
"@intx/log": "0.4.0",
"@intx/mailbox": "0.4.0",
"@intx/mime": "0.4.0",
"@intx/types": "0.4.0",
"@standard-community/standard-json": "0.3.5",
"@standard-community/standard-openapi": "0.2.9",
"@types/bun": "1.1.14",
"@types/json-schema": "7.0.15",
"@types/node": "22.10.5",
"drizzle-orm": "0.45.2",
"hono": "4.12.32",
"hono-openapi": "1.3.1",
"openapi-types": "12.1.3",
"postgres": "3.4.9",
"typescript": "5.7.2"
},
"overrides": {
"drizzle-orm": "0.45.2"
}
}
31 changes: 0 additions & 31 deletions src/intx-types-compat.test.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/intx-types-compat.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/recipients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// deciding which of those addresses are principal mailboxes this tenant owns.

import { extractAddrSpec } from "@intx/mime";
import { isRunAddress } from "./intx-types-compat.js";
import { isRunAddress } from "@intx/types";

/**
* Split an address-list header (`To:`, `Cc:`) into its individual addresses.
Expand Down
Loading