Repository navigation
Hardening from the codebase review - #1
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…omically Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… SendResult type Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… release Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What this changes and why
Hardening from a review of the codebase. It builds on
feat/locations, so this PR targets that branch. One commit per change:.afgeosays "This project file is damaged and can't be opened." or names the damaged layer, instead of a raw JavaScript error. The zip reader checks offsets and refuses an entry that unpacks to more than its declared size.main.log.console.errorandconsole.warnfrom the app and its server are written to the log (the installed app has no console). The log rolls over at 2 MB. Settings and the recent list are written to a temp file and renamed, so a crash mid-save can't blank them.ensureScriptscompares the installed scripts with the shipped ones and re-copies them when they differ, so a dev run on an unchanged version number no longer leaves Affinity on old scripts.SendResultis defined once.Behaviour changes
JobQueue.onLateCompletionnow receives{ op, mapName? }instead of the whole job.Not tested
Nothing here was run in the app window or against Affinity; it is covered by unit tests only.
Checklist
npm testpasses (917 tests)npm run lintpassesnpm run typecheckpasses🤖 Generated with Claude Code