summaryrefslogtreecommitdiffstats
path: root/atuin-server/Cargo.toml
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-12-20 09:03:04 +0000
committerGitHub <noreply@github.com>2023-12-20 09:03:04 +0000
commit86f50e0356e4b661be43c2aeba97a67d83910095 (patch)
tree3c836616132ab23e60231af21b668d639dbabe97 /atuin-server/Cargo.toml
parent42ac150fe34ee291e3228177a81f9cb1f572c741 (diff)
feat: add semver checking to client requests (#1456)
* feat: add semver checking to client requests This enforces that the client and the server run the same major version in order to sync successfully. We're using the `Atuin-Version` http header to transfer this information If the user is not on the same MAJOR, then they will see an error like this > Atuin version mismatch! In order to successfully sync, the client and the server must run the same *major* version > Client: 17.1.0 > Server: 18.1.0 > Error: could not sync records due to version mismatch This change means two things 1. We will now only increment major versions if there is a breaking change for sync 2. We can now add breaking changes to sync, for any version >17.1.0. Clients will fail in a meaningful way. * lint, fmt, etc * only check for client newer than server * Add version header to client too
Diffstat (limited to 'atuin-server/Cargo.toml')
0 files changed, 0 insertions, 0 deletions