You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
entire codebase is now mypy type-checked, with runtime type enforcement so that a bug doesn't lead to malformed indexes being written to disk
all disk writes are now atomic so that power loss / SIGTERM during execution doesn't leave the index in an inconsistent state (as long as the archive folder is on a local, non-network filesystem)
core data model now uses typed, immutable dataclasses instead of plain dicts
schema and json loading and parsing are formalized all in one place schema.py (laying the foundations for a future transition to Django models)
got rid of all derivable redundant data in the index files
Much faster performance when passing over old links by avoiding excessive index writes
FYI for people following this PR, the next release after this PR is also up already: #207
The plan is to release both versions (nearly) simultaneously. Users that want to stay on the stable pre-django version can use v0.3.0, and users who want the latest cutting-edge release can install v0.4.0 and enjoy the new CLI experience.
Ok I think this is done, I'm going to close this PR and recommend everyone upgrade straight to v0.4.0 when it's released (unless you have a specific reason to use this version).
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.
The v0.3.0 Release
A bunch of big changes:
dict
sschema.py
(laying the foundations for a future transition to Django models)