use-subscription 1.9.0-next-fa4314841-20230502 → 1.10.0-beta-94eed63c49-20240425

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license React
3
+ * use-subscription.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ var shim = require("use-sync-external-store/shim");
13
+ exports.useSubscription = function (_ref) {
14
+ return shim.useSyncExternalStore(_ref.subscribe, _ref.getCurrentValue);
15
+ };
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/use-subscription.production.min.js');
4
+ module.exports = require('./cjs/use-subscription.production.js');
5
5
  } else {
6
6
  module.exports = require('./cjs/use-subscription.development.js');
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "use-subscription",
3
3
  "description": "Reusable hooks",
4
- "version": "1.9.0-next-fa4314841-20230502",
4
+ "version": "1.10.0-beta-94eed63c49-20240425",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/facebook/react.git",
@@ -15,12 +15,12 @@
15
15
  ],
16
16
  "license": "MIT",
17
17
  "peerDependencies": {
18
- "react": "18.3.0-next-fa4314841-20230502"
18
+ "react": "19.0.0-beta-94eed63c49-20240425"
19
19
  },
20
20
  "devDependencies": {
21
21
  "rxjs": "^5.5.6"
22
22
  },
23
23
  "dependencies": {
24
- "use-sync-external-store": "1.3.0-next-fa4314841-20230502"
24
+ "use-sync-external-store": "1.4.0-beta-94eed63c49-20240425"
25
25
  }
26
26
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * @license React
3
- * use-subscription.production.min.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- 'use strict';var b=require("use-sync-external-store/shim");exports.useSubscription=function(a){return b.useSyncExternalStore(a.subscribe,a.getCurrentValue)};