astro-loader-pocketbase 4.0.0-next.1 → 4.0.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
@@ -15,6 +15,7 @@ This package is a simple loader to load data from a PocketBase database into Ast
15
15
 
16
16
  | Loader | Astro | PocketBase |
17
17
  | ------ | ----- | ---------- |
18
+ | 4.0.0 | 7.0.0 | >= 0.23.0 |
18
19
  | 3.0.0 | 6.0.0 | >= 0.23.0 |
19
20
  | 2.0.0 | 5.0.0 | >= 0.23.0 |
20
21
  | 1.0.0 | 5.0.0 | <= 0.22.0 |
@@ -212,6 +213,7 @@ This manual schema will **always override the automatic type generation**.
212
213
  | `contentFields` | `string \| Array<string>` | | The field in the collection to use as content. This can also be an array of fields. |
213
214
  | `updatedField` | `string` | | The field in the collection that stores the last update date of an entry. This is used for incremental builds. |
214
215
  | `filter` | `string` | | Custom filter to use when fetching entries. Used to filter the entries by specific conditions. |
216
+ | `fields` | `string \| Array<string>` | | Specific fields to return for each entry. Defaults to all fields. |
215
217
  | `superuserCredentials` | `{ email: string, password: string } \| { impersonateToken: string }` | | The email and password or impersonate token of a superuser of the PocketBase instance. This is used for automatic type generation. |
216
218
  | `localSchema` | `string` | | The path to a local schema file. This is used for automatic type generation. |
217
219
  | `jsonSchemas` | `Record<string, ZodType>` | | A record of Zod schemas to use for type generation of `json` fields. |
package/dist/index.mjs CHANGED
@@ -277,7 +277,7 @@ async function liveEntryLoader(id, options, token) {
277
277
  }
278
278
  //#endregion
279
279
  //#region package.json
280
- var version = "4.0.0-next.1";
280
+ var version = "4.0.0";
281
281
  //#endregion
282
282
  //#region src/utils/should-refresh.ts
283
283
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-loader-pocketbase",
3
- "version": "4.0.0-next.1",
3
+ "version": "4.0.0",
4
4
  "description": "A content loader for Astro that uses the PocketBase API",
5
5
  "keywords": [
6
6
  "astro",
@@ -51,16 +51,16 @@
51
51
  "typecheck": "npx @typescript/native-preview --noEmit -p src/tsconfig.json && npx @typescript/native-preview --noEmit -p test/tsconfig.json"
52
52
  },
53
53
  "devDependencies": {
54
- "@commitlint/cli": "21.0.2",
55
- "@commitlint/config-conventional": "21.0.2",
54
+ "@commitlint/cli": "21.1.0",
55
+ "@commitlint/config-conventional": "21.1.0",
56
56
  "@types/node": "24.13.2",
57
57
  "@vitest/coverage-v8": "4.1.9",
58
58
  "astro": "7.0.3",
59
- "globals": "17.6.0",
59
+ "globals": "17.7.0",
60
60
  "husky": "9.1.7",
61
- "lint-staged": "17.0.7",
62
- "oxfmt": "0.55.0",
63
- "oxlint": "1.70.0",
61
+ "lint-staged": "17.0.8",
62
+ "oxfmt": "0.56.0",
63
+ "oxlint": "1.71.0",
64
64
  "oxlint-tsgolint": "0.23.0",
65
65
  "publint": "0.3.21",
66
66
  "tsdown": "0.22.3",
@@ -74,7 +74,7 @@
74
74
  "engines": {
75
75
  "node": ">=22.12.0"
76
76
  },
77
- "packageManager": "npm@11.17.0",
77
+ "packageManager": "npm@11.18.0",
78
78
  "allowScripts": {
79
79
  "esbuild@0.27.7": true
80
80
  }