chore(release): version packages#66
Merged
Merged
Conversation
✅ Deploy Preview for contentrain-ai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@contentrain/[email protected]
Minor Changes
f1a2dce: Three additive GitHub-provider optimizations that cut API calls per write (no breaking changes)
applyPlanToGitHubnow inlines file content directly in the Git tree entries instead of POSTing a blob per file. A write drops fromN+3GitHub mutations to a fixed3(tree + commit + ref) regardless of file count, easing the mutation-rate secondary limit. This brings the GitHub provider to parity with the GitLab provider, which already inlines content in its commit actions. Deletions are unchanged (null-sha entries); content is passed through byte-for-byte.new GitHubReader(client, repo, { memoize: true })deduplicates repeated(path, ref)reads within one operation acrossreadFile/listDirectory/fileExists. Opt-in and off by default; failed reads are evicted so transient errors are retried, not cached. The provider's own long-lived reader does not enable it (a reader that outlives a write must not serve stale results).buildContextChange(reader, operation, source, { stats })lets a caller that already knows the model/entry counts skip the O(models·locales) reader walk; onlyreadConfigremains. The emitted context.json is byte-identical to the scanned variant. Parameterless callers are unaffected.Patch Changes
cfface5: Speed up local writes by batching git subprocess spawns in the worktree transaction
Every local write (
content_save,model_save,bulk, normalize apply, …) runs throughcreateTransaction, which spawned ~40gitprocesses for a single content save. Two behavior-preserving batches cut that:GIT_AUTHOR_*/GIT_COMMITTER_*in its env instead of running twogit config user.*spawns per transaction (and percontentrain_merge). Git honors these for both the sync merges and the feature-branch commit.selectiveSyncreplaced its per-filegit cat-file -eexistence loop with a singlegit ls-treeover the changed paths, and its per-filegit checkout HEAD -- <file>loop with a single batched checkout (per-file fallback on error preserves precise skip accounting). Working-tree deletions are parallel fs removals.Measured: a 2-locale
content_savedrops from ~40 git spawns to ~30 (config 2→0, cat-file 5→0, checkout 7→3), roughly halving the operation's wall-clock. The selective-sync win scales with file count, so bulk writes benefit the most. No behavior change — the full worktree-transaction test suite passes unchanged.[email protected]
Patch Changes