@real-router/types 0.7.0 → 0.8.0

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.
@@ -151,55 +151,12 @@ interface NavigationOptions {
151
151
  * @see {@link Router.areStatesEqual} for state comparison logic
152
152
  */
153
153
  reload?: boolean | undefined;
154
- /**
155
- * Preview navigation without any side effects (dry-run mode).
156
- *
157
- * @description
158
- * When `true`, returns the would-be target state via callback WITHOUT:
159
- * - Executing canDeactivate/canActivate guards
160
- * - Executing middleware
161
- * - Updating router state (`router.getState()` remains unchanged)
162
- * - Emitting any transition events (TRANSITION_START, TRANSITION_SUCCESS, etc.)
163
- *
164
- * The callback receives `(undefined, toState)` where `toState` is the computed
165
- * target state that WOULD result from this navigation.
166
- *
167
- * @default false
168
- *
169
- * @remarks
170
- * This option is useful for:
171
- * - Validating that a route exists and params are correct
172
- * - SSR: previewing state for pre-rendering without side effects
173
- * - Dry-run before actual navigation
174
- *
175
- * @deprecated Consider using `router.buildState()` + `router.makeState()` instead
176
- * for clearer intent. This option may be removed in a future major version.
177
- *
178
- * @example
179
- * // Preview navigation - router.getState() is NOT changed
180
- * router.navigate('users.view', { id: 123 }, { skipTransition: true }, (err, previewState) => {
181
- * console.log(previewState); // { name: 'users.view', params: { id: 123 }, path: '/users/view/123', ... }
182
- * console.log(router.getState()); // Still the previous state!
183
- * });
184
- *
185
- * @example
186
- * // Recommended alternative (clearer intent)
187
- * const route = router.buildState('users.view', { id: 123 });
188
- * if (route) {
189
- * const path = router.buildPath(route.name, route.params);
190
- * const previewState = router.makeState(route.name, route.params, path, { params: route.meta });
191
- * }
192
- *
193
- * @see {@link forceDeactivate} for skipping only canDeactivate guards
194
- * @see {@link force} for forcing navigation while preserving lifecycle
195
- */
196
- skipTransition?: boolean | undefined;
197
154
  /**
198
155
  * Force navigation even if target state equals current state.
199
156
  *
200
157
  * @description
201
158
  * When `true`, bypasses the "same state" equality check but still executes the full
202
- * transition lifecycle (unlike `skipTransition`). Similar to `reload` but can be used
159
+ * transition lifecycle. Similar to `reload` but can be used
203
160
  * for any forced navigation scenario.
204
161
  *
205
162
  * Difference from `reload`:
@@ -218,7 +175,6 @@ interface NavigationOptions {
218
175
  * router.navigate('analytics', { event: 'pageview' }, { force: true });
219
176
  *
220
177
  * @see {@link reload} for semantic equivalent (preferred for refresh scenarios)
221
- * @see {@link skipTransition} for bypassing entire lifecycle
222
178
  */
223
179
  force?: boolean | undefined;
224
180
  /**
@@ -251,7 +207,6 @@ interface NavigationOptions {
251
207
  * });
252
208
  * }
253
209
  *
254
- * @see {@link skipTransition} for bypassing all guards and middleware
255
210
  * @see {@link Router.clearCanDeactivate} for programmatically clearing guards
256
211
  */
257
212
  forceDeactivate?: boolean | undefined;
@@ -151,55 +151,12 @@ interface NavigationOptions {
151
151
  * @see {@link Router.areStatesEqual} for state comparison logic
152
152
  */
153
153
  reload?: boolean | undefined;
154
- /**
155
- * Preview navigation without any side effects (dry-run mode).
156
- *
157
- * @description
158
- * When `true`, returns the would-be target state via callback WITHOUT:
159
- * - Executing canDeactivate/canActivate guards
160
- * - Executing middleware
161
- * - Updating router state (`router.getState()` remains unchanged)
162
- * - Emitting any transition events (TRANSITION_START, TRANSITION_SUCCESS, etc.)
163
- *
164
- * The callback receives `(undefined, toState)` where `toState` is the computed
165
- * target state that WOULD result from this navigation.
166
- *
167
- * @default false
168
- *
169
- * @remarks
170
- * This option is useful for:
171
- * - Validating that a route exists and params are correct
172
- * - SSR: previewing state for pre-rendering without side effects
173
- * - Dry-run before actual navigation
174
- *
175
- * @deprecated Consider using `router.buildState()` + `router.makeState()` instead
176
- * for clearer intent. This option may be removed in a future major version.
177
- *
178
- * @example
179
- * // Preview navigation - router.getState() is NOT changed
180
- * router.navigate('users.view', { id: 123 }, { skipTransition: true }, (err, previewState) => {
181
- * console.log(previewState); // { name: 'users.view', params: { id: 123 }, path: '/users/view/123', ... }
182
- * console.log(router.getState()); // Still the previous state!
183
- * });
184
- *
185
- * @example
186
- * // Recommended alternative (clearer intent)
187
- * const route = router.buildState('users.view', { id: 123 });
188
- * if (route) {
189
- * const path = router.buildPath(route.name, route.params);
190
- * const previewState = router.makeState(route.name, route.params, path, { params: route.meta });
191
- * }
192
- *
193
- * @see {@link forceDeactivate} for skipping only canDeactivate guards
194
- * @see {@link force} for forcing navigation while preserving lifecycle
195
- */
196
- skipTransition?: boolean | undefined;
197
154
  /**
198
155
  * Force navigation even if target state equals current state.
199
156
  *
200
157
  * @description
201
158
  * When `true`, bypasses the "same state" equality check but still executes the full
202
- * transition lifecycle (unlike `skipTransition`). Similar to `reload` but can be used
159
+ * transition lifecycle. Similar to `reload` but can be used
203
160
  * for any forced navigation scenario.
204
161
  *
205
162
  * Difference from `reload`:
@@ -218,7 +175,6 @@ interface NavigationOptions {
218
175
  * router.navigate('analytics', { event: 'pageview' }, { force: true });
219
176
  *
220
177
  * @see {@link reload} for semantic equivalent (preferred for refresh scenarios)
221
- * @see {@link skipTransition} for bypassing entire lifecycle
222
178
  */
223
179
  force?: boolean | undefined;
224
180
  /**
@@ -251,7 +207,6 @@ interface NavigationOptions {
251
207
  * });
252
208
  * }
253
209
  *
254
- * @see {@link skipTransition} for bypassing all guards and middleware
255
210
  * @see {@link Router.clearCanDeactivate} for programmatically clearing guards
256
211
  */
257
212
  forceDeactivate?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/types",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "type": "commonjs",
5
5
  "description": "Shared TypeScript types for Real Router ecosystem",
6
6
  "types": "./dist/esm/index.d.mts",