Nothing in the script changed pre se but the Netlify config and documentation has changed to specify to run the script with bash and not sh.
Typically, it doesn't make too much of a difference in a build script. However, as the script has gotten more involved it has out grown what sh can provide and needs bash language features, like initiating an empty array for example.