Skip to content

Commit de4167e

Browse files
authored
Merge pull request #22 from EasyPost/v0.5.0
chore: prepare v0.5.0 for release
2 parents 1f7c8b2 + c0a9c1c commit de4167e

File tree

4 files changed

+31
-9
lines changed

4 files changed

+31
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# CHANGELOG
22

3-
## Next Release
3+
## v0.5.0 (2022-12-20)
44

5-
- [ADDED] Ability to censor parts of a URL path using regex patterns.
5+
- Adds the ability to censor parts of a URL path using regex patterns.
66

77
## v0.4.2 (2022-10-20)
88

99
- Fix a bug where the error data of a bad HTTP request (4xx or 5xx) was not stored as expected in cassettes, causing
1010
empty error streams on replay.
11-
- Error data for a bad HTTP request is now stored as the "body" in the cassette just like a good HTTP request
11+
- Error data for a bad HTTP request is now stored as the "body" in the cassette just like a good HTTP request
1212
would, rather than needlessly stored in a separate "error" key. This more closely matches the behavior of EasyVCR C#.
13-
- This is a breaking change for previously-recorded "error" cassettes, which will no longer replay as expected and
13+
- This is a breaking change for previously-recorded "error" cassettes, which will no longer replay as expected and
1414
will need to be re-recorded (although likely never worked as expected in the first place).
1515
- Fix a bug where using any expiration time frame other than "forever" and "never" would throw a NullPointerException.
1616

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,34 @@
22

33
[![CI](https://github.com/EasyPost/easyvcr-java/workflows/CI/badge.svg)](https://github.com/EasyPost/easyvcr-java/actions?query=workflow%3ACI)
44
[![Coverage Status](https://coveralls.io/repos/github/EasyPost/easyvcr-java/badge.svg?branch=main)](https://coveralls.io/github/EasyPost/easyvcr-java?branch=main)
5-
[![Maven Central](https://img.shields.io/maven-central/v/com.easypost/easyvcr?label=Maven%20Central)](https://search.maven.org/artifact/com.easypost/easyvcr)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.easypost/easyvcr?label=Maven%20Central)](https://central.sonatype.dev/search?q=easyvcr)
66

77
EasyVCR is a library for recording and replaying HTTP interactions in your test suite.
88

99
This can be useful for speeding up your test suite, or for running your tests on a CI server which doesn't have connectivity to the HTTP endpoints you need to interact with.
1010

11+
## Install
12+
13+
### Maven
14+
15+
Add this to your project's POM:
16+
17+
```xml
18+
<dependency>
19+
<groupId>com.easypost</groupId>
20+
<artifactId>easyvcr</artifactId>
21+
<version>0.5.0</version>
22+
</dependency>
23+
```
24+
25+
### Gradle
26+
27+
Add this to your project's build file:
28+
29+
```groovy
30+
implementation "com.easypost:easyvcr:0.5.0"
31+
```
32+
1133
## Supported HTTP Clients
1234

1335
- Java 8's [HttpUrlConnection](https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html)
@@ -94,6 +116,7 @@ Now when tests are run, no real HTTP calls will be made. Instead, the HTTP respo
94116
Censor sensitive data in the request and response, such as API keys and auth tokens.
95117

96118
Can censor:
119+
97120
- Request and response headers (via key name)
98121
- Request and response bodies (via key name) (JSON only)
99122
- Request query parameters (via key name)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.2
1+
0.5.0

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
54
<modelVersion>4.0.0</modelVersion>
65

76
<groupId>com.easypost</groupId>
87
<artifactId>easyvcr</artifactId>
98

10-
<version>0.4.2</version>
9+
<version>0.5.0</version>
1110
<packaging>jar</packaging>
1211

1312
<name>com.easypost:easyvcr</name>

0 commit comments

Comments
 (0)