@panneau/data 2.0.93 → 3.0.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/es/index.js CHANGED
@@ -12,7 +12,7 @@ import _inherits from '@babel/runtime/helpers/inherits';
12
12
  import _createSuper from '@babel/runtime/helpers/createSuper';
13
13
  import { getJSON, getCSRFHeaders, postJSON } from '@folklore/fetch';
14
14
  import queryString from 'query-string';
15
- import { generatePath } from 'react-router';
15
+ import { generatePath } from '@folklore/routes';
16
16
 
17
17
  var useData = function useData(loadData) {
18
18
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
package/lib/index.js CHANGED
@@ -16,7 +16,7 @@ var _inherits = require('@babel/runtime/helpers/inherits');
16
16
  var _createSuper = require('@babel/runtime/helpers/createSuper');
17
17
  var fetch$1 = require('@folklore/fetch');
18
18
  var queryString = require('query-string');
19
- var reactRouter = require('react-router');
19
+ var routes = require('@folklore/routes');
20
20
 
21
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
22
 
@@ -443,13 +443,13 @@ var Base = /*#__PURE__*/function () {
443
443
  key: "route",
444
444
  value: function route(_route, params) {
445
445
  var _this$options = this.options,
446
- routes = _this$options.routes,
446
+ routes$1 = _this$options.routes,
447
447
  _this$options$generat = _this$options.generateUrl,
448
448
  generateUrl = _this$options$generat === void 0 ? null : _this$options$generat;
449
449
  if (generateUrl !== null) {
450
450
  return generateUrl(_route, params);
451
451
  }
452
- return reactRouter.generatePath(routes[_route] || _route, params);
452
+ return routes.generatePath(routes$1[_route] || _route, params);
453
453
  }
454
454
  }, {
455
455
  key: "getFullUrl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/data",
3
- "version": "2.0.93",
3
+ "version": "3.0.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -53,14 +53,15 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@babel/runtime": "^7.12.5",
56
- "@folklore/fetch": "^0.1.15",
57
- "@panneau/core": "^2.0.93",
56
+ "@folklore/fetch": "^0.1.16",
57
+ "@folklore/routes": "^0.2.6",
58
+ "@panneau/core": "^3.0.3",
58
59
  "prop-types": "^15.7.2",
59
60
  "query-string": "^8.1.0",
60
- "react-router": "^6.2.1"
61
+ "wouter": "^2.11.0"
61
62
  },
62
63
  "publishConfig": {
63
64
  "access": "public"
64
65
  },
65
- "gitHead": "5bf00f0bb2bae3c20b20c8d529d388a6391d8219"
66
+ "gitHead": "b5d5654435c0d62880bf235ed267193b2b64069a"
66
67
  }