@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/errorReporter.cjs +1 -1
  3. package/_cjs/errorReporter.cjs.map +1 -1
  4. package/_cjs/form.cjs.map +1 -1
  5. package/_cjs/makeClient.cjs +1 -1
  6. package/_cjs/makeClient.cjs.map +1 -1
  7. package/_cjs/makeClient2.cjs +1 -1
  8. package/_cjs/makeClient2.cjs.map +1 -1
  9. package/_cjs/mutate.cjs +1 -1
  10. package/_cjs/mutate.cjs.map +1 -1
  11. package/_cjs/mutate2.cjs +1 -1
  12. package/_cjs/mutate2.cjs.map +1 -1
  13. package/_cjs/query.cjs +1 -1
  14. package/_cjs/query.cjs.map +1 -1
  15. package/_cjs/query2.cjs +1 -1
  16. package/_cjs/query2.cjs.map +1 -1
  17. package/dist/errorReporter.d.ts.map +1 -1
  18. package/dist/errorReporter.js +2 -2
  19. package/dist/form.d.ts +2 -2
  20. package/dist/form.d.ts.map +1 -1
  21. package/dist/form.js +1 -1
  22. package/dist/makeClient.d.ts.map +1 -1
  23. package/dist/makeClient.js +2 -2
  24. package/dist/makeClient2.d.ts +1 -1
  25. package/dist/makeClient2.d.ts.map +1 -1
  26. package/dist/makeClient2.js +2 -2
  27. package/dist/mutate.d.ts.map +1 -1
  28. package/dist/mutate.js +2 -2
  29. package/dist/mutate2.d.ts.map +1 -1
  30. package/dist/mutate2.js +2 -2
  31. package/dist/query.d.ts.map +1 -1
  32. package/dist/query.js +2 -2
  33. package/dist/query2.d.ts.map +1 -1
  34. package/dist/query2.js +2 -2
  35. package/dist/routeParams.d.ts +1 -1
  36. package/package.json +3 -4
  37. package/src/errorReporter.ts +1 -1
  38. package/src/form.ts +2 -2
  39. package/src/makeClient.ts +1 -1
  40. package/src/makeClient2.ts +2 -2
  41. package/src/mutate.ts +1 -1
  42. package/src/mutate2.ts +1 -1
  43. package/src/query.ts +1 -1
  44. package/src/query2.ts +1 -1
  45. package/src/routeParams.ts +1 -1
  46. package/test/form.test.ts +1 -1
  47. 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"
@@ -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/schema"
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 "@effect-app/core"
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"
package/tsconfig.src.json CHANGED
@@ -34,8 +34,5 @@
34
34
  {
35
35
  "path": "../infra-adapters"
36
36
  },
37
- {
38
- "path": "../core"
39
- },
40
37
  ]
41
38
  }