@contract-case/case-connector 0.19.1 → 0.20.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 +42 -0
- package/dist/package.json +6 -6
- package/dist/src/connectors/case-boundary/internals/boundary/config.types.d.ts +6 -2
- package/dist/src/connectors/case-boundary/internals/boundary/config.types.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -42
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -42
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package/case-connector.js +2 -2
- package/package/case-connector.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.20.0](https://github.com/case-contract-testing/contract-case/compare/@contract-case/case-connector-v0.19.2...@contract-case/case-connector-v0.20.0) (2025-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **core:** Contracts are now hashed to create the filename. This is a breaking change, because the default contractDir now stores contracts in subdirs (by provider name) and allows overwriting the contract file. This improves monorepo support. See the configuration documentation for details.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **core:** Contracts are now hashed to create the filename. This is a breaking change, because the default contractDir now stores contracts in subdirs (by provider name) and allows overwriting the contract file. This improves monorepo support. See the configuration documentation for details. ([b2a078d](https://github.com/case-contract-testing/contract-case/commit/b2a078d18631c15caf27706a672c49d040a47790))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* The following workspace dependencies were updated
|
|
18
|
+
* dependencies
|
|
19
|
+
* @contract-case/case-core bumped from 0.19.2 to 0.20.0
|
|
20
|
+
* @contract-case/case-connector-proto bumped from 0.19.2 to 0.20.0
|
|
21
|
+
* @contract-case/case-entities-internal bumped from 0.19.2 to 0.20.0
|
|
22
|
+
* devDependencies
|
|
23
|
+
* @contract-case/case-maintainer-config bumped from 0.19.2 to 0.20.0
|
|
24
|
+
* @contract-case/eslint-config-case-maintainer bumped from 0.19.2 to 0.20.0
|
|
25
|
+
|
|
26
|
+
## [0.19.2](https://github.com/case-contract-testing/contract-case/compare/@contract-case/case-connector-v0.19.1...@contract-case/case-connector-v0.19.2) (2025-03-19)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Miscellaneous Chores
|
|
30
|
+
|
|
31
|
+
* **@contract-case/case-connector:** Synchronize ContractCase versions
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Dependencies
|
|
35
|
+
|
|
36
|
+
* The following workspace dependencies were updated
|
|
37
|
+
* dependencies
|
|
38
|
+
* @contract-case/case-core bumped from 0.19.1 to 0.19.2
|
|
39
|
+
* @contract-case/case-connector-proto bumped from 0.19.1 to 0.19.2
|
|
40
|
+
* @contract-case/case-entities-internal bumped from 0.19.1 to 0.19.2
|
|
41
|
+
* devDependencies
|
|
42
|
+
* @contract-case/case-maintainer-config bumped from 0.19.1 to 0.19.2
|
|
43
|
+
* @contract-case/eslint-config-case-maintainer bumped from 0.19.1 to 0.19.2
|
|
44
|
+
|
|
3
45
|
## [0.19.1](https://github.com/case-contract-testing/contract-case/compare/@contract-case/case-connector-v0.19.0...@contract-case/case-connector-v0.19.1) (2025-03-18)
|
|
4
46
|
|
|
5
47
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contract-case/case-connector",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Connector to allow ContractCase to run as a server. Use only if you're creating a custom wrapper for a new language",
|
|
6
6
|
"author": "Timothy Jones <timothy.l.jones@gmail.com> (https://github.com/TimothyJones)",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"url": "https://github.com/case-contract-testing/case/issues"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@contract-case/case-maintainer-config": "0.
|
|
37
|
-
"@contract-case/eslint-config-case-maintainer": "0.
|
|
36
|
+
"@contract-case/case-maintainer-config": "0.20.0",
|
|
37
|
+
"@contract-case/eslint-config-case-maintainer": "0.20.0",
|
|
38
38
|
"@types/google-protobuf": "^3.15.12",
|
|
39
39
|
"@types/jest": "^29.5.12",
|
|
40
40
|
"@types/uuid": "^10.0.0",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"webpack-cli": "^6.0.1"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@contract-case/case-core": "0.
|
|
54
|
-
"@contract-case/case-connector-proto": "0.
|
|
55
|
-
"@contract-case/case-entities-internal": "0.
|
|
53
|
+
"@contract-case/case-core": "0.20.0",
|
|
54
|
+
"@contract-case/case-connector-proto": "0.20.0",
|
|
55
|
+
"@contract-case/case-entities-internal": "0.20.0",
|
|
56
56
|
"@grpc/grpc-js": "^1.12.6",
|
|
57
57
|
"@grpc/proto-loader": "^0.7.10",
|
|
58
58
|
"get-port": "^7.1.0",
|
|
@@ -51,8 +51,12 @@ export interface ContractCaseBoundaryConfig {
|
|
|
51
51
|
readonly logLevel?: string;
|
|
52
52
|
/**
|
|
53
53
|
* The directory where the contract will be written. If you provide this, ContractCase
|
|
54
|
-
* will
|
|
55
|
-
*
|
|
54
|
+
* will store contracts in subdirectories for each provider, and the
|
|
55
|
+
* filename is automatically generated from the consumer name and a hash of the contract contents:
|
|
56
|
+
*
|
|
57
|
+
* `${consumerName}-${hashOfContract}.case.json`.
|
|
58
|
+
*
|
|
59
|
+
* Note: if `contractFilename` is specified, this setting is ignored.
|
|
56
60
|
*/
|
|
57
61
|
readonly contractDir?: string;
|
|
58
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/config.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B
|
|
1
|
+
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/config.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;OAQG;IACH,QAAQ,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|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Begin define
|
|
3
|
-
* - Begin define
|
|
4
|
-
* - Config
|
|
5
|
-
* - Statehandlers need to be callbacks
|
|
6
|
-
* - triggerAndTest needs to be a callback
|
|
7
|
-
* - LogPrinter is a callback
|
|
8
|
-
* - resultPrinter is a callback
|
|
9
|
-
* - Parent Versions
|
|
10
|
-
* - Returns ID
|
|
11
|
-
* - runInteraction
|
|
12
|
-
* Define ID
|
|
13
|
-
* json definition
|
|
14
|
-
* and config
|
|
15
|
-
* - runRejectingInteraction
|
|
16
|
-
* Define ID
|
|
17
|
-
* json definition
|
|
18
|
-
* and config
|
|
19
|
-
* - endRecord
|
|
20
|
-
* Define ID
|
|
21
|
-
* invalidates ID
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Verify
|
|
25
|
-
* - Begin Verify
|
|
26
|
-
* - Config
|
|
27
|
-
* - Statehandlers need to be callbacks
|
|
28
|
-
* - triggerAndTest needs to be a callback
|
|
29
|
-
* - LogPrinter is a callback
|
|
30
|
-
* - resultPrinter is a callback
|
|
31
|
-
* - Parent Versions
|
|
32
|
-
* - Returns ID
|
|
33
|
-
*
|
|
34
|
-
* - availableContractDescriptions
|
|
35
|
-
* - Verifier ID
|
|
36
|
-
* - Returns CaseContractDescription
|
|
37
|
-
*
|
|
38
|
-
* - runVerification
|
|
39
|
-
* - Verifier ID
|
|
40
|
-
* - map config
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
1
|
export * from './connectors/case-boundary/internals/index.js';
|
|
44
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Begin define
|
|
3
|
-
* - Begin define
|
|
4
|
-
* - Config
|
|
5
|
-
* - Statehandlers need to be callbacks
|
|
6
|
-
* - triggerAndTest needs to be a callback
|
|
7
|
-
* - LogPrinter is a callback
|
|
8
|
-
* - resultPrinter is a callback
|
|
9
|
-
* - Parent Versions
|
|
10
|
-
* - Returns ID
|
|
11
|
-
* - runInteraction
|
|
12
|
-
* Define ID
|
|
13
|
-
* json definition
|
|
14
|
-
* and config
|
|
15
|
-
* - runRejectingInteraction
|
|
16
|
-
* Define ID
|
|
17
|
-
* json definition
|
|
18
|
-
* and config
|
|
19
|
-
* - endRecord
|
|
20
|
-
* Define ID
|
|
21
|
-
* invalidates ID
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Verify
|
|
25
|
-
* - Begin Verify
|
|
26
|
-
* - Config
|
|
27
|
-
* - Statehandlers need to be callbacks
|
|
28
|
-
* - triggerAndTest needs to be a callback
|
|
29
|
-
* - LogPrinter is a callback
|
|
30
|
-
* - resultPrinter is a callback
|
|
31
|
-
* - Parent Versions
|
|
32
|
-
* - Returns ID
|
|
33
|
-
*
|
|
34
|
-
* - availableContractDescriptions
|
|
35
|
-
* - Verifier ID
|
|
36
|
-
* - Returns CaseContractDescription
|
|
37
|
-
*
|
|
38
|
-
* - runVerification
|
|
39
|
-
* - Verifier ID
|
|
40
|
-
* - map config
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
1
|
export * from './connectors/case-boundary/internals/index.js';
|
|
44
2
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
|