Skip to content

Commit

Permalink
update version 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Dec 20, 2024
1 parent 793f4b9 commit a912864
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion latentscope/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.5.0'
__version__ = '0.5.1'
12 changes: 7 additions & 5 deletions web/src/components/Explore/LeftPane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ export default function LeftPane({ dataset, scope, scopes, tags, deletedIndices,
apiService.fetchVersion().then(setLsVersion);
}, []);

const isOutdatedScope = useMemo(
() =>
scope && lsVersion && scope?.ls_version && compareVersions(scope?.ls_version, lsVersion) < 0,
[lsVersion, scope]
);
const isOutdatedScope = useMemo(() => {
if (!scope?.ls_version || !lsVersion) return false;
// Convert versions to minor by replacing patch with 0
const scopeMinor = scope.ls_version.replace(/(\d+\.\d+)\.\d+/, '$1.0');
const lsMinor = lsVersion.replace(/(\d+\.\d+)\.\d+/, '$1.0');
return compareVersions(scopeMinor, lsMinor) < 0;
}, [lsVersion, scope]);

return (
<div className="left-pane-container">
Expand Down

0 comments on commit a912864

Please sign in to comment.