@navios/openapi-bun 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 +25 -0
- package/dist/src/openapi-bun.plugin.d.mts +3 -2
- package/dist/src/openapi-bun.plugin.d.mts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lib/index.cjs +3 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +3 -2
- package/lib/index.d.cts.map +1 -1
- package/lib/index.d.mts +3 -2
- package/lib/index.d.mts.map +1 -1
- package/lib/index.mjs +3 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/openapi-bun.plugin.mts +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,31 @@ 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**: `OpenApiBunPlugin` now includes adapter type parameter
|
|
13
|
+
- Implements `NaviosPlugin<BunOpenApiPluginOptions, BunApplicationServiceInterface>`
|
|
14
|
+
- Plugin context typed for Bun adapter access
|
|
15
|
+
- **Plugin Context API**: Updated to use new `PluginContext<TAdapter>` pattern
|
|
16
|
+
- Uses `context.adapter.getGlobalPrefix()` instead of `context.globalPrefix`
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated to support `@navios/core` ^1.0.0-alpha.4
|
|
21
|
+
- Updated to support `@navios/adapter-bun` ^1.0.0-alpha.4
|
|
22
|
+
- Updated to support `@navios/openapi` ^1.0.0-alpha.4
|
|
23
|
+
|
|
24
|
+
## [1.0.0-alpha.2] - 2026-01-07
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
- Updated to support `@navios/core` ^1.0.0-alpha.2
|
|
29
|
+
- Updated to support `@navios/builder` ^1.0.0-alpha.2
|
|
30
|
+
- Updated to support `@navios/adapter-bun` ^1.0.0-alpha.2
|
|
31
|
+
- Updated to support `@navios/openapi` ^1.0.0-alpha.2
|
|
32
|
+
|
|
8
33
|
## [0.9.0] - 2025-12-23
|
|
9
34
|
|
|
10
35
|
### Dependencies
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NaviosPlugin, PluginContext, PluginDefinition } from '@navios/core';
|
|
2
|
+
import type { BunApplicationServiceInterface } from '@navios/adapter-bun';
|
|
2
3
|
import type { ScalarOptions, ScalarTheme } from './schemas/index.mjs';
|
|
3
4
|
import type { BunOpenApiPluginOptions } from './tokens/openapi-options.token.mjs';
|
|
4
5
|
/**
|
|
@@ -13,9 +14,9 @@ import type { BunOpenApiPluginOptions } from './tokens/openapi-options.token.mjs
|
|
|
13
14
|
* this plugin uses the standard Navios controller pattern via
|
|
14
15
|
* ModuleLoaderService.extendModules().
|
|
15
16
|
*/
|
|
16
|
-
export declare class OpenApiBunPlugin implements NaviosPlugin<BunOpenApiPluginOptions> {
|
|
17
|
+
export declare class OpenApiBunPlugin implements NaviosPlugin<BunOpenApiPluginOptions, BunApplicationServiceInterface> {
|
|
17
18
|
readonly name = "openapi-bun";
|
|
18
|
-
register(context: PluginContext
|
|
19
|
+
register(context: PluginContext<BunApplicationServiceInterface>, options: BunOpenApiPluginOptions): Promise<void>;
|
|
19
20
|
/**
|
|
20
21
|
* Registers the plugin options in the DI container.
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-bun.plugin.d.mts","sourceRoot":"","sources":["../../src/openapi-bun.plugin.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ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