astro-loader-pocketbase 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -92,13 +92,13 @@ But you can directly use these URLs in your Astro components to display images o
92
92
  ### Custom ids
93
93
 
94
94
  By default, the loader will use the `id` field of the collection as the unique identifier.
95
- If you want to use another field as the id, e.g. a slug of the title, you can specify this field via the `id` option.
95
+ If you want to use another field as the id, e.g. a slug of the title, you can specify this field via the `idField` option.
96
96
 
97
97
  ```ts
98
98
  const blog = defineCollection({
99
99
  loader: pocketbaseLoader({
100
100
  ...options,
101
- id: "<field-in-collection>"
101
+ idField: "<field-in-collection>"
102
102
  })
103
103
  });
104
104
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-loader-pocketbase",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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)",