Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
785 commits
Select commit Hold shift + click to select a range
07c6fb7
Also adapt arrow in typedtree.
cristianoc Jul 15, 2025
f26d5c9
Adapt arrow type in Types.
cristianoc Jul 15, 2025
736159e
Use root package suffix in clean log messages (#7648)
nojaf Jul 15, 2025
f361edb
Rewatch: add support for "rescript -w" for compatibility (#7649)
cknitt Jul 15, 2025
fd68109
Refactor filter command line option handling (#7651)
cknitt Jul 15, 2025
dbcaa93
Add AGENTS.md (#7653)
cknitt Jul 15, 2025
0ae9d12
Fix inside comment printing for empty dict (#7654)
shulhi Jul 16, 2025
bf020e9
Refactor: construct every Ptyp_arrow via Ast_helper.Typ.arrow.
cristianoc Jul 15, 2025
2c96b79
Begin adding an arrow construction to Ast_helper that takes a list of…
cristianoc Jul 16, 2025
fdf00a7
Prevent trying to read non-existing file when extracting extra info f…
zth Jul 17, 2025
caf4154
Rust implementation of "rescript format" (#7603)
cknitt Jul 17, 2025
7883fe2
Rewatch: JSX 3 is unsupported (#7659)
cknitt Jul 17, 2025
66ce487
Fix fatal error when JSX not configured in rescript.json
cknitt Jul 17, 2025
2bb478c
CHANGELOG
cknitt Jul 17, 2025
5429398
AST: store the attributes directly on function arguments.
cristianoc Jul 17, 2025
aa61788
Clean up `Ast_core_type` using the `arg` type.
cristianoc Jul 17, 2025
cea6328
Add attributes field to arg type in typedtree
cristianoc Jul 17, 2025
b7ce5e2
Read bs-dev-dependencies if --dev was passed. (#7650)
nojaf Jul 18, 2025
a26186a
Prepare for 12.0.0-beta.2 release (#7666)
cknitt Jul 18, 2025
8ed879e
Set version to 12.0.0-beta.3 (#7667)
cknitt Jul 18, 2025
9f65d3d
Fix Windows CI (#7665)
cknitt Jul 19, 2025
326acd6
Revert utils.sh (#7669)
nojaf Jul 19, 2025
ac6a87d
Run Rewatch tests in release mode. (#7663)
nojaf Jul 19, 2025
5109bb0
Deprecate `bs-dependencies`, `bs-dev-dependencies` and `bsc-flags` (#…
Bushuo Jul 20, 2025
249cb40
Add optional `message` argument to `Result.getOrThrow` and improve de…
mediremi Jul 20, 2025
b64e2d8
Remove Example.res (#7685)
shulhi Jul 20, 2025
c092acd
ci: add clippy (#7675)
Bushuo Jul 20, 2025
1fa4d26
Remove legacy clean (#7657)
nojaf Jul 21, 2025
789591a
Fix sourcedirs.json generation (#7671)
nojaf Jul 21, 2025
dffc266
Fix comments attached to array element (#7672)
shulhi Jul 21, 2025
51a305e
Use `Typ.arrows` after the refactoring of arrow types.
cristianoc Jul 18, 2025
555cdbd
simplify
cristianoc Jul 18, 2025
a4c05cc
rename
cristianoc Jul 18, 2025
bf9b986
Refactor maker and accessor generation in AST derive
cristianoc Jul 18, 2025
a8c9fec
More Typ.arrows
cristianoc Jul 18, 2025
e6e981c
Use Typ.arrows in handle external.
cristianoc Jul 18, 2025
ada8eba
Refactor method callback and uncurry type handling
cristianoc Jul 20, 2025
22ad3f5
Update CHANGELOG.md
cristianoc Jul 21, 2025
76d783e
Rename rewatch to rescript (#7687)
nojaf Jul 22, 2025
b63b544
Don't ignore Stdlib_* files when generating docstring tests (#7694)
mediremi Jul 22, 2025
3606b7b
fix: rewatch not rebuilding on change (#7690)
Bushuo Jul 22, 2025
e7f8e3a
Fix regex literal loc (#7683)
zth Jul 22, 2025
61911cb
Adjust to bs-* deprecations (#7692)
zth Jul 22, 2025
76f9e00
Remove all leftovers of pinned-dependencies handling (#7686)
cknitt Jul 22, 2025
663bfd0
Rename all remaining bsconfig.json to rescript.json (#7697)
cknitt Jul 22, 2025
812d07e
Better error message if platform binaries package is not found (#7698)
cknitt Jul 22, 2025
2646aea
Add `RegExp.escape` binding (#7695)
mediremi Jul 22, 2025
86f026c
Adapt bsb to new rescript.json flags and remove usage of deprecated o…
cknitt Jul 23, 2025
cc27a5d
Add rust-version field to Rewatch's Cargo.toml (#7701)
mediremi Jul 23, 2025
0e5d216
Add asyncComponent to jsx (#7704)
nojaf Jul 24, 2025
327b986
Add support for async methods. (#7702)
cristianoc Jul 24, 2025
e8b4764
Clarify arity mismatch message (#7709)
zth Jul 24, 2025
7953354
Hint in error for string constants matching expected variant (#7711)
zth Jul 24, 2025
724232e
Remove dump command from rewatch cli (#7710)
cknitt Jul 24, 2025
fc69bf4
Improve error for a constructor expecting an inline record (#7713)
zth Jul 25, 2025
36824ed
Suggest different arity functions when it makes sense (#7712)
zth Jul 25, 2025
b3be9aa
Remove meth attribute (#7684)
shulhi Jul 25, 2025
3bd115b
Prepare for 12.0.0-beta.3 release (#7716)
cknitt Jul 25, 2025
f34ade1
Set version to 12.0.0-beta.4 (#7719)
cknitt Jul 25, 2025
c79b033
Suggest using JSX fragment where appropriate (#7714)
zth Jul 25, 2025
7c6f354
Do not show coercion suggestion when coercion isn't possible (#7721)
zth Jul 25, 2025
0fff45a
Show deprecation warnings for local deps only (#7724)
cknitt Jul 26, 2025
1fac9fa
Add node version check (#7723)
cknitt Jul 26, 2025
b50e72c
.gitignore: add Claude Code local settings (#7725)
cknitt Jul 26, 2025
39e90c7
Rewatch: remove support for .ml(i) and .re(i) (#7727)
cknitt Jul 28, 2025
118294a
Use more optional args in stdlib and deprecate some functions (#7730)
cknitt Jul 28, 2025
f04e3b3
improve error message for trying to do dot access on option/array (#7…
zth Jul 29, 2025
7917ea3
Fix formatter removed parens from functor type (#7735)
shulhi Jul 29, 2025
e4b6669
Move is_local_dep to Dependency struct (#7736)
nojaf Jul 30, 2025
c8d71af
Fix rewatch compilation of file starting with a lowercase letter (#7700)
tsnobip Jul 30, 2025
b70e6ad
remove dev log from rewatch (#7739)
tsnobip Jul 30, 2025
8057ded
Prevent infinite recursion in `TypeUtils.resolveTypeForPipeCompletio…
mediremi Jul 30, 2025
12debe4
Fix error message (#7734)
cknitt Jul 30, 2025
0184ec5
Prepare for 12.0.0-beta.4 release (#7743)
fhammerschmidt Jul 31, 2025
d36dd91
Set version to 12.0.0-beta.5 (#7744)
fhammerschmidt Jul 31, 2025
2aee2fd
Update CONTRIBUTING.md: KeyCDN -> Cloudflare R2 (#7745)
fhammerschmidt Jul 31, 2025
640bb93
Refactor printing inline type declarations (#7741)
zth Aug 1, 2025
93b103d
Don't format and don't check formatting of dependencies (#7748)
mediremi Aug 1, 2025
81f4b2f
Trim trailing commas from semantic tokens output to ensure valid JSON…
mediremi Aug 2, 2025
fb162b2
Update jsx configuration schema (#7755)
nojaf Aug 4, 2025
c738f75
Refactor jsx mode in parser (#7751)
nojaf Aug 6, 2025
ead028b
Try and read package name from rescript.json if package.json is not p…
nojaf Aug 8, 2025
e040107
Prepare for 12.0.0-beta.5 release (#7758)
fhammerschmidt Aug 8, 2025
697ccf8
Set version to 12.0.0-beta.6 (#7759)
fhammerschmidt Aug 8, 2025
6d4e83e
Add jsx_tag_name (#7760)
nojaf Aug 11, 2025
1e863ec
Add a few Stdlib helpers (#7516)
DZakh Aug 12, 2025
5372d67
Fix issue with ast conversion on functions with attributes on arguments.
cristianoc Aug 11, 2025
03b5e92
Adapt conversion from old parsetree
cristianoc Aug 11, 2025
8e4d66a
Update CHANGELOG.md
cristianoc Aug 11, 2025
2cd9996
Be more aware of the workspace during clean (#7752)
nojaf Aug 13, 2025
e92879e
Fix option optimisation compiler bug (#7766)
mediremi Aug 13, 2025
846b904
Try to read dependency from the current package. (#7770)
nojaf Aug 15, 2025
89a0890
Show both suffixes if multiple package specs with different extension…
nojaf Aug 15, 2025
4a4c689
Add missing details for packages in root rescript json (#7771)
nojaf Aug 15, 2025
37f233f
Prepare for 12.0.0-beta.6 release (#7772)
fhammerschmidt Aug 15, 2025
4276895
Set version to 12.0.0-beta.7 (#7773)
fhammerschmidt Aug 15, 2025
dfa1610
Show doc comments before type expansions in hover information (#7774)
mediremi Aug 18, 2025
271a112
Add markdown divider between module doc and module type in hover info…
mediremi Aug 18, 2025
9efa7e2
Preserve @as decorator on record fields when creating interface (#7779)
mediremi Aug 21, 2025
09903f9
Allow skipping leading pipe in definitions of variants with attribute…
zth Aug 22, 2025
db17fe1
Pass and extend current_type_path in missing place (#7781)
zth Aug 22, 2025
c6624e4
Support completions and better hovers for first class modules (#7780)
zth Aug 22, 2025
93db5f0
Reuse package resolution for ppx (#7776)
nojaf Aug 22, 2025
fc7226b
Better error when trying to use a keyword as a record field (#7784)
zth Aug 22, 2025
b60541e
Fix 'Unbound module type' errors that occurred when trying to async i…
mediremi Aug 22, 2025
d9bfbc8
Prepare for 12.0.0-beta.7 release (#7792)
fhammerschmidt Aug 22, 2025
cb59f21
Set version to 12.0.0-beta.8 (#7793)
fhammerschmidt Aug 23, 2025
1c9ebd7
Fix creating interface for functions with upper bounded polymorphic a…
mediremi Aug 23, 2025
d8fb2d4
Fix CHANGELOG
cknitt Aug 23, 2025
6ea8db7
Build runtime with rewatch on Windows, too
cknitt Jul 18, 2025
18ff979
Parser leading attr strictness (#7787)
zth Aug 23, 2025
fe531a2
Add support for ArrayBuffer and typed arrays to @unboxed (#7788)
mediremi Aug 23, 2025
7f094ec
Build with only one older OCaml version (#7797)
cknitt Aug 24, 2025
b1135d4
Add CHANGELOG entry for typed array support in unboxed types (#7800)
mediremi Aug 24, 2025
ce53ae4
Fix semantic highlighting for array spreads, array access and dict li…
mediremi Aug 24, 2025
3931a96
Dedicated error message for ternaries (#7804)
zth Aug 25, 2025
bfec8a2
`@rescript/runtime` package (#7796)
cknitt Aug 26, 2025
f8c108f
Error for braced single identifier to record (#7806)
zth Aug 26, 2025
54f118d
Hint about partial application in error where required labels are mis…
zth Aug 26, 2025
9047078
More improvements to completions involving modules (#7795)
zth Aug 27, 2025
42dfb71
Complete react.componentWithProps (#7812)
nojaf Aug 27, 2025
ce7f09c
PoC of let? (#7582)
zth Aug 27, 2025
644ccd8
Add some missing iframe attributes (#7813)
nojaf Aug 27, 2025
ea569cd
fix JS regex literal parsing in char classes (#7790)
zth Aug 28, 2025
183d982
Try to improve error message about inline record escaping scope (#7808)
zth Aug 28, 2025
94a7879
Remove @rescript/std (in favor of @rescript/runtime) (#7811)
cknitt Aug 28, 2025
3d570a2
Change placement of closing > in JSX (#7803)
nojaf Aug 29, 2025
c5b1a3d
Prepare for 12.0.0-beta.8 release (#7816)
cknitt Aug 29, 2025
6c0fd56
Fix: do not try publishing api docs if nothing has changed (#7817)
cknitt Aug 29, 2025
949139c
Include the contents of @rescript/runtime in the artifact list
cknitt Aug 26, 2025
85ef7d6
Fix contents of runtime package
cknitt Aug 30, 2025
7c66211
Set version to 12.0.0-beta.9 (#7821)
cknitt Aug 30, 2025
5e9db64
Set version to 12.0.0-beta.10 (#7822)
cknitt Aug 30, 2025
2a5356e
Do not include .ast/.iast files in lib-ocaml.zip artifact (#7823)
cknitt Aug 30, 2025
9ce1432
CI: windows-latest -> windows-2022 (#7824)
cknitt Aug 30, 2025
5eaab84
Add section on domProps (#7815)
nojaf Aug 31, 2025
22f68af
Fix generation of interfaces for module types containing multiple typ…
mediremi Aug 31, 2025
e0528c0
Show `Stdlib.Null` and `Stdlib.Nullable` completions for `Stdlib.null…
mediremi Aug 31, 2025
a09a3d7
Add `Stdlib.TypedArray` completions to stdlib typed array types (#7827)
mediremi Sep 1, 2025
2dc0103
JSX preserve mode: fix "make is not a valid component name" (#7831)
cknitt Sep 2, 2025
5cc3938
Better error messages for GADTs and int overflows (#7830)
fhammerschmidt Sep 3, 2025
d911ca6
Error messages cleanup: Don't please the user (#7833)
fhammerschmidt Sep 3, 2025
450a709
add a script to serve playground bundle locally (#7834)
cometkim Sep 3, 2025
5bbb344
Fix experimental rescript config (#7836)
nojaf Sep 4, 2025
cd8c272
docs: enhance CODEX.md with detailed repo guidance
cristianoc Sep 4, 2025
edf2724
stop mangling tagged templates and backquoted strings (#7841)
tsnobip Sep 4, 2025
e3256ba
Extend Gentype shims (#7842)
zth Sep 5, 2025
ed425d8
Better error when defining a type inside of a function (#7843)
zth Sep 5, 2025
35e1601
syntax/jsx_v4: fix forwardRef arity regression; mark internal impl un…
cristianoc Sep 5, 2025
b3f2b08
tests: add compiled .mjs for forwardRef_regress
cristianoc Sep 5, 2025
2904146
changelog: add entry for JSX v4 forwardRef arity fix (#7845)
cristianoc Sep 5, 2025
535a8bd
Refactor CLI to use spawn for better signal handling in watch mode (#…
nojaf Sep 5, 2025
2fda497
Prepare for 12.0.0-beta.10 release (#7848)
fhammerschmidt Sep 5, 2025
2d589b7
Set version to 12.0.0-beta.11 (#7849)
fhammerschmidt Sep 5, 2025
553bd9c
Add prepareRename command (#7847)
zth Sep 6, 2025
e723459
Bump slab from 0.4.10 to 0.4.11 in /rewatch (#7767)
dependabot[bot] Sep 7, 2025
3b9b8ff
Have biome check all files, not just changed ones (#7856)
cknitt Sep 7, 2025
05c10e3
Fix code generation for emojis in polyvars and labels (#7853)
cknitt Sep 7, 2025
8902a27
Playground: Add config options for experimental features and jsx pres…
fhammerschmidt Sep 9, 2025
cfa4f7b
String.charCodeAt should return int (#7864)
cknitt Sep 10, 2025
e1e3cf8
Migrate mocha tests from OCaml-style `Mt` to idiomatic ReScript/JS us…
cknitt Sep 10, 2025
6dcf79a
Fix crash with `@get` on external of type `unit => 'a` (#7866)
cknitt Sep 10, 2025
497f233
Add reset to experimental_features to correctly reset playground (#7868)
fhammerschmidt Sep 10, 2025
d711614
Support record type spreads in inline records (#7859)
zth Sep 10, 2025
6f423e4
Remove ocaml_compat stuff from tests (#7871)
cknitt Sep 10, 2025
34d78c4
Setup trusted publishers and provenance (#7867)
cometkim Sep 10, 2025
6d9eedf
Use `%array_length` for `Array.length` to bring back lost optimizatio…
cknitt Sep 11, 2025
85b20db
Float.isNaN: use Number.isNaN instead of global isNaN (#7874)
cknitt Sep 11, 2025
674cc9e
Stdlib: Add Array.filterMapWithIndex (#7876)
fhammerschmidt Sep 11, 2025
1cd4744
Remove support of children spread inside JSX (#7869)
Copilot Sep 12, 2025
dee0465
Resolve @rescript/runtime (#7858)
nojaf Sep 12, 2025
4b9c715
Have `String.charCodeAt` return `option<int>`; add `charCodeAtUnsafe`…
cknitt Sep 12, 2025
bd5d3a6
Prepare for 12.0.0-beta.11 release (#7882)
cknitt Sep 12, 2025
3a9dd74
Fix changelog (#7883)
cknitt Sep 12, 2025
67742d5
Set YARN_NPM_AUTH_TOKEN for publishing again (#7884)
cknitt Sep 12, 2025
dbf4125
Set version to 12.0.0-beta.12 (#7885)
cknitt Sep 12, 2025
9676953
Remove CODEX.md and GEMINI.md, as both Codex and Gemini now respect A…
cknitt Sep 13, 2025
d93f51b
Make experimental-features kebap-case in compiler config like the oth…
fhammerschmidt Sep 16, 2025
5c0e9dd
Add (dev-)dependencies to build schema (#7892)
fhammerschmidt Sep 16, 2025
34cb6b8
Ensure runtime is passed to mlmap generation (#7888)
nojaf Sep 16, 2025
1bef891
Stdlib: add DataView with littleEndian get/set (#7881)
htoooth Sep 16, 2025
83aa0bc
Little changelog fix (#7893)
fhammerschmidt Sep 16, 2025
394ddaa
Overhauled AGENTS.md (#7897)
cknitt Sep 17, 2025
a631b38
Use Rust 1.88 during CI (#7902)
nojaf Sep 18, 2025
d3539ef
Dedicated error for dict literal spread (#7901)
zth Sep 19, 2025
f53e36d
Specialized errors for when colon and equals are mixed up (#7900)
zth Sep 19, 2025
1d0166b
Keep track of compiler info during build (#7889)
nojaf Sep 19, 2025
b4e6b43
adapt tokenless publishing via NPM (#7904)
cometkim Sep 19, 2025
51e0708
Stdlib: Add async result helpers (#7906)
fhammerschmidt Sep 19, 2025
68cff4a
Prepare for 12.0.0-beta.12 release (#7907)
cknitt Sep 19, 2025
271bbac
Use patched yarn to fix OIDC publishing (#7910)
cknitt Sep 19, 2025
b43ed01
Set version to 12.0.0-beta.13 (#7911)
cknitt Sep 19, 2025
74d2492
Verify if a package was compiled during the mismatch check. (#7912)
nojaf Sep 20, 2025
645e1a9
Improve option optimization for constants (#7913)
cknitt Sep 21, 2025
1a8dfdb
Fix result examples (#7914)
fhammerschmidt Sep 21, 2025
e0e2ce4
Option optimization: do not create redundant local vars (#7915)
cknitt Sep 22, 2025
fa073e8
Js output: fix extra newline after `if` (#7920)
cknitt Sep 23, 2025
fbb8a4e
Fix docstring tests (#7923)
cknitt Sep 24, 2025
9f65e63
Make inline record fields that overlap with a variant's tag a compile…
mediremi Sep 26, 2025
a034ed7
Update Yarn to v4.10.3 (#7919)
cometkim Sep 26, 2025
84e45c5
Traverse upwards for single context projects (#7896)
nojaf Sep 26, 2025
c0aaede
Add --warn-error to Rewatch (#7916)
nojaf Sep 26, 2025
209c486
Prepare for 12.0.0-beta.13 release (#7924)
cknitt Sep 26, 2025
24b02f1
Set version to 12.0.0-beta.14 (#7925)
cknitt Sep 26, 2025
268996b
Prevent lockfile creation when project folder is missing (#7927)
cknitt Sep 29, 2025
a1b3b3c
Rewatch cli help: do not show build command options in the root help …
cknitt Sep 29, 2025
57c696b
Removed "rescript legacy" subcommand in favor of separate "rescript-l…
cknitt Sep 30, 2025
d2f5ffa
Fix parameter type / return type ambiguity error for unit case (#7930)
cknitt Oct 3, 2025
108ca65
CI: macos runners: use macos-15/macos-15-intel (#7935)
cknitt Oct 3, 2025
112ebd5
add comparison fn for Error in Result.equal and compare (#7933)
tsnobip Oct 3, 2025
11cde90
Deprecate @raises in favor of @throws in reanalyze (#7932)
Copilot Oct 3, 2025
f8103f2
Remove dev flag usage (#7934)
nojaf Oct 3, 2025
9ce9d55
Prepare for 12.0.0-beta.14 release (#7937)
cknitt Oct 3, 2025
a58ff10
Set version to 12.0.0-rc.1 (#7938)
cknitt Oct 4, 2025
6a9ffc1
Migrate typed tree to use AST with locs for fn arguments (#7873)
zth Oct 6, 2025
f3585e2
Automatic migrations (#7829)
zth Oct 6, 2025
bac94a4
improve errors for circular dependencies (#7940)
zth Oct 8, 2025
b2ce0f7
JSX PPX: add Jsx.element return constraint (#7939)
cknitt Oct 10, 2025
2b3b9dd
Prepare for 12.0.0-rc.1 release (#7943)
cknitt Oct 10, 2025
c3c1c17
Set version to 12.0.0-rc.2 (#7944)
cknitt Oct 11, 2025
e1681e7
Fix: use configured Jsx module for constraining component return type…
cknitt Oct 11, 2025
26fa42a
Undeprecate Js_OO since it is still used (#7955)
zth Oct 13, 2025
72750a9
JSX PPX: externals: React.componentLike -> React.component (#7952)
cknitt Oct 13, 2025
9616716
Introduce F#-style binary operators (#7894)
cometkim Oct 17, 2025
973351a
Fix crash when using bitwise not on incompatible type (#7965)
cknitt Oct 17, 2025
635cee4
Prepare for 12.0.0-rc.2 release (#7967)
cknitt Oct 17, 2025
10dca8f
Set version to 12.0.0-rc.3 (#7968)
cknitt Oct 17, 2025
dd2ed8e
Rewatch: plain output when not running in tty (#7970)
cknitt Oct 18, 2025
f3bd0d0
Streamline rewatch help texts (#7973)
cknitt Oct 20, 2025
6cfac38
Rework Makefile; dependency tracking (#7975)
cknitt Oct 22, 2025
f7e3343
Global docstrings (#7976)
fhammerschmidt Oct 22, 2025
737c1b4
Mitigate potential template injection in CI workflow (#7982)
mediremi Oct 22, 2025
c3dc0dc
Fix @directive on function level with async and multiple parameters (…
cknitt Oct 23, 2025
3d993e2
Symbol docstrings (#7983)
fhammerschmidt Oct 23, 2025
77919a5
WeakMap docstrings (#7985)
fhammerschmidt Oct 23, 2025
f8d4636
Ordering docstrings (#7981)
fhammerschmidt Oct 23, 2025
3949f60
Object docstrings (#7980)
fhammerschmidt Oct 23, 2025
04c1e1d
Array docstrings (#7979)
fhammerschmidt Oct 23, 2025
98fa501
WeakSet docstrings (#7986)
fhammerschmidt Oct 23, 2025
3565257
Fix fatal error for external with @as (#7978)
cknitt Oct 23, 2025
372ee8d
TypedArray docstrings (#7984)
fhammerschmidt Oct 23, 2025
68afeab
Remove unnecessary usage of Ast_uncurried helpers (#7987)
cknitt Oct 23, 2025
5d769e9
Add alternative for dict{} pattern match (#7989)
nojaf Oct 24, 2025
cd6bc43
Reduce logs (#7971)
jfrolich Oct 24, 2025
f3b1cb8
Prepare for 12.0.0-rc.3 release (#7990)
fhammerschmidt Oct 24, 2025
657ba7d
Set version to 12.0.0-rc.4 (#7991)
fhammerschmidt Oct 25, 2025
78a98ca
suite-ci.sh -> suite.sh
cknitt Oct 26, 2025
fd0404d
More Makefile fixes (test dependencies, test-rewatch)
cknitt Oct 26, 2025
b7e8c2f
Intl docstrings + fix of some Intl bindings (#7995)
fhammerschmidt Oct 27, 2025
5d8bdc1
Makefile improvements: playground (#7997)
cknitt Nov 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
99 changes: 99 additions & 0 deletions .devcontainer/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
*~
_build
*.obj
*.out
*.compile
*.native
*.byte
*.cmo
*.annot
*.cmi
*.cmx
*.cmt
*.cmti
*.cma
*.a
*.cmxa
*.obj
*~
*.annot
*.mj
*.bak
*.swp
*.swo
*.flambda
*.jsx
*.lambda
*.rawlambda
*.s
*.o
*.lam
*.0.js
*#
*.log
.#*
*.cmj
*.rawlambda
*.lambda
*.zip
*.mlast
*.mliast

.idea
.DS_Store

node_modules
*.dump
coverage

.ninja_log
.bsdeps
.bsbuild
lib/ocaml
tests/build_tests/*/lib/
#ignore temporary directory
*.goog.js
*.jsoo.js
*.so
tmp/
tracing*.json

_opam

.env
playground/packages/
playground/stdlib/
playground/*.cmj
playground/*.cmi
playground/.netrc
playground/compiler.*js

rewatch/target/
rewatch/rewatch

tests/tools_tests/**/*.res.js
tests/tools_tests/lib
tests/analysis_tests*/lib
tests/analysis_tests/**/*.bs.js

/linux/*.exe
/linuxarm64/*.exe
/darwin/*.exe
/darwinarm64/*.exe
/win32/*.exe

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

*.tsbuildinfo

# package tarballs
package.tgz
*.exe

/ninja/ninja
/ninja/build.ninja
9 changes: 7 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
LABEL org.opencontainers.image.authors="Christoph Knittel <ck@cca.io>"
LABEL org.opencontainers.image.description="Docker image for ReScript development."

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
RUN sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
opam \
cmake \
ninja-build \
musl-tools \
python-is-python3 \
&& rm -rf /var/lib/apt/lists/*

# Install OPAM
ARG OPAM_VERSION=2.4.1
RUN printf '\n\n' | bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --version $OPAM_VERSION"
10 changes: 8 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "ReScript Compiler",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
"dockerfile": "Dockerfile",
"args": {
"USER_UID": "${localEnv:UID}",
"USER_GID": "${localEnv:GID}"
}
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {
Expand All @@ -23,5 +27,7 @@
]
}
},
"postCreateCommand": ".devcontainer/postCreate.sh"
"postCreateCommand": ".devcontainer/postCreate.sh",
"remoteUser": "vscode",
"containerUser": "vscode"
}
12 changes: 6 additions & 6 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# Install dev dependencies from OPAM
opam init -y --bare --disable-sandboxing
opam switch create 5.2.0 --packages ocaml-option-static
opam install . --deps-only -y

# For IDE support, install the OCaml language server
opam install ocaml-lsp-server -y
opam switch create 5.3.0
opam install . --deps-only --with-test --with-dev-setup -y

# Add OPAM environment setup to shell startup script
echo 'eval $(opam env)' >> ~/.zshrc
echo 'eval $(opam env)' >> ~/.bashrc

npm install --ignore-scripts
nvm install

corepack enable
printf "\n" | yarn
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
* text=auto eol=lf

*.ml linguist-language=OCaml
*.mli linguist-language=OCaml
*.res linguist-language=ReScript
*.resi linguist-language=ReScript

.yarn/releases/* binary linguist-vendored
Loading