react-magic-search-params 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +2 -3
  2. package/package.json +79 -9
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
- # `react-magic-search-params` Documentation 🪄 <img src="https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg" width="20px" height="20px" title="This package contains built-in TypeScript declarations" alt="TypeScript icon, indicating that this package has built-in type declarations" class="aa30d277 pl3" data-nosnippet="true">
1
+ # `react-magic-search-params` 🪄 <img src="https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg" width="20px" height="20px" title="This package contains built-in TypeScript declarations" alt="TypeScript icon, indicating that this package has built-in type declarations" class="aa30d277 pl3" data-nosnippet="true">
2
2
 
3
+ <img src="https://github.com/user-attachments/assets/1f437570-6f30-4c10-b27d-b876f5c557bd" alt="Screenshot" width="800px" />
3
4
 
4
5
  # Installation
5
6
 
@@ -39,8 +40,6 @@ npm install react-magic-search-params
39
40
 
40
41
  # General Introduction
41
42
 
42
- <img src="https://github.com/user-attachments/assets/1f437570-6f30-4c10-b27d-b876f5c557bd" alt="Screenshot" width="800px" />
43
-
44
43
  ## Hook Purpose 🎯
45
44
 
46
45
  The **`useMagicSearchParams` hook** enables **advanced** and **centralized** management of URL parameters.
package/package.json CHANGED
@@ -1,9 +1,79 @@
1
- { "description": "#️⃣ A React Hook for advanced, typed management of URL search parameters, providing built-in TypeScript autocomplete.",
2
- "keywords": [
3
- "react",
4
- "hook",
5
- "url-parameters",
6
- "search-params",
7
- "typescript",
8
- "autocomplete"
9
- ],"version":"0.1.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","files":["dist","src"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"vitest","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"react":">=16","react-router-dom":">=6"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"react-magic-search-params","author":"Gabriel S.","module":"dist/usemagicsearchparams-library.esm.js","size-limit":[{"path":"dist/usemagicsearchparams-library.cjs.production.min.js","limit":"10 KB"},{"path":"dist/usemagicsearchparams-library.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^11.2.0","@types/react":"^19.0.10","@types/react-dom":"^19.0.4","husky":"^9.1.7","react":"^19.0.0","react-dom":"^19.0.0","size-limit":"^11.2.0","tsdx":"^0.14.1","tslib":"^2.8.1","typescript":"^3.9.10","vitest":"^3.0.8", "@testing-library/react": "^16.2.0"}}
1
+ {
2
+ "description": "#️⃣ A React Hook for advanced, typed management of URL search parameters, providing built-in TypeScript autocomplete.",
3
+ "keywords": [
4
+ "react",
5
+ "hook",
6
+ "url-parameters",
7
+ "search-params",
8
+ "typescript",
9
+ "autocomplete"
10
+ ],
11
+ "version": "0.2.0",
12
+ "license": "MIT",
13
+ "main": "dist/index.js",
14
+ "typings": "dist/index.d.ts",
15
+ "files": [
16
+ "dist",
17
+ "src"
18
+ ],
19
+ "engines": {
20
+ "node": ">=10"
21
+ },
22
+ "scripts": {
23
+ "start": "tsdx watch",
24
+ "build": "tsdx build",
25
+ "test": "vitest",
26
+ "lint": "tsdx lint",
27
+ "prepare": "tsdx build",
28
+ "size": "size-limit",
29
+ "analyze": "size-limit --why"
30
+ },
31
+ "peerDependencies": {
32
+ "react": ">=16",
33
+ "react-router-dom": ">=6"
34
+ },
35
+ "husky": {
36
+ "hooks": {
37
+ "pre-commit": "tsdx lint"
38
+ }
39
+ },
40
+ "prettier": {
41
+ "printWidth": 80,
42
+ "semi": true,
43
+ "singleQuote": true,
44
+ "trailingComma": "es5"
45
+ },
46
+ "name": "react-magic-search-params",
47
+ "author": "Gabriel S.",
48
+ "module": "dist/react-magic-search-params.esm.js",
49
+ "size-limit": [
50
+ {
51
+ "path": "dist/usemagicsearchparams-library.cjs.production.min.js",
52
+ "limit": "10 KB"
53
+ },
54
+ {
55
+ "path": "dist/usemagicsearchparams-library.esm.js",
56
+ "limit": "10 KB"
57
+ }
58
+ ],
59
+ "devDependencies": {
60
+ "@size-limit/preset-small-lib": "^11.2.0",
61
+ "@types/react": "^19.0.10",
62
+ "@types/react-dom": "^19.0.4",
63
+ "husky": "^9.1.7",
64
+ "react": "^19.0.0",
65
+ "react-dom": "^19.0.0",
66
+ "size-limit": "^11.2.0",
67
+ "tsdx": "^0.14.1",
68
+ "tslib": "^2.8.1",
69
+ "typescript": "^3.9.10",
70
+ "vitest": "^3.0.8",
71
+ "@testing-library/react": "^16.2.0"
72
+ },
73
+ "exports": {
74
+ ".": {
75
+ "import": "./dist/react-magic-search-params.esm.js",
76
+ "require": "./dist/react-magic-search-params.cjs.production.min.js"
77
+ }
78
+ }
79
+ }