svelte-common 4.10.0 → 4.11.0

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.
package/README.md CHANGED
@@ -58,11 +58,13 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
58
58
  ## sortable
59
59
 
60
60
  Add sortable toggle to a node.
61
- cycles "aria-sort" though orderByCycle.
61
+ Synchronizes store value with node sortable attribute.
62
62
 
63
63
  ### Parameters
64
64
 
65
65
  * `node` **[Node](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)** 
66
+ * `store`  
67
+ * `where` **Store** to keep in sync with sorting properties
66
68
 
67
69
  # install
68
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "4.10.0",
3
+ "version": "4.11.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/index.svelte CHANGED
@@ -46,7 +46,6 @@
46
46
  } from "./util.mjs";
47
47
  export {
48
48
  sortable,
49
- sortableStore,
50
49
  toggleOrderBy,
51
50
  orderByCycle,
52
51
  SORT_NONE,
package/src/sorting.mjs CHANGED
@@ -60,21 +60,3 @@ export function sortable(node, store) {
60
60
  store.set(orderBy);
61
61
  };
62
62
  }
63
-
64
- export function sortableStore() {
65
- const subscriptions = new Set();
66
-
67
- let value = {};
68
-
69
- return {
70
- subscribe: cb => {
71
- subscriptions.add(cb);
72
- cb(value);
73
- return () => subscriptions.delete(cb);
74
- },
75
- set(v) {
76
- value = v;
77
- subscriptions.forEach(subscription => subscription(value));
78
- }
79
- };
80
- }