Create a new Registry, optionally pre-populated with a named block.
When a block is provided it is stored as a group and re-executed on every
activation, making the registry safe to reuse across multiple conversions.
Without a block, any extensions registered directly on the returned registry
(e.g. registry.preprocessor(fn)) are stored in transient state that is
cleared on every activation — those registrations will be lost from the second
conversion onwards. Prefer the block form when the registry may be reused.
Parameters
Optionalname: string
Optional name for the group; auto-generated if omitted.
Create a new Registry, optionally pre-populated with a named block.
When a
blockis provided it is stored as a group and re-executed on every activation, making the registry safe to reuse across multiple conversions. Without ablock, any extensions registered directly on the returned registry (e.g.registry.preprocessor(fn)) are stored in transient state that is cleared on every activation — those registrations will be lost from the second conversion onwards. Prefer the block form when the registry may be reused.