@navios/adapter-xml 0.9.0 → 1.0.0-alpha.3
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 +34 -0
- package/README.md +2 -2
- package/bunPlugin.cache +1 -1
- package/dist/src/__tests__/xml-stream-adapter.service.spec.d.mts +2 -0
- package/dist/src/__tests__/xml-stream-adapter.service.spec.d.mts.map +1 -0
- package/dist/src/adapters/xml-stream-adapter.service.d.mts +12 -2
- package/dist/src/adapters/xml-stream-adapter.service.d.mts.map +1 -1
- package/dist/src/decorators/xml-stream.decorator.d.mts +26 -70
- package/dist/src/decorators/xml-stream.decorator.d.mts.map +1 -1
- package/dist/src/handlers/xml-stream.d.mts +3 -5
- package/dist/src/handlers/xml-stream.d.mts.map +1 -1
- package/dist/src/types/config.d.mts +9 -5
- package/dist/src/types/config.d.mts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/tsconfig.spec.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lib/index.cjs +27 -115
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +47 -79
- package/lib/index.d.cts.map +1 -1
- package/lib/index.d.mts +46 -78
- package/lib/index.d.mts.map +1 -1
- package/lib/index.mjs +27 -115
- package/lib/index.mjs.map +1 -1
- package/package.json +7 -9
- package/src/__tests__/xml-stream-adapter.service.spec.mts +458 -0
- package/src/adapters/xml-stream-adapter.service.mts +25 -77
- package/src/decorators/xml-stream.decorator.mts +92 -101
- package/src/handlers/xml-stream.mts +18 -11
- package/src/types/config.mts +19 -10
- package/tsconfig.json +0 -3
- package/tsconfig.spec.json +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ 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.3] - 2026-01-08
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Comprehensive Test Suite**: Added unit tests for XML stream adapter
|
|
13
|
+
- `xml-stream-adapter.service.spec.mts` - XML stream adapter tests
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated to support `@navios/core` ^1.0.0-alpha.3
|
|
18
|
+
|
|
19
|
+
## [1.0.0-alpha.2] - 2026-01-07
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **Simplified XmlStreamParams Type**: Refactored `XmlStreamParams<T>` type to use new `RequestArgs` and `Simplify` types from `@navios/builder`
|
|
24
|
+
- Cleaner type inference with support for `urlParamsSchema`
|
|
25
|
+
- Server-side handlers receive `z.output` types (parsed/transformed values)
|
|
26
|
+
- **Updated XmlStream Decorator**: Completely refactored to use `BaseEndpointOptions` from `@navios/builder`
|
|
27
|
+
- Multiple overloads for handlers with/without parameters and reply object
|
|
28
|
+
- Better type inference for endpoint parameters
|
|
29
|
+
- Improved JSDoc documentation
|
|
30
|
+
- **Updated declareXmlStream Function**: Now uses `StreamHandler` type from `@navios/builder`
|
|
31
|
+
- Returns properly typed handler with config attached
|
|
32
|
+
- Better integration with endpoint declaration patterns
|
|
33
|
+
- **New XmlStreamConfig Interface**: Separated config types for better type composition
|
|
34
|
+
- `XmlStreamConfig` extends `BaseEndpointOptions` with XML-specific options
|
|
35
|
+
- `BaseXmlStreamConfig` for backward compatibility with explicit type parameters
|
|
36
|
+
|
|
37
|
+
### Dependencies
|
|
38
|
+
|
|
39
|
+
- Updated to support `@navios/core` ^1.0.0-alpha.2
|
|
40
|
+
- Updated to support `@navios/builder` ^1.0.0-alpha.2
|
|
41
|
+
|
|
8
42
|
## [0.9.0] - 2025-12-23
|
|
9
43
|
|
|
10
44
|
### Dependencies
|
package/README.md
CHANGED
|
@@ -231,7 +231,7 @@ Class components use the `@Component` decorator and implement the `XmlComponent`
|
|
|
231
231
|
|
|
232
232
|
```tsx
|
|
233
233
|
import { Component, XmlComponent } from '@navios/adapter-xml'
|
|
234
|
-
import { inject, Injectable } from '@navios/
|
|
234
|
+
import { inject, Injectable } from '@navios/core'
|
|
235
235
|
|
|
236
236
|
// Define a service
|
|
237
237
|
@Injectable()
|
|
@@ -307,7 +307,7 @@ When using class components, pass a DI container to `renderToXml`:
|
|
|
307
307
|
|
|
308
308
|
```tsx
|
|
309
309
|
import { renderToXml } from '@navios/adapter-xml'
|
|
310
|
-
import { Container } from '@navios/
|
|
310
|
+
import { Container } from '@navios/core'
|
|
311
311
|
|
|
312
312
|
const container = new Container()
|
|
313
313
|
container.beginRequest('request-id')
|