WindowsAzure/azure-sdk-for-node — pull request #314 by smarx (2012-08-15 08:42:04+00:00)
Title: allow empty strings for partition keys and row keys

The test `if (partitionKey && rowKey)` meant the strings had to be non-empty. This fix allows empty strings.

Side-effect: You used to be able to pass other things (like an integer) as a key. Now it strictly has to be a string. This is probably a good thing, but it's a breaking change.

An alternative (non-breaking) change would be something like `if ((partitionKey || (partitionKey) === '') && (rowKey || (rowKey === ''))`. That leaves the existing test in place but also tolerates empty strings. I have to say I prefer the breaking change, since these should really always be strings.