I'm not a lawyer or law student in any capacity, but I've read in multiple sources that a contract is not valid unless there is consideration for both parties.
With this in mind, how can licenses for free and open-source software be considered valid? There is no consideration for the developer.
I'm interested in all western jurisdictions (e.g. US, EU) but if your answer focuses on just one that's more than fine.