Skip to content

Releases: osslate/irc-message

v3.0.1

01 Mar 10:25
Compare
Choose a tag to compare
Bump versions

v3.0.0

22 Feb 00:11
Compare
Choose a tag to compare

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() (previously ircMsg.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

Fix IRCMessage.toString with double colon

27 Jun 11:34
Compare
Choose a tag to compare

API changes

29 May 11:44
Compare
Choose a tag to compare

Split up parsing function and Message object.

First major release

20 Dec 18:43
Compare
Choose a tag to compare
  • 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.

04 Dec 23:00
Compare
Choose a tag to compare
v0.2.0

Update version in package.json.

Performance optimisations

02 Dec 03:33
Compare
Choose a tag to compare
  • Add call to String.charAt().
  • Replace String.substring() calls with String.slice(). This shows a minor performance boost with v8.
  • Remove unecessary String.toUpperCase() call.

v0.1.1

01 Dec 20:20
Compare
Choose a tag to compare
  • Rename params property to args.

Initial release

01 Dec 20:11
Compare
Choose a tag to compare
v0.1.0

Add LICENSE.