A recent law brings Massachusetts in line with all the other New England states and will go into effect in 2026.