@tanem/react-nprogress 5.0.21 → 5.0.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # react-nprogress
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@tanem/react-nprogress.svg?style=flat-square)](https://www.npmjs.com/package/@tanem/react-nprogress)
4
- [![build status](https://img.shields.io/github/workflow/status/tanem/react-nprogress/CI?style=flat-square)](https://github.com/tanem/react-nprogress/actions?query=workflow%3ACI)
4
+ [![build status](https://img.shields.io/github/actions/workflow/status/tanem/react-nprogress/ci.yml?style=flat-square)](https://github.com/tanem/react-nprogress/actions?query=workflow%3ACI)
5
5
  [![coverage status](https://img.shields.io/codecov/c/github/tanem/react-nprogress.svg?style=flat-square)](https://codecov.io/gh/tanem/react-nprogress)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/@tanem/react-nprogress.svg?style=flat-square)](https://www.npmjs.com/package/@tanem/react-nprogress)
7
7
  [![minzipped size](https://img.shields.io/bundlephobia/minzip/@tanem/react-nprogress?style=flat-square)](https://bundlephobia.com/result?p=@tanem/react-nprogress)
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Options } from './types';
3
3
  import { useNProgress } from './useNProgress';
4
- declare type Props = Options & {
4
+ type Props = Options & {
5
5
  children: (renderProps: ReturnType<typeof useNProgress>) => React.ReactElement;
6
6
  };
7
7
  export declare const NProgress: React.FC<Props>;
@@ -1,5 +1,5 @@
1
- declare type Next = () => void;
2
- declare type Callback = (next: Next) => void;
1
+ type Next = () => void;
2
+ type Callback = (next: Next) => void;
3
3
  export declare const createQueue: () => {
4
4
  clear: () => void;
5
5
  enqueue: (cb: Callback) => void;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Options } from './types';
3
3
  import { useNProgress } from './useNProgress';
4
- declare type Outer<P> = P & Options;
5
- declare type Inner<P> = P & ReturnType<typeof useNProgress>;
4
+ type Outer<P> = P & Options;
5
+ type Inner<P> = P & ReturnType<typeof useNProgress>;
6
6
  export declare function withNProgress<P>(BaseComponent: React.ComponentType<Inner<P>>): React.FC<Outer<P>>;
7
7
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanem/react-nprogress",
3
- "version": "5.0.21",
3
+ "version": "5.0.23",
4
4
  "description": "A React primitive for building slim progress bars.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/react-nprogress.esm.js",
@@ -66,31 +66,32 @@
66
66
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
67
67
  },
68
68
  "dependencies": {
69
- "@babel/runtime": "^7.20.6",
69
+ "@babel/runtime": "^7.20.7",
70
70
  "hoist-non-react-statics": "^3.3.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/core": "7.20.5",
73
+ "@babel/core": "7.20.7",
74
74
  "@babel/plugin-transform-runtime": "7.19.6",
75
75
  "@babel/preset-env": "7.20.2",
76
76
  "@babel/preset-react": "7.18.6",
77
77
  "@babel/preset-typescript": "7.18.6",
78
78
  "@rollup/plugin-babel": "6.0.3",
79
- "@rollup/plugin-commonjs": "23.0.5",
79
+ "@rollup/plugin-commonjs": "24.0.0",
80
80
  "@rollup/plugin-node-resolve": "15.0.1",
81
- "@rollup/plugin-replace": "5.0.1",
81
+ "@rollup/plugin-replace": "5.0.2",
82
82
  "@rollup/plugin-terser": "0.1.0",
83
83
  "@testing-library/react": "13.4.0",
84
84
  "@types/hoist-non-react-statics": "3.3.1",
85
- "@types/jest": "29.2.4",
85
+ "@types/jest": "29.2.5",
86
86
  "@types/mock-raf": "1.0.3",
87
+ "@types/node": "18.11.18",
87
88
  "@types/react": "18.0.26",
88
- "@types/react-dom": "18.0.9",
89
- "@typescript-eslint/eslint-plugin": "5.46.1",
90
- "@typescript-eslint/parser": "5.46.1",
89
+ "@types/react-dom": "18.0.10",
90
+ "@typescript-eslint/eslint-plugin": "5.48.0",
91
+ "@typescript-eslint/parser": "5.48.0",
91
92
  "babel-core": "6.26.3",
92
- "eslint": "8.29.0",
93
- "eslint-config-prettier": "8.5.0",
93
+ "eslint": "8.31.0",
94
+ "eslint-config-prettier": "8.6.0",
94
95
  "eslint-plugin-react": "7.31.11",
95
96
  "eslint-plugin-react-hooks": "4.6.0",
96
97
  "eslint-plugin-simple-import-sort": "8.0.0",
@@ -103,11 +104,11 @@
103
104
  "react-dom": "18.2.0",
104
105
  "react-test-renderer": "18.2.0",
105
106
  "regenerator-runtime": "0.13.11",
106
- "rollup": "3.7.4",
107
+ "rollup": "3.9.1",
107
108
  "rollup-plugin-sourcemaps": "0.6.3",
108
109
  "shx": "0.3.4",
109
- "tanem-scripts": "6.0.66",
110
+ "tanem-scripts": "6.0.68",
110
111
  "ts-jest": "29.0.3",
111
- "typescript": "4.8.4"
112
+ "typescript": "4.9.4"
112
113
  }
113
114
  }