prestruct 1.1.0 → 1.2.0
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/README.md +28 -64
- package/bin/cli.mjs +217 -9
- package/engine/scripts/audit.js +530 -0
- package/engine/scripts/hooks.js +93 -0
- package/engine/scripts/indexnow.js +139 -0
- package/engine/scripts/inject-brand.js +112 -10
- package/engine/scripts/ogimage.js +165 -0
- package/engine/scripts/prerender.js +585 -92
- package/engine/scripts/validate-config.js +103 -1
- package/engine/src/hooks/usePageMeta.js +3 -1
- package/engine/src/islands.js +23 -4
- package/engine/ssr.config.example.js +196 -0
- package/init/VERSION +1 -1
- package/init/ecosystem.cjs +1 -1
- package/init/package-lock.json +6 -6
- package/init/package.json +6 -6
- package/init/scripts/audit-if-configured.cjs +26 -0
- package/init/scripts/audit.js +530 -0
- package/init/scripts/hooks.js +93 -0
- package/init/scripts/indexnow.js +139 -0
- package/init/scripts/inject-brand.js +112 -10
- package/init/scripts/ogimage.js +165 -0
- package/init/scripts/prerender.js +585 -92
- package/init/scripts/proxy.js +100 -17
- package/init/scripts/proxy.worker.js +150 -33
- package/init/scripts/validate-config.js +103 -1
- package/init/src/hooks/usePageMeta.js +3 -1
- package/init/src/islands.js +23 -4
- package/init/ssr.config.example.js +37 -0
- package/package.json +15 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prestruct",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "AI-first SEO prerender for Vite + React apps. Drop in, config, build.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"./bin": "./bin/cli.mjs",
|
|
14
14
|
"./prerender": "./engine/scripts/prerender.js",
|
|
15
15
|
"./inject-brand": "./engine/scripts/inject-brand.js",
|
|
16
|
+
"./audit": "./engine/scripts/audit.js",
|
|
16
17
|
"./validate-config": "./engine/scripts/validate-config.js",
|
|
17
18
|
"./hooks": "./engine/src/hooks/usePageMeta.js",
|
|
18
19
|
"./islands": "./engine/src/islands.js",
|
|
@@ -30,9 +31,13 @@
|
|
|
30
31
|
"scripts": {
|
|
31
32
|
"test": "vitest",
|
|
32
33
|
"test:run": "vitest run",
|
|
34
|
+
"prepublishOnly": "npm run gate",
|
|
35
|
+
"gate": "npm run sync:check && npm run lint:packs && npm run lint:docs && npm run lint:claims && npm --prefix init run lint && npm run test:run",
|
|
33
36
|
"sync": "node scripts/sync-engine.mjs",
|
|
34
37
|
"sync:check": "node scripts/sync-engine.mjs check",
|
|
35
|
-
"lint:
|
|
38
|
+
"lint:packs": "packstruct lint packs/ --deep",
|
|
39
|
+
"crashtest:bump": "node scripts/crashtest-bump.mjs",
|
|
40
|
+
"lint:docs": "node scripts/run-docs-audit.cjs",
|
|
36
41
|
"lint:claims": "node scripts/check-fiction-signatures.cjs",
|
|
37
42
|
"e2e": "node tests/e2e-fixture.mjs"
|
|
38
43
|
},
|
|
@@ -43,17 +48,21 @@
|
|
|
43
48
|
"tinypool": "^2.2.0"
|
|
44
49
|
},
|
|
45
50
|
"peerDependencies": {
|
|
46
|
-
"react": ">=18",
|
|
47
|
-
"react-dom": ">=18",
|
|
48
|
-
"react-router-dom": ">=6",
|
|
49
|
-
"vite": ">=5"
|
|
51
|
+
"react": ">=18 <19",
|
|
52
|
+
"react-dom": ">=18 <19",
|
|
53
|
+
"react-router-dom": ">=6 <8",
|
|
54
|
+
"vite": ">=5 <8"
|
|
50
55
|
},
|
|
51
56
|
"devDependencies": {
|
|
57
|
+
"crashtest": "1.1.0",
|
|
52
58
|
"express": "^4.22.3",
|
|
59
|
+
"freestruct": "^1.1.0",
|
|
53
60
|
"happy-dom": "^21.0.4",
|
|
61
|
+
"packstruct": "1.0.0",
|
|
54
62
|
"react": "^18.3.1",
|
|
55
63
|
"react-dom": "^18.3.1",
|
|
56
64
|
"react-router-dom": "^6.30.1",
|
|
65
|
+
"react-router-dom-v7": "npm:react-router-dom@^7.18.5",
|
|
57
66
|
"vite": "^6.4.5",
|
|
58
67
|
"vitest": "^5.0.5"
|
|
59
68
|
},
|