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
Pu/issue 130 #203
Pu/issue 130 #203
Conversation
@wojciechczerniak I have run into some weird issue, where https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/Collator is not behaving like promised. Further investigation is required, but I am initiating the discussion on whether code refactor is desired, and config parameters are done properly. |
It might be a Node.js issue. Locales were optional and not a part of the default Node build before v13 nodejs/node@1a25e90 We may have to wait for #71 |
Ok. I'll add tests, right now it seems to me that we can have control over accent-sensitivity and case-sensitivity, but not over the order of sorting (locale-dependent). |
Looks like the #71 is now confirmed to work on v13. Have you chacked latest Node with localeCompare? |
ok, after update of node, it works as desired |
but remote config needs updating |
We need to update We should add this to basic requirements in docs/readme @scarletfog |
I don't know how to properly edit the latter one. |
Ok @budnix could you help with GH Actions? ☝️ |
bump |
GH Actions have an issue that @swistak35 mentioned #71 (comment) Also, an update has to be checked on Windows. An upgrade has failed for now #232 |
@izulin It looks that CI update to Node v13 is not a trivial task. There is no prebuilt package for non-LTS node versions, which takes too much time to build the required packages from the source. With @swistach we've found a different approach to this problem. There is a snipped in Node docs how we can detect the ICU support https://nodejs.org/docs/latest-v13.x/api/intl.html#intl_detecting_internationalization_support Then we can conditionally skip the test: it('blah blah', () => {
if (hasFullICU) {
} else {
console.warn('You're running tests without ICU support. String comparison may work differently. Please, use Node v13+.')
}
} This way our CI will skip the test, while locally it will pass as long as we work on the correct Node version. We can safely move forward with the development. The test will just start to work after we update CI to the Node v14 LTS in April. WDYT? |
Awesome! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Co-Authored-By: Wojciech Czerniak <wojciech.czerniak@gmail.com>
Context
Abstracted string comparison using locale implementations. Passing some parameters from config there. Introduced more parameters (like: accentsSensitive, ignorePunctuation)
How has this been tested?
Types of changes
Related issue(s):
Checklist: