svelte-common 6.15.0 → 6.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "6.15.0",
3
+ "version": "6.15.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@semantic-release/commit-analyzer": "^13.0.0",
57
57
  "@semantic-release/exec": "^6.0.3",
58
- "@semantic-release/github": "^10.1.5",
58
+ "@semantic-release/github": "^10.1.6",
59
59
  "@semantic-release/release-notes-generator": "^14.0.1",
60
60
  "@sveltejs/vite-plugin-svelte": "^3.1.1",
61
61
  "ava": "^6.1.3",
@@ -63,13 +63,13 @@
63
63
  "documentation": "^14.0.3",
64
64
  "mf-styling": "^3.1.8",
65
65
  "npm-pkgbuild": "^15.3.29",
66
- "semantic-release": "^24.0.0",
67
- "stylelint": "^16.8.1",
66
+ "semantic-release": "^24.1.0",
67
+ "stylelint": "^16.8.2",
68
68
  "stylelint-config-standard": "^36.0.1",
69
- "svelte": "^5.0.0-next.222",
69
+ "svelte": "^5.0.0-next.225",
70
70
  "testcafe": "^3.6.2",
71
71
  "typescript": "^5.5.4",
72
- "vite": "^5.4.0",
72
+ "vite": "^5.4.1",
73
73
  "vite-plugin-compression2": "^1.2.0"
74
74
  },
75
75
  "peerDependencies": {
@@ -6,7 +6,7 @@ import { readable } from "svelte/store";
6
6
  * @param {Map|Set|Array|readable} data
7
7
  * @param {Object} options
8
8
  * @param {number} [options.itemsPerPage]
9
- * @param {number} [options.page]
9
+ * @param {number} [options.page] current page
10
10
  * @param {Function} [options.sorter]
11
11
  * @param {Function} [options.filter]
12
12
  */
@@ -193,11 +193,7 @@ export class Pagination {
193
193
  }
194
194
 
195
195
  *[Symbol.iterator]() {
196
- let data = Array.isArray(this.#data) ? this.#data : [...this.#data.values()];
197
-
198
- if (this.filter) {
199
- data = data.filter(this.filter);
200
- }
196
+ let data = this.filteredItems;
201
197
 
202
198
  if (this.sorter) {
203
199
  data = data.sort(this.sorter);
@@ -13,7 +13,7 @@ export function navigationItems(numberOfPages: number, currentPage: number, numb
13
13
  * @param {Map|Set|Array|readable} data
14
14
  * @param {Object} options
15
15
  * @param {number} [options.itemsPerPage]
16
- * @param {number} [options.page]
16
+ * @param {number} [options.page] current page
17
17
  * @param {Function} [options.sorter]
18
18
  * @param {Function} [options.filter]
19
19
  */