May be more info than you need -
From '87 to '94.5, the rear diff yoke was a Spicer #2-4-6901-1x and
used a 1310 u-joint, 3 7/32" cap-to-cap.
After that they switched to a Spicer #2-4-7631-1 yoke which used a
1330 u-joint, 3 5/8" cap-to-cap.
If you want to adapt an early driveshaft to a newer ('94+) diff,
you can use a Spicer 5-134x combination u-joint which mates a 1310
yoke to a 1330 yoke. Supposedly this is a late '70's Ford F250
u-joint.
If you have a '94 YJ, you will have to measure the u-joint to be
sure which type you have. Pre-94 will have 1310, post-94 will
have 1330.
Good Luck :)