Skip to content

ChaCC API v1.0.0-beta 5 - CHACC INSTALL COMMAND AND IMPROVEMENTS

Latest

Choose a tag to compare

@Jonas1015 Jonas1015 released this 08 Sep 10:17
· 1 commit to develop since this release

1.0.0-b5

Update now:

PyPi Package:

pip install --upgrade chacc-api:1.0.0-b5

Docker

docker pull jonas1015/chacc-api:1.0.0-b5

Added

  • chacc install command – Install any ChaCC module from a Git repository or local folder in one step. You can use a full URL, an SSH address, or the short form like TNet-Tech/chacc_outbound. Use --dev to copy the module into the plugins directory for active development, or leave it off to build a production .chacc archive automatically. Supports --ref for branches, tags, and commits, --force to overwrite existing modules, and private repositories via GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN, or CHACC_GIT_TOKEN. Includes a friendly step-by-step progress display with colored status markers so you always know what is happening. See the CLI install guide for the full reference.

  • Async database support for modules – Modules can now connect to the database without blocking the server. When you create a new module with chacc create, the generated code includes everything needed to run database queries asynchronously.

  • Chacc Outbound module – A new official module for sending emails, SMS, and other messages. It includes automatic retries, delivery status tracking, and a pluggable adapter system (SMTP and console adapters included out of the box). See the Chacc Outbound docs for setup, REST API, and how to write custom adapters.

Fixed

  • Database connections leaking in generated code – The scaffolded get_db dependency now properly closes the database session after each request, preventing connection leaks over time.
  • Docker startup issues – Fixed a problem where the database failed to migrate during startup in production mode.
  • Docker permission errors – Fixed a permission issue that prevented the dependency resolver from writing its cache.
  • PostgreSQL enum migration crashes – Fixed a crash when changing a column from one enum type to another. ChaCC now handles the conversion smoothly through an intermediate step, so enum migrations work without manual SQL.
  • Module loading crashes – Fixed a crash that occurred when some plugins loaded their models in certain orders. The startup process is now more forgiving and handles edge cases gracefully.
  • Migration crashes – Improved how ChaCC reads migration plans from Alembic, eliminating rare crashes during database updates.
  • Code cleanup – Removed unreachable error handling code and eliminated an unnecessary global directory change during archive building, making the install flow easier to follow and safer in multi-threaded environments.

Changed

  • Module name validation enforced in build pathchacc build and the internal build step of chacc install now both normalize module names the same way. This ensures that module names behave consistently whether you are building a package or installing one.