Releases: osslate/irc-message
Releases · osslate/irc-message
v3.0.1
v3.0.0
Stream all the things!
-
I've deprecated irc-message-stream in favour of transforming this into a stream-first module. You can now create a Transform object-mode stream that line-buffers data, and emits parsed messages. This is accessed via
ircMsg.createStream()
.I highly encourage you to this out unless you really need to parse individual messages. You can see usage examples in the README - and trust me, it's super simple.
-
Parser access is still available if needed, via
ircMsg.parse()
(previouslyircMsg.parseMessage()
) -
IRCMessage
object is no more. `ircMsg.parse()`` returns an object literal instead.- If you need prefix parsing whilst streaming, use
ircMsg.createStream({ parsePrefix: true })
to enable it - If you don't want to use the stream interface, you can use irc-prefix-parser to parse it
- If you need prefix parsing whilst streaming, use
Fix IRCMessage.toString with double colon
2.0.1 bump version
API changes
Split up parsing function and Message object.
First major release
- Error handling has been improved.
null
will be returned when irc-message is unable to parse a message due to malformation. Else, an IRCMessage object will be returned. - Fixed illogical comparison whereby parseHostmaskFromPrefix() would always attempt to parse without checking if the hostmask is actually valid first.
- parseHostmaskFromPrefix() now returns null when the prefix is not a valid hostmask.
- Utility method tests have been added and toString tests have been improved.
Tidy up API, add some tests, update documentation.
v0.2.0 Update version in package.json.
Performance optimisations
- Add call to
String.charAt()
. - Replace
String.substring()
calls withString.slice()
. This shows a minor performance boost with v8. - Remove unecessary
String.toUpperCase()
call.
v0.1.1
Initial release
v0.1.0 Add LICENSE.