Skip to content

Commit

Permalink
feat: remove feature flag for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Feb 9, 2024
1 parent dd9218b commit 3d8eccc
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
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
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
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 3d8eccc

Please sign in to comment.