glashjs 0.11.1 → 0.11.2
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 +1 -1
- package/src/index.mjs +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glashjs",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "glashjs — a web framework built on top of Next.js: file-based routing, SSR, API routes, JSX components with client hydration, nested layouts, streaming SSR, a best-in-class build-time asset optimizer, offline PWA layer, animated favicon, and secure-by-default headers. Zero mandatory dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/index.mjs
CHANGED
|
@@ -9,8 +9,8 @@ export { generateServiceWorker } from './offline/generate-sw.mjs';
|
|
|
9
9
|
export { securityHeaders, buildCsp, sri, glashSecurity } from './security/headers.mjs';
|
|
10
10
|
export { createGlashServer, json, redirect } from './server/server.mjs';
|
|
11
11
|
export { discoverRoutes, matchRoute, findMiddleware } from './server/router.mjs';
|
|
12
|
-
export { html, raw, escapeHtml, renderDocument } from './server/html.mjs';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
export { html, raw, escapeHtml, renderDocument, renderMeta } from './server/html.mjs';
|
|
13
|
+
// NOTE: <Image>/<Video>/<Link> are Preact components, so they live on subpaths
|
|
14
|
+
// (glashjs/image, glashjs/video, glashjs/link) and are NOT re-exported here —
|
|
15
|
+
// otherwise importing anything from 'glashjs' would require preact to be
|
|
16
|
+
// installed, breaking the zero-dependency core (html/json/createGlashServer/build).
|