From a1348e49b25def39ec0835be4131a71f1a654cff Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Sun, 3 Sep 2023 20:57:23 +0200 Subject: [PATCH 1/2] add Bun as reserved name --- CHANGELOG.md | 4 ++++ jscomp/ext/js_reserved_map.ml | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60a86d3dc8..f53413c188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ # 11.0.0-rc.3 (Unreleased) +#### :nail_care: Polish + +- Add [`Bun`](https://bun.sh) to reserved names, so that modules named `Bun` don't clash with the globally exposed `Bun` object. + #### :bug: Bug Fix - Fix issue with JSX V4 when component props have the default value with same name. https://github.com/rescript-lang/rescript-compiler/pull/6377 diff --git a/jscomp/ext/js_reserved_map.ml b/jscomp/ext/js_reserved_map.ml index ca47671b43..4d16fa4abb 100644 --- a/jscomp/ext/js_reserved_map.ml +++ b/jscomp/ext/js_reserved_map.ml @@ -71,6 +71,7 @@ let sorted_keywords = [| "BroadcastChannel"; "BrowserCaptureMediaStreamTrack"; "Buffer"; + "Bun"; "ByteLengthQueuingStrategy"; "CDATASection"; "CSS"; From 7795c4f34bec63b1f559b2b2422e3748ca04c956 Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Sun, 3 Sep 2023 20:58:43 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f53413c188..8195fd4701 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ #### :nail_care: Polish -- Add [`Bun`](https://bun.sh) to reserved names, so that modules named `Bun` don't clash with the globally exposed `Bun` object. +- Add [`Bun`](https://bun.sh) to reserved names, so that modules named `Bun` don't clash with the globally exposed `Bun` object. https://github.com/rescript-lang/rescript-compiler/pull/6381 #### :bug: Bug Fix