Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate elasticsearch-js-legacy to elasticsearch-js #51

Open
nsano-rururu opened this issue Mar 11, 2022 · 4 comments
Open

Migrate elasticsearch-js-legacy to elasticsearch-js #51

nsano-rururu opened this issue Mar 11, 2022 · 4 comments

Comments

@nsano-rururu
Copy link

elasticsearch-js-legacy to elasticsearch-js
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/8.0/changelog-client.html
https://www.npmjs.com/package/elasticsearch

This package has been deprecated
This client is no longer maintained. We strongly advise you to migrate to the new Elasticsearch client.

@Karql
Copy link
Owner

Karql commented Jun 25, 2022

Thanks.

I will check it but this has low prio. Probably nobody use it 😏

@nuno-andre
Copy link

Elastic has docs about migrating from the legacy JS client to the new one.

@nsano-rururu
Copy link
Author

npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@nsano-rururu
Copy link
Author

elasticsearch-js-legacy is a JavaScript client library that supports older versions of Elasticsearch (6.x and 7.x). As Elasticsearch versions evolve, the new library @elastic/elasticsearch is recommended. The following are disadvantages of continuing to use elasticsearch-js-legacy.

  1. Support may have ended
    elasticsearch-js-legacy supports older versions of Elasticsearch, so it is not compatible with the latest Elasticsearch versions (8.x and later). It is likely that official support has ended, and new bug fixes and security patches may not be provided.

  2. New features not available
    elasticsearch-js-legacy does not support features and improvements in new versions of Elasticsearch. This includes new APIs, performance improvements, and security enhancements.

  3. Dependency updates are delayed
    Depending on older versions makes it difficult for libraries and dependencies to be updated, which can cause security and performance issues. In particular, old libraries may no longer work when dependent packages or Node.js itself are updated to new versions.

  4. Ecosystem Integrity
    New versions of the @elastic/elasticsearch client are optimized for the latest Elasticsearch features and integrate smoothly with other Elastic Stack tools (Kibana, Beats, etc.). Continuing to use older libraries can cause issues with consistency with the rest of the ecosystem.

  5. Performance Issues
    New client libraries offer improved performance and efficiency. Using older libraries means you miss out on these improvements.

  6. Community and Documentation Delays
    elasticsearch-js-legacy is no longer in common use, so you may find it has less community support and documentation. This can make it take longer to resolve issues.
    Conclusion
    If you are currently using Elasticsearch 6.x or 7.x and are not planning to upgrade anytime soon, staying with elasticsearch-js-legacy may be an option. However, in the long run, it is better to consider migrating to @elastic/elasticsearch for security, performance, and features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants