@bleedingdev/modern-js-plugin-bff 3.5.0-ultramodern.1 → 3.5.0-ultramodern.3

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.
@@ -8,7 +8,7 @@ import pluginGenerator from "./utils/pluginGenerator.mjs";
8
8
  import runtimeGenerator from "./utils/runtimeGenerator.mjs";
9
9
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
10
10
  import { dirname as __rspack_dirname } from "node:path";
11
- var cli_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
11
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
12
12
  const RUNTIME_CREATE_REQUEST = '@modern-js/plugin-bff/client';
13
13
  const WATCHABLE_EXTENSIONS = [
14
14
  '.ts',
@@ -165,7 +165,7 @@ const bffPlugin = ()=>({
165
165
  const apiRegexp = new RegExp(normalizeOutputPath(`${apiDirectory}${path.sep}.*(.[tj]s)$`));
166
166
  const name = isServer ? 'server' : 'client';
167
167
  const sourceExt = 'mjs';
168
- const loaderPath = path.join(cli_dirname, `loader.${sourceExt}`);
168
+ const loaderPath = path.join(__rspack_import_meta_dirname__, `loader.${sourceExt}`);
169
169
  chain.module.rule(CHAIN_ID.RULE.JS).exclude.add(apiRegexp);
170
170
  chain.module.rule('js-bff-api').test(apiRegexp).use('custom-loader').loader(loaderPath.replace(/\\/g, '/')).options({
171
171
  prefix,
@@ -4,7 +4,7 @@ import path from "path";
4
4
  import { API_DIR, DIST_DIR, LAMBDA_DIR, PACKAGE_NAME, PREFIX, RUNTIME_FRAMEWORK } from "./crossProjectApiPlugin.mjs";
5
5
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
6
6
  import { dirname as __rspack_dirname } from "node:path";
7
- var pluginGenerator_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
7
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
8
8
  function replaceContent(source, packageName, prefix, relativeDistPath, relativeApiPath, relativeLambdaPath, runtimeFramework) {
9
9
  const updatedSource = source.replace(new RegExp(PACKAGE_NAME, 'g'), packageName).replace(new RegExp(PREFIX, 'g'), prefix).replace(new RegExp(DIST_DIR, 'g'), normalizeToPosixPath(relativeDistPath)).replace(new RegExp(API_DIR, 'g'), normalizeToPosixPath(relativeApiPath)).replace(new RegExp(LAMBDA_DIR, 'g'), normalizeToPosixPath(relativeLambdaPath)).replace(new RegExp(RUNTIME_FRAMEWORK, 'g'), runtimeFramework);
10
10
  return updatedSource;
@@ -15,7 +15,7 @@ async function pluginGenerator({ prefix, appDirectory, relativeDistPath, relativ
15
15
  const packageJson = JSON.parse(packageContent);
16
16
  const pluginDir = path.resolve(appDirectory, `./${relativeDistPath}`, 'plugin');
17
17
  const pluginPath = path.join(pluginDir, 'index.js');
18
- const pluginTemplate = await fs.readFile(path.resolve(pluginGenerator_dirname, 'crossProjectApiPlugin.js'), 'utf8');
18
+ const pluginTemplate = await fs.readFile(path.resolve(__rspack_import_meta_dirname__, 'crossProjectApiPlugin.js'), 'utf8');
19
19
  const updatedPlugin = replaceContent(pluginTemplate, packageJson.name, prefix, relativeDistPath, relativeApiPath, relativeLambdaPath, runtimeFramework);
20
20
  await fs.ensureFile(pluginPath);
21
21
  await fs.writeFile(pluginPath, updatedPlugin);
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.5.0-ultramodern.1",
20
+ "version": "3.5.0-ultramodern.3",
21
21
  "types": "./dist/types/cli.d.ts",
22
22
  "main": "./dist/cjs/cli.js",
23
23
  "exports": {
@@ -142,7 +142,7 @@
142
142
  }
143
143
  },
144
144
  "dependencies": {
145
- "@effect/opentelemetry": "4.0.0-beta.89",
145
+ "@effect/opentelemetry": "4.0.0-beta.91",
146
146
  "@opentelemetry/api": "1.9.1",
147
147
  "@opentelemetry/api-logs": "0.219.0",
148
148
  "@opentelemetry/resources": "2.8.0",
@@ -154,32 +154,32 @@
154
154
  "@opentelemetry/semantic-conventions": "1.41.1",
155
155
  "@swc/core": "1.15.43",
156
156
  "@swc/helpers": "^0.5.23",
157
- "effect": "4.0.0-beta.89",
157
+ "effect": "4.0.0-beta.91",
158
158
  "qs": "^6.15.3",
159
159
  "type-is": "^2.1.0",
160
- "@modern-js/bff-core": "npm:@bleedingdev/modern-js-bff-core@3.5.0-ultramodern.1",
161
- "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.5.0-ultramodern.1",
162
- "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.5.0-ultramodern.1",
163
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.5.0-ultramodern.1",
164
- "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.5.0-ultramodern.1",
165
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.1"
160
+ "@modern-js/bff-core": "npm:@bleedingdev/modern-js-bff-core@3.5.0-ultramodern.3",
161
+ "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.5.0-ultramodern.3",
162
+ "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.5.0-ultramodern.3",
163
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.3",
164
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.5.0-ultramodern.3",
165
+ "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.5.0-ultramodern.3"
166
166
  },
167
167
  "devDependencies": {
168
- "@rsbuild/core": "2.1.0",
169
- "@rslib/core": "0.23.0",
168
+ "@rsbuild/core": "2.1.1",
169
+ "@rslib/core": "0.23.1",
170
170
  "@types/node": "^26.0.1",
171
171
  "@types/qs": "^6.15.1",
172
172
  "@types/type-is": "^1.6.7",
173
- "@typescript/native-preview": "7.0.0-dev.20260624.1",
173
+ "@typescript/native-preview": "7.0.0-dev.20260628.1",
174
174
  "memfs": "^4.57.8",
175
175
  "typescript": "^6.0.3",
176
176
  "zod": "^4.4.3",
177
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.5.0-ultramodern.1",
178
- "@modern-js/bff-runtime": "npm:@bleedingdev/modern-js-bff-runtime@3.5.0-ultramodern.1",
179
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.5.0-ultramodern.1",
180
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.1",
181
- "@scripts/rstest-config": "2.66.0",
182
- "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.5.0-ultramodern.1"
177
+ "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.5.0-ultramodern.3",
178
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.5.0-ultramodern.3",
179
+ "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.5.0-ultramodern.3",
180
+ "@modern-js/bff-runtime": "npm:@bleedingdev/modern-js-bff-runtime@3.5.0-ultramodern.3",
181
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.3",
182
+ "@scripts/rstest-config": "2.66.0"
183
183
  },
184
184
  "sideEffects": false,
185
185
  "publishConfig": {