@lynx-js/external-bundle-rsbuild-plugin 0.4.2 → 0.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lynx-js/external-bundle-rsbuild-plugin
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `@lynx-js/rspeedy` `^0.18.0` to the peer dependency range. ([#3971](https://github.com/lynx-family/lynx-stack/pull/3971))
8
+
3
9
  ## 0.4.2
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -26,7 +26,7 @@ npm install -D @lynx-js/react-umd
26
26
  ## Usage
27
27
 
28
28
  ```ts
29
- // lynx.config.ts
29
+ // rsbuild.config.ts
30
30
  import { pluginExternalBundle } from '@lynx-js/external-bundle-rsbuild-plugin'
31
31
  import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
32
32
 
package/lib/index.d.ts CHANGED
@@ -16,7 +16,8 @@ export interface ReactLynxExternalsPresetOptions {
16
16
  * so application bundles can reference it without requiring an extra manual
17
17
  * copy step when publishing.
18
18
  *
19
- * @defaultValue `'react.lynx.bundle'`
19
+ * @defaultValue `'react.lynx.bundle'`, or `'react.web.bundle'` outside
20
+ * `lynx` / `lynx-*` environments
20
21
  */
21
22
  bundlePath?: string;
22
23
  /**
@@ -35,8 +36,8 @@ export interface ReactLynxExternalsPresetOptions {
35
36
  * asynchronously (`fetchBundle().then`), so ReactLynx must be mounted as a
36
37
  * promise that consuming modules await before reading a subpath (otherwise
37
38
  * `React.memo` etc. are read off a pending promise and are `undefined`).
38
- * Enabling this also resolves the web-encoded `@lynx-js/react-umd/{dev,prod}-web`
39
- * bundle and defaults `bundlePath` to `react.web.bundle`.
39
+ * Only controls how the runtime is mounted; the web bundle is chosen for
40
+ * environments other than `lynx` / `lynx-*`.
40
41
  *
41
42
  * @defaultValue `false`
42
43
  */
@@ -206,7 +207,7 @@ export declare function normalizeBundlePath(bundlePath: string): string;
206
207
  *
207
208
  * @example
208
209
  * ```ts
209
- * // lynx.config.ts
210
+ * // rsbuild.config.ts
210
211
  * import { pluginExternalBundle } from '@lynx-js/external-bundle-rsbuild-plugin'
211
212
  * import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
212
213
  *
package/lib/index.js CHANGED
@@ -376,7 +376,7 @@ function normalizePluginExternal(request, external) {
376
376
  *
377
377
  * @example
378
378
  * ```ts
379
- * // lynx.config.ts
379
+ * // rsbuild.config.ts
380
380
  * import { pluginExternalBundle } from '@lynx-js/external-bundle-rsbuild-plugin'
381
381
  * import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
382
382
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/external-bundle-rsbuild-plugin",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "An rsbuild plugin for loading lynx external bundles.",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -37,13 +37,13 @@
37
37
  "@lynx-js/externals-loading-webpack-plugin": "0.2.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@microsoft/api-extractor": "7.58.12",
41
- "@rsbuild/core": "2.2.3",
42
- "@lynx-js/react-umd": "0.126.0",
43
- "@lynx-js/rspeedy": "0.17.0"
40
+ "@lynx-js/react-umd": "0.126.2",
41
+ "@lynx-js/rspeedy": "0.18.0",
42
+ "@microsoft/api-extractor": "7.59.1",
43
+ "@rsbuild/core": "2.2.9"
44
44
  },
45
45
  "peerDependencies": {
46
- "@lynx-js/rspeedy": "^0.16.0 || ^0.17.0",
46
+ "@lynx-js/rspeedy": "^0.16.0 || ^0.17.0 || ^0.18.0",
47
47
  "@rsbuild/core": "^2.0.0"
48
48
  },
49
49
  "peerDependenciesMeta": {