eddev 2.0.0-beta.47 → 2.0.0-beta.49

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.
@@ -12,6 +12,6 @@ export function MetaTags(props) {
12
12
  if (tagProps.async === "") {
13
13
  tagProps.async = true;
14
14
  }
15
- return _jsx(Tag, { "data-test": props.debugKey + "_" + i, ...tagProps }, i);
15
+ return _jsx(Tag, { ...tagProps }, i);
16
16
  }) }));
17
17
  }
@@ -86,7 +86,16 @@ export function BrowserRouter(props) {
86
86
  ...state,
87
87
  ...update,
88
88
  };
89
- clientMetaTags.setMetaTags(state.activeRoute.meta.tags ?? []);
89
+ if (state?.activeRoute?.meta?.tags) {
90
+ if (env.serverless) {
91
+ clientMetaTags.setMetaTags(state.activeRoute.meta.tags ?? []);
92
+ }
93
+ else {
94
+ const title = state.activeRoute.meta.tags.find((tag) => tag.tagName === "title")?.inner;
95
+ if (title)
96
+ document.title = title;
97
+ }
98
+ }
90
99
  setRouterState(state);
91
100
  };
92
101
  const internals = {
@@ -271,6 +280,7 @@ export function BrowserRouter(props) {
271
280
  replaceRoute({
272
281
  ...getActiveRoute(),
273
282
  query,
283
+ returnState: captureState(),
274
284
  });
275
285
  },
276
286
  async prefetch(url) {
@@ -1 +1 @@
1
- export declare const VERSION = "2.0.0-beta.46";
1
+ export declare const VERSION = "2.0.0-beta.49";
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.46";
1
+ export const VERSION = "2.0.0-beta.49";
@@ -25,8 +25,8 @@ export function createVinxiApp(args) {
25
25
  varies: [],
26
26
  },
27
27
  },
28
- "/favicon**": {
29
- proxy: joinURL(args.origin, "**"),
28
+ "/favicon.ico": {
29
+ proxy: joinURL(args.origin, "favicon.ico"),
30
30
  static: true,
31
31
  cache: {
32
32
  maxAge: 3600,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.47",
3
+ "version": "2.0.0-beta.49",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",