package rescriptdep
All checked builds pass sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A dependency analyzer for ReScript modules
Install
dune-project
Dependency
Authors
Maintainers
Sources
rescriptdep-0.3.0.tar.gz
md5=0dc249fc6c124f6adfd3834571ea24a3
sha512=44894ed1848eb19317303f72213d732d1bc93b2f5e0710a5d20ac49bbf634a1ed830c10019b5f087b3e00bd103ec7e910226465b34e1c94824d831c68f4c5c9e
doc/CHANGELOG.html
Changelog
All notable changes to the ReScriptDep project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.3.0] - 2026-10-31
CLI 0.3.0 and Bibimbob extension 0.10.0.
Changed
- Reduced dependency analysis work with indexed graph traversal, memoized dependency lookups, and shared parsing work across output formats.
- Rebuilt the VS Code graph viewer with local layout, search, tracing, Back navigation, accessible controls, context menus, and cancellable requests.
- Plain wheel scrolling in the graph now pans; Ctrl/Cmd+wheel zooms.
- CLI verbose diagnostics now go to stderr so stdout remains valid DOT or JSON.
--no-cacheand--clear-cacheremain accepted compatibility options and have no effect; the unused persistent cache was removed.
Fixed
- Included modules referenced only in value expressions in dependency and usage analysis. Graph output may now include previously missing nodes and edges.
- Escaped quotes and backslashes in DOT and JSON output.
- Continued scanning readable entries when another directory entry cannot be read, reporting a warning on stderr.
- Bounded extension caches and history, prevented stale requests and annotations, and improved graph error recovery and narrow-panel layouts.
Added
- Golden output fixtures and regression coverage for escaping, scanning, graph navigation, and extension request lifecycles.
[0.2.0] - 2026-10-21
Added
- Added regression coverage for dependency graph dependent-index updates
- Added ReScript 12 support for value usage analysis (
-vb) by decoding typed trees with the layout of the compiler that wrote each.cmtfile - Added ReScript 12 fixture projects (standard and namespaced) with dependency graph and value usage regression tests
- Added ReScript 13 support: dependency analysis for the 13.0 alphas, and value usage analysis (
-vb) for 13.0.0-alpha.1 to alpha.3, alpha.5 and alpha.6.-vbreports-6for compilers it cannot decode, such as 13.0.0-alpha.4 - Added ReScript 13 fixture projects and self-contained compiler identification tests
- Added a supported ReScript versions table to the README
Changed
- Organized typed tree decoding into one backend per compiler release (
Compiler_v11,Compiler_v12,Compiler_v13) selected by the CMT magic number, thecmt_infoslayout and the compiler version inlib/bs/compiler-info.json, with decoders skipping constructors added by later releases instead of misreading them .cmtfiles written by unknown compilers now stop the analysis with an error instead of silently producing an empty graph- Improved dependency graph performance by maintaining a reverse dependent index instead of scanning the full graph for each dependent lookup
- Reduced VS Code inline value usage analysis work with debounced requests, short-lived result caching, and JSON output parsing
Fixed
- Prevented stale VS Code inline value usage decorations from appearing after source edits or outdated CLI responses
- Improved inline value usage cache invalidation when ReScript build artifacts change
- Fixed a segmentation fault when counting value usage (
-vb) in projects built with ReScript 12 - Fixed namespaced projects so imports are filtered by each module's
.astfile again; ReScript 12 runtime modules (Stdlib_*,Primitive_*) and unused imports no longer appear as dependencies, and the generated namespace module is no longer shown as a node - Fixed value usage analysis (
-vb) in namespaced projects - Read the ReScript 12
dependenciesanddev-dependenciesfields ofrescript.jsonwhen resolving external module paths - Read
.astheaders by their byte length so data from the binary AST is never taken as module references - Aligned the vendored ReScript 11 typedtree with the compiler's constructor layout
[0.1.2] - 2026-04-22
Fixed
- Fixed the generated opam metadata tags so opam lint no longer reports the default example
topicstag - Fixed the opam test suite by keeping
@runtestself-contained instead of depending on locally built ReScript fixture outputs - Improved fixture path resolution for local integration tests executed from build directories
[0.1.1] - 2026-04-18
Fixed
- Fixed an issue where standard modules were not filtered when the
-mflag was not used - Fixed focused module dependency analysis for projects using
namespaceinrescript.json - Improved CI resilience against transient opam dependency fetch failures
Added
- Static linking support for Linux environments
- Performance benchmarking mode with
--benchmarkflag - Added a Makefile-based test workflow for local and CI runs
- Added namespace-focused regression coverage
Changed
- Removed file-based cache persistence in favor of in-memory caching only
- Removed
--cache-fileoption completely - Enhanced error handling for workspace analysis
- Improved progress reporting in VS Code extension
- Removed outdated Rewatch-specific test fixtures and compatibility logic, keeping analysis focused on compiler-generated
.cmtand.astfiles
[0.1.0] - 2024-06-19
Added
- Initial release of ReScriptDep
- Dependency analyzer for ReScript modules
- CMT file parsing and module information extraction
- Module dependency tracking and visualization support
- Caching system for improved performance
- Parallel processing of module files
VS Code extension for dependency visualization
- Full dependency graph visualization
- Module-focused views
- Interactive graph navigation
- Digest-based caching
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page