Skip to content

Commit 38a360c

Browse files
authored
Merge pull request #1176 from pact-foundation/feat/release-v4
feat: remove feature flag for v4
2 parents dd9218b + 3d8eccc commit 38a360c

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

.github/workflows/build-and-test.yml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
env:
1010
GIT_COMMIT: ${{ github.sha }}
1111
GIT_REF: ${{ github.ref }}
12-
ENABLE_FEATURE_V4: true
1312
LOG_LEVEL: info
1413

1514
jobs:

.github/workflows/publish.yml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
env:
1010
GIT_COMMIT: ${{ github.sha }}
1111
GIT_REF: ${{ github.ref }}
12-
ENABLE_FEATURE_V4: true
1312
LOG_LEVEL: info
1413

1514
jobs:

src/v4/index.ts

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ export class PactV4 implements V4ConsumerPact {
1111
private pact: ConsumerPact;
1212

1313
constructor(private opts: PactV4Options) {
14-
if (!process.env.ENABLE_FEATURE_V4) {
15-
throw Error(
16-
"The v4 package is currently in beta and requires the 'ENABLE_FEATURE_V4' environment variable to be set"
17-
);
18-
}
19-
2014
this.setup();
2115
this.pact.addMetadata('pact-js', 'version', pactPackageVersion);
2216
}

0 commit comments

Comments
 (0)