@beignet/provider-db-drizzle 0.0.26 → 0.0.27
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 +6 -0
- package/README.md +13 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @beignet/provider-db-drizzle
|
|
2
2
|
|
|
3
|
+
## 0.0.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f2461a9: Add lazy Next route server loaders and update generated route files and package docs to avoid booting providers during production build imports.
|
|
8
|
+
|
|
3
9
|
## 0.0.26
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -174,16 +174,19 @@ export type AppPorts = {
|
|
|
174
174
|
|
|
175
175
|
```ts
|
|
176
176
|
// server/index.ts
|
|
177
|
-
import { createNextServer } from "@beignet/next";
|
|
177
|
+
import { createNextServer, createNextServerLoader } from "@beignet/next";
|
|
178
178
|
import { appPorts } from "@/infra/app-ports";
|
|
179
179
|
import { routes } from "@/server/routes";
|
|
180
|
-
import { providers } from "./providers";
|
|
181
180
|
|
|
182
|
-
export const
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
181
|
+
export const getServer = createNextServerLoader(async () => {
|
|
182
|
+
const { providers } = await import("./providers");
|
|
183
|
+
|
|
184
|
+
return createNextServer({
|
|
185
|
+
ports: appPorts,
|
|
186
|
+
providers,
|
|
187
|
+
context: ({ ports }) => ({ ports }),
|
|
188
|
+
routes,
|
|
189
|
+
});
|
|
187
190
|
});
|
|
188
191
|
```
|
|
189
192
|
|
|
@@ -962,15 +965,14 @@ These choices are deliberate and shared across the three backends:
|
|
|
962
965
|
idempotency timestamps, plus audit `occurred_at`, as ISO-8601 UTC strings in
|
|
963
966
|
text columns. This keeps retry timing, lease expiry, replay semantics, and
|
|
964
967
|
audit ordering identical across backends, and lexicographic ordering matches
|
|
965
|
-
chronological ordering.
|
|
966
|
-
`timestamptz`.
|
|
968
|
+
chronological ordering.
|
|
967
969
|
- **MySQL key length limits.** SQLite and Postgres use unbounded text columns
|
|
968
970
|
for idempotency keys; MySQL needs bounded `varchar` columns for its unique
|
|
969
971
|
index, so over-length keys fail loudly rather than truncating silently.
|
|
970
972
|
- **Shared conformance suite.** One conformance suite runs the same Unit of
|
|
971
973
|
Work, outbox, and idempotency behavior tests against SQLite (libSQL),
|
|
972
|
-
Postgres
|
|
973
|
-
|
|
974
|
+
Postgres, and MySQL, so durable workflow semantics do not drift between
|
|
975
|
+
backends.
|
|
974
976
|
|
|
975
977
|
## Advanced usage
|
|
976
978
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beignet/provider-db-drizzle",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Drizzle ORM database providers for Beignet — typed DbPort, unit of work, audit logs, outbox, and idempotency for SQLite (libSQL/Turso), Postgres, and MySQL.",
|
|
6
6
|
"exports": {
|