Skip to content

Commit 0d99dfb

Browse files
committed
feat: migration to yummies 6.x
1 parent 42abe46 commit 0d99dfb

File tree

10 files changed

+18
-28
lines changed

10 files changed

+18
-28
lines changed

.changeset/afraid-paws-feel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-route": minor
3+
---
4+
5+
[internal] migration to yummies 6.x

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"mobx-location-history": "^8.1.1",
5858
"path-to-regexp": "^8.2.0",
5959
"react-simple-loadable": "^2.3.8",
60-
"yummies": "^5.4.9"
60+
"yummies": "^6.0.0"
6161
},
6262
"peerDependencies": {
6363
"mobx": "^6.12.4",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/route/route.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ import {
2020
parse,
2121
type TokenData,
2222
} from 'path-to-regexp';
23-
import type {
24-
AnyObject,
25-
IsPartial,
26-
Maybe,
27-
MaybePromise,
28-
} from 'yummies/utils/types';
23+
import type { AnyObject, IsPartial, Maybe, MaybePromise } from 'yummies/types';
2924

3025
import { routeConfig } from '../config/index.js';
3126

src/core/route/route.types.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import type { RawQueryParamsData } from 'mobx-location-history';
22
import type { ParseOptions } from 'path-to-regexp';
3-
import type {
4-
AnyObject,
5-
IsPartial,
6-
Maybe,
7-
MaybePromise,
8-
} from 'yummies/utils/types';
3+
import type { AnyObject, IsPartial, Maybe, MaybePromise } from 'yummies/types';
94
import type { RouteGlobalConfig } from '../config/index.js';
105
import type { AnyAbstractRouteEntity } from '../route-group/index.js';
116
import type { VirtualRoute } from '../virtual-route/index.js';

src/core/virtual-route/virtual-route.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ import {
1111
} from 'mobx';
1212
import type { IQueryParams } from 'mobx-location-history';
1313
import { callFunction } from 'yummies/common';
14-
import type {
15-
AnyObject,
16-
EmptyObject,
17-
IsPartial,
18-
Maybe,
19-
} from 'yummies/utils/types';
14+
import type { AnyObject, EmptyObject, IsPartial, Maybe } from 'yummies/types';
2015

2116
import { routeConfig } from '../config/index.js';
2217

src/core/virtual-route/virtual-route.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66
Maybe,
77
MaybeFn,
88
MaybePromise,
9-
} from 'yummies/utils/types';
9+
} from 'yummies/types';
1010
import type { RouteNavigateParams } from '../route/index.js';
1111
import type { VirtualRoute } from './virtual-route.js';
1212

src/react/components/link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
useRef,
1111
} from 'react';
1212
import { isShallowEqual } from 'yummies/data';
13-
import type { IsPartial } from 'yummies/utils/types';
13+
import type { IsPartial } from 'yummies/types';
1414
import {
1515
type AnyRoute,
1616
type InputPathParams,

src/react/components/route-view-group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { buildSearchString } from 'mobx-location-history';
22
import { observer } from 'mobx-react-lite';
33
import { isValidElement, useEffect } from 'react';
4-
import type { IsPartial, Maybe } from 'yummies/utils/types';
4+
import type { IsPartial, Maybe } from 'yummies/types';
55
import { isRouteEntity } from '../../core/utils/is-route-entity.js';
66
import {
77
type AnyRouteEntity,

src/view-model/route-view-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ViewModelBase,
66
type ViewModelParams,
77
} from 'mobx-view-model';
8-
import type { EmptyObject } from 'yummies/utils/types';
8+
import type { EmptyObject } from 'yummies/types';
99

1010
import {
1111
type AnyAbstractRouteEntity,

0 commit comments

Comments
 (0)