BREAKING CHANGE: This moves documentation.js to Babel 7. From now on,
documentation.js will only support Babel 7: please stick to older
releases if you need to support Babel 6. Additionally, this work
temporarily disables support for following dynamic imports.
* Fix membership infering for methods
Improve inferMembership to allow to use next code:
```js
/**
* @memberof BigFeature
*/
class MyClass {
method() {}
}
```
Before this improvement, we have `method` inside
`global.MyClass` instead of `global.BigFeature.MyClass`
* Add tests fir membership infering for methods
* github link to typedef points to comment lines
* adding test for typedef github links
* adding comment.loc for flow check
* reverting to original formatting
* use afterEach to restore mock even if tests fail
* fixing line numbers in expected value
The previous support for @name tags suppressing inference from
surrounding code was ad-hoc and incomplete. This commit makes a @name
tag (or a tag acting as a @kind/@name shorthand combo, like @function)
detach the `ast` field from the comment context, so that the surrounding
code will be universally ignored per the JSDoc spec.
Per usejsdoc.org, this tag goes either in a comment attached to a
function that has declared that function to be a class, or in a comment
on an ES6 class constructor.
* Removed sort by memberof, when the memberOf is the same of items then sort function doesn't works correctly.
Added Unit Tests
Fixed#838
* Flow.js : added flow notation for sort.js
BREAKING CHANGE: I'd like to still support C++ and other languages in the future! But I'm much
happier doing so by separating the extraction & input phases to the degree that documentation.js can
read the output of another module that extracts JSDoc comments from C++ code, rather than having CPP
support in it.
Fixes#850. Fixes#731. Fixes#702. Fixes#132.
* build: Use Flow syntax without comments.
We're switching to Flow annotations - not Flow comments. This
gives documentation.js the ability to self-document without
JSDoc types and improves our compatibility with tools like
prettier.
Fixes#729. Fixes#709