@inglorious/ssx 2.0.0 → 2.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/ssx",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Server-Side-X. Xecution? Xperience? Who knows.",
5
5
  "author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -64,14 +64,14 @@
64
64
  "svgo": "^4.0.0",
65
65
  "vite": "^7.1.3",
66
66
  "vite-plugin-image-optimizer": "^2.0.3",
67
- "@inglorious/utils": "3.8.0",
68
- "@inglorious/web": "5.0.0"
67
+ "@inglorious/web": "5.0.1",
68
+ "@inglorious/utils": "3.8.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "prettier": "^3.6.2",
72
72
  "vitest": "^1.6.1",
73
73
  "@inglorious/eslint-config": "1.1.2",
74
- "@inglorious/logo": "3.0.0"
74
+ "@inglorious/logo": "3.0.1"
75
75
  },
76
76
  "engines": {
77
77
  "node": ">= 22"
@@ -123,6 +123,7 @@ ${routes.join(",\n")}
123
123
  const module = await getRoute(page.pattern)()
124
124
  const type = module[page.moduleName]
125
125
  types[page.moduleName] = type
126
+ const shouldHydrate = module.hydrate !== false
126
127
 
127
128
  const store = createStore({ types, entities, middlewares, systems, autoCreateEntities: true })
128
129
 
@@ -131,7 +132,7 @@ const root = document.getElementById("root")
131
132
  mount(store, (api) => {
132
133
  const { route } = api.getEntity("router")
133
134
  return api.render(route)
134
- }, root)
135
+ }, root, { hydrate: shouldHydrate })
135
136
  `
136
137
  }
137
138
 
@@ -40,6 +40,7 @@ export function markdownPlugin(options = {}) {
40
40
  ${mermaidCode}
41
41
 
42
42
  export const metadata = ${JSON.stringify(data)}
43
+ export const hydrate = false
43
44
 
44
45
  export default {
45
46
  render() {