{isUnit && (
@@ -128,6 +133,11 @@ export const FnDocumentation: FC<{
{`Namespace optional`}
)}
+ {versionAdded && (
+
+ v{versionAdded}
+
+ )}
)}
diff --git a/packages/components/src/stories/InternalComponents/FnDocumentation.stories.tsx b/packages/components/src/stories/InternalComponents/FnDocumentation.stories.tsx
index 77b3baefbf..d6534568dc 100644
--- a/packages/components/src/stories/InternalComponents/FnDocumentation.stories.tsx
+++ b/packages/components/src/stories/InternalComponents/FnDocumentation.stories.tsx
@@ -83,6 +83,7 @@ Plot.scatter({
shorthand: { type: "unary", symbol: "-" },
description: `**Lorem Ipsum**
More content *here*`,
+ versionAdded: "0.9.0",
};
export const Simple: Story = {
diff --git a/packages/squiggle-lang/src/library/registry/core.ts b/packages/squiggle-lang/src/library/registry/core.ts
index a7d6377d47..447158f6d7 100644
--- a/packages/squiggle-lang/src/library/registry/core.ts
+++ b/packages/squiggle-lang/src/library/registry/core.ts
@@ -25,6 +25,7 @@ export type FRFunction = {
isUnit?: boolean;
shorthand?: Shorthand;
displaySection?: string;
+ versionAdded?: string;
};
type FnNameDict = Map