@availity/hooks 6.0.1 → 7.0.1

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 CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [7.0.1](https://github.com/Availity/availity-react/compare/@availity/hooks@7.0.0...@availity/hooks@7.0.1) (2026-09-14)
6
+
7
+
8
+
9
+ # [7.0.0](https://github.com/Availity/availity-react/compare/@availity/hooks@6.0.1...@availity/hooks@7.0.0) (2026-08-05)
10
+
11
+
12
+ ### Features
13
+
14
+ * **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))
15
+
16
+
17
+ ### BREAKING CHANGES
18
+
19
+ * **hooks:** requires react-router >=7.0.0
20
+
21
+
22
+
5
23
  ## [6.0.1](https://github.com/Availity/availity-react/compare/@availity/hooks@6.0.0...@availity/hooks@6.0.1) (2026-06-16)
6
24
 
7
25
 
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-dom";
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": "6.0.1",
3
+ "version": "7.0.1",
4
4
  "description": "A group of pre-built hooks that are common in most apps",
5
5
  "keywords": [
6
6
  "react",
@@ -27,13 +27,13 @@
27
27
  "clean": "rm -rf dist"
28
28
  },
29
29
  "devDependencies": {
30
- "@availity/api-axios": "^13.2.0",
30
+ "@availity/api-axios": "^13.2.1",
31
31
  "@availity/message-core": "^9.2.0",
32
32
  "@tanstack/react-query": "^5.75.5",
33
- "axios": "^1.17.0",
33
+ "axios": "^1.20.0",
34
34
  "react": "^18.3.1",
35
35
  "react-dom": "^18.3.1",
36
- "react-router-dom": "^6.30.4",
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-dom": "^6.26.0"
45
+ "react-router": "^7.0.0"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from 'react';
2
- import { useLocation } from 'react-router-dom';
2
+ import { useLocation } from 'react-router';
3
3
  import avMessage from '@availity/message-core';
4
4
 
5
5
  const useUpdateNav = (): void => {
@@ -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-dom';
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={['/']}>n <Routes>
30
+ <MemoryRouter initialEntries={['/']}>
31
+ <Routes>
31
32
  <Route path="/" element={<Component />} />
32
33
  <Route path="/test" element={<div>Example</div>} />
33
34
  </Routes>