Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hotwired/turbo-rails

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hotwired/turbo-rails - npm Package Compare versions

Comparing version 7.0.0-beta.3 to 7.0.0-beta.4

4

package.json
{
"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

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