Skip to content

Commit 2cdaedf

Browse files
committed
up versions
1 parent 98eb2e8 commit 2cdaedf

13 files changed

+48
-43
lines changed

package-lock.json

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

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"src/**/*.mjs"
2525
],
2626
"peerDependencies": {
27-
"rescript": "^11.1.0-rc.7"
27+
"rescript": ">=11.1.0"
2828
},
2929
"devDependencies": {
3030
"@babel/code-frame": "7.18.6",
31-
"@rescript/tools": "^0.5.0",
32-
"rescript": "^11.1.0-rc.7"
31+
"@rescript/tools": "0.6.4",
32+
"rescript": "11.1.4"
3333
}
3434
}

rescript.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"suffix": ".mjs",
2020
"package-specs": {
21-
"module": "es6",
21+
"module": "esmodule",
2222
"in-source": true
2323
},
2424
"bs-dev-dependencies": ["@rescript/tools"],

scripts/DocTests.mjs

+16-1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,21 @@ function getExamples(param) {
231231
Core__List.fromArray(match.items)
232232
]);
233233
continue ;
234+
case "moduleType" :
235+
_acc = {
236+
hd: {
237+
id: match.id,
238+
kind: "moduleType",
239+
name: match.name,
240+
docstrings: match.docstrings
241+
},
242+
tl: acc
243+
};
244+
_items = Belt_List.concatMany([
245+
items.tl,
246+
Core__List.fromArray(match.items)
247+
]);
248+
continue ;
234249
case "moduleAlias" :
235250
_acc = {
236251
hd: {
@@ -306,7 +321,7 @@ async function main() {
306321
var id = example.id.replaceAll(".", "_");
307322
var codes = getCodeBlocks(example);
308323
var results = await Promise.all(codes.map(async function (code, $$int) {
309-
var id$1 = id + "_" + $$int.toString(undefined);
324+
var id$1 = id + "_" + $$int.toString();
310325
return await testCode(id$1, code);
311326
}));
312327
return [

scripts/DocTests.res

+5
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ let getExamples = ({items}: Docgen.doc) => {
212212
list{...rest, ...List.fromArray(items)},
213213
list{{id, name, docstrings, kind: "module"}, ...acc},
214214
)
215+
| list{ModuleType({id, name, docstrings, items}), ...rest} =>
216+
loop(
217+
list{...rest, ...List.fromArray(items)},
218+
list{{id, name, docstrings, kind: "moduleType"}, ...acc},
219+
)
215220
| list{ModuleAlias({id, name, docstrings, items}), ...rest} =>
216221
loop(
217222
list{...rest, ...List.fromArray(items)},

test/TypedArrayTests.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function assertWillThrow(message, f) {
4949
}
5050

5151
function areSame(x, y) {
52-
return x.toString(undefined) === y.toString(undefined);
52+
return x.toString() === y.toString();
5353
}
5454

5555
assertTrue("fromArray", (function () {

test/intl/Intl__CollatorTest.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ console.log("---");
55

66
console.log("Intl.Collator");
77

8-
new Intl.Collator(undefined, undefined);
8+
new Intl.Collator();
99

10-
new Intl.Collator(["en-US"], undefined);
10+
new Intl.Collator(["en-US"]);
1111

1212
var _collator = new Intl.Collator([
1313
"en-US",
1414
"en-GB"
15-
], undefined);
15+
]);
1616

1717
var collator = new Intl.Collator(["en-US"], {
1818
sensitivity: "base",

test/intl/Intl__DateTimeFormatTest.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var formatter$6 = new Intl.DateTimeFormat(undefined, (newrecord$4.timeZoneName =
7777

7878
console.log(formatter$6.format(new Date(Date.now())));
7979

80-
var resolvedOptions = new Intl.DateTimeFormat(undefined, undefined).resolvedOptions();
80+
var resolvedOptions = new Intl.DateTimeFormat().resolvedOptions();
8181

8282
var timeZone = resolvedOptions.timeZone;
8383

test/intl/Intl__ListFormatTest.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ console.log("---");
55

66
console.log("Intl.ListFormat");
77

8-
new Intl.ListFormat(undefined, undefined);
8+
new Intl.ListFormat();
99

1010
new Intl.ListFormat([
1111
"en-US",
1212
"en-GB"
13-
], undefined);
13+
]);
1414

1515
var _formatter = new Intl.ListFormat([
1616
"en-US",

test/intl/Intl__LocaleTest.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ console.log("---");
55

66
console.log("Intl.Locale");
77

8-
var _locale = new Intl.Locale("en-US", undefined);
8+
var _locale = new Intl.Locale("en-US");
99

1010
var locale = new Intl.Locale("en-US", {
1111
calendar: "hebrew",

test/intl/Intl__PluralRulesTest.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ console.log("---");
55

66
console.log("Intl.PluralRules");
77

8-
new Intl.PluralRules(undefined, undefined);
8+
new Intl.PluralRules();
99

1010
new Intl.PluralRules([
1111
"en-US",
1212
"en-GB"
13-
], undefined);
13+
]);
1414

1515
var _formatter = new Intl.PluralRules(undefined, {
1616
type: "ordinal",

test/intl/Intl__RelativeTimeFormatTest.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Intl.RelativeTimeFormat.supportedLocalesOf([
1717
localeMatcher: "lookup"
1818
});
1919

20-
new Intl.RelativeTimeFormat(undefined, undefined);
20+
new Intl.RelativeTimeFormat();
2121

2222
new Intl.RelativeTimeFormat([
2323
"en-US",
2424
"en-GB"
25-
], undefined);
25+
]);
2626

2727
var _formatter = new Intl.RelativeTimeFormat(undefined, {
2828
numeric: "always",

test/intl/Intl__SegmenterTest.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Intl.Segmenter.supportedLocalesOf([
1717
localeMatcher: "lookup"
1818
});
1919

20-
new Intl.Segmenter(undefined, undefined);
20+
new Intl.Segmenter();
2121

2222
new Intl.Segmenter([
2323
"en-US",
2424
"en-GB"
25-
], undefined);
25+
]);
2626

2727
var _formatter = new Intl.Segmenter(undefined, {
2828
granularity: "word"

0 commit comments

Comments
 (0)