@cucumber/gherkin
Advanced tools
Changelog
[12.0.0] - 2020-03-31
Parser
* compile
(#924 davidjgoss)Query#getPickles()
compile
function for compiling Pickles
import { GherkinStreams } from 'gherkin'
to use the fromPaths
, fromStream
and fromSources
functions * import { dialects } from 'gherkin'
to access dialectsDialect
properties are read onlyfromPaths
, fromStream
and fromSources
now use ReadOnlyArray
to prevent modifying the passed array.Gherkin.fromPaths
is not a function (#857 #949 aslakhellesoy)Changelog
[10.0.0] - 2020-02-13
Gherkin#fromPaths
emits an error if a path can't be read (for example if it is a directory)Changelog
[9.2.0] - 2020-01-22
getGherkinDocuments(): messages.IGherkinDocument[]
getPickleIds(uri: string, lineNumber?: number): string[]
- lineNumber
is optionalgetPickleIds
only operates on pickles, and not on pickle stepsChangelog
[9.1.0] - 2020-01-10
Gherkin::Query
that provides Location
for various AST nodes. (#845 aslakhellesoy vincent-psarga)messages
9.0.1
Gherkin#fromStream
, Gherkin#fromPaths
and Gherkin#fromSources
functions' options
argument is no longer optional, and it must have a createReadStream
property. The reason for this is to decouple the library from Node's fs
module so it can be packaged with Webpack and be used in a browser.