@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 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/di'
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/di'
310
+ import { Container } from '@navios/core'
311
311
 
312
312
  const container = new Container()
313
313
  container.beginRequest('request-id')