@depup/tanstack__react-router 1.168.2-depup.0 → 1.168.4-depup.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.
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/cjs/HeadContent.cjs +2 -2
- package/dist/cjs/HeadContent.cjs.map +1 -1
- package/dist/cjs/HeadContent.d.cts +5 -1
- package/dist/cjs/HeadContent.dev.cjs +2 -2
- package/dist/cjs/HeadContent.dev.cjs.map +1 -1
- package/dist/cjs/HeadContent.dev.d.cts +2 -1
- package/dist/cjs/Match.cjs.map +1 -1
- package/dist/cjs/Match.d.cts +5 -5
- package/dist/cjs/headContentUtils.cjs +11 -5
- package/dist/cjs/headContentUtils.cjs.map +1 -1
- package/dist/cjs/headContentUtils.d.cts +2 -2
- package/dist/cjs/router.cjs +0 -8
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/HeadContent.d.ts +5 -1
- package/dist/esm/HeadContent.dev.d.ts +2 -1
- package/dist/esm/HeadContent.dev.js +2 -2
- package/dist/esm/HeadContent.dev.js.map +1 -1
- package/dist/esm/HeadContent.js +2 -2
- package/dist/esm/HeadContent.js.map +1 -1
- package/dist/esm/Match.d.ts +5 -5
- package/dist/esm/Match.js.map +1 -1
- package/dist/esm/headContentUtils.d.ts +2 -2
- package/dist/esm/headContentUtils.js +12 -6
- package/dist/esm/headContentUtils.js.map +1 -1
- package/dist/esm/router.js +0 -8
- package/dist/esm/router.js.map +1 -1
- package/dist/llms/rules/api.d.ts +1 -1
- package/dist/llms/rules/api.js +17 -3
- package/dist/llms/rules/guide.d.ts +1 -1
- package/dist/llms/rules/guide.js +148 -0
- package/dist/llms/rules/setup-and-architecture.d.ts +1 -1
- package/dist/llms/rules/setup-and-architecture.js +25 -11
- package/package.json +9 -8
- package/src/HeadContent.dev.tsx +3 -2
- package/src/HeadContent.tsx +7 -2
- package/src/Match.tsx +1 -2
- package/src/headContentUtils.tsx +29 -5
- package/src/router.ts +0 -9
package/dist/llms/rules/api.js
CHANGED
|
@@ -1337,6 +1337,7 @@ type RouterEvents = {
|
|
|
1337
1337
|
toLocation: ParsedLocation
|
|
1338
1338
|
pathChanged: boolean
|
|
1339
1339
|
hrefChanged: boolean
|
|
1340
|
+
hashChanged: boolean
|
|
1340
1341
|
}
|
|
1341
1342
|
onBeforeLoad: {
|
|
1342
1343
|
type: 'onBeforeLoad'
|
|
@@ -1344,6 +1345,7 @@ type RouterEvents = {
|
|
|
1344
1345
|
toLocation: ParsedLocation
|
|
1345
1346
|
pathChanged: boolean
|
|
1346
1347
|
hrefChanged: boolean
|
|
1348
|
+
hashChanged: boolean
|
|
1347
1349
|
}
|
|
1348
1350
|
onLoad: {
|
|
1349
1351
|
type: 'onLoad'
|
|
@@ -1351,6 +1353,7 @@ type RouterEvents = {
|
|
|
1351
1353
|
toLocation: ParsedLocation
|
|
1352
1354
|
pathChanged: boolean
|
|
1353
1355
|
hrefChanged: boolean
|
|
1356
|
+
hashChanged: boolean
|
|
1354
1357
|
}
|
|
1355
1358
|
onResolved: {
|
|
1356
1359
|
type: 'onResolved'
|
|
@@ -1358,6 +1361,7 @@ type RouterEvents = {
|
|
|
1358
1361
|
toLocation: ParsedLocation
|
|
1359
1362
|
pathChanged: boolean
|
|
1360
1363
|
hrefChanged: boolean
|
|
1364
|
+
hashChanged: boolean
|
|
1361
1365
|
}
|
|
1362
1366
|
onBeforeRouteMount: {
|
|
1363
1367
|
type: 'onBeforeRouteMount'
|
|
@@ -1365,6 +1369,7 @@ type RouterEvents = {
|
|
|
1365
1369
|
toLocation: ParsedLocation
|
|
1366
1370
|
pathChanged: boolean
|
|
1367
1371
|
hrefChanged: boolean
|
|
1372
|
+
hashChanged: boolean
|
|
1368
1373
|
}
|
|
1369
1374
|
onInjectedHtml: {
|
|
1370
1375
|
type: 'onInjectedHtml'
|
|
@@ -1373,6 +1378,9 @@ type RouterEvents = {
|
|
|
1373
1378
|
type: 'onRendered'
|
|
1374
1379
|
fromLocation?: ParsedLocation
|
|
1375
1380
|
toLocation: ParsedLocation
|
|
1381
|
+
pathChanged: boolean
|
|
1382
|
+
hrefChanged: boolean
|
|
1383
|
+
hashChanged: boolean
|
|
1376
1384
|
}
|
|
1377
1385
|
}
|
|
1378
1386
|
\`\`\`
|
|
@@ -1383,7 +1391,7 @@ Once an event is emitted, the following properties will be present on the event
|
|
|
1383
1391
|
|
|
1384
1392
|
### \`type\` property
|
|
1385
1393
|
|
|
1386
|
-
- Type: \`onBeforeNavigate | onBeforeLoad | onLoad | onBeforeRouteMount | onResolved\`
|
|
1394
|
+
- Type: \`onBeforeNavigate | onBeforeLoad | onLoad | onBeforeRouteMount | onResolved | onRendered | onInjectedHtml\`
|
|
1387
1395
|
- The type of the event
|
|
1388
1396
|
- This is useful for discriminating between events in a listener function.
|
|
1389
1397
|
|
|
@@ -1407,6 +1415,11 @@ Once an event is emitted, the following properties will be present on the event
|
|
|
1407
1415
|
- Type: \`boolean\`
|
|
1408
1416
|
- \`true\` if the href has changed between the \`fromLocation\` and \`toLocation\`.
|
|
1409
1417
|
|
|
1418
|
+
### \`hashChanged\` property
|
|
1419
|
+
|
|
1420
|
+
- Type: \`boolean\`
|
|
1421
|
+
- \`true\` if the hash has changed between the \`fromLocation\` and \`toLocation\`.
|
|
1422
|
+
|
|
1410
1423
|
## Example
|
|
1411
1424
|
|
|
1412
1425
|
\`\`\`tsx
|
|
@@ -1902,10 +1915,11 @@ An instance of the \`Router\` has the following properties and methods:
|
|
|
1902
1915
|
|
|
1903
1916
|
### \`.subscribe\` method
|
|
1904
1917
|
|
|
1905
|
-
- Type: \`(eventType: TType, fn: ListenerFn<RouterEvents[TType]>) => (
|
|
1918
|
+
- Type: \`(eventType: TType, fn: ListenerFn<RouterEvents[TType]>) => () => void\`
|
|
1906
1919
|
- Subscribes to a [\`RouterEvent\`](./RouterEventsType.md).
|
|
1907
1920
|
- Returns a function that can be used to unsubscribe from the event.
|
|
1908
|
-
- The
|
|
1921
|
+
- The listener will be called with the event payload whenever that event is emitted.
|
|
1922
|
+
- See the [Router Events guide](../../guide/router-events.md) for lifecycle ordering and usage patterns.
|
|
1909
1923
|
|
|
1910
1924
|
### \`.matchRoutes\` method
|
|
1911
1925
|
|