Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

v3 upgrade guide

Jan Jurzitza edited this page Oct 21, 2018 · 2 revisions

For the CLI:

you now have to register working directories as instances (before or after registration of components doesn't matter) and always pass that cwd to method calls which use it. See Message-Format

you can no longer load multiple components at once or pass arguments with the loading, instead now you set configuration before loading them and then load them one by one.

calls stay the same but have new syntax and an optional cwd argument now, check Message-Format and the documentation.

Broadcasts now also contain a workspace, check Message-Format for more information.

For the API:

API Calls have fundamentally changed, you now need an instance of the component to call it. Use the new WorkspaceD class to manage all instances. With the WorkspaceD class call addInstance to create a new instance with optional configuration set.

Use myWorkspacedInstance.get!DCDComponent to get the same functionality as dcd. for example and use myWorkspacedInstance.get!DCDComponent(cwd) if you have a working directory available.

syncYield and syncBlocking are no longer available, methods use Future!T instead of AsyncCallback now which is essentially a wrapper class around the callback to allow cleaner, type-safe code and proper exception handling.

Clone this wiki locally