Repository navigation
Releases
v0.1.25
v0.1.25 - 2026-09-24
🩹 Fixes
- Normalized the self-referential facade re-export:
facades/indexnow emitsexport {default as Database} from "./Database"instead of"../facades/Database"(same target, no more odd self-path)
📖 Changes
- Moved
MakeHelperfromcommands/make/to a new top-levelutils/commands/make/path;MakeMigrationCommandandMakeSeederCommandnow import it from there tests/database.test.tsnow 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/appfrom^0.1.26to^0.1.27 - Bumped
@bejibun/loggerfrom^0.2.1to^0.2.10 - Bumped
@bejibun/utilsfrom^0.1.30to^0.1.31 - Bumped
@types/bun(devDependency) from^1.4.0to^1.4.2 - Bumped
eslint(devDependency) from^10.9.1to^10.11.0 - Bumped
globals(devDependency) from^17.11.0to^17.12.0 - Bumped
prettier(devDependency) from^3.9.6to^3.9.9 - Bumped
tsc-alias(devDependency) from^1.9.3to^1.9.5 - Bumped
typescript-eslint(devDependency) from^8.69.0to^8.70.1
❤️Contributors
- Havea Crenata (@crenata)
Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md
v0.1.23
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 ofdatabase.destroy() - Migrate/seed commands now use
chalkdirectly for spinner/confirmation colors, replacing the removed@bejibun/logger/facades/Chalkfacade - Extracted the duplicated migration/seeder creation pipeline in the make commands into a shared
MakeHelper(single-passlatestCounter(),nextFileName(),resolveTemplate());latestCounter()also tolerates a missingdatabase/directory - Removed
defineValue()usage in the make commands in favor of a counter returned directly as a number - Added
teststo tsconfigexcludeso compiled output never lands intests/
🧪 Tests
- Added test suite (11 tests across 1 file) covering
Database.knex()caching,Database.reset(), config reuse, and theMakeHelperhelpers
⚡ 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/appfrom^0.1.25to^0.1.26 - Bumped
@bejibun/loggerfrom^0.1.23to^0.2.1 - Bumped
@bejibun/utilsfrom^0.1.29to^0.1.30 - Added
chalk^6.0.0 - Bumped
@types/bun(devDependency) from^1.3.14to^1.4.0 - Bumped
eslint(devDependency) from^10.8.1to^10.9.1 - Bumped
tsc-alias(devDependency) from^1.9.2to^1.9.3 - Bumped
typescript-eslint(devDependency) from^8.67.0to^8.69.0
❤️Contributors
- Havea Crenata (@crenata)
Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md
v0.1.22
v0.1.22 - 2026-08-20
🩹 Fixes
📖 Changes
Tooling
- Added
prettier+.prettierrc.json/.prettierignoreand aneslint.config.js(flat config,typescript-eslint) for consistent formatting/linting acrosssrc - Added
bun run format,bun run eslint, andbun run lintscripts;bun run buildnow runslintbefore compiling aliasscript now runstsc-aliasdirectly instead of viabunx
📦 Dependencies
- Bumped
@bejibun/appfrom^0.1.24to^0.1.25 - Bumped
@bejibun/loggerfrom^0.1.22to^0.1.23 - Bumped
@bejibun/utilsfrom^0.1.28to^0.1.29 - Bumped
knex(devDependency) from^3.2.10to^3.3.0 - Bumped
ora(devDependency) from^9.4.0to^9.4.1 - Bumped
pg(devDependency) from^8.21.0to^8.23.0 - Bumped
tsc-alias(devDependency) from^1.8.17to^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
- Havea Crenata (@crenata)
Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md
v0.1.21
v0.1.20
v0.1.20 - 2026-05-11
🩹 Fixes
📖 Changes
- Added
db:seed --seeder file.tsfor specific file seeder - Added
db:seed --forcefor skip confirmation in production
❤️Contributors
- Havea Crenata (@crenata)
Full Changelog: https://github.com/Bejibun-Framework/bejibun-database/blob/master/CHANGELOG.md
v0.1.14
v0.1.14 - 2025-10-25
🩹 Fixes
- Fix
make:migrationmigration filename - Fix
make:seederseeder filename
📖 Changes
❤️Contributors
Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md
v0.1.12
v0.1.12 - 2025-10-25
🩹 Fixes
- Fix
make:migrationcounter undefined
📖 Changes
What's New :
- Adding
make:seederCreate a new seeder file
❤️Contributors
Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md
v0.1.11
v0.1.11 - 2025-10-25
🩹 Fixes
📖 Changes
What's New :
- Adding
make:migrationCreate a new migration file
❤️Contributors
Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md
v0.1.1
v0.1.1 - 2025-10-22
🩹 Fixes
📖 Changes
What's New :
- Adding
Database.knex()for init database connection - Adding
config/database.tsconfiguration file - Adding commands directory structure
Available Commands :
db:seedRun database seedersmigrate:freshRollback all migrations and re-run migrationsmigrate:latestRun latest migrationmigrate:rollbackRollback the latest migrationsmigrate:statusList migrations status
❤️Contributors
Full Changelog: https://github.com/crenata/bejibun-database/blob/master/CHANGELOG.md