Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stanza

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stanza - npm Package Versions

1
10

12.0.9

Diff

lancestout
published 12.0.8 •

lancestout
published 12.0.7 •

lancestout
published 12.0.5 •

lancestout
published 12.0.4 •

lancestout
published 12.0.3 •

lancestout
published 12.0.2 •

lancestout
published 12.0.1 •

lancestout
published 12.0.0 •

Changelog

Source

12.0.0

WARNING: Unlike many previous major version bumps that were almost entirely backwards compatible, v12 is not backwards compatible. Upgrading to v12 will require modifications in existing code.

  • Complete TypeScript support

  • Changed JXT implementation (old JXT definitions will not work). See JXT docs for more information.

  • Changed structure/names of JXT definitions for supported XEPs. See Supported XEP Formats for links to the type definitions of each XEP supported by StanzaJS.

  • Removed support for callbacks. All methods now support Promises only.

  • Methods using IQ stanzas now return the requested data instead of the full IQ stanza data.

  • Changed SASL implementation. Old, custom SASL mechanisms will not work.

  • Removed JID objects. JIDs are now treated as strings only. See src/JID.ts for helper functions.

  • Implemented Stringprep (not PRECIS, yet).

  • Removed WildEmitter. Now using standard EventEmitter. Event handlers using * wildcards will need to be changed.

    • The * and raw:* events are still supported.
  • Added input/display helpers for Realtime Text.

  • Configuration of transports has changed. The wsURL/boshURL/transport fields are no longer used. Configuring transports is now done by setting the transports field to an object:

    XMPP.createClient({
        transports: {
            websocket: 'wss://...',
            bosh: 'https://...'
        }
    })
    

    Using false instead of a URL will disable that transport type. An object can be used to pass additional configuration, such as BOSH pre-binding rid/sid:

    XMPP.createClient({
        transports: {
            websocket: false,
            bosh: {
                url: 'https://...',
                rid: 1234,
                sid: '...'
            }
        }
    })
    
lancestout
published 12.0.0-beta.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc