@tinkoff/router 0.1.62 → 0.1.63

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.
@@ -183,6 +183,7 @@ class AbstractRouter {
183
183
  }
184
184
  this.runSyncHooks('change', navigation);
185
185
  this.lastNavigation = navigation;
186
+ this.currentNavigation = null;
186
187
  }
187
188
  async updateCurrentRoute(updateRouteOptions) {
188
189
  return this.internalUpdateCurrentRoute(updateRouteOptions, {});
@@ -276,7 +277,6 @@ class AbstractRouter {
276
277
  if (navigation.type === 'updateCurrentRoute') {
277
278
  await this.runUpdateCurrentRoute(navigation);
278
279
  }
279
- this.currentNavigation = null;
280
280
  }
281
281
  resolve(resolveOptions, options) {
282
282
  const opts = typeof resolveOptions === 'string' ? { url: resolveOptions } : resolveOptions;
package/lib/index.es.js CHANGED
@@ -183,6 +183,7 @@ class AbstractRouter {
183
183
  }
184
184
  this.runSyncHooks('change', navigation);
185
185
  this.lastNavigation = navigation;
186
+ this.currentNavigation = null;
186
187
  }
187
188
  async updateCurrentRoute(updateRouteOptions) {
188
189
  return this.internalUpdateCurrentRoute(updateRouteOptions, {});
@@ -276,7 +277,6 @@ class AbstractRouter {
276
277
  if (navigation.type === 'updateCurrentRoute') {
277
278
  await this.runUpdateCurrentRoute(navigation);
278
279
  }
279
- this.currentNavigation = null;
280
280
  }
281
281
  resolve(resolveOptions, options) {
282
282
  const opts = typeof resolveOptions === 'string' ? { url: resolveOptions } : resolveOptions;
package/lib/index.js CHANGED
@@ -199,6 +199,7 @@ class AbstractRouter {
199
199
  }
200
200
  this.runSyncHooks('change', navigation);
201
201
  this.lastNavigation = navigation;
202
+ this.currentNavigation = null;
202
203
  }
203
204
  async updateCurrentRoute(updateRouteOptions) {
204
205
  return this.internalUpdateCurrentRoute(updateRouteOptions, {});
@@ -292,7 +293,6 @@ class AbstractRouter {
292
293
  if (navigation.type === 'updateCurrentRoute') {
293
294
  await this.runUpdateCurrentRoute(navigation);
294
295
  }
295
- this.currentNavigation = null;
296
296
  }
297
297
  resolve(resolveOptions, options) {
298
298
  const opts = typeof resolveOptions === 'string' ? { url: resolveOptions } : resolveOptions;
package/lib/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Url, Query } from '@tinkoff/url';
2
- export declare type Params = Record<string, string>;
2
+ export declare type Params = Record<string, string | null>;
3
3
  export interface Route {
4
4
  name: string;
5
5
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkoff/router",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "description": "router",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",