dsh-mnemon-source-runtime 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +3 -3
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -337,8 +337,8 @@ window.__ModuleLoader__.load({
337
337
  title: t("runtime.branchBadge"),
338
338
  children: entry.branches.join(", ")
339
339
  })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("time", {
340
- dateTime: entry.updated_at,
341
- children: new Date(entry.updated_at).toLocaleString(locale)
340
+ dateTime: entry.created_at,
341
+ children: new Date(entry.created_at).toLocaleString(locale)
342
342
  })]
343
343
  }),
344
344
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: entry.content }),
@@ -384,7 +384,7 @@ window.__ModuleLoader__.load({
384
384
  });
385
385
  };
386
386
  const normalizedQuery = filterQuery.trim().toLocaleLowerCase();
387
- const filteredEntries = (snapshot?.entries ?? []).filter((entry) => (filterTarget === "all" || entry.target === filterTarget) && (normalizedQuery === "" || entry.content.toLocaleLowerCase().includes(normalizedQuery)));
387
+ const filteredEntries = (snapshot?.entries ?? []).filter((entry) => (filterTarget === "all" || entry.target === filterTarget) && (normalizedQuery === "" || entry.content.toLocaleLowerCase().includes(normalizedQuery))).sort((left, right) => Date.parse(right.created_at) - Date.parse(left.created_at));
388
388
  const visibleEntries = filteredEntries.slice(0, visibleLimit);
389
389
  const closeComposer = () => {
390
390
  setContent("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon-source-runtime",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Self-contained runtime Source for Composable View Memory.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -61,7 +61,7 @@
61
61
  "@types/node": "^22.0.0",
62
62
  "@types/react": "^18.3.0",
63
63
  "@types/react-dom": "^18.3.0",
64
- "dsh-mnemon": "^0.5.4",
64
+ "dsh-mnemon": "^0.5.6",
65
65
  "jsdom": "^26.0.0",
66
66
  "react": "^18.2.0",
67
67
  "react-dom": "^18.2.0",