@getstrata/core 2.2.4 → 2.2.6

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @getstrata/core changelog
2
2
 
3
+ ## 2.2.6
4
+
5
+ - fix(cli): relay shutdown to children and simplify container launcher
6
+
7
+ ## 2.2.5
8
+
9
+ - fix(starter): keep container readiness independent of API admission
10
+
3
11
  ## 2.2.4
4
12
 
5
13
  - perf(database): seek Postgres composite keyset bounds
@@ -6,8 +6,9 @@
6
6
  * CREATE TABLE, so the NOBYPASSRLS runtime role cannot drop them. Runtime
7
7
  * DATABASE_URL / APP_DATABASE_URL must be this NOBYPASSRLS role.
8
8
  * docker-entrypoint-initdb.d only runs on an empty volume; call
9
- * ensurePostgresDatabaseAndAppRole() on every boot so existing volumes get the
10
- * same role and table GRANTs after migrate:fresh.
9
+ * ensurePostgresDatabaseAndAppRole() during explicit provisioning/migration so
10
+ * existing volumes get the role and table GRANTs after migrate:fresh. Production
11
+ * runtime processes only connect through the already-provisioned restricted role.
11
12
  *
12
13
  * Admin DDL (GRANT ALL TABLES, CREATE TABLE, DROP TABLE) must run on the
13
14
  * application database. postgres/template1 are only for CREATE DATABASE.
@@ -109,6 +109,9 @@ function postgresAdminUrls(options) {
109
109
  if (!isPostgresUrl(options.runtimeUrl)) {
110
110
  return urls;
111
111
  }
112
+ if (isProductionEnv() && !options.superuserPassword?.trim()) {
113
+ return urls;
114
+ }
112
115
  const superuserPassword = options.superuserPassword ?? POSTGRES_SUPERUSER_PASSWORD;
113
116
  push(withPostgresUrlCredentials(options.runtimeUrl, "postgres", superuserPassword));
114
117
  if (!isProductionEnv()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/core",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Strata Bun framework public API",
5
5
  "type": "module",
6
6
  "license": "MIT",