@beignet/provider-db-drizzle 0.0.26 → 0.0.28

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +13 -11
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @beignet/provider-db-drizzle
2
2
 
3
+ ## 0.0.28
4
+
5
+ ## 0.0.27
6
+
7
+ ### Patch Changes
8
+
9
+ - f2461a9: Add lazy Next route server loaders and update generated route files and package docs to avoid booting providers during production build imports.
10
+
3
11
  ## 0.0.26
4
12
 
5
13
  ### 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 server = await createNextServer({
183
- ports: appPorts,
184
- providers,
185
- context: ({ ports }) => ({ ports }),
186
- routes,
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. A later release may move the Postgres ports to
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 (PGlite in-process plus a real server in CI), and MySQL (a real
973
- server in CI), so durable workflow semantics do not drift between backends.
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.26",
3
+ "version": "0.0.28",
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": {