Chapter five: Since the land is shaking in their boots, Israel has some down time for circumcision. They eat some food from Canaan and the manna ceases. The captain of God’s army is not on Israel’s side–rather, Israel is fighting God’s battles. Joshua is commissioned by the captain as Moses was by the burning bush.
Chapter six: Rahab and her family are spared. The curse upon Jericho is fulfilled in 1 Kings 16:34.
Chapters 7 and 8–there is sin in the camp preventing further victory (against Ai, in particular) and it is narrowed down to Achan who (in contrast to Rahab) stole from God. He involves his whole family in this sin and they all die from it. Horrible.