astro-loader-pocketbase 2.8.2-next.1 → 2.8.2-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-loader-pocketbase",
3
- "version": "2.8.2-next.1",
3
+ "version": "2.8.2-next.2",
4
4
  "description": "A content loader for Astro that uses the PocketBase API",
5
5
  "keywords": [
6
6
  "astro",
@@ -45,9 +45,9 @@
45
45
  "devDependencies": {
46
46
  "@commitlint/cli": "20.1.0",
47
47
  "@commitlint/config-conventional": "20.0.0",
48
- "@types/node": "22.14.1",
48
+ "@types/node": "24.8.1",
49
49
  "@vitest/coverage-v8": "3.2.4",
50
- "astro": "5.14.5",
50
+ "astro": "5.14.6",
51
51
  "globals": "16.4.0",
52
52
  "husky": "9.1.7",
53
53
  "lint-staged": "16.2.4",
@@ -56,7 +56,6 @@ export function parseLiveEntry<TEntry extends PocketBaseEntry>(
56
56
  return {
57
57
  id: entry.id,
58
58
  data: entry,
59
- // @ts-expect-error - Docs say this is possible
60
59
  rendered: {
61
60
  html: content
62
61
  },
@@ -77,8 +77,7 @@ export function parseSchema(
77
77
  }
78
78
 
79
79
  // Create an enum for the select values
80
- // @ts-expect-error - Zod complains because the values are not known at compile time and thus the array is not static.
81
- const values = z.enum(field.values);
80
+ const values = z.enum(field.values as [string, ...Array<string>]);
82
81
 
83
82
  // Parse the field type based on the number of values it can have
84
83
  fieldType = parseSingleOrMultipleValues(field, values);