Both constructions are possible with the verb done as well as with verbs like rakonte or dir. However, the indirect object construction is the more recent construction.
Source: Neumann 1985: 169
Source: Neumann 1985: 255
Source: Neumann-Holzschuh (eds.) 1987: 102
Source: Neumann 1985: 256