--- - branch: MAIN date: Tue Nov 23 21:02:13 UTC 2021 files: - new: '1.13' old: '1.12' path: pkgsrc/www/py-websockets/Makefile pathrev: pkgsrc/www/py-websockets/Makefile@1.13 type: modified - new: '1.13' old: '1.12' path: pkgsrc/www/py-websockets/distinfo pathrev: pkgsrc/www/py-websockets/distinfo@1.13 type: modified - new: '1.11' old: '1.10' path: pkgsrc/www/py-websockets/PLIST pathrev: pkgsrc/www/py-websockets/PLIST@1.11 type: modified id: 20211123T210213Z.beb6cc1c21c9df96138d614bd8ce6da977cc8855 log: "py-websockets: updated to 10.1\n\n10.1\n\nNew features\n\nAdded a tutorial.\n\nMade the second parameter of connection handlers optional. It will be deprecated in the next major release. The request path is available in the :attr:`~legacy.protocol.WebSocketCommonProtocol.path` attribute of the first argument.\n\nIf you implemented the connection handler of a server as:\n\nasync def handler(request, path):\n ...\nYou should replace it by:\n\nasync def handler(request):\n path = request.path # if handler() uses the path argument\n ...\nAdded python -m websockets --version.\n\nImprovements\n\nAdded wheels for Python 3.10, PyPy 3.7, and for more platforms.\nReverted optimization of default compression settings for clients, mainly to avoid triggering bugs in poorly implemented servers like AWS API Gateway.\nMirrored the entire :class:`~asyncio.Server` API in :class:`~server.WebSocketServer`.\nImproved performance for large messages on ARM processors.\nDocumented how to auto-reload on code changes in development.\nBug fixes\n\nAvoided half-closing TCP connections that are already closed.\n\n10.0\n\nBackwards-incompatible changes\n\nwebsockets 10.0 requires Python â\x89¥ 3.7.\n\nwebsockets 9.1 is the last version supporting Python 3.6.\n\nThe loop parameter is deprecated from all APIs.\n\nThis reflects a decision made in Python 3.8. See the release notes of Python 3.10 for details.\n\nThe loop parameter is also removed from :class:`~server.WebSocketServer`. This should be transparent.\n\n:func:`~client.connect` times out after 10 seconds by default.\n\nYou can adjust the timeout with the open_timeout parameter. Set it to :obj:`None` to disable the timeout entirely.\n\nThe legacy_recv option is deprecated.\n\nSee the release notes of websockets 3.0 for details.\n\nThe signature of :exc:`~exceptions.ConnectionClosed` changed.\n\nIf you raise :exc:`~exceptions.ConnectionClosed` or a subclass, rather than catch them when websockets raises them, you must change your code.\n\nA msg parameter was added to :exc:`~exceptions.InvalidURI`.\n\nIf you raise :exc:`~exceptions.InvalidURI`, rather than catch it when websockets raises it, you must change your code.\n\nNew features\n\nwebsockets 10.0 introduces a Sans-I/O API for easier integration in third-party libraries.\n\nIf you're integrating websockets in a library, rather than just using it, look at the :doc:`Sans-I/O integration guide <../howto/sansio>`.\n\nAdded compatibility with Python 3.10.\nAdded :func:`~websockets.broadcast` to send a message to many clients.\nAdded support for reconnecting automatically by using :func:`~client.connect` as an asynchronous iterator.\nAdded open_timeout to :func:`~client.connect`.\nDocumented how to integrate with Django.\nDocumented how to deploy websockets in production, with several options.\nDocumented how to authenticate connections.\nDocumented how to broadcast messages to many connections.\nImprovements\n\nImproved logging. See the :doc:`logging guide <../topics/logging>`.\nOptimized default compression settings to reduce memory usage.\nOptimized processing of client-to-server messages when the C extension isn't available.\nSupported relative redirects in :func:`~client.connect`.\nHandled TCP connection drops during the opening handshake.\nMade it easier to customize authentication with :meth:`~auth.BasicAuthWebSocketServerProtocol.check_credentials`.\nProvided additional information in :exc:`~exceptions.ConnectionClosed` exceptions.\nClarified several exceptions or log messages.\nRestructured documentation.\nImproved API documentation.\nExtended FAQ.\nBug fixes\n\nAvoided a crash when receiving a ping while the connection is closing.\n" module: pkgsrc subject: 'CVS commit: pkgsrc/www/py-websockets' unixtime: '1637701333' user: adam