@availity/hooks 6.0.1 → 7.0.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.
- package/CHANGELOG.md +14 -0
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/useUpdateNav.ts +1 -1
- package/tests/useUpdateNav.test.tsx +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [7.0.0](https://github.com/Availity/availity-react/compare/@availity/hooks@6.0.1...@availity/hooks@7.0.0) (2026-08-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **hooks:** update react-router peer dep and import to v7 ([#1732](https://github.com/Availity/availity-react/issues/1732)) ([80d8536](https://github.com/Availity/availity-react/commit/80d853685fcf51bbc5b769da889e1dab482c6139))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* **hooks:** requires react-router >=7.0.0
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
5
19
|
## [6.0.1](https://github.com/Availity/availity-react/compare/@availity/hooks@6.0.0...@availity/hooks@6.0.1) (2026-06-16)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ function useOrganizations(config, options) {
|
|
|
96
96
|
|
|
97
97
|
// src/useUpdateNav.ts
|
|
98
98
|
import { useEffect as useEffect4 } from "react";
|
|
99
|
-
import { useLocation } from "react-router
|
|
99
|
+
import { useLocation } from "react-router";
|
|
100
100
|
import avMessage from "@availity/message-core";
|
|
101
101
|
var useUpdateNav = () => {
|
|
102
102
|
const location = useLocation();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/hooks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "A group of pre-built hooks that are common in most apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"axios": "^1.17.0",
|
|
34
34
|
"react": "^18.3.1",
|
|
35
35
|
"react-dom": "^18.3.1",
|
|
36
|
-
"react-router
|
|
36
|
+
"react-router": "^7.18.0",
|
|
37
37
|
"tsup": "^8.5.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@tanstack/react-query": "^5.75.5",
|
|
43
43
|
"axios": "^1.13.2",
|
|
44
44
|
"react": "^18.0.0 || ^19.0.0",
|
|
45
|
-
"react-router
|
|
45
|
+
"react-router": "^7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
package/src/useUpdateNav.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
-
import { MemoryRouter, useNavigate, Routes, Route } from 'react-router
|
|
3
|
+
import { MemoryRouter, useNavigate, Routes, Route } from 'react-router';
|
|
4
4
|
import avMessageMock from '@availity/message-core';
|
|
5
5
|
|
|
6
6
|
import useUpdateNav from '../src/useUpdateNav';
|
|
@@ -27,7 +27,8 @@ const Component = () => {
|
|
|
27
27
|
describe('useUpdateNav', () => {
|
|
28
28
|
test.todo('calls avMessage on location change', () => {
|
|
29
29
|
render(
|
|
30
|
-
<MemoryRouter initialEntries={['/']}>
|
|
30
|
+
<MemoryRouter initialEntries={['/']}>
|
|
31
|
+
<Routes>
|
|
31
32
|
<Route path="/" element={<Component />} />
|
|
32
33
|
<Route path="/test" element={<div>Example</div>} />
|
|
33
34
|
</Routes>
|