astro-integration-pocketbase 1.0.0-next.2 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-integration-pocketbase",
3
- "version": "1.0.0-next.2",
3
+ "version": "1.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Luis Wolf <development@pawcode.de> (https://pawcode.de)",
6
6
  "homepage": "https://github.com/pawcoding/astro-integration-pocketbase",
@@ -76,8 +76,10 @@ export function refreshCollectionsRealtime(
76
76
  logger.info(`Received update for ${collection}. Refreshing content...`);
77
77
  await refreshContent({
78
78
  loaders: ["pocketbase-loader"],
79
- // TODO: add context to refresh one or all collections
80
- context: {}
79
+ context: {
80
+ source: "astro-integration-pocketbase",
81
+ collection
82
+ }
81
83
  });
82
84
  });
83
85
  }
@@ -26,8 +26,9 @@ export function handleRefreshCollections({
26
26
  logger.info("Refreshing content loaded by PocketBase loader");
27
27
  await refreshContent({
28
28
  loaders: ["pocketbase-loader"],
29
- // TODO: add context to refresh one or all collections
30
- context: {}
29
+ context: {
30
+ source: "astro-integration-pocketbase"
31
+ }
31
32
  });
32
33
 
33
34
  // Reset the loading state in the toolbar