@siberiacancode/reactuse 0.2.10 → 0.2.11

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 (27) hide show
  1. package/README.md +71 -71
  2. package/dist/cjs/hooks/useAsync/useAsync.cjs.map +1 -1
  3. package/dist/cjs/hooks/useBoolean/useBoolean.cjs.map +1 -1
  4. package/dist/cjs/hooks/useDropZone/useDropZone.cjs.map +1 -1
  5. package/dist/cjs/hooks/useShare/useShare.cjs +1 -1
  6. package/dist/cjs/hooks/useShare/useShare.cjs.map +1 -1
  7. package/dist/cjs/hooks/useStep/useStep.cjs.map +1 -1
  8. package/dist/cjs/hooks/useStorage/useStorage.cjs.map +1 -1
  9. package/dist/cjs/hooks/useUrlSearchParam/useUrlSearchParam.cjs +1 -1
  10. package/dist/cjs/hooks/useUrlSearchParam/useUrlSearchParam.cjs.map +1 -1
  11. package/dist/cjs/hooks/useUrlSearchParams/useUrlSearchParams.cjs.map +1 -1
  12. package/dist/cjs/index.cjs +1 -1
  13. package/dist/esm/hooks/useAsync/useAsync.mjs.map +1 -1
  14. package/dist/esm/hooks/useBoolean/useBoolean.mjs.map +1 -1
  15. package/dist/esm/hooks/useDropZone/useDropZone.mjs.map +1 -1
  16. package/dist/esm/hooks/useShare/useShare.mjs +9 -9
  17. package/dist/esm/hooks/useShare/useShare.mjs.map +1 -1
  18. package/dist/esm/hooks/useStep/useStep.mjs.map +1 -1
  19. package/dist/esm/hooks/useStorage/useStorage.mjs.map +1 -1
  20. package/dist/esm/hooks/useUrlSearchParam/useUrlSearchParam.mjs +60 -15
  21. package/dist/esm/hooks/useUrlSearchParam/useUrlSearchParam.mjs.map +1 -1
  22. package/dist/esm/hooks/useUrlSearchParams/useUrlSearchParams.mjs.map +1 -1
  23. package/dist/esm/index.mjs +131 -129
  24. package/dist/types/hooks/index.d.ts +1 -0
  25. package/dist/types/hooks/useShare/useShare.d.ts +2 -2
  26. package/dist/types/hooks/useUrlSearchParam/useUrlSearchParam.d.ts +4 -4
  27. package/package.json +89 -89
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
- {
2
- "name": "@siberiacancode/reactuse",
3
- "version": "0.2.10",
4
- "description": "The ultimate collection of react hooks",
5
- "author": {
6
- "name": "SIBERIA CAN CODE 🧊",
7
- "url": "https://github.com/siberiacancode"
8
- },
9
- "license": "MIT",
10
- "homepage": "https://siberiacancode.github.io/reactuse/",
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/siberiacancode/reactuse.git",
14
- "directory": "packages/core"
15
- },
16
- "bugs": "https://github.com/siberiacancode/reactuse/issues",
17
- "keywords": [
18
- "react",
19
- "react hooks",
20
- "react use",
21
- "use",
22
- "hooks"
23
- ],
24
- "sideEffects": false,
25
- "exports": {
26
- "types": "./dist/types/index.d.ts",
27
- "import": "./dist/esm/index.mjs",
28
- "require": "./dist/cjs/index.cjs"
29
- },
30
- "main": "dist/cjs/index.cjs",
31
- "module": "dist/esm/index.mjs",
32
- "types": "dist/types/index.d.ts",
33
- "files": [
34
- "dist"
35
- ],
36
- "engines": {
37
- "node": ">=14"
38
- },
39
- "publishConfig": {
40
- "access": "public"
41
- },
42
- "scripts": {
43
- "prepublishOnly": "pnpm unit-test run && pnpm build",
44
- "build": "shx rm -rf dist && vite build",
45
- "build:js": "tsc --project tsconfig.build.json && prettier --write src/bundle",
46
- "lint": "eslint . --fix",
47
- "lint-inspector": "npx @eslint/config-inspector@latest",
48
- "format": "prettier --write .",
49
- "pretty": "pnpm lint && pnpm format",
50
- "unit-test": "vitest",
51
- "lint-staged": "lint-staged"
52
- },
53
- "peerDependencies": {
54
- "@types/react": "^18",
55
- "react": "^17 || ^18 || ^19",
56
- "react-dom": "^17 || ^18 || ^19"
57
- },
58
- "peerDependenciesMeta": {
59
- "@types/react": {
60
- "optional": true
61
- }
62
- },
63
- "dependencies": {
64
- "screenfull": "^6.0.2"
65
- },
66
- "devDependencies": {
67
- "@siberiacancode/vitest": "^2.1.0",
68
- "@testing-library/dom": "^10.4.0",
69
- "@testing-library/react": "^16.3.0",
70
- "@types/dom-speech-recognition": "^0.0.6",
71
- "@types/react": "^19.1.7",
72
- "@types/react-dom": "^19.1.6",
73
- "@types/web-bluetooth": "^0.0.21",
74
- "@vitejs/plugin-react": "^4.5.2",
75
- "core-js": "^3.43.0",
76
- "react": "^19.1.0",
77
- "react-dom": "^19.1.0",
78
- "shx": "^0.4.0",
79
- "vite": "^6.3.5",
80
- "vite-plugin-dts": "^4.5.4",
81
- "vitest": "^3.2.3"
82
- },
83
- "lint-staged": {
84
- "*.{js,ts,tsx}": [
85
- "eslint --fix",
86
- "prettier --write"
87
- ]
88
- }
89
- }
1
+ {
2
+ "name": "@siberiacancode/reactuse",
3
+ "version": "0.2.11",
4
+ "description": "The ultimate collection of react hooks",
5
+ "author": {
6
+ "name": "SIBERIA CAN CODE 🧊",
7
+ "url": "https://github.com/siberiacancode"
8
+ },
9
+ "license": "MIT",
10
+ "homepage": "https://siberiacancode.github.io/reactuse/",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/siberiacancode/reactuse.git",
14
+ "directory": "packages/core"
15
+ },
16
+ "bugs": "https://github.com/siberiacancode/reactuse/issues",
17
+ "keywords": [
18
+ "react",
19
+ "react hooks",
20
+ "react use",
21
+ "use",
22
+ "hooks"
23
+ ],
24
+ "sideEffects": false,
25
+ "exports": {
26
+ "types": "./dist/types/index.d.ts",
27
+ "import": "./dist/esm/index.mjs",
28
+ "require": "./dist/cjs/index.cjs"
29
+ },
30
+ "main": "dist/cjs/index.cjs",
31
+ "module": "dist/esm/index.mjs",
32
+ "types": "dist/types/index.d.ts",
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "engines": {
37
+ "node": ">=14"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "scripts": {
43
+ "prepublishOnly": "pnpm unit-test run && pnpm build",
44
+ "build": "shx rm -rf dist && vite build",
45
+ "build:js": "tsc --project tsconfig.build.json && prettier --write src/bundle",
46
+ "lint": "eslint . --fix",
47
+ "lint-inspector": "npx @eslint/config-inspector@latest",
48
+ "format": "prettier --write .",
49
+ "pretty": "pnpm lint && pnpm format",
50
+ "unit-test": "vitest",
51
+ "lint-staged": "lint-staged"
52
+ },
53
+ "peerDependencies": {
54
+ "@types/react": "^18",
55
+ "react": "^17 || ^18 || ^19",
56
+ "react-dom": "^17 || ^18 || ^19"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "@types/react": {
60
+ "optional": true
61
+ }
62
+ },
63
+ "dependencies": {
64
+ "screenfull": "^6.0.2"
65
+ },
66
+ "devDependencies": {
67
+ "@siberiacancode/vitest": "^2.1.0",
68
+ "@testing-library/dom": "^10.4.0",
69
+ "@testing-library/react": "^16.3.0",
70
+ "@types/dom-speech-recognition": "^0.0.6",
71
+ "@types/react": "^19.1.7",
72
+ "@types/react-dom": "^19.1.6",
73
+ "@types/web-bluetooth": "^0.0.21",
74
+ "@vitejs/plugin-react": "^4.5.2",
75
+ "core-js": "^3.43.0",
76
+ "react": "^19.1.0",
77
+ "react-dom": "^19.1.0",
78
+ "shx": "^0.4.0",
79
+ "vite": "^6.3.5",
80
+ "vite-plugin-dts": "^4.5.4",
81
+ "vitest": "^3.2.3"
82
+ },
83
+ "lint-staged": {
84
+ "*.{js,ts,tsx}": [
85
+ "eslint --fix",
86
+ "prettier --write"
87
+ ]
88
+ }
89
+ }