@navios/openapi-fastify 1.0.0-alpha.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0] - 2026-01-09
9
+
10
+ ### Added
11
+
12
+ - **Stable Release**: First stable release of @navios/openapi-fastify
13
+ - Production-ready OpenAPI integration for Fastify adapter
14
+ - Automatic OpenAPI documentation generation
15
+ - Scalar UI integration for interactive API documentation
16
+
17
+ ## [1.0.0-alpha.4] - 2026-01-09
18
+
19
+ ### Changed
20
+
21
+ - **Plugin Type Parameter**: `OpenApiFastifyPlugin` now includes adapter type parameter
22
+ - Implements `NaviosPlugin<FastifyOpenApiPluginOptions, FastifyApplicationServiceInterface>`
23
+ - Plugin context typed for Fastify adapter access
24
+ - **Plugin Context API**: Updated to use new `PluginContext<TAdapter>` pattern
25
+ - Uses `context.adapter.getServer()` instead of casting `context.server`
26
+ - Uses `context.adapter.getGlobalPrefix()` instead of `context.globalPrefix`
27
+ - **Route Handler Types**: Added explicit `FastifyRequest` and `FastifyReply` type annotations
28
+
29
+ ### Dependencies
30
+
31
+ - Updated to support `@navios/core` ^1.0.0-alpha.4
32
+ - Updated to support `@navios/adapter-fastify` ^1.0.0-alpha.4
33
+ - Updated to support `@navios/openapi` ^1.0.0-alpha.4
34
+
8
35
  ## [1.0.0-alpha.2] - 2026-01-07
9
36
 
10
37
  ### Dependencies
@@ -55,4 +82,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55
82
  - `@ApiTag`, `@ApiOperation`, `@ApiSummary`, `@ApiDeprecated`, `@ApiSecurity`, `@ApiExclude`, `@ApiStream`
56
83
  - **Endpoint Type Support**: Support for all endpoint types (standard, multipart, stream)
57
84
  - **Zod Schema Support**: Automatic conversion of Zod schemas to OpenAPI schemas
58
-
@@ -1,5 +1,6 @@
1
1
  import type { NaviosPlugin, PluginContext, PluginDefinition } from '@navios/core';
2
2
  import type { OpenApiGeneratorOptions } from '@navios/openapi';
3
+ import type { FastifyApplicationServiceInterface } from '@navios/adapter-fastify';
3
4
  import type { FastifyOpenApiPluginOptionsBase, ScalarOptions, ScalarTheme } from './schemas/index.mjs';
4
5
  /**
5
6
  * Combined options for the Fastify OpenAPI plugin.
@@ -16,9 +17,9 @@ export interface FastifyOpenApiPluginOptions extends OpenApiGeneratorOptions, Pa
16
17
  * - Serves the document as JSON and optionally YAML
17
18
  * - Provides Scalar UI for interactive documentation
18
19
  */
19
- export declare class OpenApiFastifyPlugin implements NaviosPlugin<FastifyOpenApiPluginOptions> {
20
+ export declare class OpenApiFastifyPlugin implements NaviosPlugin<FastifyOpenApiPluginOptions, FastifyApplicationServiceInterface> {
20
21
  readonly name = "openapi-fastify";
21
- register(context: PluginContext, options: FastifyOpenApiPluginOptions): Promise<void>;
22
+ register(context: PluginContext<FastifyApplicationServiceInterface>, options: FastifyOpenApiPluginOptions): Promise<void>;
22
23
  /**
23
24
  * Generates the Scalar API Reference HTML document.
24
25
  *
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-fastify.plugin.d.mts","sourceRoot":"","sources":["../../src/openapi-fastify.plugin.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,gBAAgB,EACjB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAQ9D,OAAO,KAAK,EACV,+BAA+B,EAC/B,aAAa,EACb,WAAW,EACZ,MAAM,qBAAqB,CAAA;AAK5B;;;GAGG;AACH,MAAM,WAAW,2BACf,SAAQ,uBAAuB,EAAE,OAAO,CAAC,+BAA+B,CAAC;CAAG;AAE9E;;;;;;;;GAQG;AACH,q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