textlint-rule / textlint-rule-prh

textlint rule for prh.
MIT License
82 stars 6 forks source link

Update textlint-tester to the latest version 🚀 #41

Closed greenkeeper[bot] closed 6 years ago

greenkeeper[bot] commented 6 years ago

Version 5.0.0 of textlint-tester was just published.

Dependency textlint-tester
Current Version 4.1.3
Type devDependency

The version 5.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of textlint-tester.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes 5.0.0: Async support

Breaking Change

Make Lint API asynchronous!

Lint API always return Promise.

  • TextLintCore#LintFile
  • TextLintCore#LintText
  • TextLintEngine#executeOnFiles
  • TextLintEngine#executeOnText
  • cli#execute
var textlint = new TextLintCore();
textlint.lintMarkdown("text").then(result => {
      // 
});

Festures

  • Rule: async support #74

How to write async rule?

export default function (context) {
    return {
        [Syntax.Str](node){
            // textlint wait for resolved the promise.
            return new Promise((resolve, reject) => {
                // async task
            });
        }
    }
}

Bug Fixes

  • async: fix race condition on async (07dd51c)
  • use interop-require instead of require for dynamic loading (86e3004), closes #81
    • could use code generated by Babel 6
  • docs: remove value (c00646c)
  • example: add pretest (f1c7a57)
  • test: fix test that are broken at timing (1ea0def)
  • test: fix throws test (64ee56b)
  • test: install textlint-plugin-html with devDependencies (7d3eaf0)
  • test: fix all test for async (f19a64b)

Features

  • example: add use-as-module example (bc41157)

Performance Improvements

  • test: use production env for test (ba2b501)

Related Modules

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree: