@faasjs/react 8.0.0-beta.19 → 8.0.0-beta.20

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { FaasAction, FaasAction as FaasAction$1, FaasActionUnionType, FaasActionUnionType as FaasActionUnionType$1, FaasData, FaasData as FaasData$1, FaasParams, FaasParams as FaasParams$1 } from "@faasjs/types";
2
- import * as react from "react";
1
+ import * as _$react from "react";
3
2
  import { Component, ComponentProps, ComponentType, Dispatch, ErrorInfo, JSX, ReactElement, ReactNode, RefObject, SetStateAction } from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+ import { FaasAction, FaasAction as FaasAction$1, FaasActionUnionType, FaasActionUnionType as FaasActionUnionType$1, FaasData, FaasData as FaasData$1, FaasParams, FaasParams as FaasParams$1 } from "@faasjs/types";
5
5
 
6
6
  //#region src/generateId.d.ts
7
7
  /**
@@ -1055,7 +1055,7 @@ type FaasDataWrapperRef<PathOrData extends FaasActionUnionType$1 = any> = FaasDa
1055
1055
  *
1056
1056
  * When a ref is provided, it exposes the current Faas request state imperatively.
1057
1057
  */
1058
- declare const FaasDataWrapper: <PathOrData extends FaasActionUnionType$1 = any>(props: FaasDataWrapperProps<PathOrData> & react.RefAttributes<FaasDataWrapperRef<PathOrData>>) => React.ReactElement | null;
1058
+ declare const FaasDataWrapper: <PathOrData extends FaasActionUnionType$1 = any>(props: FaasDataWrapperProps<PathOrData> & _$react.RefAttributes<FaasDataWrapperRef<PathOrData>>) => React.ReactElement | null;
1059
1059
  /**
1060
1060
  * Wrap a component with {@link FaasDataWrapper} and inject Faas request state as props.
1061
1061
  *
@@ -1359,7 +1359,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, {
1359
1359
  /**
1360
1360
  * Render children or the configured fallback for the captured error.
1361
1361
  */
1362
- render(): string | number | bigint | boolean | react_jsx_runtime0.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null;
1362
+ render(): string | number | bigint | boolean | _$react_jsx_runtime0.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null;
1363
1363
  }
1364
1364
  //#endregion
1365
1365
  //#region src/equal.d.ts
@@ -1506,7 +1506,7 @@ type OptionalWrapperProps<TWrapper extends ComponentType<{
1506
1506
  * )
1507
1507
  * ```
1508
1508
  */
1509
- declare function OptionalWrapper(props: OptionalWrapperProps): string | number | bigint | boolean | react_jsx_runtime0.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
1509
+ declare function OptionalWrapper(props: OptionalWrapperProps): string | number | bigint | boolean | _$react_jsx_runtime0.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
1510
1510
  declare namespace OptionalWrapper {
1511
1511
  var displayName: string;
1512
1512
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/react",
3
- "version": "8.0.0-beta.19",
3
+ "version": "8.0.0-beta.20",
4
4
  "homepage": "https://faasjs.com/doc/react/",
5
5
  "bugs": {
6
6
  "url": "https://github.com/faasjs/faasjs/issues"
@@ -16,23 +16,22 @@
16
16
  "dist"
17
17
  ],
18
18
  "type": "module",
19
- "main": "dist/index.cjs",
19
+ "main": "dist/index.mjs",
20
20
  "module": "dist/index.mjs",
21
21
  "types": "dist/index.d.ts",
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
- "import": "./dist/index.mjs",
26
- "require": "./dist/index.cjs"
25
+ "default": "./dist/index.mjs"
27
26
  }
28
27
  },
29
28
  "devDependencies": {
30
- "@faasjs/types": ">=8.0.0-beta.19",
29
+ "@faasjs/types": ">=8.0.0-beta.20",
31
30
  "@types/react": "^19.0.0",
32
31
  "react": "^19.0.0"
33
32
  },
34
33
  "peerDependencies": {
35
- "@faasjs/types": ">=8.0.0-beta.19"
34
+ "@faasjs/types": ">=8.0.0-beta.20"
36
35
  },
37
36
  "engines": {
38
37
  "node": ">=24.0.0",