@faasjs/react 0.0.5-beta.6 → 1.0.0

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
@@ -25,7 +25,7 @@ const client = FaasReactClient({
25
25
  ```
26
26
  2. Use [faas](#faas), [useFaas](#usefaas) or [FaasDataWrapper](#faasdatawrapper).
27
27
 
28
- ## Usage with `@preact/signal-react`
28
+ ## Usage with [@preact/signal-react](https://github.com/preactjs/signals/blob/main/packages/react/README.md)
29
29
 
30
30
  1. `npm i --save-dev @preact/signals-react-transform`
31
31
  2. Add `@preact/signals-react-transform` to babel config:
package/dist/index.d.mts CHANGED
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { ReactNode, ReactElement, Component, SetStateAction } from 'react';
7
7
  import * as _preact_signals_core from '@preact/signals-core';
8
8
  export { batch, computed, effect, signal as originSignal } from '@preact/signals-react';
9
- export { useSignal as originUseSignal, useComputed, useSignalEffect } from '@preact/signals-react/runtime';
9
+ export { useSignal as originUseSignal, useComputed, useSignalEffect, useSignals } from '@preact/signals-react/runtime';
10
10
 
11
11
  type FaasReactClientInstance = {
12
12
  id: string
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { ReactNode, ReactElement, Component, SetStateAction } from 'react';
7
7
  import * as _preact_signals_core from '@preact/signals-core';
8
8
  export { batch, computed, effect, signal as originSignal } from '@preact/signals-react';
9
- export { useSignal as originUseSignal, useComputed, useSignalEffect } from '@preact/signals-react/runtime';
9
+ export { useSignal as originUseSignal, useComputed, useSignalEffect, useSignals } from '@preact/signals-react/runtime';
10
10
 
11
11
  type FaasReactClientInstance = {
12
12
  id: string
package/dist/index.js CHANGED
@@ -261,6 +261,10 @@ Object.defineProperty(exports, "useSignalEffect", {
261
261
  enumerable: true,
262
262
  get: function () { return runtime.useSignalEffect; }
263
263
  });
264
+ Object.defineProperty(exports, "useSignals", {
265
+ enumerable: true,
266
+ get: function () { return runtime.useSignals; }
267
+ });
264
268
  exports.ErrorBoundary = ErrorBoundary;
265
269
  exports.FaasDataWrapper = FaasDataWrapper;
266
270
  exports.FaasReactClient = FaasReactClient;
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { signal as signal$1, effect } from '@preact/signals-react';
5
5
  export { batch, computed, effect, signal as originSignal } from '@preact/signals-react';
6
6
  import { useSignal, useSignalEffect } from '@preact/signals-react/runtime';
7
- export { useSignal as originUseSignal, useComputed, useSignalEffect } from '@preact/signals-react/runtime';
7
+ export { useSignal as originUseSignal, useComputed, useSignalEffect, useSignals } from '@preact/signals-react/runtime';
8
8
 
9
9
  // src/client.tsx
10
10
  var clients = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/react",
3
- "version": "0.0.5-beta.6",
3
+ "version": "1.0.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@faasjs/browser": "0.0.5-beta.6"
25
+ "@faasjs/browser": "1.0.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*",