@atlastodo/shared 0.1.12 → 0.1.14-rc.1

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/dist/index.js +3 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -17276,6 +17276,9 @@ function restoreTask(store, task) {
17276
17276
  function discardTask(store, id) {
17277
17277
  if (isTaskLocked(store, id))
17278
17278
  return false;
17279
+ for (const e of store.list("attachment"))
17280
+ if (e.fields.task_id === id)
17281
+ store.remove("attachment", e.id);
17279
17282
  store.remove("task", id);
17280
17283
  return true;
17281
17284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlastodo/shared",
3
- "version": "0.1.12",
3
+ "version": "0.1.14-rc.1",
4
4
  "description": "Atlas shared logic: the portable task rules, recurrence, quick add, filters, i18n and theme used by every Atlas client",
5
5
  "license": "AGPL-3.0-only",
6
6
  "homepage": "https://github.com/atlastodo/atlas/tree/main/packages/shared",
@@ -46,7 +46,7 @@
46
46
  "test": "vitest run"
47
47
  },
48
48
  "dependencies": {
49
- "@atlastodo/client-core": "0.1.12",
49
+ "@atlastodo/client-core": "0.1.14-rc.1",
50
50
  "@noble/hashes": "^2.4.0",
51
51
  "fflate": "^0.8.3"
52
52
  },