@native-router/react 1.1.0 → 1.1.2

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.
Files changed (1) hide show
  1. package/package.json +16 -22
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@native-router/react",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
+ "types": "./dist/types/index.d.ts",
7
8
  "import": "./dist/index.js",
8
- "require": "./dist/index.cjs",
9
- "types": "./dist/types/index.d.ts"
9
+ "require": "./dist/index.cjs"
10
10
  },
11
11
  "./server": {
12
+ "types": "./dist/types/server.d.ts",
12
13
  "import": "./dist/server.js",
13
- "require": "./dist/server.cjs",
14
- "types": "./dist/types/server.d.ts"
14
+ "require": "./dist/server.cjs"
15
15
  }
16
16
  },
17
17
  "keywords": [
@@ -35,17 +35,16 @@
35
35
  "build": "vite build && tsc -p tsconfig.production.json && tsc-alias -p tsconfig.production.json",
36
36
  "commit": "lint-staged && git-cz -n",
37
37
  "coverage": "c8 report --reporter=text-lcov > ./coverage/coverage.txt",
38
- "lint": "eslint --fix src test demos *.cjs --ext .mjs,.cjs,.js,.jsx,.ts,.tsx",
39
- "doc:gen": "typedoc",
40
- "build:demo": "cross-env BABEL_ENV=development BUILD_DEMO=true vite build",
41
- "deploy": "npm run doc:gen && npm run build:demo && gh-pages -d dist",
42
- "test": "vitest run",
43
- "test:watch": "npm test -- --watch",
38
+ "lint": "eslint --fix .",
39
+ "deploy": "cross-env BABEL_ENV=development BUILD_DEMO=true vite build && gh-pages -d dist",
40
+ "test": "vitest",
41
+ "test:ui": "vitest --ui",
42
+ "test:run": "vitest run",
44
43
  "serve": "vite preview"
45
44
  },
46
45
  "repository": {
47
46
  "type": "git",
48
- "url": "https://github.com/native-router/react"
47
+ "url": "git+https://github.com/native-router/react.git"
49
48
  },
50
49
  "sideEffects": false,
51
50
  "author": "wmzy",
@@ -75,21 +74,19 @@
75
74
  "@linaria/vite": "^5.0.2",
76
75
  "@testing-library/dom": "^10.4.1",
77
76
  "@testing-library/react": "^14.3.1",
78
- "@types/mocha": "^10.0.1",
79
77
  "@types/node": "^20.6.5",
80
78
  "@types/react": "^19.0.0",
81
79
  "@types/react-dom": "^19.0.0",
82
- "@types/sinon": "^10.0.16",
83
80
  "@typescript-eslint/eslint-plugin": "^6.7.2",
84
81
  "@typescript-eslint/parser": "^6.7.2",
85
82
  "@vitejs/plugin-react": "^4.1.0",
86
83
  "@vitest/coverage-v8": "^4.0.18",
87
84
  "@vitest/ui": "^4.0.18",
88
- "babel-plugin-module-resolver": "^5.0.0",
89
- "c8": "^8.0.1",
85
+ "babel-plugin-transform-jsx-class": "^0.1.3",
86
+ "babel-plugin-transform-jsx-condition": "^0.1.3",
87
+ "babel-runtime-jsx-plus": "^0.1.5",
90
88
  "commitizen": "^4.3.0",
91
89
  "core-js": "^3.32.2",
92
- "coveralls": "^3.1.1",
93
90
  "cross-env": "^7.0.3",
94
91
  "eslint": "^8.50.0",
95
92
  "eslint-config-airbnb": "^19.0.4",
@@ -99,7 +96,6 @@
99
96
  "eslint-plugin-compat": "^4.2.0",
100
97
  "eslint-plugin-import": "^2.28.1",
101
98
  "eslint-plugin-jsx-a11y": "^6.7.1",
102
- "eslint-plugin-mocha": "^10.1.0",
103
99
  "eslint-plugin-prettier": "^5.0.0",
104
100
  "eslint-plugin-react": "^7.33.2",
105
101
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -108,13 +104,11 @@
108
104
  "husky": "^8.0.3",
109
105
  "jsdom": "^22.1.0",
110
106
  "lint-staged": "^14.0.1",
111
- "mocha": "^10.2.0",
112
107
  "prettier": "^3.0.3",
113
108
  "react": "^19.0.0",
114
109
  "react-dom": "^19.0.0",
115
- "should": "^13.2.3",
116
- "should-sinon": "0.0.6",
117
- "sinon": "^16.0.0",
110
+ "rollup-plugin-type-as-json-schema": "^0.2.6",
111
+ "semantic-release": "^25.0.3",
118
112
  "terser": "^5.20.0",
119
113
  "tsc-alias": "^1.8.8",
120
114
  "typedoc": "^0.25.1",