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

Refract Release

Choose a tag to compare

@pksunkara pksunkara released this 11 Sep 15:34
· 302 commits to master since this 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 type option to the parse and parseSync methods, 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