Skip to content

Commit 8e1be10

Browse files
authored
Remove dependency stdlib-406 -> belt (#6453)
1 parent 42faf46 commit 8e1be10

10 files changed

+22
-18
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
- Fix printing of exotic JSX names https://github.com/rescript-lang/rescript-compiler/pull/6451
2929
- Fix locations when code with `await` fails to compile (all locations would point to the internal function `unsafe_await`) https://github.com/rescript-lang/rescript-compiler/pull/6452
3030

31+
#### :house: Internal
32+
33+
- Remove dependency stdlib-406 -> belt. https://github.com/rescript-lang/rescript-compiler/pull/6453
34+
3135
#### :nail_care: Polish
3236

3337
- Add [`Deno`](https://deno.land/api?s=Deno) to reserved names, so that modules named `Deno` don't clash with the globally exposed `Deno` object. https://github.com/rescript-lang/rescript-compiler/pull/6428

jscomp/stdlib-406/release.ninja

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ o stdlib-406/stdLabels.cmj : cc_cmi stdlib-406/stdLabels.res | stdlib-406/arrayL
8181
o stdlib-406/stdLabels.cmi : cc stdlib-406/stdLabels.resi | stdlib-406/arrayLabels.cmi stdlib-406/bytesLabels.cmi stdlib-406/listLabels.cmi stdlib-406/pervasives.cmj stdlib-406/stringLabels.cmi $bsc others
8282
o stdlib-406/stream.cmj : cc_cmi stdlib-406/stream.res | stdlib-406/bytes.cmj stdlib-406/lazy.cmj stdlib-406/list.cmj stdlib-406/stream.cmi stdlib-406/string.cmj $bsc others
8383
o stdlib-406/stream.cmi : cc stdlib-406/stream.resi | stdlib-406/pervasives.cmj $bsc others
84-
o stdlib-406/string.cmj : cc_cmi stdlib-406/string.res | stdlib-406/bytes.cmj stdlib-406/string.cmi $bsc others
84+
o stdlib-406/string.cmj : cc_cmi stdlib-406/string.res | stdlib-406/array.cmj stdlib-406/bytes.cmj stdlib-406/string.cmi $bsc others
8585
o stdlib-406/string.cmi : cc stdlib-406/string.resi | stdlib-406/pervasives.cmj $bsc others
86-
o stdlib-406/stringLabels.cmj : cc_cmi stdlib-406/stringLabels.res | stdlib-406/bytes.cmj stdlib-406/stringLabels.cmi $bsc others
86+
o stdlib-406/stringLabels.cmj : cc_cmi stdlib-406/stringLabels.res | stdlib-406/array.cmj stdlib-406/bytes.cmj stdlib-406/stringLabels.cmi $bsc others
8787
o stdlib-406/stringLabels.cmi : cc stdlib-406/stringLabels.resi | stdlib-406/pervasives.cmj $bsc others
8888
o stdlib-406/sys.cmj : cc_cmi stdlib-406/sys.res | stdlib-406/sys.cmi $bsc others
8989
o stdlib-406/sys.cmi : cc stdlib-406/sys.resi | stdlib-406/pervasives.cmj $bsc others

jscomp/stdlib-406/string.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let blit = B.blit_string
3838

3939
%%private(@send external join: (array<string>, string) => string = "join")
4040

41-
let concat = (sep: string, xs: list<string>) => xs->Belt_List.toArray->join(sep)
41+
let concat = (sep: string, xs: list<string>) => xs->Array.of_list->join(sep)
4242

4343
/* duplicated in bytes.ml */
4444
let iter = (f, s) =>

jscomp/stdlib-406/stringLabels.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let blit = (~src, ~src_pos, ~dst, ~dst_pos, ~len) => B.blit_string(src, src_pos,
3838

3939
%%private(@send external join: (array<string>, string) => string = "join")
4040

41-
let concat = (~sep: string, xs: list<string>) => xs->Belt_List.toArray->join(sep)
41+
let concat = (~sep: string, xs: list<string>) => xs->Array.of_list->join(sep)
4242

4343
/* duplicated in bytes.ml */
4444
let iter = (~f, s) =>

jscomp/test/ext_filename_test.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/string_test.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/es6/string.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22

33
import * as Caml from "./caml.js";
4+
import * as $$Array from "./array.js";
45
import * as Bytes from "./bytes.js";
56
import * as Curry from "./curry.js";
6-
import * as Belt_List from "./belt_List.js";
77
import * as Caml_string from "./caml_string.js";
88
import * as Caml_js_exceptions from "./caml_js_exceptions.js";
99

@@ -16,7 +16,7 @@ function sub(s, ofs, len) {
1616
}
1717

1818
function concat(sep, xs) {
19-
return Belt_List.toArray(xs).join(sep);
19+
return $$Array.of_list(xs).join(sep);
2020
}
2121

2222
function iter(f, s) {

lib/es6/stringLabels.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22

33
import * as Caml from "./caml.js";
4+
import * as $$Array from "./array.js";
45
import * as Bytes from "./bytes.js";
56
import * as Curry from "./curry.js";
6-
import * as Belt_List from "./belt_List.js";
77
import * as Caml_string from "./caml_string.js";
88
import * as Caml_js_exceptions from "./caml_js_exceptions.js";
99

@@ -18,7 +18,7 @@ function sub(s, ofs, len) {
1818
var blit = Bytes.blit_string;
1919

2020
function concat(sep, xs) {
21-
return Belt_List.toArray(xs).join(sep);
21+
return $$Array.of_list(xs).join(sep);
2222
}
2323

2424
function iter(f, s) {

lib/js/string.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

33
var Caml = require("./caml.js");
4+
var $$Array = require("./array.js");
45
var Bytes = require("./bytes.js");
56
var Curry = require("./curry.js");
6-
var Belt_List = require("./belt_List.js");
77
var Caml_string = require("./caml_string.js");
88
var Caml_js_exceptions = require("./caml_js_exceptions.js");
99

@@ -16,7 +16,7 @@ function sub(s, ofs, len) {
1616
}
1717

1818
function concat(sep, xs) {
19-
return Belt_List.toArray(xs).join(sep);
19+
return $$Array.of_list(xs).join(sep);
2020
}
2121

2222
function iter(f, s) {

lib/js/stringLabels.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

33
var Caml = require("./caml.js");
4+
var $$Array = require("./array.js");
45
var Bytes = require("./bytes.js");
56
var Curry = require("./curry.js");
6-
var Belt_List = require("./belt_List.js");
77
var Caml_string = require("./caml_string.js");
88
var Caml_js_exceptions = require("./caml_js_exceptions.js");
99

@@ -18,7 +18,7 @@ function sub(s, ofs, len) {
1818
var blit = Bytes.blit_string;
1919

2020
function concat(sep, xs) {
21-
return Belt_List.toArray(xs).join(sep);
21+
return $$Array.of_list(xs).join(sep);
2222
}
2323

2424
function iter(f, s) {

0 commit comments

Comments
 (0)