use-state-with-ref 0.2.0-main.f10fba4 → 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 (1) hide show
  1. package/package.json +38 -13
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "use-state-with-ref",
3
- "version": "0.2.0-main.f10fba4",
3
+ "version": "0.2.0",
4
4
  "description": "React `useState` with a readonly `RefObject`.",
5
5
  "files": [
6
+ "./*.js",
6
7
  "./dist/"
7
8
  ],
8
9
  "exports": {
@@ -30,12 +31,13 @@
30
31
  "precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
31
32
  "precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
32
33
  "prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
34
+ "start": "npm run build -- --onSuccess \"touch ../pages/package.json\" --watch",
33
35
  "switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
34
36
  "test": "jest"
35
37
  },
36
38
  "repository": {
37
39
  "type": "git",
38
- "url": "git+https://github.com/compulim/use-state-with-ref.git"
40
+ "url": "https://github.com/compulim/use-state-with-ref.git"
39
41
  },
40
42
  "keywords": [
41
43
  "react",
@@ -53,7 +55,9 @@
53
55
  "@testing-library/react": "^12",
54
56
  "@testing-library/react-hooks": "latest",
55
57
  "@types/react": "^16",
58
+ "@types/react-dom": "^16",
56
59
  "react": "16.8.0",
60
+ "react-dom": "16.8.0",
57
61
  "react-test-renderer": "16.8.0"
58
62
  }
59
63
  },
@@ -62,41 +66,62 @@
62
66
  "@testing-library/react": "^12",
63
67
  "@testing-library/react-hooks": "latest",
64
68
  "@types/react": "^17",
69
+ "@types/react-dom": "^17",
65
70
  "react": "17.0.0",
71
+ "react-dom": "17.0.0",
66
72
  "react-test-renderer": "17.0.0"
67
73
  }
68
74
  },
69
75
  "switch:react-18": {
70
76
  "devDependencies": {
71
77
  "@types/react": "^18",
78
+ "@types/react-dom": "^18",
72
79
  "react": "18.0.0",
80
+ "react-dom": "18.0.0",
73
81
  "react-test-renderer": "18.0.0"
74
82
  }
75
83
  },
84
+ "pinDependencies": {
85
+ "@types/react": [
86
+ "18"
87
+ ],
88
+ "@types/react-dom": [
89
+ "18"
90
+ ],
91
+ "react": [
92
+ "18"
93
+ ],
94
+ "react-dom": [
95
+ "18"
96
+ ]
97
+ },
76
98
  "peerDependencies": {
77
99
  "react": ">=16.8.0"
78
100
  },
79
101
  "devDependencies": {
80
- "@babel/preset-env": "^7.24.7",
81
- "@babel/preset-react": "^7.24.7",
82
- "@babel/preset-typescript": "^7.24.7",
83
- "@testing-library/dom": "^10.2.0",
84
- "@testing-library/react": "^16.0.0",
85
- "@tsconfig/recommended": "^1.0.6",
102
+ "@babel/preset-env": "^7.25.8",
103
+ "@babel/preset-react": "^7.25.7",
104
+ "@babel/preset-typescript": "^7.25.7",
105
+ "@happy-dom/global-registrator": "^20.0.11",
106
+ "@testing-library/dom": "^10.4.0",
107
+ "@testing-library/react": "^16.0.1",
108
+ "@tsconfig/recommended": "^1.0.7",
86
109
  "@tsconfig/strictest": "^2.0.5",
87
- "@types/jest": "^29.5.12",
88
- "@types/react": "^18.3.3",
110
+ "@types/jest": "^29.5.13",
111
+ "@types/react": "^18.3.11",
112
+ "@types/react-dom": "^18.3.2",
89
113
  "escape-string-regexp": "^5.0.0",
90
114
  "jest": "^29.7.0",
91
115
  "jest-environment-jsdom": "^29.7.0",
92
116
  "publint": "^0.2.11",
93
117
  "react": "^18.3.1",
118
+ "react-dom": "^18.3.1",
94
119
  "react-test-renderer": "^18.3.1",
95
- "tsup": "^8.1.0",
96
- "typescript": "^5.5.2"
120
+ "tsup": "^8.3.0",
121
+ "typescript": "^5.6.3"
97
122
  },
98
123
  "dependencies": {
99
124
  "use-ref-from": "^0.1.0",
100
- "use-state-with-ref": "^0.2.0-main.f10fba4"
125
+ "use-state-with-ref": "^0.2.0"
101
126
  }
102
127
  }