Add the ability to use local optimization_config#275
Draft
Conversation
This was referenced Apr 3, 2026
e19569c to
61fbe89
Compare
Allow loading optimization percentages and filter stats from a local directory instead of downloading them from remote URLs. This is enabled by providing a directory path via the new `setLocalOptimizationConfigDir` function, which helps in environments where local configuration files are preferred over network requests.
The `percent.json` endpoint does not require an API key for access, so the `key` query parameter has been removed from `OPTIMIZATION_PERCENT_URL`. The key remains in `getOptimizationStatsUrl`, as `stats.json` requires authentication.
Match FilterRegistry's dependency versions to resolve Yarn 4 portal: link failures caused by sub-dependency version conflicts in the parent project.
Use a nested `filters/{filterId}/stats.json` path
A flat `{filterId}_stats.json` file is my typo
e6c8f8e to
21cfd8e
Compare
GitHub shorthand installation does not trigger a build step, so dist/ must be present in the branch directly. This is a temporary measure for the PR review period. dist/ should be removed from the branch before merging, and the version should be published to npm instead.
21cfd8e to
09e1aea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow loading optimization percentages and filter stats from a local directory instead of downloading them from remote URLs.
This is enabled by providing a directory path via the new
setLocalOptimizationConfigDirfunction, which helps in environments where local configuration files are preferred over network requests.