Skip to content

Commit

Permalink
release: 5.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Mar 16, 2020
1 parent 32f5f87 commit 32f29d9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
22 changes: 19 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Drafter Changelog

## 5.0.0 (2020-02-04)
## 5.0.0-beta.1 (2020-03-16)

### Breaking

* Parsing and serialisation options in the C API of Drafter contain breaking
changes. Direct access to the option structures are no longer possible, a new
API layer has been added for the options. See `drafter_init_parse_options`
and `drafter_serialize_options` respectively.

### Enhancements

- [breaking] Modified C API so that drafter options can be added without
breaking the interface in the future.
* Improved support for URI Template. Drafter supports up to, and including
[level 4 of URI Template](https://tools.ietf.org/html/rfc6570#section-1.2).
This includes support for the URI Template explode (`*`) modifier, and
reserved value operator (`+`), and others.

[#553](https://github.com/apiaryio/drafter/issues/553)
[#456](https://github.com/apiaryio/drafter/issues/456)
[#630](https://github.com/apiaryio/drafter/issues/630)

* Added support for JSON Schema Draft 7 in schema generation from MSON.
JSON Schemas are now generated using Draft 7 instead of Draft 4.

## 4.1.0 (2019-12-28)

Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(Drafter VERSION 5.0.0 LANGUAGES CXX)

set(DRAFTER_VERSION_IS_RELEASE 1)
set(DRAFTER_PRE_RELEASE_VERSION 0)
set(DRAFTER_VERSION_IS_RELEASE 0)
set(DRAFTER_PRE_RELEASE_VERSION beta.1)

configure_file(Version.h.in Version.h)
include_directories(${PROJECT_BINARY_BIN})
Expand Down
4 changes: 2 additions & 2 deletions src/Version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
#define DRAFTER_PATCH_VERSION @PROJECT_VERSION_PATCH@

#define DRAFTER_VERSION_IS_RELEASE @DRAFTER_VERSION_IS_RELEASE@
#define DRAFTER_PRE_RELEASE_VERSION @DRAFTER_PRE_RELEASE_VERSION@
#define DRAFTER_PRE_RELEASE_VERSION "@DRAFTER_PRE_RELEASE_VERSION@"

#if DRAFTER_VERSION_IS_RELEASE
#define DRAFTER_VERSION_STRING "v@PROJECT_VERSION@"
#else
#define DRAFTER_VERSION_STRING "v@PROJECT_VERSION@-pre.@DRAFTER_PRE_RELEASE_VERSION@"
#define DRAFTER_VERSION_STRING "v@PROJECT_VERSION@-@DRAFTER_PRE_RELEASE_VERSION@"
#endif

#endif

0 comments on commit 32f29d9

Please sign in to comment.