astro-loader-pocketbase 0.5.0 → 0.5.1-next.2

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.
Files changed (2) hide show
  1. package/README.md +11 -3
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # astro-loader-pocketbase
2
2
 
3
- <!-- ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/pawcoding/astro-loader-pocketbase/release.yaml?style=flat-square) -->
4
-
3
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/pawcoding/astro-loader-pocketbase/release.yaml?style=flat-square)
5
4
  [![NPM Version](https://img.shields.io/npm/v/astro-loader-pocketbase?style=flat-square)](https://www.npmjs.com/package/astro-loader-pocketbase)
6
5
  [![NPM Downloads](https://img.shields.io/npm/dw/astro-loader-pocketbase?style=flat-square)](https://www.npmjs.com/package/astro-loader-pocketbase)
7
6
  [![GitHub License](https://img.shields.io/github/license/pawcoding/astro-loader-pocketbase?style=flat-square)](https://github.com/pawcoding/astro-loader-pocketbase/blob/master/LICENSE)
@@ -9,6 +8,15 @@
9
8
 
10
9
  This package is a simple loader to load data from a PocketBase database into Astro using the [Astro Loader API](https://5-0-0-beta.docs.astro.build/en/reference/loader-reference/) introduced in Astro 5.
11
10
 
11
+ > [!TIP]
12
+ > If you want to see the PocketBase data directly in your Astro toolbar, try the [`astro-integration-pocketbase`](https://github.com/pawcoding/astro-integration-pocketbase).
13
+
14
+ ## Compatibility
15
+
16
+ | Loader | Astro | PocketBase |
17
+ | ------ | ----- | ---------- |
18
+ | 1.0.0 | 5.0.0 | <= 0.22.0 |
19
+
12
20
  ## Basic usage
13
21
 
14
22
  In your content configuration file, you can use the `pocketbaseLoader` function to use your PocketBase database as a data source.
@@ -135,7 +143,7 @@ This manual schema will **always override the automatic type generation**.
135
143
  | `content` | `string \| Array<string>` | | The field in the collection to use as content. This can also be an array of fields. |
136
144
  | `adminEmail` | `string` | | The email of the admin of the PocketBase instance. This is used for automatic type generation and access to private collections. |
137
145
  | `adminPassword` | `string` | | The password of the admin of the PocketBase instance. This is used for automatic type generation and access to private collections. |
138
- | `id` | `string` | | The field in the collection to use as unique id. Defaults to `id`. |
146
+ | `id` | `string` | | The field in the collection to use as unique id. Defaults to `id`. |
139
147
  | `localSchema` | `string` | | The path to a local schema file. This is used for automatic type generation. |
140
148
  | `jsonSchemas` | `Record<string, z.ZodSchema>` | | A record of Zod schemas to use for type generation of `json` fields. |
141
149
  | `forceUpdate` | `boolean` | | If set to `true`, the loader will fetch every entry instead of only the ones modified since the last build. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-loader-pocketbase",
3
- "version": "0.5.0",
3
+ "version": "0.5.1-next.2",
4
4
  "description": "A content loader for Astro that uses the PocketBase API",
5
5
  "license": "MIT",
6
6
  "author": "Luis Wolf <development@pawcode.de> (https://pawcode.de)",
@@ -21,15 +21,15 @@
21
21
  "astro": "^5.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@eslint/js": "^9.11.1",
25
- "@stylistic/eslint-plugin": "^2.8.0",
26
- "@types/node": "^22.7.4",
27
- "astro": "^5.0.0-beta.6",
28
- "eslint": "^9.11.1",
29
- "globals": "^15.9.0",
30
- "husky": "^9.1.6",
31
- "typescript": "^5.6.2",
32
- "typescript-eslint": "^8.7.0"
24
+ "@eslint/js": "^9.16.0",
25
+ "@stylistic/eslint-plugin": "^2.11.0",
26
+ "@types/node": "^22.10.1",
27
+ "astro": "^5.0.3",
28
+ "eslint": "^9.16.0",
29
+ "globals": "^15.13.0",
30
+ "husky": "^9.1.7",
31
+ "typescript": "^5.7.2",
32
+ "typescript-eslint": "^8.17.0"
33
33
  },
34
34
  "keywords": [
35
35
  "astro",