use-poller 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # use-poller
2
+
3
+ Initial placeholder release for claiming the `use-poller` package name on npm.
4
+
5
+ ## Status
6
+
7
+ `0.0.1` is intentionally minimal and does not provide the final polling hook API yet.
8
+
9
+ ## Why this exists
10
+
11
+ This release reserves the package name while the full implementation is being completed.
12
+
13
+ ## Roadmap
14
+
15
+ - Deliver production-ready `usePoller` hook
16
+ - Add full test coverage for timing and lifecycle edge cases
17
+ - Publish full docs and examples
18
+
19
+ ## License
20
+
21
+ MIT
package/dist/index.cjs ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ usePoller: () => usePoller
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ function usePoller() {
27
+ throw new Error(
28
+ "use-poller@0.0.1 is a placeholder release. Full implementation is coming next."
29
+ );
30
+ }
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ usePoller
34
+ });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Placeholder release to claim the package name on npm.
3
+ * Full hook API is planned for upcoming versions.
4
+ */
5
+ declare function usePoller(): never;
6
+
7
+ export { usePoller };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Placeholder release to claim the package name on npm.
3
+ * Full hook API is planned for upcoming versions.
4
+ */
5
+ declare function usePoller(): never;
6
+
7
+ export { usePoller };
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // src/index.ts
2
+ function usePoller() {
3
+ throw new Error(
4
+ "use-poller@0.0.1 is a placeholder release. Full implementation is coming next."
5
+ );
6
+ }
7
+ export {
8
+ usePoller
9
+ };
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "use-poller",
3
+ "version": "0.0.1",
4
+ "description": "Initial placeholder release for the use-poller package name.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "sideEffects": false,
22
+ "scripts": {
23
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean",
24
+ "prepublishOnly": "npm run build"
25
+ },
26
+ "keywords": [
27
+ "react",
28
+ "hook",
29
+ "polling",
30
+ "use-poller"
31
+ ],
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/tomaszbilka/use-poller.git"
35
+ },
36
+ "author": "",
37
+ "license": "MIT",
38
+ "bugs": {
39
+ "url": "https://github.com/tomaszbilka/use-poller/issues"
40
+ },
41
+ "homepage": "https://github.com/tomaszbilka/use-poller#readme",
42
+ "peerDependencies": {
43
+ "react": ">=18"
44
+ },
45
+ "devDependencies": {
46
+ "tsup": "^8.5.0",
47
+ "typescript": "^5.9.2"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ }
52
+ }