@modern-js/plugin-garfish 2.56.1-alpha.0 → 2.56.2

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.
@@ -25,7 +25,7 @@ __export(cli_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(cli_exports);
27
27
  var import_utils = require("@modern-js/utils");
28
- var import_core = require("@modern-js/core");
28
+ var import_plugin = require("@modern-js/plugin");
29
29
  var import_util = require("../util");
30
30
  var import_utils2 = require("./utils");
31
31
  var import_code = require("./code");
@@ -47,7 +47,7 @@ function getDefaultMicroFrontedConfig(microFrontend) {
47
47
  ...microFrontend
48
48
  };
49
49
  }
50
- const appendEntryCode = (0, import_core.createAsyncWorkflow)();
50
+ const appendEntryCode = (0, import_plugin.createAsyncWorkflow)();
51
51
  const garfishPlugin = () => ({
52
52
  name: "@modern-js/plugin-garfish",
53
53
  pre: [
@@ -124,7 +124,8 @@ const garfishPlugin = () => ({
124
124
  alias: {
125
125
  [`@${metaName}/runtime/garfish`]: `@${metaName}/plugin-garfish/runtime`,
126
126
  "@meta/runtime/browser": "@modern-js/runtime/browser",
127
- "@meta/runtime/react": "@modern-js/runtime/react"
127
+ "@meta/runtime/react": "@modern-js/runtime/react",
128
+ "@meta/runtime": "@modern-js/runtime"
128
129
  }
129
130
  },
130
131
  tools: {
@@ -34,7 +34,7 @@ __export(apps_exports, {
34
34
  module.exports = __toCommonJS(apps_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_react = require("react");
37
- var import_runtime = require("@modern-js/runtime");
37
+ var import_runtime = require("@meta/runtime");
38
38
  var import_garfish = __toESM(require("garfish"));
39
39
  var import_util = require("../../util");
40
40
  var import_loadable = require("../loadable");
@@ -3,7 +3,7 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
3
3
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
4
4
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
5
5
  import { createRuntimeExportsUtils, getEntryOptions } from "@modern-js/utils";
6
- import { createAsyncWorkflow } from "@modern-js/core";
6
+ import { createAsyncWorkflow } from "@modern-js/plugin";
7
7
  import { logger } from "../util";
8
8
  import { getRuntimeConfig, setRuntimeConfig } from "./utils";
9
9
  import { generateCode } from "./code";
@@ -108,7 +108,7 @@ var garfishPlugin = function() {
108
108
  disableCssExtract
109
109
  },
110
110
  source: {
111
- alias: (_obj = {}, _define_property(_obj, "@".concat(metaName, "/runtime/garfish"), "@".concat(metaName, "/plugin-garfish/runtime")), _define_property(_obj, "@meta/runtime/browser", "@modern-js/runtime/browser"), _define_property(_obj, "@meta/runtime/react", "@modern-js/runtime/react"), _obj)
111
+ alias: (_obj = {}, _define_property(_obj, "@".concat(metaName, "/runtime/garfish"), "@".concat(metaName, "/plugin-garfish/runtime")), _define_property(_obj, "@meta/runtime/browser", "@modern-js/runtime/browser"), _define_property(_obj, "@meta/runtime/react", "@modern-js/runtime/react"), _define_property(_obj, "@meta/runtime", "@modern-js/runtime"), _obj)
112
112
  },
113
113
  tools: {
114
114
  devServer: {
@@ -7,7 +7,7 @@ import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
7
7
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
8
8
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
9
9
  import { useContext, useState, useEffect, useRef } from "react";
10
- import { RuntimeReactContext } from "@modern-js/runtime";
10
+ import { RuntimeReactContext } from "@meta/runtime";
11
11
  import Garfish from "garfish";
12
12
  import { logger, generateSubAppContainerKey } from "../../util";
13
13
  import { Loadable } from "../loadable";
@@ -1,5 +1,5 @@
1
1
  import { createRuntimeExportsUtils, getEntryOptions } from "@modern-js/utils";
2
- import { createAsyncWorkflow } from "@modern-js/core";
2
+ import { createAsyncWorkflow } from "@modern-js/plugin";
3
3
  import { logger } from "../util";
4
4
  import { getRuntimeConfig, setRuntimeConfig } from "./utils";
5
5
  import { generateCode } from "./code";
@@ -98,7 +98,8 @@ const garfishPlugin = () => ({
98
98
  alias: {
99
99
  [`@${metaName}/runtime/garfish`]: `@${metaName}/plugin-garfish/runtime`,
100
100
  "@meta/runtime/browser": "@modern-js/runtime/browser",
101
- "@meta/runtime/react": "@modern-js/runtime/react"
101
+ "@meta/runtime/react": "@modern-js/runtime/react",
102
+ "@meta/runtime": "@modern-js/runtime"
102
103
  }
103
104
  },
104
105
  tools: {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useContext, useState, useEffect, useRef } from "react";
3
- import { RuntimeReactContext } from "@modern-js/runtime";
3
+ import { RuntimeReactContext } from "@meta/runtime";
4
4
  import Garfish from "garfish";
5
5
  import { logger, generateSubAppContainerKey } from "../../util";
6
6
  import { Loadable } from "../loadable";
@@ -1,6 +1,6 @@
1
1
  import type { AppTools, IAppContext, NormalizedConfig } from '@modern-js/app-tools';
2
2
  import { Entrypoint } from '@modern-js/types';
3
- import type { MaybeAsync } from '@modern-js/core';
3
+ import type { MaybeAsync } from '@modern-js/plugin';
4
4
  export declare const ENTRY_BOOTSTRAP_FILE_NAME = "bootstrap.jsx";
5
5
  export declare const generateCode: (entrypoints: Entrypoint[], appContext: IAppContext, config: NormalizedConfig<AppTools>, appendEntryCode: (input: {
6
6
  entrypoint: Entrypoint;
@@ -1,4 +1,5 @@
1
- import { AsyncWorkflow, type CliHookCallbacks, type useConfigContext } from '@modern-js/core';
1
+ import { type CliHookCallbacks, type useConfigContext } from '@modern-js/core';
2
+ import { type AsyncWorkflow } from '@modern-js/plugin';
2
3
  import type { CliPlugin, AppTools } from '@modern-js/app-tools';
3
4
  import { Entrypoint } from '@modern-js/types';
4
5
  export type UseConfig = ReturnType<typeof useConfigContext>;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.56.1-alpha.0",
18
+ "version": "2.56.2",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "typesVersions": {
@@ -61,10 +61,11 @@
61
61
  "garfish": "^1.8.1",
62
62
  "react-loadable": "^5.5.0",
63
63
  "@swc/helpers": "0.5.3",
64
- "@modern-js/utils": "2.56.0"
64
+ "@modern-js/utils": "2.56.2",
65
+ "@modern-js/plugin": "2.56.2"
65
66
  },
66
67
  "peerDependencies": {
67
- "@modern-js/runtime": "^2.56.0",
68
+ "@modern-js/runtime": "^2.56.2",
68
69
  "react": ">=17",
69
70
  "react-dom": ">=17"
70
71
  },
@@ -83,18 +84,19 @@
83
84
  "react-dom": "^18",
84
85
  "react-router-dom": "6.22.0",
85
86
  "typescript": "^5",
86
- "@modern-js/app-tools": "2.56.0",
87
- "@modern-js/plugin-router-v5": "2.56.0",
88
- "@scripts/build": "2.56.0",
89
- "@modern-js/types": "2.56.0",
90
- "@scripts/jest-config": "2.56.0",
91
- "@modern-js/runtime": "2.56.0",
92
- "@modern-js/core": "2.56.0"
87
+ "@modern-js/app-tools": "2.56.2",
88
+ "@modern-js/plugin-router-v5": "2.56.2",
89
+ "@modern-js/core": "2.56.2",
90
+ "@modern-js/runtime": "2.56.2",
91
+ "@modern-js/types": "2.56.2",
92
+ "@scripts/build": "2.56.2",
93
+ "@scripts/jest-config": "2.56.2"
93
94
  },
94
95
  "sideEffects": false,
95
96
  "publishConfig": {
96
97
  "registry": "https://registry.npmjs.org/",
97
- "access": "public"
98
+ "access": "public",
99
+ "provenance": true
98
100
  },
99
101
  "scripts": {
100
102
  "new": "modern-lib new",