Conversation
Jorropo
left a comment
There was a problem hiding this comment.
I don't understand all the details of the implementation.
It seems like you made base256emoji a special cases which a bunch of adhoc rules.
I would try to avoid that since this is an increased load on the future maintainers (including future you).
|
There's two special cases in here:
|
If JS doesn't have
👍 this is clearly a negative priority item, being slow is fine |
Well .. We could do that in a future release though, it would be nicer than a |
I think contract is that they pass in string without multicodec tag, so far that meant first character, but if tag is first emoji in the sequence it would mean snipping it off. |
|
Updated with s/☉/🐉 from the latest spec change for this |
## [9.7.0](v9.6.5...v9.7.0) (2022-06-23) ### Features * add base256emoji ([#187](#187)) ([c6c5c46](c6c5c46)) ### Trivial Changes * **no-release:** bump @types/node from 17.0.45 to 18.0.0 ([#188](#188)) ([99e94ed](99e94ed)) * **no-release:** bump actions/setup-node from 3.1.0 to 3.2.0 ([#182](#182)) ([86ec43d](86ec43d)) * **no-release:** bump actions/setup-node from 3.2.0 to 3.3.0 ([#186](#186)) ([712c1c4](712c1c4)) * **no-release:** fix typo implemnetation -> implementation ([#184](#184)) ([3d4ae50](3d4ae50))
|
🎉 This PR is included in version 9.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Ref: multiformats/multibase#88
Too much fun, I couldn't help myself. Not intended to be performant of course.
/cc @Jorropo