react-router-pagination 2.2.450 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router-pagination",
3
- "version": "2.2.450",
3
+ "version": "3.0.0",
4
4
  "description": "A React Router Pagination component",
5
5
  "main": "./index.js",
6
6
  "author": {
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "license": "MIT",
12
12
  "engines": {
13
- "node": ">=16.13.0"
13
+ "node": ">=18.17.0"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -50,8 +50,6 @@
50
50
  "@storybook/blocks": "^7.2.1",
51
51
  "@storybook/react": "^7.2.1",
52
52
  "@storybook/react-webpack5": "^7.2.1",
53
- "@types/enzyme": "^3.10.13",
54
- "@types/enzyme-adapter-react-16": "^1.0.6",
55
53
  "@types/jest": "^29.5.3",
56
54
  "@types/react": "^18.2.18",
57
55
  "@types/react-router": "^5.1.20",
@@ -62,8 +60,6 @@
62
60
  "babel-plugin-module-resolver": "^5.0.0",
63
61
  "core-js": "^3.32.0",
64
62
  "cross-env": "^7.0.3",
65
- "enzyme": "^3.11.0",
66
- "enzyme-adapter-react-16": "^1.15.7",
67
63
  "eslint": "^8.46.0",
68
64
  "eslint-config-standard": "^17.1.0",
69
65
  "eslint-config-standard-with-typescript": "35.0.0",
@@ -73,10 +69,11 @@
73
69
  "husky": "^8.0.3",
74
70
  "jest": "^29.6.2",
75
71
  "prop-types": "15.7.2",
76
- "react": "16.14.0",
77
- "react-dom": "16.14.0",
72
+ "react": "^18.2.0",
73
+ "react-dom": "^18.2.0",
78
74
  "react-router": "^6.14.2",
79
75
  "react-router-dom": "^6.14.2",
76
+ "react-test-renderer": "^18.2.0",
80
77
  "rimraf": "^5.0.1",
81
78
  "storybook": "^7.2.1",
82
79
  "typescript": "^5.1.6"
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
2
  import renderer from 'react-test-renderer'
3
- import Enzyme from 'enzyme'
4
- import Adapter from 'enzyme-adapter-react-16'
5
3
 
6
4
  import {
7
5
  MemoryRouter
@@ -14,8 +12,6 @@ import {
14
12
  Centered
15
13
  } from 'react-router-pagination/pagination/centered'
16
14
 
17
- Enzyme.configure({ adapter: new Adapter() })
18
-
19
15
  describe('react-router-pagination/pagination/centered', () => {
20
16
  describe('`toInteger`', () => {
21
17
  it('is a function', () => {
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
2
  import renderer from 'react-test-renderer'
3
- import Enzyme from 'enzyme'
4
- import Adapter from 'enzyme-adapter-react-16'
5
3
 
6
4
  import {
7
5
  MemoryRouter
@@ -14,8 +12,6 @@ import {
14
12
  Pagination
15
13
  } from 'react-router-pagination/pagination/component'
16
14
 
17
- Enzyme.configure({ adapter: new Adapter() })
18
-
19
15
  describe('react-router-pagination/pagination/component', () => {
20
16
  describe('`toInteger`', () => {
21
17
  it('is a function', () => {
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
2
  import renderer from 'react-test-renderer'
3
- import Enzyme from 'enzyme'
4
- import Adapter from 'enzyme-adapter-react-16'
5
3
 
6
4
  import {
7
5
  MemoryRouter
@@ -15,8 +13,6 @@ import {
15
13
  Standard
16
14
  } from 'react-router-pagination/pagination'
17
15
 
18
- Enzyme.configure({ adapter: new Adapter() })
19
-
20
16
  describe('react-router-pagination', () => {
21
17
  describe('calculateTotalPages()', () => {
22
18
  describe('Your data contains 120 items which you want to display at 10 items per page', () => {
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
2
  import renderer from 'react-test-renderer'
3
- import Enzyme from 'enzyme'
4
- import Adapter from 'enzyme-adapter-react-16'
5
3
 
6
4
  import {
7
5
  MemoryRouter
@@ -14,8 +12,6 @@ import {
14
12
  Standard
15
13
  } from 'react-router-pagination/pagination/standard'
16
14
 
17
- Enzyme.configure({ adapter: new Adapter() })
18
-
19
15
  describe('react-router-pagination/pagination/standard', () => {
20
16
  describe('`toInteger`', () => {
21
17
  it('is a function', () => {