@hotwired/turbo-rails
Advanced tools
Comparing version 7.0.0-beta.3 to 7.0.0-beta.4
{ | ||
"name": "@hotwired/turbo-rails", | ||
"version": "7.0.0-beta.3", | ||
"version": "7.0.0-beta.4", | ||
"description": "The speed of a single-page web application without having to write any JavaScript", | ||
@@ -16,3 +16,3 @@ "module": "app/javascript/turbo/index.js", | ||
"dependencies": { | ||
"@hotwired/turbo": "^7.0.0-beta.2", | ||
"@hotwired/turbo": "^7.0.0-beta.3", | ||
"@rails/actioncable": "^6.1.0" | ||
@@ -19,0 +19,0 @@ }, |
@@ -43,5 +43,11 @@ # Turbo | ||
If you're using Webpack and need to use either the cable consumer or the Turbo instance, you can import [`Turbo`](https://turbo.hotwire.dev/reference/drive) and/or [`cable`](https://github.com/hotwired/turbo-rails/blob/87542edecc4008c46249e5d8ede79b3eda62a5e2/app/javascript/turbo/cable.js) (`import { Turbo, cable } from "@hotwired/turbo-rails"`), but ensure that your application actually *uses* the members it `import`s when using this style (see [turbo-rails#48](https://github.com/hotwired/turbo-rails/issues/48)). | ||
If you're using Webpack and need to use either the cable consumer or the Turbo instance, you can import [`Turbo`](https://turbo.hotwire.dev/reference/drive) and/or [`cable`](https://github.com/hotwired/turbo-rails/blob/main/app/javascript/turbo/cable.js) (`import { Turbo, cable } from "@hotwired/turbo-rails"`), but ensure that your application actually *uses* the members it `import`s when using this style (see [turbo-rails#48](https://github.com/hotwired/turbo-rails/issues/48)). | ||
If you're using a [native adapter](https://turbo.hotwire.dev/handbook/native), you'll need to assign `window.Turbo`, even if it's not used for anything else: | ||
```js | ||
import { Turbo } from "@hotwired/turbo-rails" | ||
window.Turbo = Turbo | ||
``` | ||
## Usage | ||
@@ -48,0 +54,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105845
3182
75
2