This repository was archived by the owner on Nov 8, 2024. It is now read-only.
Refract Release
This release updates drafter and changes the default output format to use Refract elements via the Parse Result Namespace without the Annotation and Source Map.
- Update to drafter 1.0.0
- Add a new
typeoption to theparseandparseSyncmethods, which defaults to'refract'but can also be set to'ast'to get API Blueprint AST Parse Result returned.
This major release is backward-incompatible, but the old behavior can be accessed via:
var protagonist = require('protagonist');
protagonist.parse('# My API', {type: 'ast'}, function (err, result) {
// The `result` here is an API Blueprint AST Parse Result, just like before!
});Drafter v1.0.0