Skip to main content


The @upgraded decorator is used to mark a method of a NodeBlock or ConditionBlock that is invoked when the block was created with an older version of the block implementation. You can use this method to migrate older block versions to the new version of the block.

Decorator type

Method ℹ️

Applies to

Decorator signature


Decorated method signature

(previousVersion: string): void

Decorated method parameters

previousVersionstringNoSpecifies the previous version number of the block.