From dc21f052ebc1655a9e98e4ac1ee270d13d4765b1 Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Sun, 15 Oct 2023 22:58:36 -0700 Subject: [PATCH] Upgrade AnyCable --- .dockerdev/compose.yml | 2 +- Gemfile | 2 +- Gemfile.lock | 14 +++++++------- config/importmap.rb | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.dockerdev/compose.yml b/.dockerdev/compose.yml index 41fc940..8252dc5 100644 --- a/.dockerdev/compose.yml +++ b/.dockerdev/compose.yml @@ -84,7 +84,7 @@ services: command: bundle exec rails tailwindcss:watch ws: &ws - image: anycable/anycable-go:1.4 + image: anycable/anycable-go:1.4.5 ports: - '8080:8080' - '8090:8090' diff --git a/Gemfile b/Gemfile index 203f6f2..2a31512 100644 --- a/Gemfile +++ b/Gemfile @@ -15,7 +15,7 @@ gem "activerecord-postgres_enum" gem "graphql", "~> 2.0" # Scalable WebSockets -gem "anycable-rails", "~> 1.4" +gem "anycable-rails", "~> 1.4.2" # Use JWT for authentication gem "anycable-rails-jwt", "~> 0.1" diff --git a/Gemfile.lock b/Gemfile.lock index 7e19600..4b387c1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -79,17 +79,17 @@ GEM tzinfo (~> 2.0) addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) - anycable (1.4.2) - anycable-core (= 1.4.2) + anycable (1.4.3) + anycable-core (= 1.4.3) google-protobuf (~> 3.23) grpc (~> 1.53) - anycable-core (1.4.2) + anycable-core (1.4.3) anyway_config (~> 2.2) google-protobuf (>= 3.13) - anycable-rails (1.4.1) + anycable-rails (1.4.2) anycable - anycable-rails-core (= 1.4.1) - anycable-rails-core (1.4.1) + anycable-rails-core (= 1.4.2) + anycable-rails-core (1.4.2) actioncable (>= 6.0) anycable-core (~> 1.4) globalid @@ -313,7 +313,7 @@ PLATFORMS DEPENDENCIES activerecord-postgres_enum - anycable-rails (~> 1.4) + anycable-rails (~> 1.4.2) anycable-rails-jwt (~> 0.1) bcrypt (~> 3.1.7) bootsnap diff --git a/config/importmap.rb b/config/importmap.rb index 10088c2..49f5da6 100644 --- a/config/importmap.rb +++ b/config/importmap.rb @@ -4,10 +4,10 @@ pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true pin "@anycable/web", to: "https://ga.jspm.io/npm:@anycable/web@0.7.0/index.js", preload: true -pin "@anycable/core", to: "https://ga.jspm.io/npm:@anycable/core@0.7.0/index.js", preload: true +pin "@anycable/core", to: "https://ga.jspm.io/npm:@anycable/core@0.7.9/index.js", preload: true pin "nanoevents", to: "https://ga.jspm.io/npm:nanoevents@6.0.2/index.js", preload: true pin "@hotwired/turbo", to: "https://ga.jspm.io/npm:@hotwired/turbo@7.1.0/dist/turbo.es2017-esm.js", preload: true -pin "@anycable/turbo-stream", to: "https://ga.jspm.io/npm:@anycable/turbo-stream@0.3.2/index.js", preload: true +pin "@anycable/turbo-stream", to: "https://ga.jspm.io/npm:@anycable/turbo-stream@0.4.0/index.js", preload: true pin "cable", to: "cable.js", preload: true pin_all_from "app/javascript/controllers", under: "controllers"