@ubean/routes 0.3.7 → 0.4.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/dist/index.d.ts CHANGED
@@ -553,7 +553,7 @@ declare const ACTION_RESPONSE_HEADER = "x-ubean-action";
553
553
  * Usage:
554
554
  *
555
555
  * ```ts
556
- * import { createUbeanApp } from 'ubean/runtime/app';
556
+ * import { createUbeanApp } from 'ubean/server';
557
557
  * import { createActionsMiddleware } from '@ubean/routes';
558
558
  *
559
559
  * const app = createUbeanApp();
package/dist/index.js CHANGED
@@ -708,7 +708,7 @@ async function runPageAction(actions, actionName, c) {
708
708
  * Usage:
709
709
  *
710
710
  * ```ts
711
- * import { createUbeanApp } from 'ubean/runtime/app';
711
+ * import { createUbeanApp } from 'ubean/server';
712
712
  * import { createActionsMiddleware } from '@ubean/routes';
713
713
  *
714
714
  * const app = createUbeanApp();
package/dist/runtime.d.ts CHANGED
@@ -65,7 +65,7 @@ interface UseActionReturn<TInput = unknown, TOutput = unknown> {
65
65
  * ## 1. Action from `defineAction()` (typed input)
66
66
  *
67
67
  * ```ts
68
- * import { useAction } from 'ubean/runtime/vue';
68
+ * import { useAction } from 'ubean/client';
69
69
  * import { login } from '~/actions/auth';
70
70
  *
71
71
  * const { submit, pending, data, error } = useAction(login);
@@ -123,7 +123,7 @@ interface UseFormActionReturn {
123
123
  *
124
124
  * ```vue
125
125
  * <script setup>
126
- * import { useFormAction } from 'ubean/runtime/vue';
126
+ * import { useFormAction } from 'ubean/client';
127
127
  *
128
128
  * const login = useFormAction('login');
129
129
  * </script>
package/dist/runtime.js CHANGED
@@ -9,7 +9,7 @@ import { ref } from "vue";
9
9
  * server-only types. The Vite plugin replaces `defineAction()` calls on
10
10
  * the client with `createActionStub()` calls (imported from here), and
11
11
  * `useAction()` / `useFormAction()` are auto-imported from
12
- * `ubean/runtime/vue` (which re-exports these).
12
+ * `ubean/client` (which re-exports these).
13
13
  *
14
14
  * The runtime communicates with the server via the `/__actions` POST
15
15
  * endpoint (for RPC) or via page POST (for form actions with
@@ -90,7 +90,7 @@ async function callAction(actionId, args = []) {
90
90
  * ## 1. Action from `defineAction()` (typed input)
91
91
  *
92
92
  * ```ts
93
- * import { useAction } from 'ubean/runtime/vue';
93
+ * import { useAction } from 'ubean/client';
94
94
  * import { login } from '~/actions/auth';
95
95
  *
96
96
  * const { submit, pending, data, error } = useAction(login);
@@ -170,7 +170,7 @@ function useAction(actionOrId) {
170
170
  *
171
171
  * ```vue
172
172
  * <script setup>
173
- * import { useFormAction } from 'ubean/runtime/vue';
173
+ * import { useFormAction } from 'ubean/client';
174
174
  *
175
175
  * const login = useFormAction('login');
176
176
  * <\/script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/routes",
3
- "version": "0.3.7",
3
+ "version": "0.4.0",
4
4
  "description": "Server routes runtime for ubean (defineHandler, defineMiddleware, registerRoutes, Server Actions, rou3 server router, route rules, ISR, internal-fetch, OpenAPI)",
5
5
  "files": [
6
6
  "dist"
@@ -24,23 +24,23 @@
24
24
  "@soybeanjs/fetch": "^0.1.0",
25
25
  "@standard-community/standard-json": "^0.3.5",
26
26
  "@standard-community/standard-openapi": "^0.2.9",
27
- "@ubean/i18n": "0.3.7",
28
- "@ubean/shared": "0.3.7",
27
+ "@ubean/i18n": "0.4.0",
28
+ "@ubean/shared": "0.4.0",
29
29
  "hono": "4.13.5",
30
30
  "hono-openapi": "^1.3.1",
31
31
  "rou3": "^0.9.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^26.4.0",
35
- "@ubean/pages": "0.3.7",
36
- "@ubean/scan": "0.3.7",
35
+ "@ubean/pages": "0.4.0",
36
+ "@ubean/scan": "0.4.0",
37
37
  "typescript": "7.0.2",
38
38
  "vite-plus": "0.3.0",
39
39
  "vue": "^3.5.42"
40
40
  },
41
41
  "peerDependencies": {
42
- "@ubean/pages": "0.3.7",
43
- "@ubean/scan": "0.3.7",
42
+ "@ubean/pages": "0.4.0",
43
+ "@ubean/scan": "0.4.0",
44
44
  "vue": "^3.0.0"
45
45
  },
46
46
  "peerDependenciesMeta": {