@farm.js/core 0.1.0-beta.54 → 0.1.0-beta.56
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/dist/{chunk-427JQ6OZ.mjs → chunk-5T2XATMK.mjs} +58 -11
- package/dist/chunk-5T2XATMK.mjs.map +1 -0
- package/dist/{chunk-J34JCW6R.mjs → chunk-FOEPWRHM.mjs} +2 -2
- package/dist/{chunk-BDHDDITP.mjs → chunk-FPLRESQA.mjs} +30 -18
- package/dist/chunk-FPLRESQA.mjs.map +1 -0
- package/dist/{chunk-JECGLPIS.mjs → chunk-PYIVNTDI.mjs} +4 -4
- package/dist/{chunk-GPHLXAFT.mjs → chunk-UH5R4J5M.mjs} +2 -2
- package/dist/{chunk-ENPB4CSY.mjs → chunk-XLQVJDK2.mjs} +2 -2
- package/dist/{chunk-ENPB4CSY.mjs.map → chunk-XLQVJDK2.mjs.map} +1 -1
- package/dist/{chunk-GVQ54ERX.mjs → chunk-YPKCFGA7.mjs} +9 -3
- package/dist/chunk-YPKCFGA7.mjs.map +1 -0
- package/dist/{chunk-PGZVE6P7.mjs → chunk-ZOQLQAUG.mjs} +2 -2
- package/dist/client/lifecycle.mjs +2 -2
- package/dist/client-plugins.cjs +1 -1
- package/dist/client-plugins.cjs.map +1 -1
- package/dist/client-plugins.mjs +2 -2
- package/dist/client.cjs +76 -23
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +2 -5
- package/dist/client.d.ts +2 -5
- package/dist/client.mjs +11 -11
- package/dist/index.cjs +85 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +17 -17
- package/dist/internal/build-runtime.cjs +8 -2
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +3 -3
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +2 -2
- package/dist/navigation.cjs +74 -20
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.mjs +4 -4
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.mjs +2 -2
- package/dist/query/client.cjs +105 -11
- package/dist/query/client.cjs.map +1 -1
- package/dist/query/client.mjs +18 -11
- package/dist/query/client.mjs.map +1 -1
- package/dist/renderer-client.cjs +56 -12
- package/dist/renderer-client.cjs.map +1 -1
- package/dist/renderer-client.d.mts +1 -1
- package/dist/renderer-client.d.ts +1 -1
- package/dist/renderer-client.mjs +12 -11
- package/dist/renderer-client.mjs.map +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +2 -2
- package/dist/{spa-router-BD7iUG-C.d.mts → spa-router-BV71GGW0.d.mts} +4 -3
- package/dist/{spa-router-swFKTqwR.d.ts → spa-router-BylM6JXm.d.ts} +4 -3
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-427JQ6OZ.mjs.map +0 -1
- package/dist/chunk-BDHDDITP.mjs.map +0 -1
- package/dist/chunk-GVQ54ERX.mjs.map +0 -1
- /package/dist/{chunk-J34JCW6R.mjs.map → chunk-FOEPWRHM.mjs.map} +0 -0
- /package/dist/{chunk-JECGLPIS.mjs.map → chunk-PYIVNTDI.mjs.map} +0 -0
- /package/dist/{chunk-GPHLXAFT.mjs.map → chunk-UH5R4J5M.mjs.map} +0 -0
- /package/dist/{chunk-PGZVE6P7.mjs.map → chunk-ZOQLQAUG.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -51,7 +51,7 @@ export { F as FarmImageConfig, a as FarmImageFormat, b as FarmImageLocalPattern,
|
|
|
51
51
|
export { build } from './internal/build-runtime.mjs';
|
|
52
52
|
export { AnyMutationTarget, DefaultRouteHref, DefaultRoutePath, DefaultRoutePattern, ExternalHref, FetcherFormDataContext, FetcherFormProps, FetcherState, FetcherSubmit, FetcherSubmitAsync, InferMutationData, InferMutationError, InferMutationVariables, Link, LinkDefaultRoute, LinkProps, MutationAsync, MutationOptimisticContext, MutationStatus, MutationTrigger, PrefetchBehavior, RouteHref, RouteOptionalParamValue, RouteParamValue, RouteParams, Store, StoreApi, StoreFields, StoreKeyListener, StoreKeysListener, StoreListener, StorePatch, StoreState, StoreValueUpdater, UseBlockerOptions, UseBlockerReturn, UseFetcherOptions, UseFetcherReturn, UseMutationOptions, UseMutationReturn, UseRouterOptions, createStore, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration } from './client.mjs';
|
|
53
53
|
export { UseThemeResult, useTheme } from './theme/client.mjs';
|
|
54
|
-
export { a as FarmNavigateOptions, d as FarmNavigationBlocker, e as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, F as FarmNavigationState, i as FarmViewTransitionMode, S as SPARouter, g as getRouter, n as navigateTo, p as prefetch, b as pushState, r as readPageState, c as replaceState } from './spa-router-
|
|
54
|
+
export { a as FarmNavigateOptions, d as FarmNavigationBlocker, e as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, F as FarmNavigationState, i as FarmViewTransitionMode, S as SPARouter, g as getRouter, n as navigateTo, p as prefetch, b as pushState, r as readPageState, c as replaceState } from './spa-router-BV71GGW0.mjs';
|
|
55
55
|
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery-lnQFzcQP.mjs';
|
|
56
56
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle-CgO0tX2y.mjs';
|
|
57
57
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export { F as FarmImageConfig, a as FarmImageFormat, b as FarmImageLocalPattern,
|
|
|
51
51
|
export { build } from './internal/build-runtime.js';
|
|
52
52
|
export { AnyMutationTarget, DefaultRouteHref, DefaultRoutePath, DefaultRoutePattern, ExternalHref, FetcherFormDataContext, FetcherFormProps, FetcherState, FetcherSubmit, FetcherSubmitAsync, InferMutationData, InferMutationError, InferMutationVariables, Link, LinkDefaultRoute, LinkProps, MutationAsync, MutationOptimisticContext, MutationStatus, MutationTrigger, PrefetchBehavior, RouteHref, RouteOptionalParamValue, RouteParamValue, RouteParams, Store, StoreApi, StoreFields, StoreKeyListener, StoreKeysListener, StoreListener, StorePatch, StoreState, StoreValueUpdater, UseBlockerOptions, UseBlockerReturn, UseFetcherOptions, UseFetcherReturn, UseMutationOptions, UseMutationReturn, UseRouterOptions, createStore, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration } from './client.js';
|
|
53
53
|
export { UseThemeResult, useTheme } from './theme/client.js';
|
|
54
|
-
export { a as FarmNavigateOptions, d as FarmNavigationBlocker, e as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, F as FarmNavigationState, i as FarmViewTransitionMode, S as SPARouter, g as getRouter, n as navigateTo, p as prefetch, b as pushState, r as readPageState, c as replaceState } from './spa-router-
|
|
54
|
+
export { a as FarmNavigateOptions, d as FarmNavigationBlocker, e as FarmNavigationBlockerContext, f as FarmNavigationListener, h as FarmNavigationLocation, F as FarmNavigationState, i as FarmViewTransitionMode, S as SPARouter, g as getRouter, n as navigateTo, p as prefetch, b as pushState, r as readPageState, c as replaceState } from './spa-router-BylM6JXm.js';
|
|
55
55
|
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery-lnQFzcQP.js';
|
|
56
56
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle-CgO0tX2y.js';
|
|
57
57
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-5ZGPRGWV.mjs";
|
|
10
10
|
import {
|
|
11
11
|
build
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YPKCFGA7.mjs";
|
|
13
13
|
import "./chunk-SL6HTIOK.mjs";
|
|
14
14
|
import "./chunk-4S3ORGFA.mjs";
|
|
15
15
|
import {
|
|
@@ -30,7 +30,7 @@ import "./chunk-V7RBCSDJ.mjs";
|
|
|
30
30
|
import {
|
|
31
31
|
usePathname,
|
|
32
32
|
useSearchParams
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UH5R4J5M.mjs";
|
|
34
34
|
import {
|
|
35
35
|
cookies,
|
|
36
36
|
headers
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
createStore,
|
|
138
138
|
useFetcher,
|
|
139
139
|
useMutation
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-PYIVNTDI.mjs";
|
|
141
141
|
import {
|
|
142
142
|
useAction,
|
|
143
143
|
useServerFn
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
usePageState,
|
|
152
152
|
useRouter,
|
|
153
153
|
useScrollRestoration
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-FPLRESQA.mjs";
|
|
155
155
|
import {
|
|
156
156
|
useTheme
|
|
157
157
|
} from "./chunk-CHITERV2.mjs";
|
|
@@ -180,16 +180,6 @@ import {
|
|
|
180
180
|
fetchServerQuery,
|
|
181
181
|
prefetchServerQuery
|
|
182
182
|
} from "./chunk-3E2WRUR2.mjs";
|
|
183
|
-
import {
|
|
184
|
-
SPARouter,
|
|
185
|
-
getRouter,
|
|
186
|
-
navigateTo,
|
|
187
|
-
prefetch,
|
|
188
|
-
pushState,
|
|
189
|
-
readPageState,
|
|
190
|
-
replaceState
|
|
191
|
-
} from "./chunk-427JQ6OZ.mjs";
|
|
192
|
-
import "./chunk-ITN462YM.mjs";
|
|
193
183
|
import {
|
|
194
184
|
getTheme,
|
|
195
185
|
setTheme,
|
|
@@ -201,6 +191,16 @@ import {
|
|
|
201
191
|
isFarmRouteActive,
|
|
202
192
|
matchFarmRoute
|
|
203
193
|
} from "./chunk-ZBE6MLHL.mjs";
|
|
194
|
+
import {
|
|
195
|
+
SPARouter,
|
|
196
|
+
getRouter,
|
|
197
|
+
navigateTo,
|
|
198
|
+
prefetch,
|
|
199
|
+
pushState,
|
|
200
|
+
readPageState,
|
|
201
|
+
replaceState
|
|
202
|
+
} from "./chunk-5T2XATMK.mjs";
|
|
203
|
+
import "./chunk-ITN462YM.mjs";
|
|
204
204
|
import "./chunk-C4XSKA7P.mjs";
|
|
205
205
|
import "./chunk-SCFX4UTD.mjs";
|
|
206
206
|
import {
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
createClientPluginManager,
|
|
209
209
|
installChunkErrorRecovery,
|
|
210
210
|
isChunkLoadError
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-FOEPWRHM.mjs";
|
|
212
212
|
import {
|
|
213
213
|
analyzeStaticRouteCandidate,
|
|
214
214
|
collectSSGPages,
|
|
@@ -227,7 +227,7 @@ import {
|
|
|
227
227
|
parseRouteRenderingDirective,
|
|
228
228
|
resolveRouteRenderingConfig,
|
|
229
229
|
resolveRouteRenderingConfigFromFile
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-ZOQLQAUG.mjs";
|
|
231
231
|
import {
|
|
232
232
|
APITypeGenerator
|
|
233
233
|
} from "./chunk-XJTDE4L4.mjs";
|
|
@@ -568,7 +568,7 @@ import {
|
|
|
568
568
|
runWithFarmSpan
|
|
569
569
|
} from "./chunk-7ZMKVETU.mjs";
|
|
570
570
|
import "./chunk-FXG2PS27.mjs";
|
|
571
|
-
import "./chunk-
|
|
571
|
+
import "./chunk-XLQVJDK2.mjs";
|
|
572
572
|
import {
|
|
573
573
|
createCompressionPlugin,
|
|
574
574
|
createEnvPlugin,
|
|
@@ -14918,7 +14918,7 @@ var init_server3 = __esm({
|
|
|
14918
14918
|
var version;
|
|
14919
14919
|
var init_package = __esm({
|
|
14920
14920
|
"package.json"() {
|
|
14921
|
-
version = "0.1.0-beta.
|
|
14921
|
+
version = "0.1.0-beta.56";
|
|
14922
14922
|
}
|
|
14923
14923
|
});
|
|
14924
14924
|
|
|
@@ -33780,7 +33780,13 @@ function generateUniversalRouterStateProperties() {
|
|
|
33780
33780
|
} else {
|
|
33781
33781
|
window.history.pushState(nextState, "", url);
|
|
33782
33782
|
}
|
|
33783
|
-
|
|
33783
|
+
// Announce on the dedicated history channel; a synthetic popstate would
|
|
33784
|
+
// be treated as back/forward by the popstate listener below and trigger
|
|
33785
|
+
// a full navigation for a shallow page-state write. The bundled client
|
|
33786
|
+
// hooks subscribe to this event via subscribeHistoryChange.
|
|
33787
|
+
window.dispatchEvent(
|
|
33788
|
+
new CustomEvent("farm:historychange", { detail: { kind: "page-state" } }),
|
|
33789
|
+
);
|
|
33784
33790
|
},
|
|
33785
33791
|
|
|
33786
33792
|
registerScrollElement: function(key, element) {
|