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

Update Node.js versions that are used in tests #1620

Merged
merged 6 commits into from
Jan 16, 2024

Conversation

flevi29
Copy link
Collaborator

@flevi29 flevi29 commented Jan 4, 2024

Pull Request

Related issue

Fixes #1618

What does this PR do?

  • Previously tested Node.js versions: 14, 16, 18
  • Let's drop 14 and 16 as they're EOL and test for current LTS as well, which is 20

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@flevi29
Copy link
Collaborator Author

flevi29 commented Jan 4, 2024

Okay I'm guessing something else needs to be changed, which I don't have access to, going by what tests seem to want to run.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a8b5e4b) 97.52% compared to head (84bf2ca) 97.52%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1620   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files          22       22           
  Lines         850      850           
  Branches      109      109           
=======================================
  Hits          829      829           
  Misses         20       20           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@curquiza curquiza added the breaking-change The related changes are breaking for the users label Jan 5, 2024
@curquiza
Copy link
Member

curquiza commented Jan 5, 2024

Thanks for the PR @flevi29

can you update the bors file? It's our tool to merge PR based on tests
https://github.com/meilisearch/meilisearch-js/blob/main/bors.toml

Also, I am waiting for the comeback of @brunoocasali (since he's the maintainer) to know if he's ok to drop Node 14 and 16 support

I'm personally not against this drop. I just added the breaking change label on the PR -> I know it's not technically a breaking change, but since we are not stable yet (releases are 0.X.Y and not X.Y.Z) we want to increase the minor, and not the patch, to let our users know about this change. This label will automatically update the minor of the release 😊.

@flevi29
Copy link
Collaborator Author

flevi29 commented Jan 5, 2024

Okay, no problem.

@flevi29
Copy link
Collaborator Author

flevi29 commented Jan 5, 2024

I know it's not technically a breaking change, but since we are not stable yet (releases are 0.X.Y and not X.Y.Z) we want to increase the minor, and not the patch, to let our users know about this change. This label will automatically update the minor of the release 😊.

I'll keep that in mind, I thought a breaking change would constitute a major version increase. Did that mistake with @meilisearch/instant-meilisearch, and I see @brunoocasali reverted the version. That will cause some problems with the lockfiles of people who already updated to 1.0.0 .

@curquiza
Copy link
Member

curquiza commented Jan 5, 2024

Yes, when your library is stable (X.Y.Z), a breaking change involves a MAJOR increase
When your library is not stable, as this one (0.X.Y), a breaking change involved a MINOR increase (because your major is 0). Important changes like dropping support, or the introduction of big new features will increase the minor too, no matter you are stable or not.

You can see here our tool (release-drafter) will upgrade the minor and not the major if we have a breaking change labeled PR
https://github.com/meilisearch/meilisearch-js/blob/main/.github/release-draft-template.yml
The tool only creates a draft of the release, and helps us keep track of it, but does not release anything automatically

In the instant meilisearch repository, we don't use the same tool to manage our release and version, so other errors are possible

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talking with Bruno right now and he agrees

so let's merge, thank you so much @flevi29 🙏

bors merge

@curquiza
Copy link
Member

bors merge

@curquiza
Copy link
Member

I got this error with bors, don't know how to manage this

Capture d’écran 2024-01-16 à 19 15 19

I merge manually

@curquiza curquiza merged commit 177947d into meilisearch:main Jan 16, 2024
6 of 7 checks passed
@flevi29 flevi29 deleted the update-node-versions branch January 16, 2024 21:54
meili-bors bot added a commit that referenced this pull request Mar 11, 2024
1633: Update version for the next release (v0.38.0) r=brunoocasali a=meili-bot

_This PR is auto-generated._

The automated script updates the version of meilisearch-js to a new version: "v0.38.0"

Part of the work of #1631 

---

This version introduces features released on Meilisearch v1.7.0 🎉
Check out the changelog of [Meilisearch v1.7.0](https://github.com/meilisearch/meilisearch/releases/tag/v1.7.0) for more information on the changes. 

⚠️ If you want to adopt new features of this release, **update the Meilisearch server** to the according version.

 ## ⚠️ Breaking changes

* Update Node.js versions that are used in tests (#1620) `@flevi29`
* `scoreDetails` feature is not experimental anymore. You can directly use `showRankingScoreDetails` during a search without activating the experimental feature 🎉

## 🚀 Enhancements

* `dimensions` field is available to the OpenAi model (#1631) `@nicolasvienot` 
* Enable limit and offset according to documentation. (#1630) `@reijovosu`




Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change The related changes are breaking for the users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support and test Maintenence and LTS versions of Node.js
2 participants