@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @fragno-dev/core@0.1.9 build /home/runner/work/fragno/fragno/packages/fragno
2
+ > @fragno-dev/core@0.1.10 build /home/runner/work/fragno/fragno/packages/fragno
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.15.12 powered by rolldown v1.0.0-beta.45
@@ -18,7 +18,7 @@
18
18
  ℹ dist/client/vanilla.js  2.15 kB │ gzip: 0.66 kB
19
19
  ℹ dist/api/request-context-storage.js  1.49 kB │ gzip: 0.75 kB
20
20
  ℹ dist/integrations/react-ssr.js  1.26 kB │ gzip: 0.64 kB
21
- ℹ dist/mod-client.js  0.93 kB │ gzip: 0.35 kB
21
+ ℹ dist/mod-client.js  1.14 kB │ gzip: 0.43 kB
22
22
  ℹ dist/api/route.js  0.67 kB │ gzip: 0.34 kB
23
23
  ℹ dist/request/request.js  0.37 kB │ gzip: 0.13 kB
24
24
  ℹ dist/mod.js  0.31 kB │ gzip: 0.15 kB
@@ -53,12 +53,12 @@
53
53
  ℹ dist/api/mutable-request-state.js.map  3.76 kB │ gzip: 1.34 kB
54
54
  ℹ dist/api/request-output-context.js  3.38 kB │ gzip: 1.02 kB
55
55
  ℹ dist/api/request-input-context.js  3.34 kB │ gzip: 1.10 kB
56
+ ℹ dist/mod-client.js.map  3.25 kB │ gzip: 0.98 kB
56
57
  ℹ dist/util/content-type.js.map  3.24 kB │ gzip: 1.23 kB
57
58
  ℹ dist/client/client-error.js  3.17 kB │ gzip: 0.91 kB
58
59
  ℹ dist/util/ssr.js.map  2.95 kB │ gzip: 1.24 kB
59
60
  ℹ dist/api/request-context-storage.js.map  2.94 kB │ gzip: 1.21 kB
60
61
  ℹ dist/client/vanilla.d.ts.map  2.89 kB │ gzip: 1.10 kB
61
- ℹ dist/mod-client.js.map  2.80 kB │ gzip: 0.83 kB
62
62
  ℹ dist/client/react.d.ts.map  2.64 kB │ gzip: 1.17 kB
63
63
  ℹ dist/client/solid.d.ts.map  2.44 kB │ gzip: 1.06 kB
64
64
  ℹ dist/client/internal/fetcher-merge.js.map  2.44 kB │ gzip: 0.96 kB
@@ -99,9 +99,9 @@
99
99
  ℹ dist/api/shared-types.d.ts.map  0.31 kB │ gzip: 0.23 kB
100
100
  ℹ dist/api/internal/route.js  0.28 kB │ gzip: 0.20 kB
101
101
  ℹ dist/api/mutable-request-state.d.ts.map  0.28 kB │ gzip: 0.19 kB
102
+ ℹ dist/mod-client.d.ts.map  0.23 kB │ gzip: 0.16 kB
102
103
  ℹ dist/integrations/react-ssr.d.ts.map  0.23 kB │ gzip: 0.17 kB
103
104
  ℹ dist/util/types-util.d.ts.map  0.21 kB │ gzip: 0.17 kB
104
- ℹ dist/mod-client.d.ts.map  0.17 kB │ gzip: 0.14 kB
105
105
  ℹ dist/internal/symbols.d.ts.map  0.14 kB │ gzip: 0.13 kB
106
106
  ℹ dist/api/fragment-definition-builder.d.ts 16.64 kB │ gzip: 3.28 kB
107
107
  ℹ dist/client/client.d.ts 13.77 kB │ gzip: 3.10 kB
@@ -114,8 +114,8 @@
114
114
  ℹ dist/api/api.d.ts  3.08 kB │ gzip: 0.86 kB
115
115
  ℹ dist/client/client.svelte.d.ts  2.88 kB │ gzip: 0.81 kB
116
116
  ℹ dist/client/vue.d.ts  2.82 kB │ gzip: 0.91 kB
117
+ ℹ dist/mod-client.d.ts  1.92 kB │ gzip: 0.59 kB
117
118
  ℹ dist/api/request-context-storage.d.ts  1.79 kB │ gzip: 0.80 kB
