@dynamic-labs/react-hooks 4.0.0-alpha.5 → 4.0.0-alpha.6

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.
Files changed (3) hide show
  1. package/index.cjs +5 -0
  2. package/index.js +5 -0
  3. package/package.json +3 -2
package/index.cjs CHANGED
@@ -2,9 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
5
6
  var react = require('react');
6
7
  var reactivity = require('@vue/reactivity');
7
8
 
9
+ var version = "4.0.0-alpha.6";
10
+
8
11
  const isObject = value => typeof value === 'object' && value !== null && value !== undefined && typeof value !== 'function' && typeof value !== 'symbol' && typeof value !== 'bigint' && !Array.isArray(value) && !(value instanceof Date);
9
12
  /**
10
13
  * Watches for changes in the source and calls the callback when the source changes
@@ -86,4 +89,6 @@ const useReactivityProxy = target => {
86
89
  }, [target]);
87
90
  };
88
91
 
92
+ assertPackageVersion.assertPackageVersion('@dynamic-labs/react-hooks', version);
93
+
89
94
  exports.useReactiveClient = useReactivityProxy;
package/index.js CHANGED
@@ -1,6 +1,9 @@
1
+ import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
1
2
  import { useRef, useState, useCallback, useMemo } from 'react';
2
3
  import { effect, stop } from '@vue/reactivity';
3
4
 
5
+ var version = "4.0.0-alpha.6";
6
+
4
7
  const isObject = value => typeof value === 'object' && value !== null && value !== undefined && typeof value !== 'function' && typeof value !== 'symbol' && typeof value !== 'bigint' && !Array.isArray(value) && !(value instanceof Date);
5
8
  /**
6
9
  * Watches for changes in the source and calls the callback when the source changes
@@ -82,4 +85,6 @@ const useReactivityProxy = target => {
82
85
  }, [target]);
83
86
  };
84
87
 
88
+ assertPackageVersion('@dynamic-labs/react-hooks', version);
89
+
85
90
  export { useReactivityProxy as useReactiveClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/react-hooks",
3
- "version": "4.0.0-alpha.5",
3
+ "version": "4.0.0-alpha.6",
4
4
  "main": "./index.cjs",
5
5
  "module": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -14,7 +14,8 @@
14
14
  "./package.json": "./package.json"
15
15
  },
16
16
  "dependencies": {
17
- "@vue/reactivity": "3.4.21"
17
+ "@vue/reactivity": "3.4.21",
18
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.6"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "react": "^18.0.0"