pl-fe: remove zod

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-10-16 17:44:32 +02:00
parent cf39cf1c36
commit 0377c197a2
5 changed files with 9 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "pl-api", "name": "pl-api",
"version": "0.0.42", "version": "0.1.0",
"type": "module", "type": "module",
"homepage": "https://github.com/mkljczk/pl-fe/tree/fork/packages/pl-api", "homepage": "https://github.com/mkljczk/pl-fe/tree/fork/packages/pl-api",
"repository": { "repository": {

View File

@ -103,7 +103,7 @@
"mini-css-extract-plugin": "^2.9.1", "mini-css-extract-plugin": "^2.9.1",
"multiselect-react-dropdown": "^2.0.25", "multiselect-react-dropdown": "^2.0.25",
"path-browserify": "^1.0.1", "path-browserify": "^1.0.1",
"pl-api": "^0.0.42", "pl-api": "^0.1.0",
"postcss": "^8.4.47", "postcss": "^8.4.47",
"process": "^0.11.10", "process": "^0.11.10",
"punycode": "^2.1.1", "punycode": "^2.1.1",

View File

@ -17,7 +17,7 @@ import type { PaginatedResponse } from 'pl-api';
/** Additional options for the hook. */ /** Additional options for the hook. */
interface UseEntitiesOpts<TEntity extends Entity, TTransformedEntity extends Entity> { interface UseEntitiesOpts<TEntity extends Entity, TTransformedEntity extends Entity> {
/** A zod schema to parse the API entities. */ /** A valibot schema to parse the API entities. */
schema?: EntitySchema<TEntity>; schema?: EntitySchema<TEntity>;
/** /**
* Time (milliseconds) until this query becomes stale and should be refetched. * Time (milliseconds) until this query becomes stale and should be refetched.

View File

@ -14,7 +14,7 @@ import type { PlfeResponse } from 'pl-fe/api';
/** Additional options for the hook. */ /** Additional options for the hook. */
interface UseEntityOpts<TEntity extends Entity, TTransformedEntity extends Entity> { interface UseEntityOpts<TEntity extends Entity, TTransformedEntity extends Entity> {
/** A zod schema to parse the API entity. */ /** A valibot schema to parse the API entity. */
schema?: EntitySchema<TEntity>; schema?: EntitySchema<TEntity>;
/** Whether to refetch this entity every time the hook mounts, even if it's already in the store. */ /** Whether to refetch this entity every time the hook mounts, even if it's already in the store. */
refetch?: boolean; refetch?: boolean;

View File

@ -7556,10 +7556,10 @@ pirates@^4.0.1:
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"
integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==
pl-api@^0.0.42: pl-api@^0.1.0:
version "0.0.42" version "0.1.0"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.42.tgz#e15cd33ae494384e84feee4a1022849d7e61290b" resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.1.0.tgz#bcb059a4f9562a7e1294535898f6098161129eaa"
integrity sha512-BEkaJVIHC+8F/ta+5qdSIfK5/F8lCev2FboZoLp/aE9OtiRkvRxiZsBB4VLn5oSRSv26HmhoNYR8fHaJyw/VEw== integrity sha512-n1hSb1u4tfsSeseWpJOWCKdenvNQ5iXkb1OuAQq7c0duCuoib1q51Etp9sZiW52YpqcP6CKkkF6McJnlh551sg==
dependencies: dependencies:
blurhash "^2.0.5" blurhash "^2.0.5"
http-link-header "^1.1.3" http-link-header "^1.1.3"
@ -7567,7 +7567,7 @@ pl-api@^0.0.42:
object-to-formdata "^4.5.1" object-to-formdata "^4.5.1"
query-string "^9.1.0" query-string "^9.1.0"
semver "^7.6.3" semver "^7.6.3"
zod "^3.23.8" valibot "^0.42.1"
possible-typed-array-names@^1.0.0: possible-typed-array-names@^1.0.0:
version "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" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== 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: zustand@^5.0.0-rc.2:
version "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" resolved "https://registry.yarnpkg.com/zustand/-/zustand-5.0.0-rc.2.tgz#d28d95ffb6f0b20cadbaea39210f18446a5bf989"