@shivaedev/effect-test-sql 0.5.1 → 0.5.2

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.2 - 2026-10-17
4
+
5
+ ### Changed
6
+
7
+ - Block `@shivaedev/effect-test-sql/internal/*` imports; use the public test isolation modules instead.
8
+
3
9
  ## 0.5.1 - 2026-10-17
4
10
 
5
11
  ### Fixed
package/docs/roadmap.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Roadmap
2
2
 
3
- - [x] Prepare migrations and optional fixtures once in a closed template database.
4
- - [x] Supply native PostgreSQL services on a shared database with per-test rollback.
5
- - [x] Compose the wrapping transaction with `makeEffectIt`, harness scopes and nested `transact` savepoints.
6
- - [x] Clone isolated databases for real commits and drop them after use.
7
- - [x] Prove the database lifecycle against PostgreSQL and the public contracts with compiler and packed-consumer checks.
8
- - [x] Prepare the approved initial 0.1.0 release metadata.
3
+ ## Built
4
+
5
+ - Prepare migrations and optional fixtures once in a closed template database, supply native PostgreSQL services on a shared database, and roll back ordinary tests. [PostgreSQL lifecycle tests](../src/server/postgres.test.ts) and [transaction tests](../src/server/transaction.spec.ts) prove preparation and rollback.
6
+ - Compose the wrapping transaction with `makeEffectIt`, harness scopes and nested `transact` savepoints. [Runner tests](../src/server/vitest.spec.ts) and [application-layer tests](../src/server/applicationLayers.spec.ts) prove the composition.
7
+ - Clone isolated databases for real commits and drop them after success, typed failure, defects or interruption. [Isolation tests](../src/server/isolated.spec.ts) prove these lifetimes and worker cleanup; [cleanup failure tests](../src/server/cleanupFailure.spec.ts) prove a failed drop becomes a defect carrying the SQL failure.
8
+ - Start with an empty schema using `prepare: false`, then use `migrationSteps` to stop at named migrations, seed old-schema data and finish the upgrade on the same database. [Migration-step tests](../src/server/migrationSteps.test.ts) prove committed backfills and rejection of unknown names and wrapping transactions; [lifecycle tests](../src/server/migrationStepsLifecycle.spec.ts) prove empty preparation, scoped loader resources, resume and rejection of backwards steps.
9
+ - Use `migrationUpgrade` to commit an old migration prefix and apply the remaining migrations, then compare live PostgreSQL columns with an Effect SQL model using `assertModelColumns`. [Upgrade tests](../src/server/migrationUpgrade.test.ts) prove committed old data, exact column types, drift detection and invalid-state rejection; [model-column tests](../src/server/assertModelColumns.test.ts) prove model field and type comparisons.
10
+ - Default to two pooled connections per database, allow `maxConnections` overrides and close administrative sessions between operations. [Connection-budget tests](../src/server/connectionBudget.spec.ts) measure twelve concurrent databases with default and explicit pool sizes; [idle-cleanup tests](../src/server/postgresIdleCleanup.spec.ts) prove idle workers release their connections.
11
+ - Preserve SQLSTATE `53300` on connection exhaustion and add connection-limit and worker-count guidance. [Connection-limit tests](../src/server/connectionLimit.spec.ts) prove setup and wrapper diagnostics against PostgreSQL and preserve other SQL failures' identity.
12
+ - Check public contracts with [compiler tests](../src/server/postgres.typecheck.test.ts), [migration-step compiler tests](../src/server/migrationSteps.typecheck.test.ts), [upgrade compiler tests](../src/server/migrationUpgrade.typecheck.test.ts) and the repository's packed-package consumer checks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/effect-test-sql",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "PostgreSQL rollback and real-commit test isolation for Effect",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/effect-test-sql#readme",
6
6
  "bugs": {
@@ -29,6 +29,7 @@
29
29
  "import": "./dist/server/*.js",
30
30
  "default": "./dist/server/*.js"
31
31
  },
32
+ "./internal/*": null,
32
33
  "./package.json": "./package.json"
33
34
  },
34
35
  "files": [
@@ -48,9 +49,9 @@
48
49
  "@effect/sql-pg": "4.0.4",
49
50
  "@effect/vitest": "4.0.4",
50
51
  "@shivaedev/effect-test": "0.5.0",
51
- "@shivaedev/quality": "0.22.0",
52
- "@shivaedev/test-story": "0.4.1",
53
- "@types/node": "24.19.1",
52
+ "@shivaedev/quality": "0.23.0",
53
+ "@shivaedev/test-story": "0.5.0",
54
+ "@types/node": "24.19.2",
54
55
  "@typescript/native": "npm:typescript@7.0.2",
55
56
  "effect": "4.0.4",
56
57
  "typescript": "npm:@typescript/typescript6@6.0.2",