@fragno-dev/core 0.1.9 → 0.1.10
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/mod-client.d.ts +23 -22
- package/dist/mod-client.d.ts.map +1 -1
- package/dist/mod-client.js +28 -9
- package/dist/mod-client.js.map +1 -1
- package/package.json +1 -1
- package/src/mod-client.ts +30 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @fragno-dev/core@0.1.
|
|
2
|
+
> @fragno-dev/core@0.1.10 build /home/runner/work/fragno/fragno/packages/fragno
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.15.12[22m powered by rolldown [2mv1.0.0-beta.45[22m
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[34mℹ[39m [2mdist/[22m[1mclient/vanilla.js[22m [2m 2.15 kB[22m [2m│ gzip: 0.66 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[1mapi/request-context-storage.js[22m [2m 1.49 kB[22m [2m│ gzip: 0.75 kB[22m
|
|
20
20
|
[34mℹ[39m [2mdist/[22m[1mintegrations/react-ssr.js[22m [2m 1.26 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
21
|
-
[34mℹ[39m [2mdist/[22m[1mmod-client.js[22m [2m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[1mmod-client.js[22m [2m 1.14 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[1mapi/route.js[22m [2m 0.67 kB[22m [2m│ gzip: 0.34 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[1mrequest/request.js[22m [2m 0.37 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
24
24
|
[34mℹ[39m [2mdist/[22m[1mmod.js[22m [2m 0.31 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.js.map [2m 3.76 kB[22m [2m│ gzip: 1.34 kB[22m
|
|
54
54
|
[34mℹ[39m [2mdist/[22mapi/request-output-context.js [2m 3.38 kB[22m [2m│ gzip: 1.02 kB[22m
|
|
55
55
|
[34mℹ[39m [2mdist/[22mapi/request-input-context.js [2m 3.34 kB[22m [2m│ gzip: 1.10 kB[22m
|
|
56
|
+
[34mℹ[39m [2mdist/[22mmod-client.js.map [2m 3.25 kB[22m [2m│ gzip: 0.98 kB[22m
|
|
56
57
|
[34mℹ[39m [2mdist/[22mutil/content-type.js.map [2m 3.24 kB[22m [2m│ gzip: 1.23 kB[22m
|
|
57
58
|
[34mℹ[39m [2mdist/[22mclient/client-error.js [2m 3.17 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
58
59
|
[34mℹ[39m [2mdist/[22mutil/ssr.js.map [2m 2.95 kB[22m [2m│ gzip: 1.24 kB[22m
|
|
59
60
|
[34mℹ[39m [2mdist/[22mapi/request-context-storage.js.map [2m 2.94 kB[22m [2m│ gzip: 1.21 kB[22m
|
|
60
61
|
[34mℹ[39m [2mdist/[22mclient/vanilla.d.ts.map [2m 2.89 kB[22m [2m│ gzip: 1.10 kB[22m
|
|
61
|
-
[34mℹ[39m [2mdist/[22mmod-client.js.map [2m 2.80 kB[22m [2m│ gzip: 0.83 kB[22m
|
|
62
62
|
[34mℹ[39m [2mdist/[22mclient/react.d.ts.map [2m 2.64 kB[22m [2m│ gzip: 1.17 kB[22m
|
|
63
63
|
[34mℹ[39m [2mdist/[22mclient/solid.d.ts.map [2m 2.44 kB[22m [2m│ gzip: 1.06 kB[22m
|
|
64
64
|
[34mℹ[39m [2mdist/[22mclient/internal/fetcher-merge.js.map [2m 2.44 kB[22m [2m│ gzip: 0.96 kB[22m
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
[34mℹ[39m [2mdist/[22mapi/shared-types.d.ts.map [2m 0.31 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
100
100
|
[34mℹ[39m [2mdist/[22mapi/internal/route.js [2m 0.28 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
101
101
|
[34mℹ[39m [2mdist/[22mapi/mutable-request-state.d.ts.map [2m 0.28 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
102
|
+
[34mℹ[39m [2mdist/[22mmod-client.d.ts.map [2m 0.23 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
102
103
|
[34mℹ[39m [2mdist/[22mintegrations/react-ssr.d.ts.map [2m 0.23 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
103
104
|
[34mℹ[39m [2mdist/[22mutil/types-util.d.ts.map [2m 0.21 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
104
|
-
[34mℹ[39m [2mdist/[22mmod-client.d.ts.map [2m 0.17 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
105
105
|
[34mℹ[39m [2mdist/[22minternal/symbols.d.ts.map [2m 0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
106
106
|
[34mℹ[39m [2mdist/[22m[32m[1mapi/fragment-definition-builder.d.ts[22m[39m [2m16.64 kB[22m [2m│ gzip: 3.28 kB[22m
|
|
107
107
|
[34mℹ[39m [2mdist/[22m[32m[1mclient/client.d.ts[22m[39m [2m13.77 kB[22m [2m│ gzip: 3.10 kB[22m
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
[34mℹ[39m [2mdist/[22m[32m[1mapi/api.d.ts[22m[39m [2m 3.08 kB[22m [2m│ gzip: 0.86 kB[22m
|
|
115
115
|
[34mℹ[39m [2mdist/[22m[32m[1mclient/client.svelte.d.ts[22m[39m [2m 2.88 kB[22m [2m│ gzip: 0.81 kB[22m
|
|
116
116
|
[34mℹ[39m [2mdist/[22m[32m[1mclient/vue.d.ts[22m[39m [2m 2.82 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
117
|
+
[34mℹ[39m [2mdist/[22m[32m[1mmod-client.d.ts[22m[39m [2m 1.92 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
117
118
|
[34mℹ[39m [2mdist/[22m[32m[1mapi/request-context-storage.d.ts[22m[39m [2m 1.79 kB[22m [2m│ gzip: 0.80 kB[22m
|
|
118
|
-
[34mℹ[39m [2mdist/[22m[32m[1mmod-client.d.ts[22m[39m [2m 1.62 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
119
119
|
[34mℹ[39m [2mdist/[22m[32m[1mapi/shared-types.d.ts[22m[39m [2m 1.21 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
120
120
|
[34mℹ[39m [2mdist/[22m[32m[1mmod.d.ts[22m[39m [2m 1.10 kB[22m [2m│ gzip: 0.34 kB[22m
|
|
121
121
|
[34mℹ[39m [2mdist/[22m[32m[1mintegrations/react-ssr.d.ts[22m[39m [2m 0.78 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
@@ -134,5 +134,5 @@
|
|
|
134
134
|
[34mℹ[39m [2mdist/[22m[32mapi/fragno-response.d.ts[39m [2m 0.60 kB[22m [2m│ gzip: 0.30 kB[22m
|
|
135
135
|
[34mℹ[39m [2mdist/[22m[32mapi/bind-services.d.ts[39m [2m 0.42 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
136
136
|
[34mℹ[39m [2mdist/[22m[32mutil/types-util.d.ts[39m [2m 0.35 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
137
|
-
[34mℹ[39m 127 files, total:
|
|
138
|
-
[32m✔[39m Build complete in [
|
|
137
|
+
[34mℹ[39m 127 files, total: 548.46 kB
|
|
138
|
+
[32m✔[39m Build complete in [32m7459ms[39m
|
package/CHANGELOG.md
CHANGED
package/dist/mod-client.d.ts
CHANGED
|
@@ -8,29 +8,30 @@ import { FragmentDefinition, FragmentDefinitionBuilder, ServiceConstructorFn, Se
|
|
|
8
8
|
|
|
9
9
|
//#region src/mod-client.d.ts
|
|
10
10
|
declare function defineFragment(_name: string): {
|
|
11
|
-
withDependencies: () =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
withExternalRequestStorage: () => {
|
|
24
|
-
withExternalRequestStorage: () => {};
|
|
25
|
-
};
|
|
26
|
-
withRequestThisContext: () => {
|
|
27
|
-
withRequestThisContext: () => {};
|
|
28
|
-
};
|
|
29
|
-
extend: () => {
|
|
30
|
-
extend: () => {};
|
|
31
|
-
};
|
|
11
|
+
withDependencies: () => /*elided*/any;
|
|
12
|
+
providesBaseService: () => /*elided*/any;
|
|
13
|
+
providesService: () => /*elided*/any;
|
|
14
|
+
providesPrivateService: () => /*elided*/any;
|
|
15
|
+
usesService: () => /*elided*/any;
|
|
16
|
+
usesOptionalService: () => /*elided*/any;
|
|
17
|
+
withRequestStorage: () => /*elided*/any;
|
|
18
|
+
withExternalRequestStorage: () => /*elided*/any;
|
|
19
|
+
withThisContext: () => /*elided*/any;
|
|
20
|
+
withLinkedFragment: () => /*elided*/any;
|
|
21
|
+
extend: () => /*elided*/any;
|
|
32
22
|
build: () => {};
|
|
33
23
|
};
|
|
24
|
+
declare function instantiate(_definition: unknown): {
|
|
25
|
+
withConfig: () => /*elided*/any;
|
|
26
|
+
withRoutes: () => /*elided*/any;
|
|
27
|
+
withOptions: () => /*elided*/any;
|
|
28
|
+
withServices: () => /*elided*/any;
|
|
29
|
+
build: () => {};
|
|
30
|
+
definition: {};
|
|
31
|
+
routes: never[];
|
|
32
|
+
config: undefined;
|
|
33
|
+
options: undefined;
|
|
34
|
+
};
|
|
34
35
|
//#endregion
|
|
35
|
-
export { type BoundServices, type FragmentDefinition, FragmentDefinitionBuilder, type FragmentInstantiationBuilder, type FragnoInstantiatedFragment, type FragnoPublicConfig, type FragnoRouteConfig, type RequestThisContext, type RouteFactory, type RouteFactoryContext, type ServiceConstructorFn, type ServiceContext, defineFragment, defineRoute, defineRoutes, instantiatedFragmentFakeSymbol };
|
|
36
|
+
export { type BoundServices, type FragmentDefinition, FragmentDefinitionBuilder, type FragmentInstantiationBuilder, type FragnoInstantiatedFragment, type FragnoPublicConfig, type FragnoRouteConfig, type RequestThisContext, type RouteFactory, type RouteFactoryContext, type ServiceConstructorFn, type ServiceContext, defineFragment, defineRoute, defineRoutes, instantiate, instantiatedFragmentFakeSymbol };
|
|
36
37
|
//# sourceMappingURL=mod-client.d.ts.map
|
package/dist/mod-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod-client.d.ts","names":[],"sources":["../src/mod-client.ts"],"sourcesContent":[],"mappings":";;;;;;;;;iBAyBgB,cAAA;;;;;;;EAAA,
|
|
1
|
+
{"version":3,"file":"mod-client.d.ts","names":[],"sources":["../src/mod-client.ts"],"sourcesContent":[],"mappings":";;;;;;;;;iBAyBgB,cAAA;;;;;;;EAAA,kBAAc,EAAA,GAAA,GAAA,UAAA,GAAA;EAuBd,0BAAW,EAAA,GAAA,GAAA,UAAA,GAAA;;;;;;iBAAX,WAAA"}
|
package/dist/mod-client.js
CHANGED
|
@@ -4,18 +4,37 @@ import { instantiatedFragmentFakeSymbol } from "./internal/symbols.js";
|
|
|
4
4
|
|
|
5
5
|
//#region src/mod-client.ts
|
|
6
6
|
function defineFragment(_name) {
|
|
7
|
-
|
|
8
|
-
withDependencies: () =>
|
|
9
|
-
providesBaseService: () =>
|
|
10
|
-
providesService: () =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
const stub = {
|
|
8
|
+
withDependencies: () => stub,
|
|
9
|
+
providesBaseService: () => stub,
|
|
10
|
+
providesService: () => stub,
|
|
11
|
+
providesPrivateService: () => stub,
|
|
12
|
+
usesService: () => stub,
|
|
13
|
+
usesOptionalService: () => stub,
|
|
14
|
+
withRequestStorage: () => stub,
|
|
15
|
+
withExternalRequestStorage: () => stub,
|
|
16
|
+
withThisContext: () => stub,
|
|
17
|
+
withLinkedFragment: () => stub,
|
|
18
|
+
extend: () => stub,
|
|
15
19
|
build: () => ({})
|
|
16
20
|
};
|
|
21
|
+
return stub;
|
|
22
|
+
}
|
|
23
|
+
function instantiate(_definition) {
|
|
24
|
+
const stub = {
|
|
25
|
+
withConfig: () => stub,
|
|
26
|
+
withRoutes: () => stub,
|
|
27
|
+
withOptions: () => stub,
|
|
28
|
+
withServices: () => stub,
|
|
29
|
+
build: () => ({}),
|
|
30
|
+
definition: {},
|
|
31
|
+
routes: [],
|
|
32
|
+
config: void 0,
|
|
33
|
+
options: void 0
|
|
34
|
+
};
|
|
35
|
+
return stub;
|
|
17
36
|
}
|
|
18
37
|
|
|
19
38
|
//#endregion
|
|
20
|
-
export { FragmentDefinitionBuilder, defineFragment, defineRoute, defineRoutes, instantiatedFragmentFakeSymbol };
|
|
39
|
+
export { FragmentDefinitionBuilder, defineFragment, defineRoute, defineRoutes, instantiate, instantiatedFragmentFakeSymbol };
|
|
21
40
|
//# sourceMappingURL=mod-client.js.map
|
package/dist/mod-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod-client.js","names":[],"sources":["../src/mod-client.ts"],"sourcesContent":["// ============================================================================\n// Client-side entry point for @fragno-dev/core\n// This file mirrors mod.ts but provides stub implementations for server-side\n// APIs that are stripped by unplugin-fragno during browser builds.\n// ============================================================================\n\n// ============================================================================\n// Fragment Definition and Instantiation\n// ============================================================================\n\n// Re-export types only\nexport type {\n FragmentDefinition,\n ServiceContext,\n ServiceConstructorFn,\n} from \"./api/fragment-definition-builder\";\n\nexport type {\n FragmentInstantiationBuilder,\n FragnoInstantiatedFragment,\n BoundServices,\n} from \"./api/fragment-instantiator\";\n\n// Stub implementation for defineFragment\n// This is stripped by unplugin-fragno in browser builds\nexport function defineFragment(_name: string) {\n
|
|
1
|
+
{"version":3,"file":"mod-client.js","names":[],"sources":["../src/mod-client.ts"],"sourcesContent":["// ============================================================================\n// Client-side entry point for @fragno-dev/core\n// This file mirrors mod.ts but provides stub implementations for server-side\n// APIs that are stripped by unplugin-fragno during browser builds.\n// ============================================================================\n\n// ============================================================================\n// Fragment Definition and Instantiation\n// ============================================================================\n\n// Re-export types only\nexport type {\n FragmentDefinition,\n ServiceContext,\n ServiceConstructorFn,\n} from \"./api/fragment-definition-builder\";\n\nexport type {\n FragmentInstantiationBuilder,\n FragnoInstantiatedFragment,\n BoundServices,\n} from \"./api/fragment-instantiator\";\n\n// Stub implementation for defineFragment\n// This is stripped by unplugin-fragno in browser builds\nexport function defineFragment(_name: string) {\n const stub = {\n withDependencies: () => stub,\n providesBaseService: () => stub,\n providesService: () => stub,\n providesPrivateService: () => stub,\n usesService: () => stub,\n usesOptionalService: () => stub,\n withRequestStorage: () => stub,\n withExternalRequestStorage: () => stub,\n withThisContext: () => stub,\n withLinkedFragment: () => stub,\n extend: () => stub,\n build: () => ({}),\n };\n return stub;\n}\n\n// Re-export the builder class (for type compatibility)\nexport { FragmentDefinitionBuilder } from \"./api/fragment-definition-builder\";\n\n// Stub implementation for instantiate\n// This is stripped by unplugin-fragno in browser builds\nexport function instantiate(_definition: unknown) {\n const stub = {\n withConfig: () => stub,\n withRoutes: () => stub,\n withOptions: () => stub,\n withServices: () => stub,\n build: () => ({}),\n definition: {},\n routes: [],\n config: undefined,\n options: undefined,\n };\n return stub;\n}\n\n// ============================================================================\n// Core Configuration\n// ============================================================================\nexport type { FragnoPublicConfig } from \"./api/shared-types\";\n\n// ============================================================================\n// Route Definition\n// ============================================================================\nexport {\n defineRoute,\n defineRoutes,\n type RouteFactory,\n type RouteFactoryContext,\n} from \"./api/route\";\n\nexport type { FragnoRouteConfig, RequestThisContext } from \"./api/api\";\n\nexport { instantiatedFragmentFakeSymbol } from \"./internal/symbols\";\n"],"mappings":";;;;;AAyBA,SAAgB,eAAe,OAAe;CAC5C,MAAM,OAAO;EACX,wBAAwB;EACxB,2BAA2B;EAC3B,uBAAuB;EACvB,8BAA8B;EAC9B,mBAAmB;EACnB,2BAA2B;EAC3B,0BAA0B;EAC1B,kCAAkC;EAClC,uBAAuB;EACvB,0BAA0B;EAC1B,cAAc;EACd,cAAc,EAAE;EACjB;AACD,QAAO;;AAQT,SAAgB,YAAY,aAAsB;CAChD,MAAM,OAAO;EACX,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,cAAc,EAAE;EAChB,YAAY,EAAE;EACd,QAAQ,EAAE;EACV,QAAQ;EACR,SAAS;EACV;AACD,QAAO"}
|
package/package.json
CHANGED
package/src/mod-client.ts
CHANGED
|
@@ -24,21 +24,43 @@ export type {
|
|
|
24
24
|
// Stub implementation for defineFragment
|
|
25
25
|
// This is stripped by unplugin-fragno in browser builds
|
|
26
26
|
export function defineFragment(_name: string) {
|
|
27
|
-
|
|
28
|
-
withDependencies: () =>
|
|
29
|
-
providesBaseService: () =>
|
|
30
|
-
providesService: () =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
const stub = {
|
|
28
|
+
withDependencies: () => stub,
|
|
29
|
+
providesBaseService: () => stub,
|
|
30
|
+
providesService: () => stub,
|
|
31
|
+
providesPrivateService: () => stub,
|
|
32
|
+
usesService: () => stub,
|
|
33
|
+
usesOptionalService: () => stub,
|
|
34
|
+
withRequestStorage: () => stub,
|
|
35
|
+
withExternalRequestStorage: () => stub,
|
|
36
|
+
withThisContext: () => stub,
|
|
37
|
+
withLinkedFragment: () => stub,
|
|
38
|
+
extend: () => stub,
|
|
35
39
|
build: () => ({}),
|
|
36
40
|
};
|
|
41
|
+
return stub;
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
// Re-export the builder class (for type compatibility)
|
|
40
45
|
export { FragmentDefinitionBuilder } from "./api/fragment-definition-builder";
|
|
41
46
|
|
|
47
|
+
// Stub implementation for instantiate
|
|
48
|
+
// This is stripped by unplugin-fragno in browser builds
|
|
49
|
+
export function instantiate(_definition: unknown) {
|
|
50
|
+
const stub = {
|
|
51
|
+
withConfig: () => stub,
|
|
52
|
+
withRoutes: () => stub,
|
|
53
|
+
withOptions: () => stub,
|
|
54
|
+
withServices: () => stub,
|
|
55
|
+
build: () => ({}),
|
|
56
|
+
definition: {},
|
|
57
|
+
routes: [],
|
|
58
|
+
config: undefined,
|
|
59
|
+
options: undefined,
|
|
60
|
+
};
|
|
61
|
+
return stub;
|
|
62
|
+
}
|
|
63
|
+
|
|
42
64
|
// ============================================================================
|
|
43
65
|
// Core Configuration
|
|
44
66
|
// ============================================================================
|