JDD changelog

v0.4.12

Added renderFromStorage method

Now, when rendering a document encoded as storage, you can usa this shorthand function.

Before:

render(
	registry,
	await documentToParsed(
		registry,
		makeJDDContext(ctx),
		documentContainerFromStorage(
			page.get("content") as RawJDDocument
		)
	),
	makeJDDContext(ctx)
)

You can just call

renderFromStorage(
  registry,
  page.get("content") as RawJDDocument,
  makeJDDContext(ctx),
);