Skip to content

Commit

Permalink
Merge pull request #1176 from pact-foundation/feat/release-v4
Browse files Browse the repository at this point in the history
feat: remove feature flag for v4
  • Loading branch information
mefellows authored Feb 9, 2024
2 parents dd9218b + 3d8eccc commit 38a360c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
env:
GIT_COMMIT: ${{ github.sha }}
GIT_REF: ${{ github.ref }}
ENABLE_FEATURE_V4: true
LOG_LEVEL: info

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
env:
GIT_COMMIT: ${{ github.sha }}
GIT_REF: ${{ github.ref }}
ENABLE_FEATURE_V4: true
LOG_LEVEL: info

jobs:
Expand Down
6 changes: 0 additions & 6 deletions src/v4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ export class PactV4 implements V4ConsumerPact {
private pact: ConsumerPact;

constructor(private opts: PactV4Options) {
if (!process.env.ENABLE_FEATURE_V4) {
throw Error(
"The v4 package is currently in beta and requires the 'ENABLE_FEATURE_V4' environment variable to be set"
);
}

this.setup();
this.pact.addMetadata('pact-js', 'version', pactPackageVersion);
}
Expand Down

0 comments on commit 38a360c

Please sign in to comment.