@pact-foundation/pact 7.3.0 → 8.0.2

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/CONTRIBUTING.md +22 -9
  3. package/LICENSE +1 -2
  4. package/README.md +253 -157
  5. package/common/logger.js +10 -5
  6. package/common/logger.js.map +1 -1
  7. package/common/metadata.js.map +1 -1
  8. package/common/net.js +3 -2
  9. package/common/net.js.map +1 -1
  10. package/common/net.spec.d.ts +1 -0
  11. package/common/net.spec.js +47 -0
  12. package/common/net.spec.js.map +1 -0
  13. package/common/request.js +1 -2
  14. package/common/request.js.map +1 -1
  15. package/common/request.spec.d.ts +1 -0
  16. package/common/request.spec.js +71 -0
  17. package/common/request.spec.js.map +1 -0
  18. package/common/utils.js +1 -2
  19. package/common/utils.js.map +1 -1
  20. package/dsl/apolloGraphql.d.ts +1 -1
  21. package/dsl/apolloGraphql.js +6 -3
  22. package/dsl/apolloGraphql.js.map +1 -1
  23. package/dsl/apolloGraphql.spec.d.ts +1 -0
  24. package/dsl/apolloGraphql.spec.js +47 -0
  25. package/dsl/apolloGraphql.spec.js.map +1 -0
  26. package/dsl/graphql.js +19 -9
  27. package/dsl/graphql.js.map +1 -1
  28. package/dsl/graphql.spec.d.ts +1 -0
  29. package/dsl/graphql.spec.js +141 -0
  30. package/dsl/graphql.spec.js.map +1 -0
  31. package/dsl/interaction.js +9 -7
  32. package/dsl/interaction.js.map +1 -1
  33. package/dsl/interaction.spec.d.ts +1 -0
  34. package/dsl/interaction.spec.js +172 -0
  35. package/dsl/interaction.spec.js.map +1 -0
  36. package/dsl/matchers.d.ts +25 -25
  37. package/dsl/matchers.js +57 -55
  38. package/dsl/matchers.js.map +1 -1
  39. package/dsl/matchers.spec.d.ts +1 -0
  40. package/dsl/matchers.spec.js +537 -0
  41. package/dsl/matchers.spec.js.map +1 -0
  42. package/dsl/message.d.ts +29 -3
  43. package/dsl/mockService.d.ts +6 -0
  44. package/dsl/mockService.js +10 -4
  45. package/dsl/mockService.js.map +1 -1
  46. package/dsl/mockService.spec.d.ts +1 -0
  47. package/dsl/mockService.spec.js +126 -0
  48. package/dsl/mockService.spec.js.map +1 -0
  49. package/dsl/verifier.d.ts +48 -2
  50. package/dsl/verifier.js +142 -3
  51. package/dsl/verifier.js.map +1 -1
  52. package/dsl/verifier.spec.d.ts +1 -0
  53. package/dsl/verifier.spec.js +299 -0
  54. package/dsl/verifier.spec.js.map +1 -0
  55. package/errors/configurationError.d.ts +2 -0
  56. package/errors/configurationError.js +24 -0
  57. package/errors/configurationError.js.map +1 -0
  58. package/errors/graphQLQueryError.d.ts +2 -0
  59. package/errors/graphQLQueryError.js +24 -0
  60. package/errors/graphQLQueryError.js.map +1 -0
  61. package/errors/matcherError.d.ts +2 -0
  62. package/errors/matcherError.js +24 -0
  63. package/errors/matcherError.js.map +1 -0
  64. package/errors/verificationError.d.ts +2 -0
  65. package/errors/verificationError.js +24 -0
  66. package/errors/verificationError.js.map +1 -0
  67. package/httpPact.d.ts +69 -0
  68. package/httpPact.js +206 -0
  69. package/httpPact.js.map +1 -0
  70. package/httpPact.spec.d.ts +1 -0
  71. package/httpPact.spec.js +337 -0
  72. package/httpPact.spec.js.map +1 -0
  73. package/messageConsumerPact.d.ts +3 -3
  74. package/messageConsumerPact.js +5 -4
  75. package/messageConsumerPact.js.map +1 -1
  76. package/messageConsumerPact.spec.d.ts +1 -0
  77. package/messageConsumerPact.spec.js +161 -0
  78. package/messageConsumerPact.spec.js.map +1 -0
  79. package/messageProviderPact.d.ts +0 -1
  80. package/messageProviderPact.js +11 -11
  81. package/messageProviderPact.js.map +1 -1
  82. package/messageProviderPact.spec.d.ts +1 -0
  83. package/messageProviderPact.spec.js +146 -0
  84. package/messageProviderPact.spec.js.map +1 -0
  85. package/package.json +24 -26
  86. package/pact-web.d.ts +2 -2
  87. package/pact-web.js +20 -10
  88. package/pact-web.js.map +1 -1
  89. package/pact-web.spec.d.ts +1 -0
  90. package/pact-web.spec.js +205 -0
  91. package/pact-web.spec.js.map +1 -0
  92. package/pact.d.ts +28 -65
  93. package/pact.integration.spec.d.ts +0 -0
  94. package/pact.integration.spec.js +292 -0
  95. package/pact.integration.spec.js.map +1 -0
  96. package/pact.js +21 -189
  97. package/pact.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,50 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ <a name="8.0.2"></a>
6
+ ## [8.0.2](https://github.com/pact-foundation/pact-js/compare/v8.0.1...v8.0.2) (2019-02-23)
7
+
8
+
9
+
10
+ <a name="8.0.1"></a>
11
+ ## [8.0.1](https://github.com/pact-foundation/pact-js/compare/v8.0.0...v8.0.1) (2019-02-23)
12
+
13
+
14
+
15
+ <a name="8.0.0"></a>
16
+ # [8.0.0](https://github.com/pact-foundation/pact-js/compare/v7.4.0...v8.0.0) (2019-02-23)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **npm:** npm lock got out of sync ([a9bed4f](https://github.com/pact-foundation/pact-js/commit/a9bed4f))
22
+ * rename error classes to lowercase ([16b7686](https://github.com/pact-foundation/pact-js/commit/16b7686))
23
+
24
+
25
+ ### Features
26
+
27
+ * **dynamic-proxy:** working dynamic proxy code with tests ([d8e2eec](https://github.com/pact-foundation/pact-js/commit/d8e2eec))
28
+ * **proxy:** add docs and e2e examples of filters and stateHandlers ([5561980](https://github.com/pact-foundation/pact-js/commit/5561980))
29
+ * **proxy:** cleanup verifier interface ([63a661b](https://github.com/pact-foundation/pact-js/commit/63a661b))
30
+
31
+
32
+
33
+ <a name="7.4.0"></a>
34
+ # [7.4.0](https://github.com/pact-foundation/pact-js/compare/v7.3.0...v7.4.0) (2019-02-22)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * **matchers:** remove hardcoded true value from a boolean matcher ([499c02c](https://github.com/pact-foundation/pact-js/commit/499c02c))
40
+ * **portcheck:** feedback from PR 266#discussion_r255314895 ([c583224](https://github.com/pact-foundation/pact-js/commit/c583224)), closes [266#discussion_r255314895](https://github.com/266/issues/discussion_r255314895)
41
+
42
+
43
+ ### Features
44
+
45
+ * pact-web provider.addInteraction to allow Interaction instance [[#270](https://github.com/pact-foundation/pact-js/issues/270)] ([0814d68](https://github.com/pact-foundation/pact-js/commit/0814d68))
46
+
47
+
48
+
5
49
  <a name="7.3.0"></a>
6
50
  # [7.3.0](https://github.com/pact-foundation/pact-js/compare/v7.2.0...v7.3.0) (2019-02-09)
7
51
 
package/CONTRIBUTING.md CHANGED
@@ -7,14 +7,20 @@ There may also be an answer to your question on [stackoverflow].
7
7
 
8
8
  Please provide the following information with your issue to enable us to respond as quickly as possible.
9
9
 
10
- * The relevant versions of the packages you are using.
11
- * The steps to recreate your issue.
12
- * An executable code example where possible. You can fork this repository and use one of the [examples] to quickly recreate your issue.
10
+ - The relevant versions of the packages you are using.
11
+ - The steps to recreate your issue.
12
+ - An executable code example where possible. You can fork this repository and use one of the [examples] to quickly recreate your issue.
13
13
 
14
- ### Commit messages
14
+ ## Contributing features
15
+
16
+ Hey, that's awesome you want to help! If you're not sure where to start, look for the [help wanted](https://github.com/pact-foundation/pact-js/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
17
+ label in our issue tracker. If you have an idea that you think would be great, come and chat to us on [slack] in the `#pact-js` channel.
18
+
19
+ ## Commit messages
15
20
 
16
21
  Pact JS uses the [Conventional Changelog](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md)
17
- commit message conventions. Please ensure you follow the guidelines.
22
+ commit message conventions. Please ensure you follow the guidelines, we don't want to _that person_, but the commit messages
23
+ are very important to the automation of our release process.
18
24
 
19
25
  Take a look at the git history (`git log`) to get the gist of it.
20
26
 
@@ -27,12 +33,19 @@ npm i -g cz-conventional-changelog
27
33
 
28
34
  `git cz` to commit and commitizen will guide you.
29
35
 
36
+ ## Code style and formatting
37
+
38
+ We use [Prettier](https://prettier.io/) for formatting, and for linting we use [TSLint](https://palantir.github.io/tslint/) (for TypeScript).
39
+
40
+ Please update your editor to enable Prettier, and things should be easy 👌. If not, our lint step will catch it.
41
+
30
42
  ## Pull requests
31
43
 
32
- * Write tests for any changes
33
- * Follow existing code style and conventions
34
- * Separate unrelated changes into multiple pull requests
35
- * For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change
44
+ - Write tests for any changes
45
+ - Follow existing code style and conventions
46
+ - Separate unrelated changes into multiple pull requests
47
+ - For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change
36
48
 
37
49
  [stackoverflow]: https://stackoverflow.com/questions/tagged/pact
38
50
  [examples]: https://github.com/pact-foundation/pact-js/tree/master/examples
51
+ [slack]: https://slack.pact.io
package/LICENSE CHANGED
@@ -1,7 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Original work Copyright (c) 2014 ThoughtWorks
4
- Modified work Copyright (c) 2014 DiUS
3
+ Original work Copyright (c) 2014 DiUS
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
6
  of this software and associated documentation files (the "Software"), to deal