astro-integration-pocketbase 2.1.3 → 2.1.4-next.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": "astro-integration-pocketbase",
3
- "version": "2.1.3",
3
+ "version": "2.1.4-next.1",
4
4
  "description": "An Astro integration to support developers working with astro-loader-pocketbase.",
5
5
  "keywords": [
6
6
  "astro",
@@ -39,25 +39,25 @@
39
39
  "typecheck": "npx tsc --noEmit"
40
40
  },
41
41
  "devDependencies": {
42
- "@commitlint/cli": "19.8.1",
43
- "@commitlint/config-conventional": "19.8.1",
44
- "@types/node": "22.14.1",
45
- "astro": "5.13.9",
42
+ "@commitlint/cli": "20.1.0",
43
+ "@commitlint/config-conventional": "20.0.0",
44
+ "@types/node": "24.8.1",
45
+ "astro": "5.14.6",
46
46
  "eventsource": "4.0.0",
47
47
  "globals": "16.4.0",
48
48
  "husky": "9.1.7",
49
- "lint-staged": "16.1.6",
50
- "oxlint": "1.16.0",
49
+ "lint-staged": "16.2.4",
50
+ "oxlint": "1.23.0",
51
51
  "prettier": "3.6.2",
52
52
  "prettier-plugin-organize-imports": "4.3.0",
53
53
  "prettier-plugin-packagejson": "2.5.19",
54
- "typescript": "5.9.2"
54
+ "typescript": "5.9.3"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "astro": "^5.0.0",
58
58
  "eventsource": "^4.0.0"
59
59
  },
60
- "packageManager": "npm@11.6.0",
60
+ "packageManager": "npm@11.6.2",
61
61
  "publishConfig": {
62
62
  "access": "public",
63
63
  "provenance": true
@@ -148,7 +148,6 @@ async function handleConnectEvent(
148
148
  }
149
149
 
150
150
  if (!wasConnectedOnce) {
151
- wasConnectedOnce = true;
152
151
  logger.info(
153
152
  `Subscribed to PocketBase realtime API. Waiting for updates on ${remoteCollections.join(
154
153
  ", "
@@ -32,7 +32,7 @@ export const onRequest = defineMiddleware(async (context, next) => {
32
32
  function findEntitiesRecursive(data: unknown): Array<PocketBaseEntry> {
33
33
  // Check if the data is an array and search for entities in each element
34
34
  if (Array.isArray(data)) {
35
- return data.flatMap(findEntitiesRecursive);
35
+ return data.flatMap((item) => findEntitiesRecursive(item));
36
36
  }
37
37
 
38
38
  if (typeof data === "object" && data !== null) {