@effect-app/vue 1.29.0 → 2.0.0
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/CHANGELOG.md +12 -0
- package/_cjs/errorReporter.cjs +1 -1
- package/_cjs/errorReporter.cjs.map +1 -1
- package/_cjs/form.cjs.map +1 -1
- package/_cjs/makeClient.cjs +1 -1
- package/_cjs/makeClient.cjs.map +1 -1
- package/_cjs/makeClient2.cjs +1 -1
- package/_cjs/makeClient2.cjs.map +1 -1
- package/_cjs/mutate.cjs +1 -1
- package/_cjs/mutate.cjs.map +1 -1
- package/_cjs/mutate2.cjs +1 -1
- package/_cjs/mutate2.cjs.map +1 -1
- package/_cjs/query.cjs +1 -1
- package/_cjs/query.cjs.map +1 -1
- package/_cjs/query2.cjs +1 -1
- package/_cjs/query2.cjs.map +1 -1
- package/dist/errorReporter.d.ts.map +1 -1
- package/dist/errorReporter.js +2 -2
- package/dist/form.d.ts +2 -2
- package/dist/form.d.ts.map +1 -1
- package/dist/form.js +1 -1
- package/dist/makeClient.d.ts.map +1 -1
- package/dist/makeClient.js +2 -2
- package/dist/makeClient2.d.ts +1 -1
- package/dist/makeClient2.d.ts.map +1 -1
- package/dist/makeClient2.js +2 -2
- package/dist/mutate.d.ts.map +1 -1
- package/dist/mutate.js +2 -2
- package/dist/mutate2.d.ts.map +1 -1
- package/dist/mutate2.js +2 -2
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +2 -2
- package/dist/query2.d.ts.map +1 -1
- package/dist/query2.js +2 -2
- package/dist/routeParams.d.ts +1 -1
- package/package.json +3 -4
- package/src/errorReporter.ts +1 -1
- package/src/form.ts +2 -2
- package/src/makeClient.ts +1 -1
- package/src/makeClient2.ts +2 -2
- package/src/mutate.ts +1 -1
- package/src/mutate2.ts +1 -1
- package/src/query.ts +1 -1
- package/src/query2.ts +1 -1
- package/src/routeParams.ts +1 -1
- package/test/form.test.ts +1 -1
- package/tsconfig.src.json +0 -3
package/src/query.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
5
|
-
import { isHttpRequestError, isHttpResponseError } from "@effect-app/core/http/http-client"
|
|
6
5
|
import * as Result from "@effect-rx/rx/Result"
|
|
7
6
|
import type {
|
|
8
7
|
QueryKey,
|
|
@@ -14,6 +13,7 @@ import type {
|
|
|
14
13
|
import { useQuery } from "@tanstack/vue-query"
|
|
15
14
|
import { Array, Cause, Effect, Option, Runtime, S } from "effect-app"
|
|
16
15
|
import { ServiceUnavailableError } from "effect-app/client"
|
|
16
|
+
import { isHttpRequestError, isHttpResponseError } from "effect-app/http/http-client"
|
|
17
17
|
import { computed, ref } from "vue"
|
|
18
18
|
import type { ComputedRef, ShallowRef, WatchSource } from "vue"
|
|
19
19
|
import { makeQueryKey, reportRuntimeError } from "./internal.js"
|
package/src/query2.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
5
|
-
import { isHttpRequestError, isHttpResponseError } from "@effect-app/core/http/http-client"
|
|
6
5
|
import * as Result from "@effect-rx/rx/Result"
|
|
7
6
|
import type {
|
|
8
7
|
QueryKey,
|
|
@@ -15,6 +14,7 @@ import { useQuery } from "@tanstack/vue-query"
|
|
|
15
14
|
import { Cause, Effect, Option, Runtime, S } from "effect-app"
|
|
16
15
|
import { ServiceUnavailableError } from "effect-app/client"
|
|
17
16
|
import type { RequestHandler, RequestHandlerWithInput, TaggedRequestClassAny } from "effect-app/client/clientFor"
|
|
17
|
+
import { isHttpRequestError, isHttpResponseError } from "effect-app/http/http-client"
|
|
18
18
|
import { computed, ref } from "vue"
|
|
19
19
|
import type { ComputedRef, ShallowRef, WatchSource } from "vue"
|
|
20
20
|
import { makeQueryKey, reportRuntimeError } from "./internal.js"
|
package/src/routeParams.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { flow } from "effect"
|
|
2
2
|
import { Option, S } from "effect-app"
|
|
3
|
-
import type { Schema } from "effect-app/
|
|
3
|
+
import type { Schema } from "effect-app/Schema"
|
|
4
4
|
import { typedKeysOf } from "effect-app/utils"
|
|
5
5
|
import type { ParsedQuery } from "query-string"
|
|
6
6
|
|
package/test/form.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect-app"
|
|
2
2
|
import { S } from "effect-app"
|
|
3
3
|
import type { DiscriminatedUnionFieldInfo, FieldInfo, NestedFieldInfo, UnionFieldInfo } from "../src/form.js"
|
|
4
4
|
import { buildFieldInfoFromFieldsRoot } from "../src/form.js"
|