@bleedingdev/modern-js-plugin-bff-build-extensions 3.9.0-ultramodern.12 → 3.9.0-ultramodern.14
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/cjs/index.js +15 -8
- package/dist/esm/index.mjs +15 -8
- package/dist/esm-node/index.mjs +15 -8
- package/package.json +23 -23
- package/src/index.ts +8 -10
package/dist/cjs/index.js
CHANGED
|
@@ -70,19 +70,26 @@ const bffPlugin = ()=>({
|
|
|
70
70
|
const nativePlugins = plugins.filter((plugin)=>'@modern-js/plugin-bff/server-plugin' === plugin.name);
|
|
71
71
|
if (1 !== nativePlugins.length) throw new Error('Expected exactly one native BFF server plugin.');
|
|
72
72
|
const native = nativePlugins[0];
|
|
73
|
-
const runtimeAdapters = native.options?.runtimeAdapters ?? {};
|
|
74
|
-
const effect = '@modern-js/plugin-bff-extensions/effect-adapter';
|
|
75
73
|
const honoRouteBinder = '@modern-js/plugin-bff-extensions/hono/node';
|
|
76
74
|
if (native.options?.honoRouteBinder !== void 0 && native.options.honoRouteBinder !== honoRouteBinder) throw new Error('The Hono BFF route binder is already configured.');
|
|
77
|
-
if (
|
|
75
|
+
if ('hono' !== runtimeFramework) {
|
|
76
|
+
plugins.splice(plugins.indexOf(native), 1, {
|
|
77
|
+
name: '@modern-js/plugin-bff-extensions/effect-server'
|
|
78
|
+
});
|
|
79
|
+
return {
|
|
80
|
+
plugins
|
|
81
|
+
};
|
|
82
|
+
}
|
|
78
83
|
native.options = {
|
|
79
84
|
...native.options,
|
|
80
|
-
honoRouteBinder
|
|
81
|
-
runtimeAdapters: {
|
|
82
|
-
...runtimeAdapters,
|
|
83
|
-
effect
|
|
84
|
-
}
|
|
85
|
+
honoRouteBinder
|
|
85
86
|
};
|
|
87
|
+
native.includeEntries = [
|
|
88
|
+
...new Set([
|
|
89
|
+
...native.includeEntries ?? [],
|
|
90
|
+
honoRouteBinder
|
|
91
|
+
])
|
|
92
|
+
];
|
|
86
93
|
return {
|
|
87
94
|
plugins
|
|
88
95
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -37,19 +37,26 @@ const src_bffPlugin = ()=>({
|
|
|
37
37
|
const nativePlugins = plugins.filter((plugin)=>'@modern-js/plugin-bff/server-plugin' === plugin.name);
|
|
38
38
|
if (1 !== nativePlugins.length) throw new Error('Expected exactly one native BFF server plugin.');
|
|
39
39
|
const native = nativePlugins[0];
|
|
40
|
-
const runtimeAdapters = native.options?.runtimeAdapters ?? {};
|
|
41
|
-
const effect = '@modern-js/plugin-bff-extensions/effect-adapter';
|
|
42
40
|
const honoRouteBinder = '@modern-js/plugin-bff-extensions/hono/node';
|
|
43
41
|
if (native.options?.honoRouteBinder !== void 0 && native.options.honoRouteBinder !== honoRouteBinder) throw new Error('The Hono BFF route binder is already configured.');
|
|
44
|
-
if (
|
|
42
|
+
if ('hono' !== runtimeFramework) {
|
|
43
|
+
plugins.splice(plugins.indexOf(native), 1, {
|
|
44
|
+
name: '@modern-js/plugin-bff-extensions/effect-server'
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
plugins
|
|
48
|
+
};
|
|
49
|
+
}
|
|
45
50
|
native.options = {
|
|
46
51
|
...native.options,
|
|
47
|
-
honoRouteBinder
|
|
48
|
-
runtimeAdapters: {
|
|
49
|
-
...runtimeAdapters,
|
|
50
|
-
effect
|
|
51
|
-
}
|
|
52
|
+
honoRouteBinder
|
|
52
53
|
};
|
|
54
|
+
native.includeEntries = [
|
|
55
|
+
...new Set([
|
|
56
|
+
...native.includeEntries ?? [],
|
|
57
|
+
honoRouteBinder
|
|
58
|
+
])
|
|
59
|
+
];
|
|
53
60
|
return {
|
|
54
61
|
plugins
|
|
55
62
|
};
|
package/dist/esm-node/index.mjs
CHANGED
|
@@ -39,19 +39,26 @@ const src_bffPlugin = ()=>({
|
|
|
39
39
|
const nativePlugins = plugins.filter((plugin)=>'@modern-js/plugin-bff/server-plugin' === plugin.name);
|
|
40
40
|
if (1 !== nativePlugins.length) throw new Error('Expected exactly one native BFF server plugin.');
|
|
41
41
|
const native = nativePlugins[0];
|
|
42
|
-
const runtimeAdapters = native.options?.runtimeAdapters ?? {};
|
|
43
|
-
const effect = '@modern-js/plugin-bff-extensions/effect-adapter';
|
|
44
42
|
const honoRouteBinder = '@modern-js/plugin-bff-extensions/hono/node';
|
|
45
43
|
if (native.options?.honoRouteBinder !== void 0 && native.options.honoRouteBinder !== honoRouteBinder) throw new Error('The Hono BFF route binder is already configured.');
|
|
46
|
-
if (
|
|
44
|
+
if ('hono' !== runtimeFramework) {
|
|
45
|
+
plugins.splice(plugins.indexOf(native), 1, {
|
|
46
|
+
name: '@modern-js/plugin-bff-extensions/effect-server'
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
plugins
|
|
50
|
+
};
|
|
51
|
+
}
|
|
47
52
|
native.options = {
|
|
48
53
|
...native.options,
|
|
49
|
-
honoRouteBinder
|
|
50
|
-
runtimeAdapters: {
|
|
51
|
-
...runtimeAdapters,
|
|
52
|
-
effect
|
|
53
|
-
}
|
|
54
|
+
honoRouteBinder
|
|
54
55
|
};
|
|
56
|
+
native.includeEntries = [
|
|
57
|
+
...new Set([
|
|
58
|
+
...native.includeEntries ?? [],
|
|
59
|
+
honoRouteBinder
|
|
60
|
+
])
|
|
61
|
+
];
|
|
55
62
|
return {
|
|
56
63
|
plugins
|
|
57
64
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/BleedingDev/ultramodern.js/issues"
|
|
5
5
|
},
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"version": "3.9.0-ultramodern.
|
|
7
|
+
"version": "3.9.0-ultramodern.14",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
10
|
"src"
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@modern-js/bff-core": "npm:@bleedingdev/modern-js-bff-core@3.9.0-ultramodern.
|
|
69
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.
|
|
70
|
-
"@modern-js/plugin-bff": "npm:@bleedingdev/modern-js-plugin-bff@3.9.0-ultramodern.
|
|
71
|
-
"@modern-js/plugin-bff-extensions": "npm:@bleedingdev/modern-js-plugin-bff-extensions@3.9.0-ultramodern.
|
|
72
|
-
"@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.0-ultramodern.
|
|
73
|
-
"@modern-js/server-runtime-extensions": "npm:@bleedingdev/modern-js-server-runtime-extensions@3.9.0-ultramodern.
|
|
74
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.
|
|
68
|
+
"@modern-js/bff-core": "npm:@bleedingdev/modern-js-bff-core@3.9.0-ultramodern.14",
|
|
69
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.14",
|
|
70
|
+
"@modern-js/plugin-bff": "npm:@bleedingdev/modern-js-plugin-bff@3.9.0-ultramodern.14",
|
|
71
|
+
"@modern-js/plugin-bff-extensions": "npm:@bleedingdev/modern-js-plugin-bff-extensions@3.9.0-ultramodern.14",
|
|
72
|
+
"@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.0-ultramodern.14",
|
|
73
|
+
"@modern-js/server-runtime-extensions": "npm:@bleedingdev/modern-js-server-runtime-extensions@3.9.0-ultramodern.14",
|
|
74
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.14",
|
|
75
75
|
"@swc/core": "1.16.2"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@effect/opentelemetry": "4.0.0-rc.
|
|
79
|
-
"@modern-js/app-tools": "3.9.0-ultramodern.
|
|
80
|
-
"effect": "4.0.0-rc.
|
|
78
|
+
"@effect/opentelemetry": "4.0.0-rc.117",
|
|
79
|
+
"@modern-js/app-tools": "3.9.0-ultramodern.14",
|
|
80
|
+
"effect": "4.0.0-rc.117"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"@effect/opentelemetry": {
|
|
@@ -88,21 +88,21 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@effect/opentelemetry": "4.0.0-rc.
|
|
92
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.0-ultramodern.
|
|
93
|
-
"@modern-js/bff-effect": "npm:@bleedingdev/modern-js-bff-effect@3.9.0-ultramodern.
|
|
94
|
-
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.9.0-ultramodern.
|
|
95
|
-
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.
|
|
96
|
-
"@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.0-ultramodern.
|
|
97
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.
|
|
98
|
-
"@rsbuild/core": "2.2.
|
|
99
|
-
"@rslib/core": "1.0.
|
|
91
|
+
"@effect/opentelemetry": "4.0.0-rc.117",
|
|
92
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.0-ultramodern.14",
|
|
93
|
+
"@modern-js/bff-effect": "npm:@bleedingdev/modern-js-bff-effect@3.9.0-ultramodern.14",
|
|
94
|
+
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.9.0-ultramodern.14",
|
|
95
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.14",
|
|
96
|
+
"@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.0-ultramodern.14",
|
|
97
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.14",
|
|
98
|
+
"@rsbuild/core": "2.2.9",
|
|
99
|
+
"@rslib/core": "1.0.2",
|
|
100
100
|
"@scripts/rstest-config": "2.66.0",
|
|
101
|
-
"@types/node": "^26.
|
|
101
|
+
"@types/node": "^26.6.2",
|
|
102
102
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
103
|
-
"effect": "4.0.0-rc.
|
|
103
|
+
"effect": "npm:@bleedingdev/effect@4.0.0-rc.117",
|
|
104
104
|
"esbuild": "^0.28.2",
|
|
105
|
-
"zod": "^4.5
|
|
105
|
+
"zod": "^4.6.5"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"dev": "rslib build --watch",
|
package/src/index.ts
CHANGED
|
@@ -50,8 +50,6 @@ export const bffPlugin = (): CliPlugin<AppTools> => ({
|
|
|
50
50
|
throw new Error('Expected exactly one native BFF server plugin.');
|
|
51
51
|
}
|
|
52
52
|
const native = nativePlugins[0]!;
|
|
53
|
-
const runtimeAdapters = native.options?.runtimeAdapters ?? {};
|
|
54
|
-
const effect = '@modern-js/plugin-bff-extensions/effect-adapter';
|
|
55
53
|
const honoRouteBinder = '@modern-js/plugin-bff-extensions/hono/node';
|
|
56
54
|
if (
|
|
57
55
|
native.options?.honoRouteBinder !== undefined &&
|
|
@@ -59,19 +57,19 @@ export const bffPlugin = (): CliPlugin<AppTools> => ({
|
|
|
59
57
|
) {
|
|
60
58
|
throw new Error('The Hono BFF route binder is already configured.');
|
|
61
59
|
}
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
'The Effect BFF runtime adapter is already configured.',
|
|
68
|
-
);
|
|
60
|
+
if (runtimeFramework !== 'hono') {
|
|
61
|
+
plugins.splice(plugins.indexOf(native), 1, {
|
|
62
|
+
name: '@modern-js/plugin-bff-extensions/effect-server',
|
|
63
|
+
});
|
|
64
|
+
return { plugins };
|
|
69
65
|
}
|
|
70
66
|
native.options = {
|
|
71
67
|
...native.options,
|
|
72
68
|
honoRouteBinder,
|
|
73
|
-
runtimeAdapters: { ...runtimeAdapters, effect },
|
|
74
69
|
};
|
|
70
|
+
native.includeEntries = [
|
|
71
|
+
...new Set([...(native.includeEntries ?? []), honoRouteBinder]),
|
|
72
|
+
];
|
|
75
73
|
return { plugins };
|
|
76
74
|
});
|
|
77
75
|
const metadata = new WeakMap<BffGeneration, BffGenerationMetadata>();
|