@navios/openapi-fastify 0.9.0 → 1.0.0-alpha.4

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,32 @@ 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-alpha.4] - 2026-01-09
9
+
10
+ ### Changed
11
+
12
+ - **Plugin Type Parameter**: `OpenApiFastifyPlugin` now includes adapter type parameter
13
+ - Implements `NaviosPlugin<FastifyOpenApiPluginOptions, FastifyApplicationServiceInterface>`
14
+ - Plugin context typed for Fastify adapter access
15
+ - **Plugin Context API**: Updated to use new `PluginContext<TAdapter>` pattern
16
+ - Uses `context.adapter.getServer()` instead of casting `context.server`
17
+ - Uses `context.adapter.getGlobalPrefix()` instead of `context.globalPrefix`
18
+ - **Route Handler Types**: Added explicit `FastifyRequest` and `FastifyReply` type annotations
19
+
20
+ ### Dependencies
21
+
22
+ - Updated to support `@navios/core` ^1.0.0-alpha.4
23
+ - Updated to support `@navios/adapter-fastify` ^1.0.0-alpha.4
24
+ - Updated to support `@navios/openapi` ^1.0.0-alpha.4
25
+
26
+ ## [1.0.0-alpha.2] - 2026-01-07
27
+
28
+ ### Dependencies
29
+
30
+ - Updated to support `@navios/core` ^1.0.0-alpha.2
31
+ - Updated to support `@navios/adapter-fastify` ^1.0.0-alpha.2
32
+ - Updated to support `@navios/openapi` ^1.0.0-alpha.2
33
+
8
34
  ## [0.9.0] - 2025-12-23
9
35
 
10
36
  ### Dependencies
@@ -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,qBAAa,oBAAqB,YAAW,YAAY,CAAC,2BAA2B,CAAC;IACpF,QAAQ,CAAC,IAAI,qBAAoB;IAE3B,QAAQ,CACZ,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC;IAiDhB;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;CAa3B;AAED;;;;;;;;;;;;;;;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