Repository navigation
- Added support for embedding Drayman applications in an existing Express and HTTP server using
mountDrayman. - Added
basePathsupport for scoping Drayman routes, browser assets, component events, elements, and WebSocket connections. - Added
projectDirsupport to build and mount Drayman applications located outside the host process working directory. - Exported
buildDrayman,mountDrayman, andgetDraymanConfigas framework APIs. - Added an
onCloseserver 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, andonCloseto theDraymanServertype. - Added
nodeModulesDirconfiguration. 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.jsis now the framework library entry point. The CLI entry point has moved todist/cli.js. The publicdrayman-framework startanddrayman-framework buildcommands 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.