Skip to content

Releases

v0.1.25

Choose a tag to compare

@crenata crenata released this 24 Sep 09:24

v0.1.25 - 2026-09-24

🩹 Fixes

  • Normalized the self-referential facade re-export: facades/index now emits export {default as Database} from "./Database" instead of "../facades/Database" (same target, no more odd self-path)

📖 Changes

  • Moved MakeHelper from commands/make/ to a new top-level utils/commands/make/ path; MakeMigrationCommand and MakeSeederCommand now import it from there
  • tests/database.test.ts now imports the compiled package (config/database, builders/DatabaseBuilder, facades/Database, utils/commands/make/MakeHelper) instead of ../src/..., so the suite exercises the artifacts consumers actually receive

📦 Dependencies

  • Bumped @bejibun/app from ^0.1.26 to ^0.1.27
  • Bumped @bejibun/logger from ^0.2.1 to ^0.2.10
  • Bumped @bejibun/utils from ^0.1.30 to ^0.1.31
  • Bumped @types/bun (devDependency) from ^1.4.0 to ^1.4.2
  • Bumped eslint (devDependency) from ^10.9.1 to ^10.11.0
  • Bumped globals (devDependency) from ^17.11.0 to ^17.12.0
  • Bumped prettier (devDependency) from ^3.9.6 to ^3.9.9
  • Bumped tsc-alias (devDependency) from ^1.9.3 to ^1.9.5
  • Bumped typescript-eslint (devDependency) from ^8.69.0 to ^8.70.1

❤️Contributors

Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md

v0.1.23

Choose a tag to compare

@crenata crenata released this 01 Sep 09:41

v0.1.23 - 2026-09-01

🩹 Fixes

  • Fixed Database.knex() recreating the Knex instance (connection pool) and re-reading the config file (fs.existsSync + require()) on every invocation

📖 Changes

  • Database.knex() now returns a lazily cached singleton Knex instance; the config is read once and reused until explicitly reset
  • Added Database.reset() to destroy the cached connection pool and clear the builder, so CLI commands can cleanup without breaking the shared instance
  • Migrate/seed commands now use Database.reset() instead of database.destroy()
  • Migrate/seed commands now use chalk directly for spinner/confirmation colors, replacing the removed @bejibun/logger/facades/Chalk facade
  • Extracted the duplicated migration/seeder creation pipeline in the make commands into a shared MakeHelper (single-pass latestCounter(), nextFileName(), resolveTemplate()); latestCounter() also tolerates a missing database/ directory
  • Removed defineValue() usage in the make commands in favor of a counter returned directly as a number
  • Added tests to tsconfig exclude so compiled output never lands in tests/

🧪 Tests

  • Added test suite (11 tests across 1 file) covering Database.knex() caching, Database.reset(), config reuse, and the MakeHelper helpers

⚡ Benchmarks

  • Added benchmark suite comparing baseline (@bejibun/database@0.1.21) vs optimized build
  • Database.knex() throughput: ~1128.89x faster (0.4ms vs 451.5ms, ~50M ops/s)
  • Cold start: ~1.01x

📦 Dependencies

  • Bumped @bejibun/app from ^0.1.25 to ^0.1.26
  • Bumped @bejibun/logger from ^0.1.23 to ^0.2.1
  • Bumped @bejibun/utils from ^0.1.29 to ^0.1.30
  • Added chalk ^6.0.0
  • Bumped @types/bun (devDependency) from ^1.3.14 to ^1.4.0
  • Bumped eslint (devDependency) from ^10.8.1 to ^10.9.1
  • Bumped tsc-alias (devDependency) from ^1.9.2 to ^1.9.3
  • Bumped typescript-eslint (devDependency) from ^8.67.0 to ^8.69.0

❤️Contributors

Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md

v0.1.22

Choose a tag to compare

@crenata crenata released this 20 Aug 10:39

v0.1.22 - 2026-08-20

🩹 Fixes

📖 Changes

Tooling

  • Added prettier + .prettierrc.json / .prettierignore and an eslint.config.js (flat config, typescript-eslint) for consistent formatting/linting across src
  • Added bun run format, bun run eslint, and bun run lint scripts; bun run build now runs lint before compiling
  • alias script now runs tsc-alias directly instead of via bunx

📦 Dependencies

  • Bumped @bejibun/app from ^0.1.24 to ^0.1.25
  • Bumped @bejibun/logger from ^0.1.22 to ^0.1.23
  • Bumped @bejibun/utils from ^0.1.28 to ^0.1.29
  • Bumped knex (devDependency) from ^3.2.10 to ^3.3.0
  • Bumped ora (devDependency) from ^9.4.0 to ^9.4.1
  • Bumped pg (devDependency) from ^8.21.0 to ^8.23.0
  • Bumped tsc-alias (devDependency) from ^1.8.17 to ^1.9.2
  • Added @eslint/js (devDependency) ^10.0.1
  • Added eslint (devDependency) ^10.8.1
  • Added eslint-config-prettier (devDependency) ^10.1.8
  • Added globals (devDependency) ^17.11.0
  • Added prettier (devDependency) ^3.9.6
  • Added typescript (devDependency) ^6.0.3
  • Added typescript-eslint (devDependency) ^8.67.0

❤️Contributors

Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md

v0.1.21

Choose a tag to compare

@crenata crenata released this 01 Jun 04:26

v0.1.21 - 2026-06-01

🩹 Fixes

  • Invalid parameter for specific seeder - #2

📖 Changes

❤️Contributors

Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md

v0.1.20

Choose a tag to compare

@crenata crenata released this 11 May 09:16

v0.1.20 - 2026-05-11

🩹 Fixes

📖 Changes

  • Added db:seed --seeder file.ts for specific file seeder
  • Added db:seed --force for skip confirmation in production

❤️Contributors

Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md

v0.1.14

Choose a tag to compare

@crenata crenata released this 25 Oct 16:58

v0.1.14 - 2025-10-25

🩹 Fixes

  • Fix make:migration migration filename
  • Fix make:seeder seeder filename

📖 Changes

❤️Contributors

Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md

v0.1.12

Choose a tag to compare

@crenata crenata released this 25 Oct 09:17

v0.1.12 - 2025-10-25

🩹 Fixes

  • Fix make:migration counter undefined

📖 Changes

What's New :

  • Adding make:seeder Create a new seeder file

❤️Contributors

Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md

v0.1.11

Choose a tag to compare

@crenata crenata released this 24 Oct 17:28

v0.1.11 - 2025-10-25

🩹 Fixes

📖 Changes

What's New :

  • Adding make:migration Create a new migration file

❤️Contributors

Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md

v0.1.1

Choose a tag to compare

@crenata crenata released this 22 Oct 04:38

v0.1.1 - 2025-10-22

🩹 Fixes

📖 Changes

What's New :

  • Adding Database.knex() for init database connection
  • Adding config/database.ts configuration file
  • Adding commands directory structure

Available Commands :

  • db:seed Run database seeders
  • migrate:fresh Rollback all migrations and re-run migrations
  • migrate:latest Run latest migration
  • migrate:rollback Rollback the latest migrations
  • migrate:status List migrations status

❤️Contributors

Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md