Skip to content

12.2.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@cknitt cknitt released this 27 Jan 13:30
· 148 commits to master since this release
3156d4d

💥 Breaking Change

  • js-post-build now passes the correct output file path based on in-source configuration: when in-source: true, the path next to the source file is passed; when in-source: false, the path in the lib/<module>/ directory is passed. Additionally, stdout and stderr from the post-build command are now logged. #8190
  • js-post-build command now runs in the directory containing the rescript.json where it is defined, instead of the unpredictable build invocation directory. This provides consistent behavior in monorepos. #8195

🚀 New Feature

  • Reanalyze: add scoped @@live/@@dead annotations for marking module/file sections as live or dead. #8197

🐛 Bug fix

  • Reanalyze: fix reactive/server stale results when cross-file references change without changing dead declarations (non-transitive mode). #8173
  • Reanalyze: link record/variant label liveness across type re-exports (type y = x = {...}). #8217
  • Add duplicate package detection to rewatch. #8180
  • Rewatch: do not warn about "reanalyze" config field. #8181
  • Fix error when importing CommonJS runtime modules with require(). #8194
  • Rewatch: fix warnings from non-recompiled modules being lost during incremental builds in watch mode. #8216

💅 Polish

  • Formatter no longer writes files when contents are already correctly formatted. #8209
  • Build system: Only log verbose "Generating AST for module" when actually parsing. #8210
  • Build system: Watch only source folders from build state instead of the entire project directory, and report missing configured source folders. #8219