Skip to content

v4.0.0

Latest

Choose a tag to compare

@jansivans jansivans released this 06 Aug 13:33
· 15 commits to main since this release
  • Added support for embedding Drayman applications in an existing Express and HTTP server using mountDrayman.
  • Added basePath support for scoping Drayman routes, browser assets, component events, elements, and WebSocket connections.
  • Added projectDir support to build and mount Drayman applications located outside the host process working directory.
  • Exported buildDrayman, mountDrayman, and getDraymanConfig as framework APIs.
  • Added an onClose server lifecycle hook for releasing database connections, bots, subscriptions, and other long-lived resources.
  • Added isolated runtime namespaces and cleanup of component instances and WebSocket connections during shutdown.
  • Added basePath, projectDir, and onClose to the DraymanServer type.
  • Added nodeModulesDir configuration. All configured paths are now resolved relative to the Drayman project directory.
  • Updated the standalone CLI to use the same runtime as embedded applications and gracefully handle process shutdown.
  • Added documentation for embedding Drayman applications.

Breaking changes:

  • The standalone WebSocket endpoint has changed from / to /ws. The Drayman server and browser client must be upgraded together.
  • dist/index.js is now the framework library entry point. The CLI entry point has moved to dist/cli.js. The public drayman-framework start and drayman-framework build commands remain unchanged.
  • Obsolete internal compiled entry points are no longer included in the published package.
  • Absolute configuration and component paths are now resolved using their standard filesystem meaning.