@effect-app/vue 4.0.0-beta.267 → 4.0.0-beta.268

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @effect-app/vue
2
2
 
3
+ ## 4.0.0-beta.268
4
+
5
+ ### Patch Changes
6
+
7
+ - acfdc9e: Point development package exports at TypeScript sources while keeping published exports on compiled dist files.
8
+ - Updated dependencies [acfdc9e]
9
+ - effect-app@4.0.0-beta.268
10
+
3
11
  ## 4.0.0-beta.267
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/vue",
3
- "version": "4.0.0-beta.267",
3
+ "version": "4.0.0-beta.268",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/effect-ts-app/libs/tree/main/packages/vue",
@@ -11,7 +11,7 @@
11
11
  "@vueuse/core": "^14.3.0",
12
12
  "change-case": "^5.4.4",
13
13
  "query-string": "^9.4.0",
14
- "effect-app": "4.0.0-beta.267"
14
+ "effect-app": "4.0.0-beta.268"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@effect/atom-vue": "^4.0.0-beta.83",
@@ -60,7 +60,7 @@
60
60
  ],
61
61
  "scripts": {
62
62
  "watch": "pnpm build:tsc -w",
63
- "build:tsc": "pnpm clean-dist && pnpm check",
63
+ "build:tsc": "pnpm clean-dist && pnpm check && node ../../scripts/rewrite-dist-declaration-imports.mjs dist",
64
64
  "check": "tsgo --build",
65
65
  "build": "pnpm build:tsc",
66
66
  "watch2": "pnpm clean-dist && NODE_OPTIONS=--max-old-space-size=6144 tsgo -w",
package/src/commander.ts CHANGED
@@ -22,10 +22,10 @@ import * as Stream from "effect/Stream"
22
22
  import * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
23
23
  import { type FormatXMLElementFn, type PrimitiveType } from "intl-messageformat"
24
24
  import { computed, type ComputedRef, reactive, ref, toRaw } from "vue"
25
- import { Confirm } from "./confirm.js"
26
- import { I18n } from "./intl.js"
27
- import { CurrentToastId, Toast } from "./toast.js"
28
- import { WithToast } from "./withToast.js"
25
+ import { Confirm } from "./confirm.ts"
26
+ import { I18n } from "./intl.ts"
27
+ import { CurrentToastId, Toast } from "./toast.ts"
28
+ import { WithToast } from "./withToast.ts"
29
29
 
30
30
  type IntlRecord = Record<string, PrimitiveType | FormatXMLElementFn<string, string>>
31
31
 
package/src/confirm.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Context from "effect-app/Context"
2
2
  import * as Effect from "effect-app/Effect"
3
3
  import * as Layer from "effect-app/Layer"
4
- import { I18n } from "./intl.js"
4
+ import { I18n } from "./intl.ts"
5
5
 
6
6
  // @effect-diagnostics-next-line missingEffectServiceDependency:off
7
7
  export class Confirm extends Context.Service<Confirm>()("Confirm", {
package/src/index.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./lib.js"
1
+ export * from "./lib.ts"
2
2
 
3
- export * from "./makeClient.js"
4
- export * from "./makeContext.js"
5
- export * from "./makeIntl.js"
6
- export * from "./mutate.js"
7
- export * from "./query.js"
8
- export * from "./runtime.js"
3
+ export * from "./makeClient.ts"
4
+ export * from "./makeContext.ts"
5
+ export * from "./makeIntl.ts"
6
+ export * from "./mutate.ts"
7
+ export * from "./query.ts"
8
+ export * from "./runtime.ts"
package/src/intl.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Context from "effect-app/Context"
2
2
  import { accessCn, accessFn } from "effect-app/Context"
3
- import { type MakeIntlReturn } from "./makeIntl.js"
3
+ import { type MakeIntlReturn } from "./makeIntl.ts"
4
4
 
5
5
  type I18nShape = ReturnType<MakeIntlReturn<string>["useIntl"]>
6
6
 
package/src/lib.ts CHANGED
@@ -5,7 +5,7 @@ import type * as Effect from "effect-app/Effect"
5
5
  import * as Cause from "effect/Cause"
6
6
  import { isHttpClientError } from "effect/unstable/http/HttpClientError"
7
7
  import { isProxy, isReactive, isRef, type MaybeRefOrGetter, toRaw } from "vue"
8
- import { reportError } from "./errorReporter.js"
8
+ import { reportError } from "./errorReporter.ts"
9
9
 
10
10
  export * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
11
11
 
package/src/makeClient.ts CHANGED
@@ -16,14 +16,14 @@ import type * as Stream from "effect/Stream"
16
16
  import * as Struct from "effect/Struct"
17
17
  import * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
18
18
  import { type ComputedRef, onBeforeUnmount, ref, type WatchSource } from "vue"
19
- import { type Commander, CommanderStatic, type Progress } from "./commander.js"
20
- import { type I18n } from "./intl.js"
21
- import { type CommanderResolved, makeUseCommand } from "./makeUseCommand.js"
22
- import { type InvalidationEntry, makeMutation, makeStreamMutation2, type MutationOptionsBase, useMakeMutation } from "./mutate.js"
23
- import { type CustomUndefinedInitialQueryOptions, makeQuery, makeStreamQuery } from "./query.js"
24
- import { makeRunPromise } from "./runtime.js"
25
- import { awaitResolvedSuspenseResult } from "./suspense.js"
26
- import { type Toast } from "./toast.js"
19
+ import { type Commander, CommanderStatic, type Progress } from "./commander.ts"
20
+ import { type I18n } from "./intl.ts"
21
+ import { type CommanderResolved, makeUseCommand } from "./makeUseCommand.ts"
22
+ import { type InvalidationEntry, makeMutation, makeStreamMutation2, type MutationOptionsBase, useMakeMutation } from "./mutate.ts"
23
+ import { type CustomUndefinedInitialQueryOptions, makeQuery, makeStreamQuery } from "./query.ts"
24
+ import { makeRunPromise } from "./runtime.ts"
25
+ import { awaitResolvedSuspenseResult } from "./suspense.ts"
26
+ import { type Toast } from "./toast.ts"
27
27
 
28
28
  export type { Progress }
29
29
 
package/src/makeIntl.ts CHANGED
@@ -3,8 +3,8 @@ import { createIntl, createIntlCache, type Formatters, type IntlFormatters, type
3
3
  import { typedKeysOf } from "effect-app/utils"
4
4
  import { type FormatXMLElementFn, type Options as IntlMessageFormatOptions, type PrimitiveType } from "intl-messageformat"
5
5
  import { type Ref, watch } from "vue"
6
- import { translate } from "./form.js"
7
- import { makeContext } from "./makeContext.js"
6
+ import { translate } from "./form.ts"
7
+ import { makeContext } from "./makeContext.ts"
8
8
 
9
9
  export interface MakeIntlReturn<Locale extends string> extends ReturnType<typeof makeIntl<Locale>> {}
10
10
 
@@ -1,6 +1,6 @@
1
1
  import * as Effect from "effect-app/Effect"
2
2
  import type * as Layer from "effect-app/Layer"
3
- import { Commander, type CommanderImpl, CommanderStatic } from "./commander.js"
3
+ import { Commander, type CommanderImpl, CommanderStatic } from "./commander.ts"
4
4
 
5
5
  type X<X> = X
6
6
 
package/src/query.ts CHANGED
@@ -22,8 +22,8 @@ import { type Span } from "effect/Tracer"
22
22
  import { isHttpClientError } from "effect/unstable/http/HttpClientError"
23
23
  import * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
24
24
  import { computed, type ComputedRef, type MaybeRefOrGetter, ref, shallowRef, watch, type WatchSource } from "vue"
25
- import { reportRuntimeError } from "./lib.js"
26
- import { makeRunPromise } from "./runtime.js"
25
+ import { reportRuntimeError } from "./lib.ts"
26
+ import { makeRunPromise } from "./runtime.ts"
27
27
 
28
28
  // we must use interface extends, or we get the dreaded typescript error of isn't portable blabla @tanstack/vue-query/build/modern/types.js
29
29
  // but because how they are dealing with some extends clause, we loose all properties except initialData