New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

actioncable

Package Overview
Dependencies
Maintainers
6
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actioncable - npm Package Compare versions

Comparing version 5.1.4 to 5.2.0-beta1

94

CHANGELOG.md

@@ -1,91 +0,29 @@

## Rails 5.1.4 (September 07, 2017) ##
## Rails 5.2.0.beta1 (November 27, 2017) ##
* No changes.
* Removed deprecated evented redis adapter.
*Rafael Mendonça França*
## Rails 5.1.4.rc1 (August 24, 2017) ##
* Support redis-rb 4.0.
* No changes.
*Jeremy Daer*
* Hash long stream identifiers when using PostgreSQL adapter.
## Rails 5.1.3 (August 03, 2017) ##
PostgreSQL has a limit on identifiers length (63 chars, [docs](https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)).
Provided fix minifies identifiers longer than 63 chars by hashing them with SHA1.
* No changes.
Fixes #28751.
## Rails 5.1.3.rc3 (July 31, 2017) ##
* No changes.
## Rails 5.1.3.rc2 (July 25, 2017) ##
* No changes.
## Rails 5.1.3.rc1 (July 19, 2017) ##
* No changes.
## Rails 5.1.2 (June 26, 2017) ##
* No changes.
## Rails 5.1.1 (May 12, 2017) ##
* No changes.
## Rails 5.1.0 (April 27, 2017) ##
* ActionCable socket errors are now logged to the console
Previously any socket errors were ignored and this made it hard to diagnose socket issues (e.g. as discussed in #28362).
*Edward Poot*
* Redis subscription adapters now support `channel_prefix` option in `cable.yml`
Avoids channel name collisions when multiple apps use the same Redis server.
*Chad Ingram*
* Permit same-origin connections by default.
Added new option `config.action_cable.allow_same_origin_as_host = false`
to disable this behaviour.
*Dávid Halász*, *Matthew Draper*
* Prevent race where the client could receive and act upon a
subscription confirmation before the channel's `subscribed` method
completed.
Fixes #25381.
*Vladimir Dementyev*
* Buffer now writes to WebSocket connections, to avoid blocking threads
that could be doing more useful things.
* Action Cable's `redis` adapter allows for other common redis-rb options (`host`, `port`, `db`, `password`) in cable.yml.
*Matthew Draper*, *Tinco Andringa*
Previously, it accepts only a [redis:// url](https://www.iana.org/assignments/uri-schemes/prov/redis) as an option.
While we can add all of these options to the `url` itself, it is not explicitly documented. This alternative setup
is shown as the first example in the [Redis rubygem](https://github.com/redis/redis-rb#getting-started), which
makes this set of options as sensible as using just the `url`.
* Protect against concurrent writes to a WebSocket connection from
multiple threads; the underlying OS write is not always threadsafe.
*Marc Rendl Ignacio*
*Tinco Andringa*
* Add `ActiveSupport::Notifications` hook to `Broadcaster#broadcast`.
*Matthew Wear*
* Close hijacked socket when connection is shut down.
Fixes #25613.
*Tinco Andringa*
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actioncable/CHANGELOG.md) for previous changes.
Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actioncable/CHANGELOG.md) for previous changes.

2

package.json
{
"name": "actioncable",
"version": "5.1.4",
"version": "5.2.0-beta1",
"description": "WebSocket framework for Ruby on Rails.",

@@ -5,0 +5,0 @@ "main": "lib/assets/compiled/action_cable.js",

@@ -56,3 +56,3 @@ # Action Cable – Integrated WebSockets for Rails

def find_verified_user
if verified_user = User.find_by(id: cookies.signed[:user_id])
if verified_user = User.find_by(id: cookies.encrypted[:user_id])
verified_user

@@ -413,3 +413,3 @@ else

# cable/config.ru
require ::File.expand_path('../../config/environment', __FILE__)
require_relative '../config/environment'
Rails.application.eager_load!

@@ -451,3 +451,3 @@

Action Cable provides a subscription adapter interface to process its pubsub internals. By default, asynchronous, inline, PostgreSQL, evented Redis, and non-evented Redis adapters are included. The default adapter in new Rails applications is the asynchronous (`async`) adapter. To create your own adapter, you can look at `ActionCable::SubscriptionAdapter::Base` for all methods that must be implemented, and any of the adapters included within Action Cable as example implementations.
Action Cable provides a subscription adapter interface to process its pubsub internals. By default, asynchronous, inline, PostgreSQL, and Redis adapters are included. The default adapter in new Rails applications is the asynchronous (`async`) adapter. To create your own adapter, you can look at `ActionCable::SubscriptionAdapter::Base` for all methods that must be implemented, and any of the adapters included within Action Cable as example implementations.

@@ -460,5 +460,5 @@ The Ruby side of things is built on top of [websocket-driver](https://github.com/faye/websocket-driver-ruby), [nio4r](https://github.com/celluloid/nio4r), and [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby).

Action Cable is powered by a combination of WebSockets and threads. All of the
connection management is handled internally by utilizing Ruby’s native thread
connection management is handled internally by utilizing Ruby's native thread
support, which means you can use all your regular Rails models with no problems
as long as you haven’t committed any thread-safety sins.
as long as you haven't committed any thread-safety sins.

@@ -556,3 +556,3 @@ The Action Cable server does _not_ need to be a multi-threaded application server.

* http://www.opensource.org/licenses/MIT
* https://opensource.org/licenses/MIT

@@ -559,0 +559,0 @@

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