@shivaedev/server 0.32.3 → 0.32.4
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 +3 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.32.4 - 2026-11-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Apply declared `postgresSettings` only on Railway deployments. From server 0.30 through this fix, startup applied settings everywhere, including stories and local development against shared PostgreSQL.
|
|
8
|
+
|
|
3
9
|
## 0.32.3 - 2026-11-07
|
|
4
10
|
|
|
5
11
|
### Changed
|
package/README.md
CHANGED
|
@@ -520,7 +520,9 @@ const Database = appDatabase({
|
|
|
520
520
|
});
|
|
521
521
|
```
|
|
522
522
|
|
|
523
|
-
The host applies the declaration
|
|
523
|
+
The host applies the declaration only inside a Railway deployment, detected by the nonempty `RAILWAY_REPLICA_ID` that Railway supplies to each deployed replica ([Railway variables](https://docs.railway.com/reference/variables)). It runs before listeners and migrations, outside any migration transaction. `railway run` service variables alone do not enable settings; a replica ID is required. Destination port 55432 is always excluded, even with every Railway variable set, so local stories, test-sql, `pnpm dev` and scripts cannot change the shared development server. A server story verifies settings remain unchanged without Railway deployment variables against PostgreSQL. Keep one declaration in the app; hosts delegate this decision to SQL’s applier.
|
|
524
|
+
|
|
525
|
+
SQL's [settings applier](https://github.com/ShivaeDev/platform/tree/main/packages/sql#postgresql-server-settings) reads `pg_settings`, writes only differing values with `ALTER SYSTEM SET`, and requests a reload. Startup logs settings awaiting a PostgreSQL restart with the values they will take. In this example, `shared_buffers` and `max_connections` wait for the next PostgreSQL redeploy or image update. `idle_in_transaction_session_timeout` ends sessions left in an open transaction without terminating idle LISTEN connections.
|
|
524
526
|
|
|
525
527
|
Railway's template connects as the `postgres` superuser. Its wrapper appends `max_connections = 500` only when no such line exists in `postgresql.auto.conf`, so an `ALTER SYSTEM` value survives a restart. On a non-superuser deployment, or a refused setting, the host warns with the setting name, live value and wanted value and continues starting. The database operator must apply settings the app cannot change. Server settings apply to the entire PostgreSQL cluster; all apps sharing it must agree on the declaration.
|
|
526
528
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/server",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.4",
|
|
4
4
|
"description": "The Effect application host: HTTP and RPC serving, health, OTLP export, database and migrations, and development mode",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"effect"
|
|
@@ -50,23 +50,23 @@
|
|
|
50
50
|
"@shivaedev/contract": "0.43.2",
|
|
51
51
|
"@shivaedev/errors": "0.10.1",
|
|
52
52
|
"@shivaedev/http": "0.8.1",
|
|
53
|
-
"@shivaedev/identity": "0.30.
|
|
53
|
+
"@shivaedev/identity": "0.30.4",
|
|
54
54
|
"@shivaedev/local-postgres": "0.16.0",
|
|
55
|
-
"@shivaedev/sql": "0.46.
|
|
55
|
+
"@shivaedev/sql": "0.46.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@effect/platform-node": "4.1.1",
|
|
59
59
|
"@effect/sql-pg": "4.1.1",
|
|
60
60
|
"@effect/vitest": "4.1.1",
|
|
61
61
|
"@shivaedev/access": "0.6.1",
|
|
62
|
-
"@shivaedev/admin": "0.23.
|
|
63
|
-
"@shivaedev/jobs": "0.41.
|
|
64
|
-
"@shivaedev/quality": "0.
|
|
65
|
-
"@shivaedev/rate-limit": "0.6.
|
|
62
|
+
"@shivaedev/admin": "0.23.5",
|
|
63
|
+
"@shivaedev/jobs": "0.41.4",
|
|
64
|
+
"@shivaedev/quality": "0.73.1",
|
|
65
|
+
"@shivaedev/rate-limit": "0.6.7",
|
|
66
66
|
"@shivaedev/service": "0.8.2",
|
|
67
|
-
"@shivaedev/test-kits": "0.10.
|
|
68
|
-
"@shivaedev/test-sql": "0.24.
|
|
69
|
-
"@shivaedev/test-story": "0.45.
|
|
67
|
+
"@shivaedev/test-kits": "0.10.5",
|
|
68
|
+
"@shivaedev/test-sql": "0.24.7",
|
|
69
|
+
"@shivaedev/test-story": "0.45.4",
|
|
70
70
|
"@types/node": "24.19.2",
|
|
71
71
|
"better-auth": "1.7.14",
|
|
72
72
|
"effect": "4.1.1",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@effect/platform-node": "4.1.1",
|
|
79
79
|
"@effect/sql-pg": "4.1.1",
|
|
80
80
|
"@effect/vitest": "4.1.1",
|
|
81
|
-
"@shivaedev/admin": "0.23.
|
|
81
|
+
"@shivaedev/admin": "0.23.5",
|
|
82
82
|
"better-auth": "1.7.14",
|
|
83
83
|
"effect": "4.1.1"
|
|
84
84
|
},
|