stimulus_reflex
Advanced tools
Comparing version 3.5.0-pre0 to 3.5.0-pre1
@@ -445,3 +445,3 @@ # Troubleshooting | ||
Depending on how your DOM is structured, it's possible to have an iframe element which has been marked with `data-reflex-permanent` get morphed. [We're aware of it, and we've tried to fix it.](https://github.com/stimulusreflex/stimulus_reflex/issues/452) | ||
Depending on how your DOM is structured, it's possible to have an iframe element which has been marked with `data-reflex-permanent` get morphed. [We're aware of it, and we've tried to fix it.](https://github.com/hopsoft/stimulus_reflex/issues/452) | ||
@@ -558,2 +558,3 @@ ## Flight Safety Card | ||
3. `bin/spring binstub --remove --all` | ||
4. Comment out the line in `bin/rails` which says: `load File.expandpath("spring", _dir)` | ||
{% endhint %} | ||
@@ -560,0 +561,0 @@ |
@@ -43,3 +43,3 @@ --- | ||
bundle add stimulus_reflex | ||
bundle exec rails generate stimulus_reflex:config | ||
bundle exec rails generate stimulus_reflex:initializer | ||
``` | ||
@@ -249,3 +249,3 @@ | ||
"dependencies": { | ||
"stimulus_reflex": "stimulusreflex/stimulus_reflex#master" | ||
"stimulus_reflex": "hopsoft/stimulus_reflex#master" | ||
} | ||
@@ -257,3 +257,3 @@ ``` | ||
```ruby | ||
gem "stimulus_reflex", github: "stimulusreflex/stimulus_reflex", branch: "master" | ||
gem "stimulus_reflex", github: "hopsoft/stimulus_reflex", branch: "master" | ||
``` | ||
@@ -272,3 +272,3 @@ {% endcode %} | ||
Using [\#335 - tab isolation mode v2](https://github.com/stimulusreflex/stimulus_reflex/pull/335) as an example, we first need the Github username of the author and the name of their local branch associated with the PR. In this case, the answers are `leastbad` and `isolation_optional`. This is a branch on the forked copy of the main project; a pull request is just a proposal to merge the changes in this branch into the `master` branch of the main project repository. | ||
Using [\#335 - tab isolation mode v2](https://github.com/hopsoft/stimulus_reflex/pull/335) as an example, we first need the Github username of the author and the name of their local branch associated with the PR. In this case, the answers are `leastbad` and `isolation_optional`. This is a branch on the forked copy of the main project; a pull request is just a proposal to merge the changes in this branch into the `master` branch of the main project repository. | ||
@@ -275,0 +275,0 @@ {% code title="package.json" %} |
@@ -119,3 +119,3 @@ --- | ||
Β―\**\(γ\)\**/Β― | ||
Β―\*_\(γ\)\*_/Β― | ||
{% endhint %} | ||
@@ -122,0 +122,0 @@ |
@@ -13,3 +13,3 @@ import CableReady from 'cable_ready' | ||
export const performOperations = data => { | ||
export const received = data => { | ||
if (!data.cableReady) return | ||
@@ -107,3 +107,4 @@ | ||
} else { | ||
if (reflexes[Object.entries(data.operations)[0][1][0].reflexId]) | ||
const operations = Object.entries(data.operations) | ||
if (operations.length && reflexes[operations[0][1][0].reflexId]) | ||
CableReady.perform(data.operations) | ||
@@ -110,0 +111,0 @@ } |
import { createConsumer } from '@rails/actioncable' | ||
import { performOperations } from '../reflexes' | ||
import { received } from '../reflexes' | ||
import { emitEvent } from '../utils' | ||
@@ -18,3 +18,3 @@ | ||
consumer.subscriptions.create(subscription, { | ||
received: performOperations, | ||
received, | ||
connected, | ||
@@ -21,0 +21,0 @@ rejected, |
{ | ||
"name": "stimulus_reflex", | ||
"version": "3.5.0-pre0", | ||
"version": "3.5.0-pre1", | ||
"description": "Build reactive applications with the Rails tooling you already know and love.", | ||
@@ -34,3 +34,2 @@ "keywords": [ | ||
"scripts": { | ||
"postinstall": "node ./javascript/scripts/post_install.js", | ||
"prettier-standard:check": "yarn run prettier-standard --check ./javascript/*.js ./javascript/**/*.js", | ||
@@ -45,3 +44,3 @@ "prettier-standard:format": "yarn run prettier-standard ./javascript/*.js ./javascript/**/*.js", | ||
"@rails/actioncable": ">= 6.0", | ||
"cable_ready": "5.0.0-pre0" | ||
"cable_ready": "5.0.0-pre1" | ||
}, | ||
@@ -48,0 +47,0 @@ "devDependencies": { |
@@ -78,3 +78,3 @@ <p align="center"> | ||
Please join over 1000 of us on [Discord](https://discord.gg/stimulus-reflex) for support getting started, as well as active discussions around Rails, StimulusJS and CableReady. | ||
Please join over 1300 of us on [Discord](https://discord.gg/stimulus-reflex) for support getting started, as well as active discussions around Rails, StimulusJS and CableReady. | ||
@@ -81,0 +81,0 @@ ![](https://img.shields.io/discord/629472241427415060) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
1434989
0
140
3008
+ Addedcable_ready@5.0.0-pre1(transitive)
- Removedcable_ready@5.0.0-pre0(transitive)
Updatedcable_ready@5.0.0-pre1