@cubicecho/server-kit 0.8.0 → 0.8.1

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/README.md CHANGED
@@ -7,7 +7,7 @@ The server code every cubicecho GraphQL backend shares. Each server used to copy
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- npm i @cubicecho/server-kit drizzle-orm@1.0.0-rc.5 postgres
10
+ npm i @cubicecho/server-kit drizzle-orm@1.0.0-rc.5 postgres@4
11
11
  ```
12
12
 
13
13
  ## Quick start
@@ -1,6 +1,6 @@
1
1
  # Database boot
2
2
 
3
- `@cubicecho/server-kit/db` makes a Postgres database ready to migrate: it waits for the server, creates the database when it is missing, and refuses a server the app cannot run on. It needs `postgres`, an optional peer.
3
+ `@cubicecho/server-kit/db` makes a Postgres database ready to migrate: it waits for the server, creates the database when it is missing, and refuses a server the app cannot run on. It needs `postgres`, an optional peer: 4, or 3.4 in an app not yet moved. 3.4 ends the process when a connection drops while a transaction is running a query.
4
4
 
5
5
  ```ts
6
6
  import { connectionOptions, DatabaseBootError, prepareDatabase } from '@cubicecho/server-kit/db';
package/llms.txt CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  Agent-facing docs for @cubicecho/server-kit: one task or concept per page, then what each package.json "exports" entry exports. Generated from _agents/docs/ and the doc comments in src/ by @cubicecho/agent-docs; edit those, not this file.
6
6
 
7
- Requires Node >=22. Peer dependencies: `@better-auth/sso` >=1.7.28 <1.8.0 (optional), `@cubicecho/better-auth-oidc-pairing` ^1.1.0 (optional), `@cubicecho/graphql-mcp` ^3.1.0 (optional), `@electric-sql/pglite` ^0.5.0 (optional), `better-auth` >=1.7.28 <1.8.0 (optional), `drizzle-orm` 1.0.0-rc.5, `express` ^5.0.0, `graphql` ^16.0.0, `graphql-yoga` ^6.0.0, `postgres` ^3.4.0 (optional), `vitest` ^5.0.0 (optional).
7
+ Requires Node >=22. Peer dependencies: `@better-auth/sso` >=1.7.28 <1.8.0 (optional), `@cubicecho/better-auth-oidc-pairing` ^1.1.0 (optional), `@cubicecho/graphql-mcp` ^3.1.0 (optional), `@electric-sql/pglite` ^0.5.0 (optional), `better-auth` >=1.7.28 <1.8.0 (optional), `drizzle-orm` 1.0.0-rc.5, `express` ^5.0.0, `graphql` ^16.0.0, `graphql-yoga` ^6.0.0, `postgres` ^3.4.0 || ^4.0.0 (optional), `vitest` ^5.0.0 (optional).
8
8
 
9
9
  ## Docs
10
10
 
11
- - [Database boot](_agents/docs/01-database.md): `@cubicecho/server-kit/db` makes a Postgres database ready to migrate: it waits for the server, creates the database when it is missing, and refuses a server the app cannot run on. It needs `postgres`, an optional peer.
11
+ - [Database boot](_agents/docs/01-database.md): `@cubicecho/server-kit/db` makes a Postgres database ready to migrate: it waits for the server, creates the database when it is missing, and refuses a server the app cannot run on. It needs `postgres`, an optional peer: 4, or 3.4 in an app not yet moved. 3.4 ends the process when a connection drops while a transaction is running a query.
12
12
  - [Columns](_agents/docs/02-columns.md): `@cubicecho/server-kit/columns` has the Drizzle columns that keep a table to the conventions: a UUIDv7 id, moments with a time zone, and a table limited to one row.
13
13
  - [Test checks](_agents/docs/03-testing.md): `@cubicecho/server-kit/testing` registers Vitest tests that hold an app to the backend standard: its tables, and the Postgres it runs.
14
14
  - [Auth preset](_agents/docs/04-auth.md): `@cubicecho/server-kit/auth` has the better-auth options and sign-in plugins every server shares: sessions in Postgres, bearer tokens, emailed links, and OIDC with pairing. The app still calls `betterAuth`, so it adds its own plugins and hooks and keeps exact types.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubicecho/server-kit",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "The server code every cubicecho GraphQL backend shares: database boot, id columns and the checks that keep a schema to the standard.",
5
5
  "license": "MIT",
6
6
  "author": "Benjamin Van Treese",
@@ -80,7 +80,7 @@
80
80
  "express": "^5.0.0",
81
81
  "graphql": "^16.0.0",
82
82
  "graphql-yoga": "^6.0.0",
83
- "postgres": "^3.4.0",
83
+ "postgres": "^3.4.0 || ^4.0.0",
84
84
  "vitest": "^5.0.0"
85
85
  },
86
86
  "peerDependenciesMeta": {
@@ -128,7 +128,7 @@
128
128
  "express": "^5.3.0",
129
129
  "graphql": "^16.15.0",
130
130
  "graphql-yoga": "^6.1.1",
131
- "postgres": "^3.4.10",
131
+ "postgres": "^4.2.0",
132
132
  "semantic-release": "^25.0.9",
133
133
  "typescript": "^7.0.2",
134
134
  "vitest": "^5.1.2",