dtwo 3.0.0-rc.14 → 3.0.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/app/composables/asyncData.d.ts +1 -1
- package/dist/index.mjs +1 -3
- package/package.json +10 -10
|
@@ -2,7 +2,7 @@ import type { Ref, WatchSource } from 'kdu';
|
|
|
2
2
|
import { DtwoApp } from '../dtwo';
|
|
3
3
|
export type _Transform<Input = any, Output = any> = (input: Input) => Output;
|
|
4
4
|
export type PickFrom<T, K extends Array<string>> = T extends Array<any> ? T : T extends Record<string, any> ? keyof T extends K[number] ? T : Pick<T, K[number]> : T;
|
|
5
|
-
export type KeysOf<T> = Array<keyof T extends string ? keyof T : string>;
|
|
5
|
+
export type KeysOf<T> = Array<T extends T ? keyof T extends string ? keyof T : string : never>;
|
|
6
6
|
export type KeyOfRes<Transform extends _Transform> = KeysOf<ReturnType<Transform>>;
|
|
7
7
|
type MultiWatchSources = (WatchSource<unknown> | object)[];
|
|
8
8
|
export interface AsyncDataOptions<DataT, Transform extends _Transform<DataT, any> = _Transform<DataT, DataT>, PickKeys extends KeyOfRes<_Transform> = KeyOfRes<Transform>> {
|
package/dist/index.mjs
CHANGED
|
@@ -1151,12 +1151,10 @@ const appPreset = defineKdimportPreset({
|
|
|
1151
1151
|
"setPageLayout",
|
|
1152
1152
|
"useRouter",
|
|
1153
1153
|
"useRoute",
|
|
1154
|
-
"useActiveRoute",
|
|
1155
1154
|
"defineDtwoRouteMiddleware",
|
|
1156
1155
|
"navigateTo",
|
|
1157
1156
|
"abortNavigation",
|
|
1158
1157
|
"addRouteMiddleware",
|
|
1159
|
-
"throwError",
|
|
1160
1158
|
"showError",
|
|
1161
1159
|
"clearError",
|
|
1162
1160
|
"isDtwoError",
|
|
@@ -1370,7 +1368,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
1370
1368
|
});
|
|
1371
1369
|
}
|
|
1372
1370
|
|
|
1373
|
-
const version = "3.0.0
|
|
1371
|
+
const version = "3.0.0";
|
|
1374
1372
|
|
|
1375
1373
|
const _require = createRequire(import.meta.url);
|
|
1376
1374
|
const kduAppPatterns = (dtwo) => [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtwo",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"repository": "d2js/framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@d2js/devalue": "^2.0.2",
|
|
37
|
-
"@dtwo/cli": "3.0.0
|
|
38
|
-
"@dtwo/kit": "3.0.0
|
|
39
|
-
"@dtwo/schema": "3.0.0
|
|
40
|
-
"@dtwo/telemetry": "^2.1.
|
|
41
|
-
"@dtwo/ui-templates": "^0.
|
|
37
|
+
"@dtwo/cli": "3.0.0",
|
|
38
|
+
"@dtwo/kit": "3.0.0",
|
|
39
|
+
"@dtwo/schema": "3.0.0",
|
|
40
|
+
"@dtwo/telemetry": "^2.1.8",
|
|
41
|
+
"@dtwo/ui-templates": "^1.0.0",
|
|
42
42
|
"@dtwo/unplugin": "^1.0.0",
|
|
43
|
-
"@dtwo/wite-builder": "3.0.0
|
|
44
|
-
"@kdhead/ssr": "^0.
|
|
43
|
+
"@dtwo/wite-builder": "3.0.0",
|
|
44
|
+
"@kdhead/ssr": "^1.0.0",
|
|
45
45
|
"@kdujs/reactivity": "^3.2.45",
|
|
46
46
|
"@kdujs/shared": "^3.2.45",
|
|
47
|
-
"@kduse/head": "^1.0.
|
|
47
|
+
"@kduse/head": "^1.0.15",
|
|
48
48
|
"chokidar": "^3.5.3",
|
|
49
49
|
"cookie-es": "^0.5.0",
|
|
50
50
|
"defu": "^6.1.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"hash-sum": "^2.0.0",
|
|
58
58
|
"holepack": "^1.0.0",
|
|
59
59
|
"hookable": "^5.4.2",
|
|
60
|
-
"kdhead": "^0.
|
|
60
|
+
"kdhead": "^1.0.0",
|
|
61
61
|
"kdimport": "^1.0.0",
|
|
62
62
|
"kdu": "^3.2.45",
|
|
63
63
|
"kdu-bundle-renderer": "^1.0.0",
|