primate 0.33.3 → 0.34.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.
@@ -14,31 +14,23 @@
14
14
  "jsx": "react-jsx",
15
15
  "paths": {
16
16
  "#route/*": ["routes/*"],
17
- "#lib/*": [
18
- "lib/*.tsx",
19
- "lib/*.jsx",
20
- "lib/*.vue",
21
- "lib/*.svelte",
22
- "lib/*.component.ts",
23
- "lib/*.ts",
24
- "lib/*.js",
25
- "lib/*"
26
- ],
27
17
  "#component/*": [
18
+ "components/*",
28
19
  "components/*.tsx",
29
20
  "components/*.jsx",
30
21
  "components/*.vue",
31
22
  "components/*.svelte",
32
23
  "components/*.component.ts",
33
24
  "components/*.ts",
34
- "components/*.js",
35
- "components/*"
25
+ "components/*.js"
36
26
  ],
37
- "#store/*": ["stores/*", "stores/*.ts", "stores/*.js"],
38
- "#locale/*": ["locales/*", "locales/*.ts", "locales/*.js"],
39
- "#module/*": ["modules/*", "modules/*.ts", "modules/*.js"],
40
- "#config/*": ["config/*", "config/*.ts", "config/*.js"],
41
- "#static/*": ["static/*", "static/*.ts", "static/*.js"],
27
+ "#hook/*": ["hooks/*", "hooks/*.ts", "hooks/*.js"],
28
+ "#lib/*": ["lib/*", "lib/*.ts", "lib/*.js"],
29
+ "#store/*": ["stores/*", "stores/*.ts", "stores/*.js"],
30
+ "#locale/*": ["locales/*", "locales/*.ts", "locales/*.js"],
31
+ "#module/*": ["modules/*", "modules/*.ts", "modules/*.js"],
32
+ "#config/*": ["config/*", "config/*.ts", "config/*.js"],
33
+ "#static/*": ["static/*", "static/*.ts", "static/*.js"],
42
34
  "#database/*": ["config/database/*.ts", "config/database/*.js"],
43
35
  "#app": ["config/app.ts", "config/app.js"],
44
36
  "#session": ["config/session.ts", "config/session.js"],
@@ -54,7 +46,10 @@
54
46
  "include": [
55
47
  "${configDir}/config",
56
48
  "${configDir}/routes",
49
+ "${configDir}/views",
57
50
  "${configDir}/components",
51
+ "${configDir}/hooks",
52
+ "${configDir}/lib",
58
53
  "${configDir}/stores",
59
54
  "${configDir}/modules",
60
55
  "${configDir}/test",
@@ -131,7 +131,7 @@ export default async function init() {
131
131
  // scaffold dirs
132
132
  await target.create({ recursive: true });
133
133
  await target.join("routes").create({ recursive: true });
134
- await target.join("components").create({ recursive: true });
134
+ await target.join("views").create({ recursive: true });
135
135
  if (db)
136
136
  await target.join("stores").create({ recursive: true });
137
137
  // files
@@ -199,7 +199,6 @@ ${frontendImports}
199
199
  ${backendImports}
200
200
 
201
201
  export default config({
202
- runtime: "${c.runtime}",
203
202
  modules: [
204
203
  ${modules.join(",\n ")}
205
204
  ],
@@ -1,4 +1,2 @@
1
- import App from "@primate/core/client/App";
2
- declare const _default: App;
3
- export default _default;
1
+ import "@primate/core/client/app";
4
2
  //# sourceMappingURL=app.d.ts.map
@@ -1,3 +1,2 @@
1
- import App from "@primate/core/client/App";
2
- export default new App();
1
+ import "@primate/core/client/app";
3
2
  //# sourceMappingURL=app.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primate",
3
- "version": "0.33.3",
3
+ "version": "0.34.0",
4
4
  "description": "The universal web framework",
5
5
  "homepage": "https://primate.run",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@rcompat/record": "^0.9.1",
22
- "pema": "^0.2.0"
22
+ "pema": "^0.3.0"
23
23
  },
24
24
  "dependencies": {
25
25
  "@rcompat/args": "^0.8.0",
@@ -30,7 +30,7 @@
30
30
  "@rcompat/runtime": "^0.6.0",
31
31
  "@rcompat/string": "^0.10.0",
32
32
  "@rcompat/test": "^0.5.0",
33
- "@primate/core": "^0.2.4"
33
+ "@primate/core": "^0.3.0"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=20"
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/binary";
2
- //# sourceMappingURL=binary.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/binary";
2
- //# sourceMappingURL=binary.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/error";
2
- //# sourceMappingURL=error.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/error";
2
- //# sourceMappingURL=error.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/json";
2
- //# sourceMappingURL=json.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/json";
2
- //# sourceMappingURL=json.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/redirect";
2
- //# sourceMappingURL=redirect.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/redirect";
2
- //# sourceMappingURL=redirect.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/sse";
2
- //# sourceMappingURL=sse.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/sse";
2
- //# sourceMappingURL=sse.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/text";
2
- //# sourceMappingURL=text.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/text";
2
- //# sourceMappingURL=text.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/view";
2
- //# sourceMappingURL=view.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/view";
2
- //# sourceMappingURL=view.js.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/ws";
2
- //# sourceMappingURL=ws.d.ts.map
@@ -1,2 +0,0 @@
1
- export { default } from "@primate/core/response/ws";
2
- //# sourceMappingURL=ws.js.map
File without changes
File without changes