@shivaedev/platform 0.36.13 → 0.37.0

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 +25 -0
  2. package/README.md +1 -1
  3. package/package.json +12 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.37.0 - 2026-10-31
4
+
5
+ ### Changed
6
+
7
+ - Server and the platform dependency shell no longer declare `pg` as an optional peer; its PostgreSQL integration uses the native pool from sql.
8
+
9
+ ### Breaking
10
+
11
+ - Replace `authDatabase(url, { max, application_name })` from identity's `server/better-auth/mount.ts` with `yield* betterAuthDatabase()` from `server/better-auth/adapters/database.ts`, inside the application's SQL environment. Pass the result as Better Auth's `database`. Use sql's `postgresLayer` for standalone processes; database-backed `appHost` exposes the client inside its `application` Effect. Move connection settings to `maxConnections` and `applicationName` on that SQL Layer. Auth now shares its connection budget and lifecycle; remove direct `pg` dependencies when no longer used.
12
+ - Replace `authTestDatabase(pool)` with `yield* authTestDatabase` in identity test fixtures, provided with the application's `SqlClient`.
13
+ - When applying the generated starter update, replace `poolSizes.auth` with the shared `poolSizes.sql` budget. Auth migrations use the application SQL environment; remove custom `AuthMigrationDatabase` providers.
14
+
15
+ ## 0.36.14 - 2026-10-31
16
+
17
+ ### Changed
18
+
19
+ - Update `@shivaedev/admin` from 0.12.2 to 0.12.3.
20
+ - Update `@shivaedev/contract` from 0.26.0 to 0.27.0.
21
+ - Update `@shivaedev/identity` from 0.10.0 to 0.10.1.
22
+ - Update `@shivaedev/jobs` from 0.24.0 to 0.25.0.
23
+ - Update `@shivaedev/local-postgres` from 0.7.0 to 0.8.0.
24
+ - Update `@shivaedev/react` from 0.26.0 to 0.27.0.
25
+ - Update `@shivaedev/server` from 0.9.3 to 0.10.0.
26
+ - Update `@shivaedev/webhooks` from 0.3.2 to 0.3.3.
27
+
3
28
  ## 0.36.13 - 2026-10-31
4
29
 
5
30
  ### Changed
package/README.md CHANGED
@@ -30,7 +30,7 @@ publicHoistPattern: [ "@shivaedev/*" ]
30
30
 
31
31
  The application lists no piece beside platform, and no test piece beside `@shivaedev/test-story`, which brings `@shivaedev/test` and `@shivaedev/test-sql`. Quality checks this: `manifests/application` asks for the hoist setting and names any duplicate entry to remove, and `imports/manifest` and Biome's undeclared-dependency check accept an application's imports of the pieces its entry points bring. `create-app` writes this setup for a new application and `create-app update` brings an existing one to it.
32
32
 
33
- Platform forwards the pieces' peer dependencies as optional peers. Install the ones the pieces you use need, such as `effect`, `react`, `react-dom`, `pg`, `pg-boss` and `better-auth`; the starter lists them.
33
+ Platform forwards the pieces' peer dependencies as optional peers. Install the ones the pieces you use need, such as `effect`, `react`, `react-dom`, `pg-boss` and `better-auth`; the starter lists them.
34
34
 
35
35
  Only applications depend on platform. A library, or an application published for others to run with `pnpm dlx` or a global install, cannot rely on the hoist setting of the workspace that installs it, so it declares each piece it imports directly.
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/platform",
3
- "version": "0.36.13",
3
+ "version": "0.37.0",
4
4
  "description": "One dependency for the ShivaeDev Effect application stack",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/platform#readme",
6
6
  "bugs": {
@@ -21,23 +21,23 @@
21
21
  "README.md"
22
22
  ],
23
23
  "dependencies": {
24
- "@shivaedev/access": "0.3.1",
25
- "@shivaedev/admin": "0.12.2",
24
+ "@shivaedev/access": "0.3.2",
25
+ "@shivaedev/admin": "0.13.0",
26
26
  "@shivaedev/changes": "0.6.0",
27
- "@shivaedev/contract": "0.26.0",
28
- "@shivaedev/errors": "0.1.3",
27
+ "@shivaedev/contract": "0.28.0",
28
+ "@shivaedev/errors": "0.2.0",
29
29
  "@shivaedev/form": "0.9.0",
30
- "@shivaedev/github": "0.8.1",
30
+ "@shivaedev/github": "0.8.2",
31
31
  "@shivaedev/http": "0.3.1",
32
- "@shivaedev/identity": "0.10.0",
33
- "@shivaedev/jobs": "0.24.0",
34
- "@shivaedev/local-postgres": "0.7.0",
35
- "@shivaedev/react": "0.26.0",
36
- "@shivaedev/server": "0.9.3",
32
+ "@shivaedev/identity": "0.11.0",
33
+ "@shivaedev/jobs": "0.26.0",
34
+ "@shivaedev/local-postgres": "0.8.0",
35
+ "@shivaedev/react": "0.28.0",
36
+ "@shivaedev/server": "0.11.0",
37
37
  "@shivaedev/service": "0.6.0",
38
38
  "@shivaedev/sql": "0.27.0",
39
39
  "@shivaedev/types": "0.3.0",
40
- "@shivaedev/webhooks": "0.3.2"
40
+ "@shivaedev/webhooks": "0.3.4"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@effect/atom-react": "4.0.6",
@@ -47,7 +47,6 @@
47
47
  "@tanstack/react-router": "1.170.46",
48
48
  "better-auth": "1.7.12",
49
49
  "effect": "4.0.6",
50
- "pg": "8.23.0",
51
50
  "pg-boss": "12.38.0",
52
51
  "react": "19.3.1",
53
52
  "react-dom": "19.3.1",
@@ -72,9 +71,6 @@
72
71
  "better-auth": {
73
72
  "optional": true
74
73
  },
75
- "pg": {
76
- "optional": true
77
- },
78
74
  "pg-boss": {
79
75
  "optional": true
80
76
  },