Releases: rescript-lang/reanalyze
Releases · rescript-lang/reanalyze
v2.23.0
v2.22.0
- Add
-json
option to emit descriptions of issues, and actions to resolve them. For editor integration. - Work around issue with location of variant cases in type declarations.
v2.21.1
- Run
-config
by default - Run
dce
when"reanalyze"
is not present inbsconfig.json
.
v2.21.0
- Add support for
[@warning "-unused-value-declaration"]
. - Don't report on dead values inside a function annotated
@dead
. - Fix issue with punned record expressions in OCaml projects.
- Add command-line
-config
to read configuration settings under"reanalyze"
inbsconfig.json
.
Example:
{
"reanalyze": {
"analysis": ["dce", "exception"],
"suppress": ["src/ToSuppress.res"],
"unsuppress": ["this", "that"]
}
}
- Allow lists and arrays as payloads e.g. for
@raises([A,B])
. - Improve printing of exception annotations in error messages.
- Fix issue where the current file would be mistakenly reported dead and with empty name, when it contains an inner module which is dead and a toplevel exception.
v2.19.0
- Don't report redundant optional arguments on functions annotated
@live
.
v2.18.0
- Don't report unused optional arguments for functions annotated
@live
or@genType
. - Add support for
@live
ordead
at toplevel in a type declaration. Equivalent to annotating all the record fields / variant cases. - Turn off dead code reporting on externals by default. Add option
-externals
to turn back on.
v2.17.0
v2.16.0
v2.15.0
- Exception analysis: also report on exceptions in toplevel expressions, not just variable bindings.
- Exception analysis: add support for Belt modules.
- Termination analysis: add support for try blocks.
- Termination analysis: add support for array creation.
- Termination analysis: add support for polymorphic variant creation.