@mcp-abap-adt/interfaces 0.1.3 → 0.1.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
|
@@ -7,6 +7,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.4] - 2025-12-08
|
|
11
|
+
|
|
12
|
+
### Breaking Changes
|
|
13
|
+
|
|
14
|
+
- **Session State Methods Removed from IAbapConnection**: Removed session state management methods from connection interface
|
|
15
|
+
- `getSessionState()` method removed from `IAbapConnection`
|
|
16
|
+
- `setSessionState()` method removed from `IAbapConnection`
|
|
17
|
+
- Session state management is no longer a responsibility of connection package
|
|
18
|
+
- Connection package now focuses solely on HTTP communication
|
|
19
|
+
- Session state persistence should be handled by higher-level packages (e.g., auth-broker)
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **Connection Package Scope**: Updated `IAbapConnection` interface to reflect connection package responsibilities
|
|
24
|
+
- Connection package handles only HTTP communication and session headers
|
|
25
|
+
- Token refresh is not a responsibility of connection package - handled by `@mcp-abap-adt/auth-broker` package
|
|
26
|
+
- Session state persistence is not part of connection package scope
|
|
27
|
+
|
|
28
|
+
### Migration Guide
|
|
29
|
+
|
|
30
|
+
If you were using session state methods:
|
|
31
|
+
|
|
32
|
+
**Before (0.1.x)**:
|
|
33
|
+
```typescript
|
|
34
|
+
const state = connection.getSessionState();
|
|
35
|
+
connection.setSessionState(state);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**After (0.1.4)**:
|
|
39
|
+
```typescript
|
|
40
|
+
// Session state management is now handled by auth-broker or other higher-level packages
|
|
41
|
+
// Connection package only handles HTTP communication
|
|
42
|
+
```
|
|
43
|
+
|
|
10
44
|
## [0.1.3] - 2025-12-07
|
|
11
45
|
|
|
12
46
|
### Added
|
package/README.md
CHANGED
|
@@ -95,6 +95,9 @@ This package is responsible for:
|
|
|
95
95
|
|
|
96
96
|
### Connection Domain (`connection/`)
|
|
97
97
|
- `IAbapConnection` - Main connection interface for ADT operations
|
|
98
|
+
- Handles HTTP communication with SAP systems
|
|
99
|
+
- Manages session headers (stateful/stateless mode via `setSessionType()`)
|
|
100
|
+
- Note: Token refresh and session state persistence are handled by other packages (e.g., auth-broker)
|
|
98
101
|
- `IAbapRequestOptions` - Request options for ADT operations
|
|
99
102
|
|
|
100
103
|
### SAP Domain (`sap/`)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ISapConfig } from '../sap/ISapConfig';
|
|
2
|
-
import type { ISessionState } from '../storage/ISessionState';
|
|
3
2
|
import type { IAbapRequestOptions } from './IAbapRequestOptions';
|
|
4
3
|
/**
|
|
5
4
|
* Axios response type - using any to avoid dependency on axios package
|
|
@@ -15,7 +14,5 @@ export interface IAbapConnection {
|
|
|
15
14
|
makeAdtRequest(options: IAbapRequestOptions): Promise<AxiosResponse>;
|
|
16
15
|
connect(): Promise<void>;
|
|
17
16
|
reset(): void;
|
|
18
|
-
getSessionState(): ISessionState | null;
|
|
19
|
-
setSessionState(state: ISessionState): void;
|
|
20
17
|
}
|
|
21
18
|
//# sourceMappingURL=IAbapConnection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC;AAEhC,MAAM,WAAW,eAAe;IAC9B,SAAS,IAAI,UAAU,CAAC;IACxB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,YAAY,IAAI,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IACrD,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACrE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,KAAK,IAAI,IAAI,CAAC;CACf"}
|