use-tus 0.7.1 → 0.7.3

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,27 +1,10 @@
1
1
  {
2
2
  "name": "use-tus",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "React hooks for resumable file uploads using tus-js-client",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
8
- "scripts": {
9
- "build": "npm-run-all -s type clean build:rollup",
10
- "build:rollup": "cross-env NODE_ENV=production rollup -c",
11
- "test": "cross-env NODE_ENV=TEST jest",
12
- "type": "tsc --noEmit",
13
- "format": "npm-run-all -s format:*",
14
- "format:fix": "prettier --write './**/*.{ts,tsx,js,jsx,json}'",
15
- "format:lint": "eslint ./ --ext .ts,.tsx",
16
- "clean": "rimraf ./dist",
17
- "prepublishOnly": "npm run build",
18
- "prepare": "husky install",
19
- "storybook": "start-storybook -p 6006",
20
- "storybook:build": "build-storybook",
21
- "storybook:static": "gh-pages -d storybook-static",
22
- "storybook:deploy": "npm-run-all -s storybook:build storybook:static",
23
- "build-storybook": "build-storybook"
24
- },
25
8
  "keywords": [
26
9
  "react",
27
10
  "react-hooks",
@@ -45,43 +28,39 @@
45
28
  },
46
29
  "homepage": "https://github.com/kqito/use-tus#readme",
47
30
  "devDependencies": {
48
- "@babel/cli": "^7.13.14",
49
- "@babel/core": "^7.13.14",
50
- "@babel/preset-env": "^7.13.12",
51
- "@babel/preset-react": "^7.13.13",
52
- "@babel/preset-typescript": "^7.13.0",
53
- "@rollup/plugin-babel": "^5.3.0",
54
31
  "@rollup/plugin-commonjs": "^18.0.0",
55
32
  "@rollup/plugin-node-resolve": "^11.2.1",
56
33
  "@rollup/plugin-typescript": "^8.3.0",
57
- "@storybook/addon-actions": "^6.2.9",
58
- "@storybook/addon-essentials": "^6.2.9",
59
- "@storybook/addon-links": "^6.2.9",
60
- "@storybook/react": "^6.2.9",
61
- "@testing-library/jest-dom": "^5.11.10",
34
+ "@storybook/addon-actions": "^7.5.1",
35
+ "@storybook/addon-essentials": "^7.5.1",
36
+ "@storybook/addon-links": "^7.5.1",
37
+ "@storybook/react": "^7.5.1",
38
+ "@storybook/react-vite": "^7.5.1",
39
+ "@testing-library/jest-dom": "^6.1.4",
62
40
  "@testing-library/react": "^13.3.0",
63
- "@types/jest": "^26.0.22",
41
+ "@types/jest": "^29.5.6",
64
42
  "@types/react": "^17.0.3",
65
43
  "@types/react-dom": "^17.0.3",
66
- "@typescript-eslint/eslint-plugin": "^4.20.0",
67
- "@typescript-eslint/parser": "^4.20.0",
44
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
45
+ "@typescript-eslint/parser": "^6.8.0",
68
46
  "autoprefixer": "^9",
69
- "babel-jest": "^26.6.3",
70
- "babel-loader": "^8.2.2",
71
47
  "clsx": "^1.1.1",
72
48
  "cross-env": "^7.0.3",
73
- "eslint": "^7.23.0",
74
- "eslint-config-airbnb": "^18.2.1",
75
- "eslint-config-prettier": "^8.1.0",
76
- "eslint-plugin-import": "^2.22.1",
77
- "eslint-plugin-jsx-a11y": "^6.4.1",
78
- "eslint-plugin-prettier": "^3.3.1",
79
- "eslint-plugin-react": "^7.23.1",
80
- "eslint-plugin-react-hooks": "^4.2.0",
49
+ "esbuild": "^0.19.5",
50
+ "eslint": "^8.52.0",
51
+ "eslint-config-airbnb": "^19.0.4",
52
+ "eslint-config-prettier": "^9.0.0",
53
+ "eslint-plugin-import": "^2.28.1",
54
+ "eslint-plugin-jsx-a11y": "^6.7.1",
55
+ "eslint-plugin-prettier": "^5.0.1",
56
+ "eslint-plugin-react": "^7.33.2",
57
+ "eslint-plugin-react-hooks": "^4.6.0",
58
+ "eslint-plugin-storybook": "^0.6.15",
81
59
  "gh-pages": "^3.1.0",
82
60
  "husky": "^6.0.0",
83
- "jest": "^26.6.3",
61
+ "jest": "^29.7.0",
84
62
  "jest-dom": "^4.0.0",
63
+ "jest-environment-jsdom": "^29.7.0",
85
64
  "lint-staged": "^10.5.4",
86
65
  "npm-run-all": "^4.1.5",
87
66
  "postcss": "^7",
@@ -90,14 +69,31 @@
90
69
  "react-dom": "^18.1.0",
91
70
  "rimraf": "^3.0.2",
92
71
  "rollup": "^2.44.0",
72
+ "rollup-plugin-esbuild": "^6.1.0",
73
+ "storybook": "^7.5.1",
93
74
  "tailwindcss": "npm:@tailwindcss/postcss7-compat",
94
- "ts-jest": "^26.5.4",
75
+ "ts-jest": "^29.1.1",
95
76
  "tus-js-client": "^2.2.0",
96
- "typescript": "^4.7.3"
77
+ "typescript": "^5.2.2",
78
+ "vite": "^4.5.0"
97
79
  },
98
80
  "peerDependencies": {
99
81
  "react": ">=16.8",
100
82
  "tus-js-client": "^2.2.0"
101
83
  },
102
- "dependencies": {}
103
- }
84
+ "packageManager": "pnpm@8.8.0",
85
+ "scripts": {
86
+ "build": "npm-run-all -s type clean build:rollup",
87
+ "build:rollup": "cross-env NODE_ENV=production rollup -c",
88
+ "test": "cross-env NODE_ENV=TEST jest",
89
+ "type": "tsc --noEmit",
90
+ "format": "npm-run-all -s format:*",
91
+ "format:fix": "prettier --write './**/*.{ts,tsx,js,jsx,json}'",
92
+ "format:lint": "eslint ./ --ext .ts,.tsx",
93
+ "clean": "rimraf ./dist",
94
+ "storybook": "storybook dev -p 6006",
95
+ "storybook:build": "storybook build",
96
+ "storybook:static": "gh-pages -d storybook-static",
97
+ "storybook:deploy": "npm-run-all -s storybook:build storybook:static"
98
+ }
99
+ }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { Meta } from "@storybook/react";
3
- declare const _default: Meta<import("@storybook/react").Args>;
4
- export default _default;
5
- export declare const CacheKey: () => JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { Meta } from "@storybook/react";
3
- declare const _default: Meta<import("@storybook/react").Args>;
4
- export default _default;
5
- export declare const WithDefaultOptions: () => JSX.Element;