118
- ℹ dist/mod-client.d.ts  1.62 kB │ gzip: 0.51 kB
119
119
  ℹ dist/api/shared-types.d.ts  1.21 kB │ gzip: 0.51 kB
120
120
  ℹ dist/mod.d.ts  1.10 kB │ gzip: 0.34 kB
121
121
  ℹ dist/integrations/react-ssr.d.ts  0.78 kB │ gzip: 0.38 kB
@@ -134,5 +134,5 @@
134
134
  ℹ dist/api/fragno-response.d.ts  0.60 kB │ gzip: 0.30 kB
135
135
  ℹ dist/api/bind-services.d.ts  0.42 kB │ gzip: 0.25 kB
136
136
  ℹ dist/util/types-util.d.ts  0.35 kB │ gzip: 0.23 kB
137
- ℹ 127 files, total: 547.44 kB
138
- ✔ Build complete in 12289ms
137
+ ℹ 127 files, total: 548.46 kB
138
+ ✔ Build complete in 7459ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @fragno-dev/core
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - aabd6d2: fix: client bundle generation issues
8
+
3
9
  ## 0.1.9
4
10
 
5
11
  ### Patch Changes
@@ -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
- withDependencies: () => {};
13
- };
14
- providesBaseService: () => {
15
- providesBaseService: () => {};
16
- };
17
- providesService: () => {
18
- providesService: () => {};
19
- };
20
- withRequestStorage: () => {
21
- withRequestStorage: () => {};
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
@@ -1 +1 @@
1
- {"version":3,"file":"mod-client.d.ts","names":[],"sources":["../src/mod-client.ts"],"sourcesContent":[],"mappings":";;;;;;;;;iBAyBgB,cAAA;;;;;;;EAAA,eAAA,EAAc,GAAA,GAAA"}
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"}
@@ -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
- return {
8
- withDependencies: () => ({ withDependencies: () => ({}) }),
9
- providesBaseService: () => ({ providesBaseService: () => ({}) }),
10
- providesService: () => ({ providesService: () => ({}) }),
11
- withRequestStorage: () => ({ withRequestStorage: () => ({}) }),
12
- withExternalRequestStorage: () => ({ withExternalRequestStorage: () => ({}) }),
13
- withRequestThisContext: () => ({ withRequestThisContext: () => ({}) }),
14
- extend: () => ({ extend: () => ({}) }),
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
@@ -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 return {\n withDependencies: () => ({ withDependencies: () => ({}) }),\n providesBaseService: () => ({ providesBaseService: () => ({}) }),\n providesService: () => ({ providesService: () => ({}) }),\n withRequestStorage: () => ({ withRequestStorage: () => ({}) }),\n withExternalRequestStorage: () => ({ withExternalRequestStorage: () => ({}) }),\n withRequestThisContext: () => ({ withRequestThisContext: () => ({}) }),\n extend: () => ({ extend: () => ({}) }),\n build: () => ({}),\n };\n}\n\n// Re-export the builder class (for type compatibility)\nexport { FragmentDefinitionBuilder } from \"./api/fragment-definition-builder\";\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;AAC5C,QAAO;EACL,yBAAyB,EAAE,yBAAyB,EAAE,GAAG;EACzD,4BAA4B,EAAE,4BAA4B,EAAE,GAAG;EAC/D,wBAAwB,EAAE,wBAAwB,EAAE,GAAG;EACvD,2BAA2B,EAAE,2BAA2B,EAAE,GAAG;EAC7D,mCAAmC,EAAE,mCAAmC,EAAE,GAAG;EAC7E,+BAA+B,EAAE,+BAA+B,EAAE,GAAG;EACrE,eAAe,EAAE,eAAe,EAAE,GAAG;EACrC,cAAc,EAAE;EACjB"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragno-dev/core",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "exports": {
5
5
  ".": {
6
6
  "development": "./src/mod.ts",
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
- return {
28
- withDependencies: () => ({ withDependencies: () => ({}) }),
29
- providesBaseService: () => ({ providesBaseService: () => ({}) }),
30
- providesService: () => ({ providesService: () => ({}) }),
31
- withRequestStorage: () => ({ withRequestStorage: () => ({}) }),
32
- withExternalRequestStorage: () => ({ withExternalRequestStorage: () => ({}) }),
33
- withRequestThisContext: () => ({ withRequestThisContext: () => ({}) }),
34
- extend: () => ({ extend: () => ({}) }),
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
  // ============================================================================