Closed Kingdutch closed 5 years ago
Thank you for your contribution again @Kingdutch. This will get merged via https://github.com/Yoast/YoastSEO.js/pull/2137.
Please note that in the long run, this way of accessing assessments will get deprecated in favor of using the analysis worker.
Hi @igorschoester,
Is the Yoast team already committed to that decision? From what I can see from the documentation, the Webworker is less flexible from an integrators perspective (looking at the documentation in the repository).
The separately exported components make it possible to modify them in extending projects and offers quite a bit of configurability. One thing I've had to do for an integration with Drupal is to change the way strings are translated. When looking at the web worker it seems that the trend of passing the translator top down is enforced even more than in the current code base.
I'd be interested in having a discussion on how we could keep supporting other use-cases 🙂
If you want to see how I've currently used the assessments to support your assessment logic while changing the translator then you can check out https://github.com/goalgorilla/RTSEO.js/tree/feature/react-presenter
~ Alexander
We are committed to the WebWorker functionality @Kingdutch. You make a good point with the configuration of the feedback strings. We should include those in the configuration so that you can still override them. I will create an issue for this.
The
FunctionWordsInKeyphraseAssessment
class was not available as an seo assessment export. This changes makes it available with the others :)Summary
This PR can be summarized in the following changelog entry:
FunctionWordsInKeyphraseAssessment
is now available as an assessment in theseo
group. It was previously forgotten.Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
The following should work:
Fixes #