Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 607ef67

Browse files
authored
Merge pull request #157 from apiaryio/kylef/release-1.4.0
Update to Drafter 3.0.0 and Release 1.4.0
2 parents ad3bf01 + 00639b8 commit 607ef67

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Protagonist Changelog
2-
## Master
2+
3+
## 1.4.0
4+
5+
This update now uses Drafter 3.0.0 Please see [Drafter
6+
3.0.0](https://github.com/apiaryio/drafter/releases/tag/v3.0.0) for the list of
7+
changes.
8+
9+
### Breaking
10+
11+
* Protagonist now uses C++11.
12+
13+
The following compiler versions are supported:
14+
15+
* Microsoft Visual C++ 2013 or higher
16+
* GCC 4.8 or higher
17+
* Clang 3.5 or higher
18+
319

420
## 1.3.3
521

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protagonist",
3-
"version": "1.3.3",
3+
"version": "1.4.0",
44
"description": "API Blueprint Parser",
55
"author": "Apiary.io <support@apiary.io>",
66
"main": "./build/Release/protagonist",

src/parse_async.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ void AsyncParse(uv_work_t* request) {
105105
Baton* baton = static_cast<Baton*>(request->data);
106106

107107
// Parse the source data
108-
drafter::ParseBlueprint(baton->sourceData, baton->options | snowcrash::ExportSourcemapOption, baton->parseResult);
109-
108+
snowcrash::parse(baton->sourceData, baton->options | snowcrash::ExportSourcemapOption, baton->parseResult);
110109
baton->result = Result::WrapResult(baton->parseResult, baton->options, baton->astType);
111110
}
112111

src/parse_sync.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ NAN_METHOD(protagonist::ParseSync) {
5050

5151
// Parse the source data
5252
snowcrash::ParseResult<snowcrash::Blueprint> parseResult;
53-
drafter::ParseBlueprint(*sourceData, options | snowcrash::ExportSourcemapOption, parseResult);
53+
snowcrash::parse(*sourceData, options | snowcrash::ExportSourcemapOption, parseResult);
5454

5555
Local<Object> result = v8_wrap(Result::WrapResult(parseResult, options, astType))->ToObject();
5656

0 commit comments

Comments
 (0)