Skip to content

Commit fdda487

Browse files
author
Eric Mrak
committed
Update version to 0.3.0
1 parent b912119 commit fdda487

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
* __BREAKING CHANGES from 0.2.x__
6+
* In `0.2.x` and below, you could pass `request.headers.authorization` as a `username:password` string to signify Basic auth and stubby would automatically prefix `Basic ` and base64-encode the user/pass string. This breaks other forms of web auth that uses the `Authorization` header.
7+
```yaml
8+
# Before
9+
request:
10+
headers:
11+
authorization: 'username:password'
12+
# Now
13+
request:
14+
headers:
15+
authorization: 'Basic username:password'
16+
```
17+
Stubby will still base64-encode the `username:password` if it sees that `Basic ` is specified and the `:` character is present. Otherwise it will take it as-is.
18+
* __New features__
19+
* `json:` option for endpoints -- instead of using `post:` or `file:` for matching the body of incoming requests, you can specify `json: ` with a JSON string and its content will be deeply matched for incoming request bodies.
20+
321
## 0.2.13
422

523
* fixes a crash when using `start()` without any options

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stubby",
33
"preferGlobal": true,
4-
"version": "0.2.13",
4+
"version": "0.3.0",
55
"author": {
66
"name": "Eric Mrak",
77
"email": "[email protected]"

0 commit comments

Comments
 (0)