Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground New ReScript JS API 2020 #4518

Closed
wants to merge 322 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
746df71
update ninja
bobzhang Oct 14, 2020
bb327ad
fix ci
bobzhang Oct 14, 2020
6fd866c
Merge pull request #4747 from rescript-lang/no_package_name_in_cmi
bobzhang Oct 14, 2020
a6a3585
fix some API docs and examples in Belt.Array
tsnobip Oct 14, 2020
04b638d
add Belt.Array.joinWith
tsnobip Oct 14, 2020
3c1b141
Merge pull request #4748 from tsnobip/add_array_join_to_belt
bobzhang Oct 15, 2020
eb84921
no variable interpolation for g_pkg_flg
bobzhang Oct 15, 2020
86c6386
remove bsc interpolation
bobzhang Oct 15, 2020
d522f2c
no warnings interpolation
bobzhang Oct 15, 2020
59b78b9
get rid of bsdep
bobzhang Oct 15, 2020
1b5c41e
remove ppx_flags variable
bobzhang Oct 15, 2020
0f5fd50
get rid of bsc_flags and dpkg_incls
bobzhang Oct 15, 2020
3bf31e4
get rid of g_lib_incls
bobzhang Oct 15, 2020
02852de
remove unused postbuild
bobzhang Oct 15, 2020
3517743
remove unused refmt_flags
bobzhang Oct 15, 2020
5179e08
get rid of dev_incls
bobzhang Oct 15, 2020
a514f08
get rid of gentypeconfig interpolation
bobzhang Oct 15, 2020
554b4b1
Fix CI
bobzhang Oct 15, 2020
ddad732
get rid of pp_flags interop
bobzhang Oct 15, 2020
87307e4
remove unused variable
bobzhang Oct 15, 2020
0120882
tweak the order
bobzhang Oct 15, 2020
bc64016
tweak the src root dir
bobzhang Oct 15, 2020
885f7e2
fix CI
bobzhang Oct 15, 2020
a9f02d5
Merge pull request #4749 from rescript-lang/no_variable_interpolation
bobzhang Oct 16, 2020
fba5e45
remove unused code
bobzhang Oct 16, 2020
9512be9
continue removing unused code
bobzhang Oct 16, 2020
9446fcb
refactoring
bobzhang Oct 16, 2020
be16447
tweak
bobzhang Oct 19, 2020
fed646d
support .iast/.ast
bobzhang Oct 19, 2020
4e2467c
snapshot
bobzhang Oct 19, 2020
10728a0
remove unused file extensions
bobzhang Oct 19, 2020
d5158ff
FIX -bs-ast
bobzhang Oct 19, 2020
238a90e
tweak, remove unused code
bobzhang Oct 19, 2020
42285bc
fix CI
bobzhang Oct 19, 2020
3e4c4a4
Merge pull request #4751 from rescript-lang/iast_ast
bobzhang Oct 19, 2020
929bab3
update
bobzhang Oct 19, 2020
f1afad9
bump a version
bobzhang Oct 19, 2020
ee0d404
updates
bobzhang Oct 19, 2020
e346cda
update .bsdeps format for more flexiblity checks
bobzhang Oct 20, 2020
095e554
add config operation for checking
bobzhang Oct 20, 2020
ea12251
pass ppx_files timestamp into command line flags
bobzhang Oct 20, 2020
bd8a44e
snapshot
bobzhang Oct 20, 2020
8a1d17d
track ppx changes
bobzhang Oct 20, 2020
32842fd
Merge pull request #4756 from rescript-lang/track_ppx_changes
bobzhang Oct 20, 2020
6488948
tweak
bobzhang Oct 21, 2020
09052c7
update the build engine with minimal work
bobzhang Oct 21, 2020
d13b2a5
update build engine
bobzhang Oct 21, 2020
0c6c2e9
fix CI
bobzhang Oct 21, 2020
2738353
upate build engine
bobzhang Oct 21, 2020
8be2284
FIX CI
bobzhang Oct 21, 2020
c6931eb
continue fixes
bobzhang Oct 21, 2020
b532b3c
Ignore node_modules in templates generator
thanabodee-c Oct 21, 2020
e30e3d6
Merge pull request #4759 from wingyplus/iss-4757
bobzhang Oct 22, 2020
9b228e7
adapt new build engine
bobzhang Oct 22, 2020
eac1dd7
FIX CI
bobzhang Oct 22, 2020
d4f0e2f
we do use $in in deps processing
bobzhang Oct 22, 2020
27a7a51
comment order only deps
bobzhang Oct 23, 2020
c0c3e76
update build engine
bobzhang Oct 23, 2020
b8d18f3
update build engine
bobzhang Oct 23, 2020
eb83f46
tweak dyndep
bobzhang Oct 23, 2020
bda18cf
Merge pull request #4760 from rescript-lang/update_build_engine
bobzhang Oct 23, 2020
961cdfd
update build engine, ready for next release
bobzhang Oct 23, 2020
f1a6581
Merge pull request #4761 from rescript-lang/udpate_build
bobzhang Oct 23, 2020
3a8dbbf
internal tweak with better names
bobzhang Oct 23, 2020
6516db5
Merge branch 'master' into adapt-build-to-react-ppx-in-syntax
jchavarri Oct 23, 2020
94e3b76
update with latest syntax submodule
jchavarri Oct 23, 2020
0561b94
fix #4762
bobzhang Oct 24, 2020
1cea958
Merge pull request #4764 from rescript-lang/fix_4762
bobzhang Oct 24, 2020
9069f7c
add napkin as deps for compiler
jchavarri Oct 24, 2020
b967284
roll back gitmodules change
jchavarri Oct 24, 2020
f9bafe4
Merge pull request #4660 from jchavarri/adapt-build-to-react-ppx-in-s…
bobzhang Oct 25, 2020
edd1efb
fix #4766
bobzhang Oct 25, 2020
7fb8dc2
Merge pull request #4767 from rescript-lang/fix_4766
bobzhang Oct 26, 2020
c5dc41e
update templates
bobzhang Oct 26, 2020
4257811
snapshot changes
bobzhang Oct 26, 2020
905d925
sync up with latest build engine
bobzhang Oct 26, 2020
b35d4fe
Merge pull request #4770 from rescript-lang/sync_up_8.3.2
bobzhang Oct 26, 2020
58acd09
Generate line based git friendly dep file
bobzhang Oct 28, 2020
882b913
Merge pull request #4773 from rescript-lang/git_friendly_dep_file
bobzhang Oct 28, 2020
f714151
Update issue template forum link
amiralies Oct 29, 2020
3011154
Tweak CONTRIBUTING for the local workflow
chenglou Oct 31, 2020
e590eca
[Super errors] Fix a bad revert
chenglou Oct 31, 2020
9e2cc3d
Add new test following #4784
chenglou Nov 1, 2020
cb761f3
Merge pull request #4787 from chenglou/new-test
bobzhang Nov 1, 2020
1cfb5a0
remove unused code
bobzhang Oct 29, 2020
c57bbba
fix #4774
bobzhang Oct 29, 2020
d5f47bf
fix CI
bobzhang Nov 1, 2020
e2ea9ea
Merge pull request #4776 from rescript-lang/git_friendly_dep_file
bobzhang Nov 1, 2020
2a0a312
Clearer wording
chenglou Nov 1, 2020
9773bc7
Merge pull request #4785 from chenglou/contrib
bobzhang Nov 2, 2020
d518b94
update build engine with specialized dyndep processing
bobzhang Nov 3, 2020
5737b5b
update build engine
bobzhang Nov 4, 2020
1ef1455
Merge pull request #4793 from rescript-lang/specialized_dyndep
bobzhang Nov 4, 2020
82be975
Upgrade react-starter template
thanabodee-c Oct 23, 2020
0530846
snapshot
bobzhang Nov 4, 2020
5f2bab6
Merge pull request #4795 from rescript-lang/upgrade-react-template
bobzhang Nov 4, 2020
60d80f3
tweak
bobzhang Nov 4, 2020
9e82ecc
always build ninja on CI
bobzhang Nov 4, 2020
42365c7
FIX: in regular mode, the ninja.tar.gz is not available
bobzhang Nov 5, 2020
4e18996
Merge pull request #4796 from rescript-lang/always_build_ninja_on_ci
bobzhang Nov 5, 2020
0dbb62d
upgrade submodules: syntax/ocaml
bobzhang Nov 5, 2020
630920f
not installing sources -- cmt file encodes the absolute filename
bobzhang Nov 5, 2020
5d09496
Merge pull request #4797 from rescript-lang/upgrade_sub_modules_syntax
bobzhang Nov 5, 2020
fc68d1a
change the installation from hash_set into Queue, prepare install.ninja
bobzhang Nov 5, 2020
9082b71
refactoring: keep more info in the install queue
bobzhang Nov 5, 2020
162484a
add a comment for the phony build.ninja trick
bobzhang Nov 5, 2020
6c533ff
flip the order
bobzhang Nov 5, 2020
547c89d
Use HTTPS to fetch ninja git submodule
mkaito Nov 5, 2020
bc41c33
finish the install instruction generation
bobzhang Nov 6, 2020
488490a
replace the old installation with the new engine
bobzhang Nov 6, 2020
77e3565
Merge pull request #4799 from mkaito/mkaito/submodule-ninja-https
bobzhang Nov 6, 2020
87128eb
tweak indentaiton
bobzhang Nov 6, 2020
7084c3a
ensure lib/bs, lib/ocaml exists
bobzhang Nov 6, 2020
6929bc8
turn on forced to make CI happy (investigate why it is needed later)
bobzhang Nov 6, 2020
a95f543
fix CI
bobzhang Nov 6, 2020
d4685d2
flip the forced
bobzhang Nov 6, 2020
af81a58
Done: micro tweak the build instruction generation performance
bobzhang Nov 6, 2020
d9e6af0
Merge pull request #4798 from rescript-lang/prepare_install.ninja
bobzhang Nov 6, 2020
8d7d996
consistent check for name field in bsconfig.json
bobzhang Nov 7, 2020
3899124
precise location for error reporting
bobzhang Nov 7, 2020
77296cc
Fix CI
bobzhang Nov 7, 2020
a60eb81
Merge pull request #4801 from rescript-lang/consistency_check
bobzhang Nov 7, 2020
063d6de
use queue and more meaningful logs
bobzhang Nov 9, 2020
f146ac9
better logs
bobzhang Nov 9, 2020
eec4cc3
proper error message when bsconfig.json is missing
bobzhang Nov 9, 2020
109ab2b
Merge pull request #4802 from rescript-lang/proper_error_message_when…
bobzhang Nov 9, 2020
6ca2b4e
Fix the schema URL
bobzhang Nov 10, 2020
b3184e8
Merge pull request #4803 from rescript-lang/fix_schema_location
bobzhang Nov 10, 2020
07a3034
keep `build` as a keyword to remain minimal compatiblity
bobzhang Nov 10, 2020
2f84801
Merge pull request #4804 from rescript-lang/keep_build_as_keyword
bobzhang Nov 10, 2020
f3132f9
Fix broken ocaml build when compiled with gcc 10
zweimach Nov 10, 2020
be7a679
Merge pull request #4806 from zweimach/fix-gcc-10
bobzhang Nov 10, 2020
bfe8a0f
remove unused code in refmt
bobzhang Nov 10, 2020
5fc8ce4
Merge pull request #4807 from rescript-lang/unused_refmt
bobzhang Nov 10, 2020
2842d50
add back basic-reason to avoid uneeded breakage
bobzhang Nov 10, 2020
232cf1b
snapshot
bobzhang Nov 10, 2020
4fc26b2
Merge pull request #4808 from rescript-lang/unused_refmt
bobzhang Nov 10, 2020
089f3c8
remove copy_outcome in refmt (unused code)
bobzhang Nov 11, 2020
a9872a8
Merge pull request #4815 from rescript-lang/continue_remove_unused_code
bobzhang Nov 12, 2020
828c8e8
Add a build statement for test coverge
bobzhang Nov 12, 2020
545b2df
snapshot
bobzhang Nov 12, 2020
3971639
update binaries
bobzhang Nov 12, 2020
f9f9892
Merge pull request #4816 from rescript-lang/test_coverage_for_build
bobzhang Nov 12, 2020
884f204
add an option to skip STDLIB_CHECK to work around node_modules restri…
bobzhang Nov 12, 2020
5f94c14
Merge pull request #4817 from rescript-lang/skip_stdlib_check
bobzhang Nov 12, 2020
9a83a6e
chages for bug fix release 8.3.3
bobzhang Nov 14, 2020
d398e42
Merge pull request #4821 from rescript-lang/changes
bobzhang Nov 16, 2020
17857d4
add a test case that -w @a still has effect for dependencies
bobzhang Nov 16, 2020
07bf1c6
tweak
bobzhang Nov 16, 2020
de23905
flip the order of `-w a`
bobzhang Nov 16, 2020
2933643
Merge pull request #4822 from rescript-lang/test_case_for_warnerror_deps
bobzhang Nov 16, 2020
0f4bc6e
add a test case for double unused warning
bobzhang Nov 16, 2020
e0873fb
remove unused code
bobzhang Nov 16, 2020
bfd7543
introduce warning 109
bobzhang Nov 16, 2020
674697d
Merge pull request #4823 from rescript-lang/test_case_for_warnerror_deps
bobzhang Nov 16, 2020
c256076
add a package_kind type
bobzhang Nov 17, 2020
bcedb24
refactoring to prepare for pinned packages support
bobzhang Nov 17, 2020
1ba1a35
meaningful names
bobzhang Nov 17, 2020
fbae34e
meaingful names
bobzhang Nov 17, 2020
af503d7
meaningful names
bobzhang Nov 17, 2020
796f7e0
meaningful names
bobzhang Nov 17, 2020
449494f
Merge pull request #4824 from rescript-lang/toplevel_refactoring
bobzhang Nov 17, 2020
3ef0e02
fix a typo in the warning `%@string` -> `@string`
bobzhang Nov 17, 2020
899c1d5
Merge pull request #4825 from rescript-lang/fix_typo
bobzhang Nov 17, 2020
098243b
refactoring
bobzhang Nov 17, 2020
0e783be
finish pinned dependency support
bobzhang Nov 17, 2020
676cad5
add a test case for pinned packages
bobzhang Nov 17, 2020
fcb1693
add missing file
bobzhang Nov 17, 2020
3a0c23a
record package mode in .bsdeps
bobzhang Nov 17, 2020
a5705e4
tweak the schema
bobzhang Nov 17, 2020
52b1be5
Merge pull request #4826 from rescript-lang/pinned_packages_support
bobzhang Nov 17, 2020
ba9da46
update ninja binaries from 8.3.3
bobzhang Nov 18, 2020
06da3de
mark rescript mode in generated files
bobzhang Nov 19, 2020
2564c13
make bsc behave closely to bsc.exe so that we can test the compiler o…
bobzhang Nov 19, 2020
224a31f
Merge pull request #4827 from rescript-lang/mark_rescript
bobzhang Nov 19, 2020
bb8d729
better inferences when -o not passed
bobzhang Nov 19, 2020
4282414
tweak
bobzhang Nov 19, 2020
68133f4
refactoring to remove reduandant code in processing files
bobzhang Nov 19, 2020
ea6bbfb
Merge pull request #4828 from rescript-lang/mark_rescript
bobzhang Nov 19, 2020
6c91d95
make debugging easier: e.g, ../script/dbg stdlib-405/char.ml
bobzhang Nov 19, 2020
7a4507e
Merge pull request #4829 from rescript-lang/easy_debug_script
bobzhang Nov 19, 2020
5c182fe
Fix typo in docs
bsansouci Nov 19, 2020
cef238e
use basename for relocable generated code
bobzhang Nov 20, 2020
b708dfe
no absname when building stdlib
bobzhang Nov 20, 2020
dea9f6d
relative paths reloaded
bobzhang Nov 20, 2020
3e41f60
snapshot changes
bobzhang Nov 20, 2020
76946df
refactoring
bobzhang Nov 20, 2020
3647256
Merge pull request #4831 from rescript-lang/mark_rescript
bobzhang Nov 24, 2020
3d9f506
finish monorepo support
bobzhang Nov 24, 2020
0784d69
Merge pull request #4836 from rescript-lang/mark_rescript
bobzhang Nov 24, 2020
cd5fa52
remove cleaning logic in bsb
bobzhang Nov 26, 2020
35eaf8f
output cleaner to notify the build engine to do the clean work
bobzhang Nov 26, 2020
d67b81a
update ninja binaries
bobzhang Nov 26, 2020
6c0d846
Merge pull request #4840 from rescript-lang/cmt_clean
bobzhang Nov 26, 2020
2f7ac6e
upgrade build engine which removes cmt/cmti
bobzhang Nov 27, 2020
d438e7a
Merge pull request #4841 from rescript-lang/remove_cmti
bobzhang Nov 27, 2020
4ed36c4
Merge pull request #4830 from bsansouci/patch-1
bobzhang Nov 28, 2020
0bf9609
fix installation copy rule for windows
bobzhang Nov 28, 2020
5b39e82
update build engine
bobzhang Nov 28, 2020
2a2cb27
Merge pull request #4844 from rescript-lang/install_fix_for_windows
bobzhang Nov 28, 2020
b9ecc3d
work around windows path escaping rules
bobzhang Nov 29, 2020
9b1b4be
make windows happy
bobzhang Nov 29, 2020
735d43b
remove bs_dep as parameter
bobzhang Nov 29, 2020
0b1502a
remove bsc as path
bobzhang Nov 29, 2020
f670701
pass bs_dependencies and bs_dev_dependencies as parameter
bobzhang Nov 29, 2020
1dad363
remove previous hacks avoiding pass -bs-v $empty
bobzhang Nov 29, 2020
e885c10
update windows ninja binary
bobzhang Nov 30, 2020
a576521
Merge pull request #4847 from rescript-lang/install_fix_for_windows
bobzhang Nov 30, 2020
57b3578
fix "The process cannot access the file because it is being used by a…
bobzhang Nov 30, 2020
dca3403
Merge pull request #4848 from rescript-lang/fix_windows_file_error
bobzhang Nov 30, 2020
269909e
udpate changes
bobzhang Nov 30, 2020
72971fb
Merge pull request #4849 from rescript-lang/changes_for_8.4
bobzhang Dec 1, 2020
39096a1
remove dev dependencies on ocp-ocamlres
bobzhang Dec 1, 2020
d333db4
remove one unused file
bobzhang Dec 3, 2020
4282bee
update docs
bobzhang Dec 3, 2020
957a09a
update docs
bobzhang Dec 3, 2020
e6305a3
Merge pull request #4850 from rescript-lang/remove_ocp_pack
bobzhang Dec 3, 2020
725b213
toplevel pinned dependencies should trigger the build of dev dependen…
bobzhang Dec 4, 2020
6d4c525
Merge pull request #4854 from rescript-lang/fix_pinned_dependency_wit…
bobzhang Dec 4, 2020
c496cc7
[internal changes] changes of ocamlcommon.cmxa will trigger a rebuild…
bobzhang Dec 4, 2020
5cc4292
Merge pull request #4855 from rescript-lang/compiler_changes
bobzhang Dec 4, 2020
e1c79df
more debug info printed
bobzhang Dec 6, 2020
6df691f
prefer explicit to implict: more readable code, fix #4856
bobzhang Dec 6, 2020
a846eac
snapshot changes
bobzhang Dec 6, 2020
16e52ff
snapshot js changes
bobzhang Dec 6, 2020
b59b105
Merge pull request #4858 from rescript-lang/compiler_changes
bobzhang Dec 6, 2020
3599633
upgrade syntax submodule
bobzhang Dec 6, 2020
30c9e0a
snapshot changes
bobzhang Dec 6, 2020
272d593
bump the version
bobzhang Dec 6, 2020
52d7294
sync up
bobzhang Dec 7, 2020
991ee92
update changes
bobzhang Dec 7, 2020
c6bcaac
Merge pull request #4860 from rescript-lang/syncup
bobzhang Dec 7, 2020
c5c89b4
Fixed typo in Changes.md
Dec 7, 2020
74febe3
experimental changes so that only cmi/j changes will trigger a rebuild
bobzhang Dec 8, 2020
4908a70
refactoring
bobzhang Dec 8, 2020
e935bee
Merge pull request #4861 from mweichert/patch-2
bobzhang Dec 8, 2020
ac4d022
windows support
bobzhang Dec 8, 2020
a9cb708
Merge pull request #4863 from rescript-lang/cmji_changes
bobzhang Dec 8, 2020
d0610fc
fix #4864
bobzhang Dec 8, 2020
3ac685a
refactoring
bobzhang Dec 8, 2020
58f4cd1
Merge pull request #4865 from rescript-lang/fix_4864
bobzhang Dec 8, 2020
7b87dc4
bump version
bobzhang Dec 11, 2020
bb547e3
update mac
bobzhang Dec 11, 2020
eb9c158
make scripts work on node10
bobzhang Dec 11, 2020
51eacd5
update linux bin
bobzhang Dec 11, 2020
1ac88da
make publish scripts work with node 10 and linux
bobzhang Dec 11, 2020
1d532ab
udpate vendors
bobzhang Dec 11, 2020
c9e7ce2
update win bin
bobzhang Dec 11, 2020
0b2961f
Merge branch 'playground-napkin-support' of https://github.com/ryyppy…
ryyppy Dec 22, 2020
36ec779
Setup the ReScript outcomeprinter
ryyppy Dec 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs: # a collection of steps
name: "Setting env variables"
command: |
echo 'export BS_TRAVIS_CI=1' >> $BASH_ENV
echo 'export NINJA_FORCE_REBUILD=1' >> $BASH_ENV
echo 'export OCAMLRUNPARAM="b"' >> $BASH_ENV
- run:
name: "Check env variables"
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Thank you for filing! Check list:
- [ ] Is it a bug? Usage questions should often be asked in the [forum](https://reasonml.chat) instead.
- [ ] Is it a bug? Usage questions should often be asked in the [forum](https://forum.rescript-lang.org) instead.
- [ ] Concise, focused, friendly issue title & description.
- [ ] A [minimal, reproducible example](http://sscce.org).
- [ ] Ideally in OCaml syntax for now. To isolate the problem caused by either Reason or the New Syntax.
Expand Down
4 changes: 3 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[submodule "ocaml"]
path = ocaml
url = https://github.com/rescript-lang/ocaml
ignore = untracked
[submodule "syntax"]
path = syntax
url = https://github.com/rescript-lang/syntax
branch = master
[submodule "ninja"]
path = ninja
url = git@github.com:rescript-lang/ninja.git
url = https://github.com/rescript-lang/ninja
ignore = untracked
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ package/
.nyc_output/
themes
vendor/js_of_ocaml.bc
syntax/
syntax/
*.log
ninja
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ If this doesn't work (rare), then:
If you'd like to use your modified ReScript like an end-user, try:

```sh
npm uninstall -g bs-platform # a cache-busting uninstall is needed, but only for npm >=7
BS_TRAVIS_CI=1 npm install -g .
```

Expand Down
122 changes: 122 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,127 @@
`*` means potential break changes

# 8.4.1

- Syntax submodule upgrades from 7f5c968 to 7cc70c9
- #4856 #4858
Improve code generation for pattern match:
Input:
```res
type t =
| A
| B
| C
| D (int )
| E (int)

let f = x => {
switch x {
| A => 0
| B => 1
| C => 2
| D (x) => x
| E (x) => x + 1
}
}
```
Output was:
```js
function f(x) {
if (typeof x !== "number") {
if (x.TAG) {
return x._0 + 1 | 0;
} else {
return x._0;
}

switch (x) {
case /* A */0 :
return 0;
case /* B */1 :
return 1;
case /* C */2 :
return 2;
}
}
```

Now:
```js
function f(x) {
if (typeof x !== "number") {
if (x.TAG === /* D */0) {
return x._0;
} else {
return x._0 + 1 | 0;
}
}
switch (x) {
case /* A */0 :
return 0;
case /* B */1 :
return 1;
case /* C */2 :
return 2;

}
}
```



- #4855 *internal changes*
changes to compiler-libs will trigger a rebuild of the compiler, this allows us to
see how changes of compiler-libs affect bsc.exe quickly

- #4850 replace ocp-ocamlres with a lightweight nodejs script, get rid of such dev dependency

- #4854 #4848 #4847 #4844 #4836 #4826 #4824

Pinned packages support and `-make-world` respect changes of dependencies

- #4840 #4841 more robust handling of removing stale output


- #4831 use relative paths in the command line
It will be expanded to absolute path right after the compiler see the path,
such changes work better with the underlying ninja build engine, and should perform slightly better

- #4828 no need pass -o for compiling, inferred directly (with namespace support too)

- #4827 *internal* the dev version of bsc now behave roughly the same as the released version

- #4825 fix a typo in the warning `%@string` -> `@string`

- #4823 introduce a new warning 109: toplevel expression is expected to have type unit
It is turned on as warn-error by default. This warning is introduced to avoid partial application errors in a curried language

- #4822 more robust hanlding of : ignore warnings and warn-error when bsb is building dependencies



# 8.3.3
This is a bug release for 8.3.*
- #4817 *internal* add an option RES_SKIP_STDLIB_CHECK so that
for a true monorepo, it does not need follow `node_modules` layout
- #4807 #4815 remove unused code in refmt parser *a lot* (around 50_000 loc)
on darwin, the binary size is dropped fom 9.69M to 8.48M
- #4808 add back basic-reason theme to avoid breakage for existing docs
- #4806 Fix broken ocaml build with gcc 10
- #4804 restore back-wards compatibility with `build statement` in generated ninja files
- #4803 fix the bsb build schema location in the error message
- #4802 proper error message when bsconfig.json is missing
- #4801 add a sanity check for name field in bsconfig.json to match real package name
- #4810 #4784 regressions for weird indentation in warning output


# 8.3.1
This is a minor bug fix release for 8.3.0
- capture warnings when rebuild without enforce warn-as-error
- #4716 internal, make ninja a submodule in dev process
- #4722 better dataflow for cases like `let {a;b} as obj = ...`
- no need call `caml_enter_blocking_section` for single threaded compiler
- #4739 fix the interaction of exotic filenames like `[id]` with the build system.

# 8.3

- #4694, #4712 improving/customizing the underlying ninja build system, better performance
Expand Down
Binary file added darwin/bsb.exe
Binary file not shown.
Binary file added darwin/bsb_helper.exe
Binary file not shown.
Binary file added darwin/bsc.exe
Binary file not shown.
Binary file modified darwin/ninja.exe
Binary file not shown.
Binary file added darwin/refmt.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/docson/build-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@
"$ref": "#/definitions/dependencies",
"description": "OCaml/Reason dev dependencies of the library, like in package.json. Currently searches in `node_modules`"
},
"pinned-dependencies" : {
"$ref": "#/definitions/dependencies",
"description": "Those dependencies are pinned (since version 8.4)"
},
"generators": {
"type": "array",
"items": {
Expand Down
8 changes: 1 addition & 7 deletions jscomp/artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@
"map.js",
"marshal.js",
"moreLabels.js",
"nativeint.js",
"node_buffer.js",
"node_child_process.js",
"node_fs.js",
Expand Down Expand Up @@ -364,7 +363,6 @@
"map.js",
"marshal.js",
"moreLabels.js",
"nativeint.js",
"node_buffer.js",
"node_child_process.js",
"node_fs.js",
Expand Down Expand Up @@ -488,7 +486,6 @@
"map.cmi",
"marshal.cmi",
"moreLabels.cmi",
"nativeint.cmi",
"node_buffer.cmi",
"node_child_process.cmi",
"node_fs.cmi",
Expand Down Expand Up @@ -619,7 +616,6 @@
"map.cmt",
"marshal.cmt",
"moreLabels.cmt",
"nativeint.cmt",
"node_buffer.cmt",
"node_child_process.cmt",
"node_fs.cmt",
Expand Down Expand Up @@ -724,7 +720,6 @@
"map.cmti",
"marshal.cmti",
"moreLabels.cmti",
"nativeint.cmti",
"node_process.cmti",
"obj.cmti",
"parsing.cmti",
Expand Down Expand Up @@ -857,7 +852,6 @@
"mapm.cppo.ml",
"marshal.ml",
"moreLabels.ml",
"nativeint.ml",
"node_buffer.ml",
"node_child_process.ml",
"node_fs.ml",
Expand Down Expand Up @@ -969,7 +963,6 @@
"mapm.cppo.mli",
"marshal.mli",
"moreLabels.mli",
"nativeint.mli",
"node_process.mli",
"obj.mli",
"parsing.mli",
Expand Down Expand Up @@ -1014,6 +1007,7 @@
"littlecase.js",
"ninja.js",
"ninjaFactory.js",
"pack.js",
"prebuilt.js",
"prepublish.js",
"release.js",
Expand Down
135 changes: 0 additions & 135 deletions jscomp/bin/bsb_native.ml.d

This file was deleted.

Loading