-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
91 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@preact-signals/utils": patch | ||
--- | ||
|
||
Improved treeshacking by avoiding `export *` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
// export { For } from "./For"; | ||
// export type { ForProps } from "./For"; | ||
export * from "./Computed"; | ||
export * from "./For"; | ||
export * from "./Show"; | ||
export * from "./Switch"; | ||
|
||
export { Computed, type ComputedProps } from "./Computed"; | ||
export { For, type ForProps, type KeyExtractor } from "./For"; | ||
export { Show, type ShowProps } from "./Show"; | ||
export { Match, type MatchProps, Switch, type SwitchProps } from "./Switch"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
export * from "./components"; | ||
export * from "./type"; | ||
|
||
export { | ||
type ForProps, | ||
type KeyExtractor, | ||
type ComputedProps, | ||
type MatchProps, | ||
type ShowProps, | ||
type SwitchProps, | ||
Computed, | ||
For, | ||
Match, | ||
Show, | ||
Switch, | ||
} from "./components"; | ||
export type * from "./type"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
export * from "./createFlatStore"; | ||
export { | ||
type FlatStore, | ||
type FlatStoreOfSignalsBody, | ||
type ReadonlyFlatStore, | ||
type ReadonlySignalsKeys, | ||
createFlatStore, | ||
createFlatStoreOfSignals, | ||
flatStore, | ||
flatStoreOfSignals, | ||
} from "./createFlatStore"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export * from "./reactifyLite"; | ||
export * from "./withSignalProps"; | ||
|
||
export { | ||
type ReactifyLiteFn, | ||
type ReactiveProps, | ||
reactifyLite, | ||
} from "./reactifyLite"; | ||
export { type WithSignalProp, withSignalProps } from "./withSignalProps"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export * from "./createResource"; | ||
export * from "./resource"; | ||
export { createResource } from "./createResource"; | ||
export { resource } from "./resource"; | ||
export type * from "./resource"; | ||
export type * from "./createResource"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
export { untracked } from "@preact-signals/unified-signals"; | ||
export * from "./explicitFalsy"; | ||
export * from "./getter"; | ||
export * from "./reactive"; | ||
export * from "./setter"; | ||
export * from "./toSolidApi"; | ||
export * from "./type"; | ||
export * from './object' | ||
export { isExplicitFalsy } from "./explicitFalsy"; | ||
export type * from "./explicitFalsy"; | ||
export { accessorOfSignal, stableAccessorOfSignal } from "./getter"; | ||
export { accessorOfReactive, unwrapReactive } from "./reactive"; | ||
export { setterOfSignal, toggleSignal } from "./setter"; | ||
export { toSolidLikeSignal } from "./toSolidApi"; | ||
export type * from "./toSolidApi"; | ||
export type * from "./type"; | ||
export { writableRefOfArrayProp, writableRefOfObjectProp } from "./object"; | ||
export { reaction, rafReaction } from "./reaction"; | ||
export type * from "./reaction"; |