diff --git a/packages/pl-api/package.json b/packages/pl-api/package.json index 027686dba..a5c039d54 100644 --- a/packages/pl-api/package.json +++ b/packages/pl-api/package.json @@ -1,6 +1,6 @@ { "name": "pl-api", - "version": "0.0.42", + "version": "0.1.0", "type": "module", "homepage": "https://github.com/mkljczk/pl-fe/tree/fork/packages/pl-api", "repository": { diff --git a/packages/pl-fe/package.json b/packages/pl-fe/package.json index 0d16d8753..7013947d1 100644 --- a/packages/pl-fe/package.json +++ b/packages/pl-fe/package.json @@ -103,7 +103,7 @@ "mini-css-extract-plugin": "^2.9.1", "multiselect-react-dropdown": "^2.0.25", "path-browserify": "^1.0.1", - "pl-api": "^0.0.42", + "pl-api": "^0.1.0", "postcss": "^8.4.47", "process": "^0.11.10", "punycode": "^2.1.1", diff --git a/packages/pl-fe/src/entity-store/hooks/useEntities.ts b/packages/pl-fe/src/entity-store/hooks/useEntities.ts index a6de94ac4..158345d65 100644 --- a/packages/pl-fe/src/entity-store/hooks/useEntities.ts +++ b/packages/pl-fe/src/entity-store/hooks/useEntities.ts @@ -17,7 +17,7 @@ import type { PaginatedResponse } from 'pl-api'; /** Additional options for the hook. */ interface UseEntitiesOpts { - /** A zod schema to parse the API entities. */ + /** A valibot schema to parse the API entities. */ schema?: EntitySchema; /** * Time (milliseconds) until this query becomes stale and should be refetched. diff --git a/packages/pl-fe/src/entity-store/hooks/useEntity.ts b/packages/pl-fe/src/entity-store/hooks/useEntity.ts index 2cd808b37..c4aba44ac 100644 --- a/packages/pl-fe/src/entity-store/hooks/useEntity.ts +++ b/packages/pl-fe/src/entity-store/hooks/useEntity.ts @@ -14,7 +14,7 @@ import type { PlfeResponse } from 'pl-fe/api'; /** Additional options for the hook. */ interface UseEntityOpts { - /** A zod schema to parse the API entity. */ + /** A valibot schema to parse the API entity. */ schema?: EntitySchema; /** Whether to refetch this entity every time the hook mounts, even if it's already in the store. */ refetch?: boolean; diff --git a/packages/pl-fe/yarn.lock b/packages/pl-fe/yarn.lock index 4d552f5f7..d7549f2e4 100644 --- a/packages/pl-fe/yarn.lock +++ b/packages/pl-fe/yarn.lock @@ -7556,10 +7556,10 @@ pirates@^4.0.1: resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== -pl-api@^0.0.42: - version "0.0.42" - resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.42.tgz#e15cd33ae494384e84feee4a1022849d7e61290b" - integrity sha512-BEkaJVIHC+8F/ta+5qdSIfK5/F8lCev2FboZoLp/aE9OtiRkvRxiZsBB4VLn5oSRSv26HmhoNYR8fHaJyw/VEw== +pl-api@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.1.0.tgz#bcb059a4f9562a7e1294535898f6098161129eaa" + integrity sha512-n1hSb1u4tfsSeseWpJOWCKdenvNQ5iXkb1OuAQq7c0duCuoib1q51Etp9sZiW52YpqcP6CKkkF6McJnlh551sg== dependencies: blurhash "^2.0.5" http-link-header "^1.1.3" @@ -7567,7 +7567,7 @@ pl-api@^0.0.42: object-to-formdata "^4.5.1" query-string "^9.1.0" semver "^7.6.3" - zod "^3.23.8" + valibot "^0.42.1" possible-typed-array-names@^1.0.0: version "1.0.0" @@ -10455,11 +10455,6 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -zod@^3.23.8: - version "3.23.8" - resolved "https://registry.yarnpkg.com/zod/-/zod-3.23.8.tgz#e37b957b5d52079769fb8097099b592f0ef4067d" - integrity sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g== - zustand@^5.0.0-rc.2: version "5.0.0-rc.2" resolved "https://registry.yarnpkg.com/zustand/-/zustand-5.0.0-rc.2.tgz#d28d95ffb6f0b20cadbaea39210f18446a5bf989"