Skip to content

Commit 3fd4d22

Browse files
committed
Merge branch 'master' into new-doc-search
2 parents 431097d + 9595ce4 commit 3fd4d22

File tree

326 files changed

+46916
-2281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+46916
-2281
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ lib/
2626
.vercel
2727

2828
src/**/*.mjs
29+
scripts/**/*.mjs

_blogposts/2020-08-10-bucklescript-is-rebranding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ There's no dedicated name for the syntax anymore. It's simply called the ReScrip
6161

6262
**Will there be a migration script to gradually convert our code to the new syntax?**
6363

64-
Yes. See our [migration page](/docs/manual/latest/migrate-from-bucklescript-reason). You can mix and match old and new code for a smoother transition.
64+
Yes. See our [migration page](/docs/manual/v10.0.0/migrate-from-bucklescript-reason). You can mix and match old and new code for a smoother transition.
6565

6666
**Will BuckleScript (now ReScript) break my existing code?**
6767

compilers/dummy/Dummy.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Console.log("I am a dummy file")

compilers/package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compilers/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"main": "index.js",
66
"license": "MIT",
77
"dependencies": {
8+
"@rescript/core": "^0.5.0",
89
"rescript-820": "npm:[email protected]",
910
"rescript-902": "npm:[email protected]",
1011
"rescript-912": "npm:[email protected]",
1112
"rescript-1000": "npm:[email protected]",
12-
"rescript-1010": "npm:[email protected]"
13+
"rescript-1010": "npm:[email protected]",
14+
"rescript-1100": "npm:[email protected]"
1315
}
1416
}

compilers/rescript.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "dummy",
3+
"sources": {
4+
"dir": "dummy",
5+
"subdirs": true
6+
},
7+
"bs-dependencies": [
8+
"@rescript/core"
9+
],
10+
"bsc-flags": [
11+
"-open RescriptCore"
12+
]
13+
}

data/sidebar_manual_latest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"Overview": [
33
"introduction",
44
"installation",
5+
"migrate-to-v11-and-uncurried-mode",
56
"editor-plugins",
6-
"migrate-from-bucklescript-reason",
77
"try"
88
],
99
"Language Features": [
@@ -31,7 +31,6 @@
3131
"module",
3232
"import-export",
3333
"attribute",
34-
"unboxed",
3534
"reserved-keywords"
3635
],
3736
"Advanced Features": [

data/sidebar_manual_v1000.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"Overview": [
3+
"introduction",
4+
"installation",
5+
"editor-plugins",
6+
"migrate-from-bucklescript-reason",
7+
"try"
8+
],
9+
"Language Features": [
10+
"overview",
11+
"let-binding",
12+
"type",
13+
"primitive-types",
14+
"tuple",
15+
"record",
16+
"object",
17+
"variant",
18+
"polymorphic-variant",
19+
"null-undefined-option",
20+
"array-and-list",
21+
"function",
22+
"control-flow",
23+
"pipe",
24+
"pattern-matching-destructuring",
25+
"mutation",
26+
"jsx",
27+
"exception",
28+
"lazy-values",
29+
"promise",
30+
"async-await",
31+
"module",
32+
"import-export",
33+
"attribute",
34+
"unboxed",
35+
"reserved-keywords"
36+
],
37+
"Advanced Features": [
38+
"extensible-variant",
39+
"scoped-polymorphic-types"
40+
],
41+
"JavaScript Interop": [
42+
"interop-cheatsheet",
43+
"embed-raw-javascript",
44+
"shared-data-types",
45+
"external",
46+
"bind-to-js-object",
47+
"bind-to-js-function",
48+
"import-from-export-to-js",
49+
"bind-to-global-js-values",
50+
"json",
51+
"inlining-constants",
52+
"use-illegal-identifier-names",
53+
"generate-converters-accessors",
54+
"browser-support-polyfills",
55+
"libraries"
56+
],
57+
"Build System": [
58+
"build-overview",
59+
"build-configuration",
60+
"build-configuration-schema",
61+
"build-external-stdlib",
62+
"build-pinned-dependencies",
63+
"interop-with-js-build-systems",
64+
"build-performance",
65+
"warning-numbers"
66+
],
67+
"Guides": [
68+
"converting-from-js"
69+
],
70+
"Extra": [
71+
"newcomer-examples",
72+
"project-structure",
73+
"faq"
74+
]
75+
}

data/sidebar_react_v0110.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"Overview": [
3+
"introduction",
4+
"installation",
5+
"migrate-react"
6+
],
7+
"Main Concepts": [
8+
"elements-and-jsx",
9+
"rendering-elements",
10+
"components-and-props",
11+
"arrays-and-keys",
12+
"refs-and-the-dom",
13+
"context",
14+
"styling",
15+
"router"
16+
],
17+
"Hooks & State Management": [
18+
"hooks-overview",
19+
"hooks-effect",
20+
"hooks-state",
21+
"hooks-reducer",
22+
"hooks-context",
23+
"hooks-ref",
24+
"hooks-custom"
25+
],
26+
"Guides": [
27+
"beyond-jsx",
28+
"forwarding-refs",
29+
"extensions-of-props"
30+
]
31+
}

misc_docs/syntax/decorator_obj.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ summary: "This is the `@obj` decorator."
66
category: "decorators"
77
---
88

9+
10+
> Deprecated since compiler version 11.0. It was mainly used to bind to JS param objects with many optional fields, [records with optional fields](https://rescript-lang.org/docs/manual/latest/record#optional-record-fields) are now natively supported.
11+
912
The `@obj` decorator is used to create functions that return JavaScript objects
1013
with properties that match the function's parameter labels.
1114

@@ -30,4 +33,4 @@ var helloAction = {
3033

3134
### References
3235

33-
* [Convert External into JS Object Creation Function](/docs/manual/latest/generate-converters-accessors#convert-external-into-js-object-creation-function)
36+
* [Convert External into JS Object Creation Function](/docs/manual/v10.0.0/generate-converters-accessors#convert-external-into-js-object-creation-function)

0 commit comments

Comments
 (0)