Skip to content

Commit

Permalink
chore: release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Apr 20, 2020
1 parent 7581e78 commit ab97bbc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Protagonist Changelog

## 2.2.0 (2020-04-20)

### Enhancements

* Drafter contains two new options for disabling messageBody and
messageBodySchema generation from MSON. `generateMessageBody` and
`generatedMessageBodySchema` respectively.

## 2.1.0 (2020-03-17)

This update now uses Drafter 5.0.0-rc.1. Please see [Drafter
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,20 @@ Options can be passed to the parser as an optional second argument to both the a
```js
const options = {
generateSourceMap: true,
generateMessageBody: true,
generateMessageBodySchema: true,
};
const parseResult = await protagonist.parse('# My API', options);
```

The available options are:

Name | Description
---------------------- | ----------------------------------------------------------
`requireBlueprintName` | Require parsed blueprints have a title (default: false)
`generateSourceMap` | Enable sourcemap generation (default: false)
Name | Description
--------------------------- | ----------------------------------------------------------
`requireBlueprintName` | Require parsed blueprints have a title (default: false)
`generateSourceMap` | Enable sourcemap generation (default: false)
`generateMessageBody` | Enable generation of messageBody from MSON (default: true)
`generateMessageBodySchema` | Enable generation of messageBodySchema from MSON (default: true)

<a name="parse-result"></a>
### Parse Result
Expand Down
2 changes: 1 addition & 1 deletion drafter
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protagonist",
"version": "2.1.0",
"version": "2.2.0",
"description": "API Blueprint Parser",
"author": "Apiary.io <[email protected]>",
"main": "./build/Release/protagonist",
Expand Down

0 comments on commit ab97bbc

Please sign in to comment.