🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@stimulus_reflex/polyfills

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stimulus_reflex/polyfills - npm Package Compare versions

Comparing version
3.4.0-dev.3
to
3.4.0-dev.4
+2
-2
package.json
{
"name": "@stimulus_reflex/polyfills",
"version": "3.4.0-dev.3",
"version": "3.4.0-dev.4",
"description": "Polyfills to support StimulusReflex in older browsers",

@@ -46,3 +46,3 @@ "homepage": "https://docs.stimulusreflex.com/",

},
"gitHead": "11dec12b5b56fad521d6dc16098f1991db116c70"
"gitHead": "6ad83a5bab5544efe12d827a146767642d64bc80"
}

@@ -1,9 +0,35 @@

# `@stimulus_reflex/polyfills`
# Polyfills for StimulusReflex
### Description
The `@stimulus_reflex/polyfills` package provides support for StimulusReflex and CableReady in older browsers like Internet Explorer 11.
This package contains a few polyfills and bundles polyfills from other packages. See below for details:
### Usage
### `@stimulus_reflex/polyfills`
To include the polyfills you just have to import the package. Typically you want to import it in `app/javascript/packs/application.js`.
```javascript
// app/javascript/packs/application.js
import '@stimulus_reflex/polyfills'
import 'controllers'
// ...
```
If you have an existing import for `@stimulus/polyfills` you can safely remove it. The `@stimulus/polyfills` package is included with `@stimulus_reflex/polyfills`.
```diff
-import '@stimulus/polyfills'
+import '@stimulus_reflex/polyfills'
```
### Details
This repository contains a few polyfills itself and bundles up polyfills from other packages. The following list shows the included polyfills and where they are coming from:
#### Polyfills imported in this package
* Custom

@@ -19,3 +45,3 @@ * [`NodeList.forEach()`](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Polyfill)

### `@stimulus/polyfills`
#### Polyfills imported from `@stimulus/polyfills`

@@ -38,6 +64,6 @@ * [core-js](https://www.npmjs.com/package/core-js)

### `@webcomponents/template`
#### Polyfills imported from `@webcomponents/template`
* [`<template>`](https://www.npmjs.com/package/@webcomponents/template)
### `formdata-polyfill`
#### Polyfills imported from `formdata-polyfill`
* [`FormData`](https://www.npmjs.com/package/formdata-polyfill)