@availity/hooks 5.0.1 → 5.0.3
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/CHANGELOG.md +54 -0
- package/package.json +6 -6
- package/project.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,60 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [5.0.3](https://github.com/Availity/availity-react/compare/@availity/hooks@5.0.2...@availity/hooks@5.0.3) (2024-08-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# 1.0.0 (2024-08-22)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* eslint issues ([bc4d8e9](https://github.com/Availity/availity-react/commit/bc4d8e9252a37c067de3e5b15e583c4a3c06d6c5))
|
|
15
|
+
* **hooks:** moved region fetching into useEffect, and adding trycatch to better handle errors ([e3d8454](https://github.com/Availity/availity-react/commit/e3d845457bb7d5ed7facde0081258d990c1eae6e))
|
|
16
|
+
* **hooks:** remove effect from dependency array in useMount ([a096fa4](https://github.com/Availity/availity-react/commit/a096fa45af7aaa40a09c87254aef0de864fa8ab6))
|
|
17
|
+
* **hooks:** use optional chaining ([ec54426](https://github.com/Availity/availity-react/commit/ec54426b81cb63f4e3ce14ba1fd1fb9c0f208d23))
|
|
18
|
+
* removed npmrc and added config to lerna for now creating locks ([efe82ab](https://github.com/Availity/availity-react/commit/efe82ab5a9a38cc8113d5cc71416f1ef347eb4c4))
|
|
19
|
+
* removed package-locks,added npmrc ignore,fixed react as hoisted dep ([4648319](https://github.com/Availity/availity-react/commit/4648319b1298096de2e3e37bf6246e5f169ace0e))
|
|
20
|
+
* upgrade yup and update sb stories ([68aeafe](https://github.com/Availity/availity-react/commit/68aeafe4fd7d90d7c88dbb24636ba7770fe87aa3))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* allow for options to be passed in ([1d99a8b](https://github.com/Availity/availity-react/commit/1d99a8b942267c5be69711576ef4f64b8e36bacb))
|
|
26
|
+
* **docs:** updated to use yarn and added readmes ([3b94748](https://github.com/Availity/availity-react/commit/3b947487ef18c6e11486ad39203882a11bc8a1e7))
|
|
27
|
+
* **form:** add currency input ([fa9eea6](https://github.com/Availity/availity-react/commit/fa9eea6a3b3dd2ef741a0658c102e36c6db5288c))
|
|
28
|
+
* **hooks:** add documentation to sidebar, some formatting ([fbd9964](https://github.com/Availity/availity-react/commit/fbd99648c18993394f773d8540c1be023acf6e5b))
|
|
29
|
+
* **hooks:** add usePermissions, useOrganizations, useProviders hook ([458f5e5](https://github.com/Availity/availity-react/commit/458f5e50038c4fdc5a23919daec918a87cdb08e9))
|
|
30
|
+
* **hooks:** add useWindowDimensionsHook ([203d9c0](https://github.com/Availity/availity-react/commit/203d9c0a31362ec084c94c4ae50ab4b6efbc876b))
|
|
31
|
+
* **hooks:** added some common hooks to a new package ([98663fd](https://github.com/Availity/availity-react/commit/98663fd4742b988b0f11ad15236addf3237c9c0d))
|
|
32
|
+
* **hooks:** added storybook story for useCurrentUser ([00277b7](https://github.com/Availity/availity-react/commit/00277b73e15e4f26210d81fdc27a56fb94380838))
|
|
33
|
+
* **hooks:** added useCurrentUser hook ([8cab508](https://github.com/Availity/availity-react/commit/8cab5089074747bd1a970b48427c5ba8918d0db0))
|
|
34
|
+
* **hooks:** added useTimout and useMount hooks, tests, and docs ([e82c81e](https://github.com/Availity/availity-react/commit/e82c81ef840531b4327dcb823d6f3cfdda19fa22))
|
|
35
|
+
* **hooks:** fixed the copy pasta ([d82d5f9](https://github.com/Availity/availity-react/commit/d82d5f93e9c3609fe2142043043d1c01ef7f48e1))
|
|
36
|
+
* **hooks:** upgrade react query to v4 ([9b7b266](https://github.com/Availity/availity-react/commit/9b7b266fbbd880114d162d5a4f89f7a9f34a6a6f))
|
|
37
|
+
* **hooks:** upgrade to react-query v2 ([2da4115](https://github.com/Availity/availity-react/commit/2da411548721cee86be33dd92cf62a99f80e86cf))
|
|
38
|
+
* **hooks:** upgrade to react-query v3 ([351aeff](https://github.com/Availity/availity-react/commit/351aeff7bc6b2c14379b2113bc17624a956dfdd6))
|
|
39
|
+
* move storybook, stories, and fix hmr ([2f65f71](https://github.com/Availity/availity-react/commit/2f65f71769d2d981e22700b87a09516833588f64))
|
|
40
|
+
* **pagination:** pagination components using hooks ([590e5fd](https://github.com/Availity/availity-react/commit/590e5fd05fcf0656d2309ae091938b334fd422ee)), closes [#27](https://github.com/Availity/availity-react/issues/27) [#64](https://github.com/Availity/availity-react/issues/64)
|
|
41
|
+
* update to use react-query ([d762643](https://github.com/Availity/availity-react/commit/d762643e49da3de41922021833ab5bd209d2cbf9))
|
|
42
|
+
* upgrade deps ([eccefc0](https://github.com/Availity/availity-react/commit/eccefc0549ebd5057595f6ac696642789375f48a))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### BREAKING CHANGES
|
|
46
|
+
|
|
47
|
+
* **hooks:** react query has been upgraded to v4. you must upgrade
|
|
48
|
+
to @tanstack/react-query@^4.36.1 in order to use this package now
|
|
49
|
+
* axios v1 is now required
|
|
50
|
+
* **hooks:** react-query ^3.0.0 is now required
|
|
51
|
+
* **hooks:** the return shapes have changed for most async hooks
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [5.0.2](https://github.com/Availity/availity-react/compare/@availity/hooks@5.0.1...@availity/hooks@5.0.2) (2024-04-23)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
5
59
|
## [5.0.1](https://github.com/Availity/availity-react/compare/@availity/hooks@5.0.0...@availity/hooks@5.0.1) (2024-02-21)
|
|
6
60
|
|
|
7
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/hooks",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "A group of pre-built hooks that are common in most apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"prop-types": "^15.8.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@availity/api-axios": "^
|
|
33
|
-
"axios": "^1.
|
|
34
|
-
"react": "^18.
|
|
35
|
-
"react-dom": "^18.
|
|
32
|
+
"@availity/api-axios": "^9.0.0",
|
|
33
|
+
"axios": "^1.7.4",
|
|
34
|
+
"react": "^18.3.1",
|
|
35
|
+
"react-dom": "^18.3.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@availity/api-axios": "^8.0.0",
|
|
39
|
-
"axios": "^1.
|
|
39
|
+
"axios": "^1.7.4",
|
|
40
40
|
"react": ">=16.8.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
package/project.json
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"name": "@availity/hooks",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
3
4
|
"projectType": "library",
|
|
4
5
|
"targets": {
|
|
5
6
|
"test": {
|
|
6
7
|
"executor": "@nx/jest:jest",
|
|
7
|
-
"outputs": ["coverage/hooks"],
|
|
8
|
-
"options": {
|
|
8
|
+
"outputs": ["{workspaceRoot}/coverage/hooks"],
|
|
9
|
+
"options": {
|
|
10
|
+
"jestConfig": "packages/hooks/jest.config.js"
|
|
11
|
+
}
|
|
9
12
|
},
|
|
10
13
|
"version": {
|
|
11
14
|
"executor": "@jscutlery/semver:version",
|
|
12
15
|
"options": {
|
|
13
16
|
"preset": "angular",
|
|
14
17
|
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
|
|
15
|
-
"tagPrefix": "
|
|
18
|
+
"tagPrefix": "{projectName}@",
|
|
16
19
|
"baseBranch": "master"
|
|
17
20
|
}
|
|
18
21
|
},
|
|
19
22
|
"lint": {
|
|
20
|
-
"executor": "@nx/
|
|
23
|
+
"executor": "@nx/eslint:lint",
|
|
21
24
|
"options": {
|
|
22
25
|
"eslintConfig": ".eslintrc.yaml",
|
|
23
|
-
"lintFilePatterns": ["packages/hooks/**/*.{js,ts}"],
|
|
24
26
|
"silent": false,
|
|
25
27
|
"fix": false,
|
|
26
28
|
"cache": true,
|