-
- Pagination Validation:
paginate()now clampspageandlimitparameters to a minimum of 1, preventing invalid offset/limit values in database queries.
drizzle-orm: 0.44.7 -> 0.45.2mysql2: 3.20.0 -> 3.22.0prettier: 3.8.1 -> 3.8.2typescript-eslint: 8.58.0 -> 8.58.1
- Rewrote pagination test suite with reusable helpers.
- Added tests: empty results, page clamping, limit clamping, where/orderBy propagation.
- Pagination Validation:
- Missleading lockfile changed to correct one
-
@asenajs/asena/server→@asenajs/asena/decorators(Database.ts, Repository.ts)@asenajs/asena/ioc→@asenajs/asena/decorators/ioc(DatabaseService.ts, Repository.ts)- README examples updated to reflect new import paths
- Changeset baseBranch corrected from
maintomaster - Coverage path ignore patterns added to bunfig.toml
@asenajs/asena0.5.0→^0.7.0(dev + peer)drizzle-kit^0.31.5→^0.31.10@types/pg^8.15.5→^8.20.0pg^8.16.3→^8.20.0mysql2^3.15.3→^3.20.0eslint^9.38.0→^9.39.4prettier^3.6.2→^3.8.1typescript-eslint^8.46.2→^8.58.0
-
23b315b: test: add comprehensive unit test suite
- Add 140+ unit tests across all core modules
-
23b315b: chore: migrate to ESLint v9 flat config
- Update ESLint from v8.57 to v9.38
- Update @typescript-eslint packages to v8.46
- Replace deprecated .eslintrc with flat config (eslint.config.cjs)
- Add Prettier v3.6 integration
- Remove deprecated .eslintignore file
- Add new lint and format scripts to package.json
-
Fix decorator class name export for asena-cli build compatibility
Fixed an issue where
@Databaseand@Repositorydecorators were exporting internal class names (DatabaseServiceClassandRepositoryServiceClass) instead of the original decorated class names. This caused build failures when usingasena buildcommand with errors like "No matching export for import".The decorators now use
Object.definePropertyto override the class name property, ensuring the exported class name matches the original class name that the CLI expects during the build process.Breaking Changes: None Migration Required: No - this is a transparent fix
Technical Details:
- Added
Object.definePropertycall to overridenameproperty after metadata copying - Affects both
@Databaseand@Repositorydecorators - Maintains backward compatibility with existing code
- Added