@btps/sdk 1.1.0 → 1.1.1
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 +22 -0
- package/dist/client/btpsTransporter.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/package.json +2 -2
- package/dist/client/libs/schema.d.ts +0 -27604
- package/dist/core/server/schemas/artifacts/agentSchema.d.ts +0 -4565
- package/dist/core/server/schemas/artifacts/artifacts.d.ts +0 -4920
- package/dist/core/server/schemas/artifacts/controlSchema.d.ts +0 -23
- package/dist/core/server/schemas/artifacts/identityLookupSchema.d.ts +0 -32
- package/dist/core/server/schemas/artifacts/transporterSchema.d.ts +0 -553
- package/dist/core/server/schemas/helpers.d.ts +0 -1612
- package/dist/core/server/schemas/responseSchema.d.ts +0 -6918
- package/dist/core/server/schemas/schema.d.ts +0 -4916
- package/dist/core/server/schemas/shared.d.ts +0 -21
- package/dist/core/utils/validation.d.ts +0 -14
- package/dist/server/libs/middlewareManager.d.ts +0 -59
- /package/dist/client/{constants.ts → constants}/index.d.ts +0 -0
- /package/dist/client/{constants.ts → constants}/index.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ All notable changes to `@btps/sdk` and the BTPS protocol it implements. The
|
|
|
4
4
|
format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
5
5
|
versions follow [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.1.1] — 2026-10-19 (alpha)
|
|
8
|
+
|
|
9
|
+
A patch release: the protocol and the API are unchanged.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **The package is about 3.8 MB smaller.** It no longer ships type
|
|
14
|
+
declarations that no entry point can reach: the exports map lets a project
|
|
15
|
+
import only the entry points, so those files were never read. The
|
|
16
|
+
declarations every entry point needs are all still included, and CI now
|
|
17
|
+
type-checks each entry point against the packed package.
|
|
18
|
+
|
|
19
|
+
### Corrected
|
|
20
|
+
|
|
21
|
+
- The 1.1.0 notes said every trust refusal reads `BTP_ERROR_TRUST_NOT_ALLOWED`.
|
|
22
|
+
Two stay distinct on the wire: an expired trust reads
|
|
23
|
+
`BTP_ERROR_TRUST_EXPIRED`, and an artifact sent without the encryption the
|
|
24
|
+
trust requires reads `BTP_ERROR_PRIVACY_TYPE`. Every other refusal, including
|
|
25
|
+
a trust that was never made, is pending, rejected, revoked or blocked, reads
|
|
26
|
+
`BTP_ERROR_TRUST_NOT_ALLOWED`.
|
|
27
|
+
|
|
7
28
|
## [1.1.0] — 2026-10-18 (alpha)
|
|
8
29
|
|
|
9
30
|
BTPS 1.1 is the alpha release of the protocol: 1.2 is planned as the beta and
|
|
@@ -146,4 +167,5 @@ of an exchange must upgrade together.
|
|
|
146
167
|
- The default middleware counts an identity's rate limit after signature
|
|
147
168
|
verification. Rate limiting is off unless a provider enables it.
|
|
148
169
|
|
|
170
|
+
[1.1.1]: https://github.com/openbtps/btps-node/releases/tag/v1.1.1
|
|
149
171
|
[1.1.0]: https://github.com/openbtps/btps-node/releases/tag/v1.1.0
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
BTP_TRANSPORTER_DEFAULT_MAX_CONNECTIONS,
|
|
15
15
|
BTP_TRANSPORTER_ERROR_CONNECTION_ALREADY_EXISTS,
|
|
16
16
|
BTP_TRANSPORTER_ERROR_MAX_CONNECTIONS_REACHED
|
|
17
|
-
} from "./constants
|
|
17
|
+
} from "./constants/index.js";
|
|
18
18
|
import { BtpTransporterArtifactSchema } from "../core/server/schemas/artifacts/transporterSchema.js";
|
|
19
19
|
import { validate } from "../core/utils/validation.js";
|
|
20
20
|
import { EventEmitter } from "events";
|
package/dist/client/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export * from './types/index.js';
|
|
|
8
8
|
export { BtpsAgent } from './btpsAgent.js';
|
|
9
9
|
export { BtpsClient } from './btpsClient.js';
|
|
10
10
|
export { BtpsTransporter } from './btpsTransporter.js';
|
|
11
|
-
export * from './constants
|
|
11
|
+
export * from './constants/index.js';
|
|
12
12
|
export { MIN_CONNECT_TIMEOUT_MS, DEFAULT_CONNECT_TIMEOUT_MS, MIN_REPLY_TIMEOUT_MS, DEFAULT_REPLY_TIMEOUT_MS, } from './libs/timeouts.js';
|
package/dist/client/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export * from "./types/index.js";
|
|
|
9
9
|
import { BtpsAgent } from "./btpsAgent.js";
|
|
10
10
|
import { BtpsClient } from "./btpsClient.js";
|
|
11
11
|
import { BtpsTransporter } from "./btpsTransporter.js";
|
|
12
|
-
export * from "./constants
|
|
12
|
+
export * from "./constants/index.js";
|
|
13
13
|
import {
|
|
14
14
|
MIN_CONNECT_TIMEOUT_MS,
|
|
15
15
|
DEFAULT_CONNECT_TIMEOUT_MS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btps/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "The reference implementation of BTPS, the Billing Trust Protocol Secure: signed, encrypted, trust-first delivery of invoices and documents between organisations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"btps",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"clean": "rimraf dist",
|
|
75
75
|
"build:mjs": "node build/index.mjs",
|
|
76
76
|
"build:add-license": "bash scripts/add-license-header.sh",
|
|
77
|
-
"build:types": "tsc -p tsconfig.build.json && tsc-alias",
|
|
77
|
+
"build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node build/pruneTypes.mjs",
|
|
78
78
|
"build": "yarn build:add-license && yarn clean && yarn build:mjs && yarn build:types && yarn build:add-license -dir ./dist",
|
|
79
79
|
"dev": "nodemon --config nodemon.json",
|
|
80
80
|
"start": "node ./dist/server/index.js",
|