Skip to content

Enfyra Server v2.0.9

Choose a tag to compare

@dothinh115 dothinh115 released this 25 Apr 18:25

Enfyra Server v2.0.9

Features

  • Added dbType and pkField to GET /metadata so clients can adapt table handling to SQL id or MongoDB _id primary keys without inferring the backend separately.
  • Added onDelete persistence for relation metadata in SqlTableHandlerService, MongoTableHandlerService, and SqlTableMetadataWriterService so relation cascade behavior is preserved when tables are created or updated.
  • Added Node-runtime package fallback for $pkgs in executor.worker.js and package-runtime.child.js so packages that cannot run directly inside isolated-vm can still execute through the executor-side package runtime.
  • Added local dependency artifact caching in PackageCdnLoaderService so esm.sh absolute imports are rewritten to cached package files and package sources remain available to sandbox workers.

Bug Fixes

  • Updated PackageCacheService to retry packages left in installing, updating, or failed state so interrupted package installs can recover during cache preload.
  • Fixed PackageCacheService and package route websocket emits to skip admin notifications until DynamicWebSocketGateway has a server, preventing package cache reloads from failing before Socket.IO is ready.
  • Fixed package cache invalidation payloads in package.routes.ts to use the current table cache event field so package status changes trigger the correct reload chain.
  • Fixed CDN install and update failure handling in package.routes.ts to invalidate package_definition cache after marking a package as failed, keeping admin package state current.
  • Fixed CacheOrchestratorService reload completion notifications so admin reload UI receives done even when a local reload step fails.
  • Fixed Redis cache reload replay in CacheOrchestratorService to read the current table payload field for targeted reloads and admin reload-all events.
  • Updated package.json dev and debug scripts to ignore logs and enfyra-pkg-cache paths so runtime logs and package cache writes do not restart the dev watcher.
  • Updated package.json version to 2.0.9.