react-router-pagination 2.2.450 → 3.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/README.md +1 -1
- package/package.json +5 -11
- package/src/.babelrc +1 -9
- package/src/__tests__/pagination/centered/index.test.tsx +0 -4
- package/src/__tests__/pagination/component.test.tsx +0 -4
- package/src/__tests__/pagination/index.test.tsx +0 -4
- package/src/__tests__/pagination/standard/index.test.tsx +0 -4
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-router-pagination",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
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": ">=
|
|
13
|
+
"node": ">=18.17.0"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
@@ -35,9 +35,6 @@
|
|
|
35
35
|
"@babel/cli": "^7.22.9",
|
|
36
36
|
"@babel/core": "^7.22.9",
|
|
37
37
|
"@babel/eslint-parser": "^7.22.9",
|
|
38
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
39
|
-
"@babel/plugin-proposal-export-default-from": "^7.22.5",
|
|
40
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
41
38
|
"@babel/plugin-syntax-jsx": "^7.22.5",
|
|
42
39
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
43
40
|
"@babel/preset-env": "^7.22.9",
|
|
@@ -50,8 +47,6 @@
|
|
|
50
47
|
"@storybook/blocks": "^7.2.1",
|
|
51
48
|
"@storybook/react": "^7.2.1",
|
|
52
49
|
"@storybook/react-webpack5": "^7.2.1",
|
|
53
|
-
"@types/enzyme": "^3.10.13",
|
|
54
|
-
"@types/enzyme-adapter-react-16": "^1.0.6",
|
|
55
50
|
"@types/jest": "^29.5.3",
|
|
56
51
|
"@types/react": "^18.2.18",
|
|
57
52
|
"@types/react-router": "^5.1.20",
|
|
@@ -62,8 +57,6 @@
|
|
|
62
57
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
63
58
|
"core-js": "^3.32.0",
|
|
64
59
|
"cross-env": "^7.0.3",
|
|
65
|
-
"enzyme": "^3.11.0",
|
|
66
|
-
"enzyme-adapter-react-16": "^1.15.7",
|
|
67
60
|
"eslint": "^8.46.0",
|
|
68
61
|
"eslint-config-standard": "^17.1.0",
|
|
69
62
|
"eslint-config-standard-with-typescript": "35.0.0",
|
|
@@ -73,10 +66,11 @@
|
|
|
73
66
|
"husky": "^8.0.3",
|
|
74
67
|
"jest": "^29.6.2",
|
|
75
68
|
"prop-types": "15.7.2",
|
|
76
|
-
"react": "
|
|
77
|
-
"react-dom": "
|
|
69
|
+
"react": "^18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
78
71
|
"react-router": "^6.14.2",
|
|
79
72
|
"react-router-dom": "^6.14.2",
|
|
73
|
+
"react-test-renderer": "^18.2.0",
|
|
80
74
|
"rimraf": "^5.0.1",
|
|
81
75
|
"storybook": "^7.2.1",
|
|
82
76
|
"typescript": "^5.1.6"
|
package/src/.babelrc
CHANGED
|
@@ -21,14 +21,6 @@
|
|
|
21
21
|
"@babel/react"
|
|
22
22
|
],
|
|
23
23
|
"plugins": [
|
|
24
|
-
"@babel/transform-typescript"
|
|
25
|
-
"@babel/proposal-export-default-from",
|
|
26
|
-
"@babel/proposal-export-namespace-from",
|
|
27
|
-
[
|
|
28
|
-
"@babel/proposal-class-properties",
|
|
29
|
-
{
|
|
30
|
-
"loose": false
|
|
31
|
-
}
|
|
32
|
-
]
|
|
24
|
+
"@babel/transform-typescript"
|
|
33
25
|
]
|
|
34
26
|
}
|
|
@@ -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', () => {
|