Skip to content

Commit 72dc29d

Browse files
committed
Add "experimental" verbage to fastify plugin generation.
After I've tested this in the wild a bit, I'll remove this and open it up for additional usage in case the folks over at Logos want to start using fastify for some servery things.
1 parent 2d642dc commit 72dc29d

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

conformance/src/fastify/conformanceApiPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type ConformanceApiPluginOptions = fastifyTypes.RegisterOptions & {
1515
includeErrorDetails?: boolean;
1616
}
1717

18+
/** EXPERIMENTAL: The generated code for this plugin is subject to change/removal without a major version bump. */
1819
export const conformanceApiPlugin: fastifyTypes.FastifyPluginAsync<ConformanceApiPluginOptions> = async (fastify, opts) => {
1920
const { serviceOrFactory, caseInsenstiveQueryStringKeys, includeErrorDetails } = opts;
2021

conformance/src/fastify/jsConformanceApiPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* eslint-disable */
33
'use strict';
44

5+
/** EXPERIMENTAL: The generated code for this plugin is subject to change/removal without a major version bump. */
56
export const jsConformanceApiPlugin = async (fastify, opts) => {
67
const { serviceOrFactory, caseInsenstiveQueryStringKeys, includeErrorDetails } = opts;
78

src/Facility.CodeGen.JavaScript/JavaScriptGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ private CodeGenOutput GenerateFastifyPluginOutput(ServiceInfo service)
594594
}
595595

596596
code.WriteLine();
597+
WriteJsDoc(code, "EXPERIMENTAL: The generated code for this plugin is subject to change/removal without a major version bump.");
597598
using (code.Block($"export const {camelCaseModuleName}Plugin" + IfTypeScript($": fastifyTypes.FastifyPluginAsync<{capModuleName}PluginOptions>") + " = async (fastify, opts) => {", "}"))
598599
{
599600
code.WriteLine("const { serviceOrFactory, caseInsenstiveQueryStringKeys, includeErrorDetails } = opts;");

src/fsdgenjs/FsdGenJavaScriptApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public sealed class FsdGenJavaScriptApp : CodeGeneratorApp
2424
" --express",
2525
" Generates Express service.",
2626
" --fastify",
27-
" Generates a Fastify plugin. When specified, only the server plugin is generated, not the client.",
27+
" Generates a Fastify plugin. When specified, only the server plugin is generated, not the client. EXPERIMENTAL: This option is subject to change/removal without a major version bump.",
2828
" --disable-eslint",
2929
" Disables ESLint via code comment.",
3030
" --file-name-suffix",

0 commit comments

Comments
 (0)