@navios/openapi-bun 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 +25 -1
- 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] - 2026-01-09
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Stable Release**: First stable release of @navios/openapi-bun
|
|
13
|
+
- Production-ready OpenAPI integration for Bun 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**: `OpenApiBunPlugin` now includes adapter type parameter
|
|
22
|
+
- Implements `NaviosPlugin<BunOpenApiPluginOptions, BunApplicationServiceInterface>`
|
|
23
|
+
- Plugin context typed for Bun adapter access
|
|
24
|
+
- **Plugin Context API**: Updated to use new `PluginContext<TAdapter>` pattern
|
|
25
|
+
- Uses `context.adapter.getGlobalPrefix()` instead of `context.globalPrefix`
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
- Updated to support `@navios/core` ^1.0.0-alpha.4
|
|
30
|
+
- Updated to support `@navios/adapter-bun` ^1.0.0-alpha.4
|
|
31
|
+
- Updated to support `@navios/openapi` ^1.0.0-alpha.4
|
|
32
|
+
|
|
8
33
|
## [1.0.0-alpha.2] - 2026-01-07
|
|
9
34
|
|
|
10
35
|
### Dependencies
|
|
@@ -55,4 +80,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
55
80
|
- `@ApiTag`, `@ApiOperation`, `@ApiSummary`, `@ApiDeprecated`, `@ApiSecurity`, `@ApiExclude`, `@ApiStream`
|
|
56
81
|
- **Endpoint Type Support**: Support for all endpoint types (standard, multipart, stream)
|
|
57
82
|
- **Zod Schema Support**: Automatic conversion of Zod schemas to OpenAPI schemas
|
|
58
|
-
|
|
@@ -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,aAAa,EACb,gBAAgB,EACjB,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AASjF;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,YAAW,YAAY,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"openapi-bun.plugin.d.mts","sourceRoot":"","sources":["../../src/openapi-bun.plugin.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,aAAa,EACb,gBAAgB,EACjB,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAA;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AASjF;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,YAAW,YAAY,CAAC,uBAAuB,EAAE,8BAA8B,CAAC;IAC5G,QAAQ,CAAC,IAAI,iBAAgB;IAEvB,QAAQ,CACZ,OAAO,EAAE,aAAa,CAAC,8BAA8B,CAAC,EACtD,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC;IAyBhB;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;OAEG;YACW,yBAAyB;IAYvC;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAqB1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC,uBAAuB,CAAC,CAK3C;AAGD,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAA"}
|