@satilian/plugin-mf 0.0.0 → 1.0.1

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/README.md CHANGED
@@ -79,7 +79,7 @@ stopped. Legacy providers without versioned paths cannot offer these guarantees.
79
79
  Configure the cache before creating remotes or starting SSR:
80
80
 
81
81
  ```ts
82
- import { configureServerCache } from "plugin-mf/server";
82
+ import { configureServerCache } from "@satilian/plugin-mf/server";
83
83
 
84
84
  configureServerCache({
85
85
  cacheDir: "./.cache/mf",
@@ -129,7 +129,7 @@ typesTimeoutMs: 15000, retries: 2, retryDelayMs: 100,
129
129
  circuitBreaker: { failureThreshold: 3, cooldownMs: 10000 } } })` задаёт политику
130
130
  сборки и runtime. Все поля необязательны; в примере показаны значения по умолчанию.
131
131
  Вручную созданные загрузчики настраиваются через `configureLoading` из
132
- `plugin-mf/client` или `plugin-mf/server` до начала загрузок. Настройка общая для
132
+ `@satilian/plugin-mf/client` или `@satilian/plugin-mf/server` до начала загрузок. Настройка общая для
133
133
  одного JS realm, включая вложенные remote bundles; consumer задаёт общую политику,
134
134
  providers не должны переопределять её своими значениями `loading`.
135
135
 
@@ -41,7 +41,7 @@ function createSharedBootstrap(requirements) {
41
41
  const registrations = shared.map((request, index)=>`registerShared(${JSON.stringify(request)}, shared${index}, ${JSON.stringify(requirements[request].version)}, "default", ${requirements[request].singleton});`).join("\n");
42
42
  const source = `
43
43
  ${imports}
44
- import { getShared, registerShared } from "plugin-mf/shared";
44
+ import { getShared, registerShared } from "@satilian/plugin-mf/shared";
45
45
 
46
46
  ${registrations}
47
47
  globalThis.__MF_GET_SHARED__ = getShared;
@@ -5,7 +5,7 @@ const resolver = (request, remoteNames, env)=>{
5
5
  const expose = rest.join("/") || "default";
6
6
  const scope = "node" === env ? "server" : "client";
7
7
  const code = `
8
- import { createRemoteComponent } from "plugin-mf/${scope}";
8
+ import { createRemoteComponent } from "@satilian/plugin-mf/${scope}";
9
9
  export default createRemoteComponent(${JSON.stringify(maybeRemote)}, ${JSON.stringify(expose)});
10
10
  `;
11
11
  return `data:text/javascript,${encodeURIComponent(code)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satilian/plugin-mf",
3
- "version": "0.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",