BREAKING CHANGE: v0.16 Message.ext() return '.ext' instead of 'ext' before
Created by: huan
According to the ext()
methods behavior in Node/Python/C# etc, the ext()
always return the filename extension that including the dot(.
).
So the following BREAKING CHANGE was made in v0.15:
const ext = message.ext()
// assume the filename is `test.txt`
Before (v0.14 or earlieer)
assert(ext === 'txt')
After (v0.16 or later)
assert(ext === '.txt')