Skip to content

Add String.localeCompare options#8287

Merged
cknitt merged 2 commits intomasterfrom
locale-compare
Mar 11, 2026
Merged

Add String.localeCompare options#8287
cknitt merged 2 commits intomasterfrom
locale-compare

Conversation

@cknitt
Copy link
Member

@cknitt cknitt commented Mar 11, 2026

  • Add optional ~locales and ~options parameters to String.localeCompare, matching the full String.prototype.localeCompare API
  • Update docstrings and examples accordingly

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8287

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8287

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8287

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8287

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8287

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8287

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8287

commit: 46060ae

@cknitt cknitt requested a review from fhammerschmidt March 11, 2026 13:11
@cknitt cknitt merged commit 1783a45 into master Mar 11, 2026
25 checks passed
@cknitt cknitt deleted the locale-compare branch March 11, 2026 15:06
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

Successfully merging this pull request may close these issues.

2 participants