Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pact-foundation/nestjs-pact
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.1
Choose a base ref
...
head repository: pact-foundation/nestjs-pact
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
113 changes: 0 additions & 113 deletions .circleci/config.yml

This file was deleted.

31 changes: 30 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"prettier"
"prettier",
"import"
],
"parserOptions": {
"ecmaVersion": 8
@@ -57,6 +58,34 @@
"camelcase": "off",
"consistent-return": 0,
"import/prefer-default-export": 0,
"import/order": [
"error",
{
"groups": [
[
"external",
"builtin"
],
"internal",
"parent",
[
"sibling",
"index"
]
],
"newlines-between": "always",
"pathGroups": [
{
"pattern": "@pact-foundation/**",
"group": "external",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [
""
]
}
],
"lines-between-class-members": "off"
},
"env": {
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Continuous Integration
on:
pull_request:
branches:
- master
jobs:
main:
name: Build & Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: corepack enable
# Required for yarn, when run via act locally

- name: Install Dependencies
run: yarn install

- name: Lint Commit Message
run: |
echo $(git log -1 --pretty=format:"%s") | yarn commitlint
- name: Build
run: yarn build

- name: Test
run: yarn test
69 changes: 69 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Release
on:
push:
branches:
- master
jobs:
main:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'

- run: corepack enable
# Required for yarn, when run via act locally

- name: Install Dependencies
run: yarn install

- name: Lint Commit Message
run: echo $(git log -1 --pretty=format:"%s") | yarn commitlint

- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
@nestjs-pact:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=$NPM_TOKEN
FirstName LastName (omer.mroadd@gmail.com, omer.mroadd@gmail.com)=true
email=omer.mroadd@gmail.com
always-auth=true
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: yarn build

- name: Test
run: yarn test

- name: Release
uses: cycjimmy/semantic-release-action@v4
with:
dry_run: false
semantic_version: 18
branches: |
[
'master',
'next',
{
name: 'beta',
prerelease: true
},
{
name: 'alpha',
prerelease: true
},
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# compiled output
/dist
/node_modules
dist
node_modules

# Logs
logs
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,64 @@
## [2.3.4](https://github.com/omermorad/nestjs-pact/compare/v2.3.3...v2.3.4) (2025-02-17)


### Bug Fixes

* **deps:** add nestjs v11 to peer deps ([#90](https://github.com/omermorad/nestjs-pact/issues/90)) ([81755e3](https://github.com/omermorad/nestjs-pact/commit/81755e3c423bb0810e82ec86adfa83fda3c484fb)), closes [#88](https://github.com/omermorad/nestjs-pact/issues/88)

## [2.3.3](https://github.com/omermorad/nestjs-pact/compare/v2.3.2...v2.3.3) (2025-02-17)


### Bug Fixes

* **deps:** add pact-js v14 to peer deps ([#89](https://github.com/omermorad/nestjs-pact/issues/89)) ([d25365e](https://github.com/omermorad/nestjs-pact/commit/d25365e38bc872b0c991b879ead5af9f269d475f))

## [2.3.2](https://github.com/omermorad/nestjs-pact/compare/v2.3.1...v2.3.2) (2024-11-12)


### Bug Fixes

* **peer-deps:** support pact v13.x & pact-cli for publisher interface ([#84](https://github.com/omermorad/nestjs-pact/issues/84)) ([7ca2136](https://github.com/omermorad/nestjs-pact/commit/7ca21366c1c06622c3f87ede496308324ab77763))

## [2.3.1](https://github.com/omermorad/nestjs-pact/compare/v2.3.0...v2.3.1) (2023-07-10)


### Bug Fixes

* add peer dep pact-js v11 and nest-js v10 ([#47](https://github.com/omermorad/nestjs-pact/issues/47)) ([d90cc37](https://github.com/omermorad/nestjs-pact/commit/d90cc37017a4e86d9b46626bb08f50b47f2e04f3))

# [2.3.0](https://github.com/omermorad/nestjs-pact/compare/v2.2.2...v2.3.0) (2023-01-17)


### Bug Fixes

* add ; back in for index.ts (linting) ([a530c63](https://github.com/omermorad/nestjs-pact/commit/a530c639e5aeb982b6c110154ba5a3a331f43f18))
* add small comment to explain the try/catch for verifier ([bb2a606](https://github.com/omermorad/nestjs-pact/commit/bb2a606dcaa6cbefc40eb340fe23fec6f4838025))
* import/order linting rule, peerDepencency version for @pact-foundation/pact ([da05e65](https://github.com/omermorad/nestjs-pact/commit/da05e658180ecdee4fd6084017f17f45fd9d53a9))
* jest tests with mock modules now work ([b50c702](https://github.com/omermorad/nestjs-pact/commit/b50c702003435adaf096153235ef3158cb5e7efe))
* make verifier a nestjs provider again ([df4249d](https://github.com/omermorad/nestjs-pact/commit/df4249d092694719d4e4f80d38ad533451d1a43d))
* remove lerna, and dont fail-fast ([bf45577](https://github.com/omermorad/nestjs-pact/commit/bf455774a7988cac8559c7c8b892065d648bfa10))
* revert to normal mocks for verifier test ([153e5fb](https://github.com/omermorad/nestjs-pact/commit/153e5fbc88eb35140b00631c3977f349a5bff2ca))
* verifier-service tests added back in ([922258b](https://github.com/omermorad/nestjs-pact/commit/922258b07f8f31de2326172b780aea41833a2572))


### Features

* fix up to working version ([5cab2ac](https://github.com/omermorad/nestjs-pact/commit/5cab2ac6c834ec96e8006004d129fe076ed0a2ab))
* upgrade packages, fix imports, fix return types, fix empty try-catch ([486dcbe](https://github.com/omermorad/nestjs-pact/commit/486dcbe0d15a6c90e78e3e516c6ab0f1a4ec0130))

## [2.2.2](https://github.com/omermorad/nestjs-pact/compare/v2.2.1...v2.2.2) (2023-01-17)


### Bug Fixes

* release config ([#24](https://github.com/omermorad/nestjs-pact/issues/24)) ([8f6515d](https://github.com/omermorad/nestjs-pact/commit/8f6515d10d1ebede302ccf1387d3f0d1b11f31d5))

# [2.2.1](https://github.com/omermorad/nestjs-pact/compare/v2.1.1...v2.2.1) (2022-07-12)

### Feat

* feat: allow configuration of host ([#13](https://github.com/pact-foundation/nestjs-pact/pull/13)) ([01151f3](https://github.com/pact-foundation/nestjs-pact/commit/01151f3fc6613afa2aa0bf0d4155cbd91205b660))

# [2.1.1](https://github.com/omermorad/nestjs-pact/compare/v2.1.0...v2.1.1) (2022-01-18)

### Fix
Loading